@maptiler/geocoding-control 0.0.91-git.4d23c0 → 0.0.91-git.535bd0

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/react.js CHANGED
@@ -1,21 +1,21 @@
1
- import { forwardRef as It, useRef as Je, useEffect as Ze, useImperativeHandle as Wt, createElement as Nt } from "react";
1
+ import { forwardRef as Nt, useRef as Ye, useEffect as Ue, useImperativeHandle as jt, createElement as Ft } from "react";
2
2
  function P() {
3
3
  }
4
- function jt(t, e) {
4
+ function Gt(t, e) {
5
5
  for (const n in e)
6
6
  t[n] = e[n];
7
7
  return t;
8
8
  }
9
- function ft(t) {
9
+ function at(t) {
10
10
  return t();
11
11
  }
12
- function Xe() {
12
+ function xe() {
13
13
  return /* @__PURE__ */ Object.create(null);
14
14
  }
15
15
  function ee(t) {
16
- t.forEach(ft);
16
+ t.forEach(at);
17
17
  }
18
- function ut(t) {
18
+ function dt(t) {
19
19
  return typeof t == "function";
20
20
  }
21
21
  function he(t, e) {
@@ -25,19 +25,19 @@ let Be;
25
25
  function le(t, e) {
26
26
  return Be || (Be = document.createElement("a")), Be.href = e, t === Be.href;
27
27
  }
28
- function Gt(t) {
28
+ function Ot(t) {
29
29
  return Object.keys(t).length === 0;
30
30
  }
31
- function Ot(t, e, n, r) {
31
+ function Zt(t, e, n, r) {
32
32
  if (t) {
33
- const l = at(t, e, n, r);
33
+ const l = ht(t, e, n, r);
34
34
  return t[0](l);
35
35
  }
36
36
  }
37
- function at(t, e, n, r) {
38
- return t[1] && r ? jt(n.ctx.slice(), t[1](r(e))) : n.ctx;
37
+ function ht(t, e, n, r) {
38
+ return t[1] && r ? Gt(n.ctx.slice(), t[1](r(e))) : n.ctx;
39
39
  }
40
- function Zt(t, e, n, r) {
40
+ function Ut(t, e, n, r) {
41
41
  if (t[2] && r) {
42
42
  const l = t[2](r(n));
43
43
  if (e.dirty === void 0)
@@ -52,13 +52,13 @@ function Zt(t, e, n, r) {
52
52
  }
53
53
  return e.dirty;
54
54
  }
55
- function Ft(t, e, n, r, l, a) {
55
+ function qt(t, e, n, r, l, a) {
56
56
  if (l) {
57
- const s = at(e, n, r, a);
57
+ const s = ht(e, n, r, a);
58
58
  t.p(s, l);
59
59
  }
60
60
  }
61
- function qt(t) {
61
+ function Dt(t) {
62
62
  if (t.ctx.length > 32) {
63
63
  const e = [], n = t.ctx.length / 32;
64
64
  for (let r = 0; r < n; r++)
@@ -67,13 +67,13 @@ function qt(t) {
67
67
  }
68
68
  return -1;
69
69
  }
70
- function Ye(t) {
70
+ function $e(t) {
71
71
  return t ?? "";
72
72
  }
73
73
  function v(t, e) {
74
74
  t.appendChild(e);
75
75
  }
76
- function I(t, e, n) {
76
+ function A(t, e, n) {
77
77
  t.insertBefore(e, n || null);
78
78
  }
79
79
  function S(t) {
@@ -88,16 +88,16 @@ function ie(t) {
88
88
  function se(t) {
89
89
  return document.createTextNode(t);
90
90
  }
91
- function H() {
91
+ function V() {
92
92
  return se(" ");
93
93
  }
94
- function Dt() {
94
+ function Kt() {
95
95
  return se("");
96
96
  }
97
- function K(t, e, n, r) {
97
+ function D(t, e, n, r) {
98
98
  return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
99
99
  }
100
- function Kt(t) {
100
+ function Vt(t) {
101
101
  return function(e) {
102
102
  return e.preventDefault(), t.call(this, e);
103
103
  };
@@ -105,19 +105,19 @@ function Kt(t) {
105
105
  function o(t, e, n) {
106
106
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
107
107
  }
108
- function Vt(t) {
108
+ function Ht(t) {
109
109
  return Array.from(t.childNodes);
110
110
  }
111
111
  function Me(t, e) {
112
112
  e = "" + e, t.data !== e && (t.data = e);
113
113
  }
114
- function xe(t, e) {
114
+ function et(t, e) {
115
115
  t.value = e ?? "";
116
116
  }
117
117
  function re(t, e, n) {
118
118
  t.classList[n ? "add" : "remove"](e);
119
119
  }
120
- function Ht(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
120
+ function Qt(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
121
121
  const l = document.createEvent("CustomEvent");
122
122
  return l.initCustomEvent(t, n, r, e), l;
123
123
  }
@@ -125,20 +125,20 @@ let Re;
125
125
  function Te(t) {
126
126
  Re = t;
127
127
  }
128
- function dt() {
128
+ function _t() {
129
129
  if (!Re)
130
130
  throw new Error("Function called outside component initialization");
131
131
  return Re;
132
132
  }
133
- function Qt(t) {
134
- dt().$$.on_destroy.push(t);
133
+ function Jt(t) {
134
+ _t().$$.on_destroy.push(t);
135
135
  }
136
- function Ut() {
137
- const t = dt();
136
+ function Xt() {
137
+ const t = _t();
138
138
  return (e, n, { cancelable: r = !1 } = {}) => {
139
139
  const l = t.$$.callbacks[e];
140
140
  if (l) {
141
- const a = Ht(e, n, { cancelable: r });
141
+ const a = Qt(e, n, { cancelable: r });
142
142
  return l.slice().forEach((s) => {
143
143
  s.call(t, a);
144
144
  }), !a.defaultPrevented;
@@ -146,23 +146,23 @@ function Ut() {
146
146
  return !0;
147
147
  };
148
148
  }
149
- function $e(t, e) {
149
+ function tt(t, e) {
150
150
  const n = t.$$.callbacks[e.type];
151
151
  n && n.slice().forEach((r) => r.call(this, e));
152
152
  }
153
- const ke = [], qe = [];
153
+ const ke = [], De = [];
154
154
  let ve = [];
155
- const et = [], Jt = /* @__PURE__ */ Promise.resolve();
156
- let De = !1;
157
- function Xt() {
158
- De || (De = !0, Jt.then(ht));
155
+ const nt = [], Yt = /* @__PURE__ */ Promise.resolve();
156
+ let Ke = !1;
157
+ function xt() {
158
+ Ke || (Ke = !0, Yt.then(mt));
159
159
  }
160
- function Ke(t) {
160
+ function Ve(t) {
161
161
  ve.push(t);
162
162
  }
163
- const Fe = /* @__PURE__ */ new Set();
163
+ const qe = /* @__PURE__ */ new Set();
164
164
  let we = 0;
165
- function ht() {
165
+ function mt() {
166
166
  if (we !== 0)
167
167
  return;
168
168
  const t = Re;
@@ -170,31 +170,31 @@ function ht() {
170
170
  try {
171
171
  for (; we < ke.length; ) {
172
172
  const e = ke[we];
173
- we++, Te(e), Yt(e.$$);
173
+ we++, Te(e), $t(e.$$);
174
174
  }
175
175
  } catch (e) {
176
176
  throw ke.length = 0, we = 0, e;
177
177
  }
178
- for (Te(null), ke.length = 0, we = 0; qe.length; )
179
- qe.pop()();
178
+ for (Te(null), ke.length = 0, we = 0; De.length; )
179
+ De.pop()();
180
180
  for (let e = 0; e < ve.length; e += 1) {
181
181
  const n = ve[e];
182
- Fe.has(n) || (Fe.add(n), n());
182
+ qe.has(n) || (qe.add(n), n());
183
183
  }
184
184
  ve.length = 0;
185
185
  } while (ke.length);
186
- for (; et.length; )
187
- et.pop()();
188
- De = !1, Fe.clear(), Te(t);
186
+ for (; nt.length; )
187
+ nt.pop()();
188
+ Ke = !1, qe.clear(), Te(t);
189
189
  }
190
- function Yt(t) {
190
+ function $t(t) {
191
191
  if (t.fragment !== null) {
192
192
  t.update(), ee(t.before_update);
193
193
  const e = t.dirty;
194
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
194
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ve);
195
195
  }
196
196
  }
197
- function xt(t) {
197
+ function en(t) {
198
198
  const e = [], n = [];
199
199
  ve.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), ve = e;
200
200
  }
@@ -208,13 +208,13 @@ function Se() {
208
208
  // parent group
209
209
  };
210
210
  }
211
- function Ae() {
211
+ function Ie() {
212
212
  de.r || ee(de.c), de = de.p;
213
213
  }
214
- function G(t, e) {
214
+ function F(t, e) {
215
215
  t && t.i && (Pe.delete(t), t.i(e));
216
216
  }
217
- function Z(t, e, n, r) {
217
+ function O(t, e, n, r) {
218
218
  if (t && t.o) {
219
219
  if (Pe.has(t))
220
220
  return;
@@ -224,54 +224,54 @@ function Z(t, e, n, r) {
224
224
  } else
225
225
  r && r();
226
226
  }
227
- function $t(t, e) {
228
- Z(t, 1, 1, () => {
227
+ function tn(t, e) {
228
+ O(t, 1, 1, () => {
229
229
  e.delete(t.key);
230
230
  });
231
231
  }
232
- function en(t, e, n, r, l, a, s, c, d, f, _, k) {
233
- let b = t.length, L = a.length, z = b;
232
+ function nn(t, e, n, r, l, a, s, c, d, f, _, k) {
233
+ let b = t.length, E = a.length, z = b;
234
234
  const p = {};
235
235
  for (; z--; )
236
236
  p[t[z].key] = z;
237
- const g = [], W = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), O = [];
238
- for (z = L; z--; ) {
239
- const T = k(l, a, z), M = n(T);
240
- let m = s.get(M);
241
- m ? r && O.push(() => m.p(T, e)) : (m = f(M, T), m.c()), W.set(M, g[z] = m), M in p && B.set(M, Math.abs(z - p[M]));
237
+ const g = [], W = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map(), G = [];
238
+ for (z = E; z--; ) {
239
+ const M = k(l, a, z), R = n(M);
240
+ let m = s.get(R);
241
+ m ? r && G.push(() => m.p(M, e)) : (m = f(R, M), m.c()), W.set(R, g[z] = m), R in p && B.set(R, Math.abs(z - p[R]));
242
242
  }
243
- const F = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
244
- function y(T) {
245
- G(T, 1), T.m(c, _), s.set(T.key, T), _ = T.first, L--;
243
+ const Z = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
244
+ function y(M) {
245
+ F(M, 1), M.m(c, _), s.set(M.key, M), _ = M.first, E--;
246
246
  }
247
- for (; b && L; ) {
248
- const T = g[L - 1], M = t[b - 1], m = T.key, w = M.key;
249
- T === M ? (_ = T.first, b--, L--) : W.has(w) ? !s.has(m) || F.has(m) ? y(T) : h.has(w) ? b-- : B.get(m) > B.get(w) ? (h.add(m), y(T)) : (F.add(w), b--) : (d(M, s), b--);
247
+ for (; b && E; ) {
248
+ const M = g[E - 1], R = t[b - 1], m = M.key, w = R.key;
249
+ M === R ? (_ = M.first, b--, E--) : W.has(w) ? !s.has(m) || Z.has(m) ? y(M) : h.has(w) ? b-- : B.get(m) > B.get(w) ? (h.add(m), y(M)) : (Z.add(w), b--) : (d(R, s), b--);
250
250
  }
251
251
  for (; b--; ) {
252
- const T = t[b];
253
- W.has(T.key) || d(T, s);
252
+ const M = t[b];
253
+ W.has(M.key) || d(M, s);
254
254
  }
255
- for (; L; )
256
- y(g[L - 1]);
257
- return ee(O), g;
255
+ for (; E; )
256
+ y(g[E - 1]);
257
+ return ee(G), g;
258
258
  }
259
259
  function oe(t) {
260
260
  t && t.c();
261
261
  }
262
262
  function x(t, e, n, r) {
263
263
  const { fragment: l, after_update: a } = t.$$;
264
- l && l.m(e, n), r || Ke(() => {
265
- const s = t.$$.on_mount.map(ft).filter(ut);
264
+ l && l.m(e, n), r || Ve(() => {
265
+ const s = t.$$.on_mount.map(at).filter(dt);
266
266
  t.$$.on_destroy ? t.$$.on_destroy.push(...s) : ee(s), t.$$.on_mount = [];
267
- }), a.forEach(Ke);
267
+ }), a.forEach(Ve);
268
268
  }
269
269
  function $(t, e) {
270
270
  const n = t.$$;
271
- n.fragment !== null && (xt(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
271
+ n.fragment !== null && (en(n.after_update), ee(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
272
272
  }
273
- function tn(t, e) {
274
- t.$$.dirty[0] === -1 && (ke.push(t), Xt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
273
+ function rn(t, e) {
274
+ t.$$.dirty[0] === -1 && (ke.push(t), xt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
275
275
  }
276
276
  function _e(t, e, n, r, l, a, s, c = [-1]) {
277
277
  const d = Re;
@@ -283,7 +283,7 @@ function _e(t, e, n, r, l, a, s, c = [-1]) {
283
283
  props: a,
284
284
  update: P,
285
285
  not_equal: l,
286
- bound: Xe(),
286
+ bound: xe(),
287
287
  // lifecycle
288
288
  on_mount: [],
289
289
  on_destroy: [],
@@ -292,23 +292,23 @@ function _e(t, e, n, r, l, a, s, c = [-1]) {
292
292
  after_update: [],
293
293
  context: new Map(e.context || (d ? d.$$.context : [])),
294
294
  // everything else
295
- callbacks: Xe(),
295
+ callbacks: xe(),
296
296
  dirty: c,
297
297
  skip_bound: !1,
298
298
  root: e.target || d.$$.root
299
299
  };
300
300
  s && s(f.root);
301
301
  let _ = !1;
302
- if (f.ctx = n ? n(t, e.props || {}, (k, b, ...L) => {
303
- const z = L.length ? L[0] : b;
304
- return f.ctx && l(f.ctx[k], f.ctx[k] = z) && (!f.skip_bound && f.bound[k] && f.bound[k](z), _ && tn(t, k)), b;
302
+ if (f.ctx = n ? n(t, e.props || {}, (k, b, ...E) => {
303
+ const z = E.length ? E[0] : b;
304
+ return f.ctx && l(f.ctx[k], f.ctx[k] = z) && (!f.skip_bound && f.bound[k] && f.bound[k](z), _ && rn(t, k)), b;
305
305
  }) : [], f.update(), _ = !0, ee(f.before_update), f.fragment = r ? r(f.ctx) : !1, e.target) {
306
306
  if (e.hydrate) {
307
- const k = Vt(e.target);
307
+ const k = Ht(e.target);
308
308
  f.fragment && f.fragment.l(k), k.forEach(S);
309
309
  } else
310
310
  f.fragment && f.fragment.c();
311
- e.intro && G(t.$$.fragment), x(t, e.target, e.anchor, e.customElement), ht();
311
+ e.intro && F(t.$$.fragment), x(t, e.target, e.anchor, e.customElement), mt();
312
312
  }
313
313
  Te(d);
314
314
  }
@@ -317,7 +317,7 @@ class me {
317
317
  $(this, 1), this.$destroy = P;
318
318
  }
319
319
  $on(e, n) {
320
- if (!ut(n))
320
+ if (!dt(n))
321
321
  return P;
322
322
  const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
323
323
  return r.push(n), () => {
@@ -326,17 +326,17 @@ class me {
326
326
  };
327
327
  }
328
328
  $set(e) {
329
- this.$$set && !Gt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
329
+ this.$$set && !Ot(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
330
330
  }
331
331
  }
332
- function nn(t) {
332
+ function ln(t) {
333
333
  let e, n;
334
334
  return {
335
335
  c() {
336
336
  e = ie("svg"), n = ie("path"), o(n, "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"), o(e, "viewBox", "0 0 14 14"), o(e, "width", "13"), o(e, "height", "13"), o(e, "class", "svelte-en2qvf");
337
337
  },
338
338
  m(r, l) {
339
- I(r, e, l), v(e, n);
339
+ A(r, e, l), v(e, n);
340
340
  },
341
341
  p: P,
342
342
  i: P,
@@ -346,19 +346,19 @@ function nn(t) {
346
346
  }
347
347
  };
348
348
  }
349
- class _t extends me {
349
+ class gt extends me {
350
350
  constructor(e) {
351
- super(), _e(this, e, null, nn, he, {});
351
+ super(), _e(this, e, null, ln, he, {});
352
352
  }
353
353
  }
354
- function rn(t) {
354
+ function sn(t) {
355
355
  let e, n;
356
356
  return {
357
357
  c() {
358
358
  e = ie("svg"), n = ie("path"), o(n, "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"), o(e, "viewBox", "0 0 30 30"), o(e, "fill", "none"), o(e, "xmlns", "http://www.w3.org/2000/svg"), o(e, "class", "svelte-d2loi5");
359
359
  },
360
360
  m(r, l) {
361
- I(r, e, l), v(e, n);
361
+ A(r, e, l), v(e, n);
362
362
  },
363
363
  p: P,
364
364
  i: P,
@@ -368,12 +368,12 @@ function rn(t) {
368
368
  }
369
369
  };
370
370
  }
371
- class mt extends me {
371
+ class yt extends me {
372
372
  constructor(e) {
373
- super(), _e(this, e, null, rn, he, {});
373
+ super(), _e(this, e, null, sn, he, {});
374
374
  }
375
375
  }
376
- function ln(t) {
376
+ function on(t) {
377
377
  let e, n;
378
378
  return {
379
379
  c() {
@@ -385,7 +385,7 @@ function ln(t) {
385
385
  ), o(e, "class", "svelte-ltkwvy");
386
386
  },
387
387
  m(r, l) {
388
- I(r, e, l);
388
+ A(r, e, l);
389
389
  },
390
390
  p(r, l) {
391
391
  l & /*placeType*/
@@ -401,7 +401,7 @@ function ln(t) {
401
401
  }
402
402
  };
403
403
  }
404
- function sn(t) {
404
+ function cn(t) {
405
405
  let e, n;
406
406
  return {
407
407
  c() {
@@ -413,7 +413,7 @@ function sn(t) {
413
413
  ), o(e, "class", "svelte-ltkwvy");
414
414
  },
415
415
  m(r, l) {
416
- I(r, e, l);
416
+ A(r, e, l);
417
417
  },
418
418
  p(r, l) {
419
419
  l & /*placeType*/
@@ -429,7 +429,7 @@ function sn(t) {
429
429
  }
430
430
  };
431
431
  }
432
- function on(t) {
432
+ function fn(t) {
433
433
  let e, n;
434
434
  return {
435
435
  c() {
@@ -441,7 +441,7 @@ function on(t) {
441
441
  ), o(e, "class", "svelte-ltkwvy");
442
442
  },
443
443
  m(r, l) {
444
- I(r, e, l);
444
+ A(r, e, l);
445
445
  },
446
446
  p(r, l) {
447
447
  l & /*placeType*/
@@ -457,7 +457,7 @@ function on(t) {
457
457
  }
458
458
  };
459
459
  }
460
- function cn(t) {
460
+ function un(t) {
461
461
  let e, n;
462
462
  return {
463
463
  c() {
@@ -469,7 +469,7 @@ function cn(t) {
469
469
  ), o(e, "class", "svelte-ltkwvy");
470
470
  },
471
471
  m(r, l) {
472
- I(r, e, l);
472
+ A(r, e, l);
473
473
  },
474
474
  p(r, l) {
475
475
  l & /*placeType*/
@@ -485,7 +485,7 @@ function cn(t) {
485
485
  }
486
486
  };
487
487
  }
488
- function fn(t) {
488
+ function an(t) {
489
489
  let e, n;
490
490
  return {
491
491
  c() {
@@ -497,7 +497,7 @@ function fn(t) {
497
497
  ), o(e, "class", "svelte-ltkwvy");
498
498
  },
499
499
  m(r, l) {
500
- I(r, e, l);
500
+ A(r, e, l);
501
501
  },
502
502
  p(r, l) {
503
503
  l & /*placeType*/
@@ -513,7 +513,7 @@ function fn(t) {
513
513
  }
514
514
  };
515
515
  }
516
- function un(t) {
516
+ function dn(t) {
517
517
  let e, n;
518
518
  return {
519
519
  c() {
@@ -525,7 +525,7 @@ function un(t) {
525
525
  ), o(e, "class", "svelte-ltkwvy");
526
526
  },
527
527
  m(r, l) {
528
- I(r, e, l);
528
+ A(r, e, l);
529
529
  },
530
530
  p(r, l) {
531
531
  l & /*placeType*/
@@ -541,7 +541,7 @@ function un(t) {
541
541
  }
542
542
  };
543
543
  }
544
- function an(t) {
544
+ function hn(t) {
545
545
  let e, n, r, l;
546
546
  return {
547
547
  c() {
@@ -554,7 +554,7 @@ function an(t) {
554
554
  ), o(e, "class", "svelte-ltkwvy");
555
555
  },
556
556
  m(a, s) {
557
- I(a, e, s), r || (l = K(
557
+ A(a, e, s), r || (l = D(
558
558
  e,
559
559
  "error",
560
560
  /*error_handler*/
@@ -577,7 +577,7 @@ function an(t) {
577
577
  }
578
578
  };
579
579
  }
580
- function tt(t) {
580
+ function rt(t) {
581
581
  let e, n;
582
582
  return {
583
583
  c() {
@@ -587,7 +587,7 @@ function tt(t) {
587
587
  ), o(e, "class", "secondary svelte-ltkwvy");
588
588
  },
589
589
  m(r, l) {
590
- I(r, e, l), v(e, n);
590
+ A(r, e, l), v(e, n);
591
591
  },
592
592
  p(r, l) {
593
593
  l & /*placeType*/
@@ -602,8 +602,8 @@ function tt(t) {
602
602
  }
603
603
  };
604
604
  }
605
- function dn(t) {
606
- var T, M;
605
+ function _n(t) {
606
+ var M, R;
607
607
  let e, n, r, l, a, s, c, d, f = (
608
608
  /*feature*/
609
609
  t[0].place_name.replace(/,.*/, "") + ""
@@ -612,38 +612,38 @@ function dn(t) {
612
612
  t[2] === "always" || /*showPlaceType*/
613
613
  t[2] && !/*feature*/
614
614
  t[0].address && /*feature*/
615
- ((T = t[0].properties) == null ? void 0 : T.kind) !== "road" && /*feature*/
616
- ((M = t[0].properties) == null ? void 0 : M.kind) !== "road_relation" && !/*feature*/
615
+ ((M = t[0].properties) == null ? void 0 : M.kind) !== "road" && /*feature*/
616
+ ((R = t[0].properties) == null ? void 0 : R.kind) !== "road_relation" && !/*feature*/
617
617
  t[0].id.startsWith("address.") && !/*feature*/
618
618
  t[0].id.startsWith("postal_code.") && (!/*feature*/
619
619
  t[0].id.startsWith("poi.") || !/*imageUrl*/
620
620
  t[5])
621
- ), L, z, p = (
621
+ ), E, z, p = (
622
622
  /*feature*/
623
623
  t[0].place_name.replace(/[^,]*,?\s*/, "") + ""
624
624
  ), g, W, B;
625
- function O(m, w) {
626
- var Q, u;
625
+ function G(m, w) {
626
+ var H, u;
627
627
  return w & /*feature*/
628
628
  1 && (n = null), w & /*feature*/
629
629
  1 && (r = null), w & /*feature*/
630
630
  1 && (l = null), /*imageUrl*/
631
- m[5] ? an : (
631
+ m[5] ? hn : (
632
632
  /*feature*/
633
- m[0].address ? un : (
633
+ m[0].address ? dn : (
634
634
  /*feature*/
635
- ((Q = m[0].properties) == null ? void 0 : Q.kind) === "road" || /*feature*/
636
- ((u = m[0].properties) == null ? void 0 : u.kind) === "road_relation" ? fn : (n == null && (n = !!/*feature*/
637
- m[0].id.startsWith("address.")), n ? cn : (r == null && (r = !!/*feature*/
638
- m[0].id.startsWith("postal_code.")), r ? on : (l == null && (l = !!/*feature*/
639
- m[0].id.startsWith("poi.")), l ? sn : ln)))
635
+ ((H = m[0].properties) == null ? void 0 : H.kind) === "road" || /*feature*/
636
+ ((u = m[0].properties) == null ? void 0 : u.kind) === "road_relation" ? an : (n == null && (n = !!/*feature*/
637
+ m[0].id.startsWith("address.")), n ? un : (r == null && (r = !!/*feature*/
638
+ m[0].id.startsWith("postal_code.")), r ? fn : (l == null && (l = !!/*feature*/
639
+ m[0].id.startsWith("poi.")), l ? cn : on)))
640
640
  )
641
641
  );
642
642
  }
643
- let F = O(t, -1), h = F(t), y = b && tt(t);
643
+ let Z = G(t, -1), h = Z(t), y = b && rt(t);
644
644
  return {
645
645
  c() {
646
- e = C("li"), h.c(), a = H(), s = C("span"), c = C("span"), d = C("span"), _ = se(f), k = H(), y && y.c(), L = H(), z = C("span"), g = se(p), o(d, "class", "primary svelte-ltkwvy"), o(c, "class", "svelte-ltkwvy"), o(z, "class", "line2 svelte-ltkwvy"), o(s, "class", "texts svelte-ltkwvy"), o(e, "tabindex", "0"), o(
646
+ e = C("li"), h.c(), a = V(), s = C("span"), c = C("span"), d = C("span"), _ = se(f), k = V(), y && y.c(), E = V(), z = C("span"), g = se(p), o(d, "class", "primary svelte-ltkwvy"), o(c, "class", "svelte-ltkwvy"), o(z, "class", "line2 svelte-ltkwvy"), o(s, "class", "texts svelte-ltkwvy"), o(e, "tabindex", "0"), o(
647
647
  e,
648
648
  "data-selected",
649
649
  /*selected*/
@@ -656,14 +656,14 @@ function dn(t) {
656
656
  );
657
657
  },
658
658
  m(m, w) {
659
- I(m, e, w), h.m(e, null), v(e, a), v(e, s), v(s, c), v(c, d), v(d, _), v(c, k), y && y.m(c, null), v(s, L), v(s, z), v(z, g), W || (B = [
660
- K(
659
+ A(m, e, w), h.m(e, null), v(e, a), v(e, s), v(s, c), v(c, d), v(d, _), v(c, k), y && y.m(c, null), v(s, E), v(s, z), v(z, g), W || (B = [
660
+ D(
661
661
  e,
662
662
  "mouseenter",
663
663
  /*mouseenter_handler*/
664
664
  t[8]
665
665
  ),
666
- K(
666
+ D(
667
667
  e,
668
668
  "focus",
669
669
  /*focus_handler*/
@@ -672,20 +672,20 @@ function dn(t) {
672
672
  ], W = !0);
673
673
  },
674
674
  p(m, [w]) {
675
- var Q, u;
676
- F === (F = O(m, w)) && h ? h.p(m, w) : (h.d(1), h = F(m), h && (h.c(), h.m(e, a))), w & /*feature*/
675
+ var H, u;
676
+ Z === (Z = G(m, w)) && h ? h.p(m, w) : (h.d(1), h = Z(m), h && (h.c(), h.m(e, a))), w & /*feature*/
677
677
  1 && f !== (f = /*feature*/
678
678
  m[0].place_name.replace(/,.*/, "") + "") && Me(_, f), w & /*showPlaceType, feature, imageUrl*/
679
679
  37 && (b = /*showPlaceType*/
680
680
  m[2] === "always" || /*showPlaceType*/
681
681
  m[2] && !/*feature*/
682
682
  m[0].address && /*feature*/
683
- ((Q = m[0].properties) == null ? void 0 : Q.kind) !== "road" && /*feature*/
683
+ ((H = m[0].properties) == null ? void 0 : H.kind) !== "road" && /*feature*/
684
684
  ((u = m[0].properties) == null ? void 0 : u.kind) !== "road_relation" && !/*feature*/
685
685
  m[0].id.startsWith("address.") && !/*feature*/
686
686
  m[0].id.startsWith("postal_code.") && (!/*feature*/
687
687
  m[0].id.startsWith("poi.") || !/*imageUrl*/
688
- m[5])), b ? y ? y.p(m, w) : (y = tt(m), y.c(), y.m(c, null)) : y && (y.d(1), y = null), w & /*feature*/
688
+ m[5])), b ? y ? y.p(m, w) : (y = rt(m), y.c(), y.m(c, null)) : y && (y.d(1), y = null), w & /*feature*/
689
689
  1 && p !== (p = /*feature*/
690
690
  m[0].place_name.replace(/[^,]*,?\s*/, "") + "") && Me(g, p), w & /*selected*/
691
691
  2 && o(
@@ -708,7 +708,7 @@ function dn(t) {
708
708
  }
709
709
  };
710
710
  }
711
- function hn(t, e, n) {
711
+ function mn(t, e, n) {
712
712
  var p;
713
713
  let r, l, a, s, { feature: c } = e, { selected: d = !1 } = e, { showPlaceType: f } = e;
714
714
  const _ = (p = c.properties) == null ? void 0 : p.categories;
@@ -716,20 +716,20 @@ function hn(t, e, n) {
716
716
  r > -1 ? n(7, r--, r) : g.style.visibility = "hidden";
717
717
  }
718
718
  function b(g) {
719
- $e.call(this, t, g);
719
+ tt.call(this, t, g);
720
720
  }
721
- function L(g) {
722
- $e.call(this, t, g);
721
+ function E(g) {
722
+ tt.call(this, t, g);
723
723
  }
724
724
  const z = (g) => k(g.currentTarget);
725
725
  return t.$$set = (g) => {
726
726
  "feature" in g && n(0, c = g.feature), "selected" in g && n(1, d = g.selected), "showPlaceType" in g && n(2, f = g.showPlaceType);
727
727
  }, t.$$.update = () => {
728
- var g, W, B, O;
728
+ var g, W, B, G;
729
729
  t.$$.dirty & /*index*/
730
730
  128 && n(3, l = _ == null ? void 0 : _[r]), t.$$.dirty & /*category*/
731
731
  8 && n(5, a = l ? `/icons/${l.replace(/ /g, "_")}.svg` : void 0), t.$$.dirty & /*feature*/
732
- 1 && n(4, s = c.id.startsWith("poi.") ? (W = (g = c.properties) == null ? void 0 : g.categories) == null ? void 0 : W.join(" ,") : ((O = (B = c.properties) == null ? void 0 : B.place_type_name) == null ? void 0 : O[0]) ?? c.place_type[0]);
732
+ 1 && n(4, s = c.id.startsWith("poi.") ? (W = (g = c.properties) == null ? void 0 : g.categories) == null ? void 0 : W.join(", ") : ((G = (B = c.properties) == null ? void 0 : B.place_type_name) == null ? void 0 : G[0]) ?? c.place_type[0]);
733
733
  }, n(7, r = ((_ == null ? void 0 : _.length) ?? 0) - 1), [
734
734
  c,
735
735
  d,
@@ -740,27 +740,27 @@ function hn(t, e, n) {
740
740
  k,
741
741
  r,
742
742
  b,
743
- L,
743
+ E,
744
744
  z
745
745
  ];
746
746
  }
747
- class _n extends me {
747
+ class gn extends me {
748
748
  constructor(e) {
749
- super(), _e(this, e, hn, dn, he, {
749
+ super(), _e(this, e, mn, _n, he, {
750
750
  feature: 0,
751
751
  selected: 1,
752
752
  showPlaceType: 2
753
753
  });
754
754
  }
755
755
  }
756
- function mn(t) {
756
+ function yn(t) {
757
757
  let e;
758
758
  return {
759
759
  c() {
760
760
  e = C("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>', o(e, "class", "svelte-7cmwmc");
761
761
  },
762
762
  m(n, r) {
763
- I(n, e, r);
763
+ A(n, e, r);
764
764
  },
765
765
  p: P,
766
766
  i: P,
@@ -770,19 +770,19 @@ function mn(t) {
770
770
  }
771
771
  };
772
772
  }
773
- class gn extends me {
773
+ class bn extends me {
774
774
  constructor(e) {
775
- super(), _e(this, e, null, mn, he, {});
775
+ super(), _e(this, e, null, yn, he, {});
776
776
  }
777
777
  }
778
- function yn(t) {
778
+ function wn(t) {
779
779
  let e, n;
780
780
  return {
781
781
  c() {
782
782
  e = ie("svg"), n = ie("path"), o(n, "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"), o(e, "viewBox", "0 0 60.006 21.412"), o(e, "width", "14"), o(e, "height", "20"), o(e, "class", "svelte-en2qvf");
783
783
  },
784
784
  m(r, l) {
785
- I(r, e, l), v(e, n);
785
+ A(r, e, l), v(e, n);
786
786
  },
787
787
  p: P,
788
788
  i: P,
@@ -792,19 +792,19 @@ function yn(t) {
792
792
  }
793
793
  };
794
794
  }
795
- class bn extends me {
795
+ class kn extends me {
796
796
  constructor(e) {
797
- super(), _e(this, e, null, yn, he, {});
797
+ super(), _e(this, e, null, wn, he, {});
798
798
  }
799
799
  }
800
- function wn(t) {
800
+ function vn(t) {
801
801
  let e, n;
802
802
  return {
803
803
  c() {
804
804
  e = ie("svg"), n = ie("path"), o(n, "d", "M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"), o(e, "width", "14"), o(e, "height", "14"), o(e, "viewBox", "0 0 15 15"), o(e, "class", "svelte-en2qvf");
805
805
  },
806
806
  m(r, l) {
807
- I(r, e, l), v(e, n);
807
+ A(r, e, l), v(e, n);
808
808
  },
809
809
  p: P,
810
810
  i: P,
@@ -814,18 +814,18 @@ function wn(t) {
814
814
  }
815
815
  };
816
816
  }
817
- class kn extends me {
817
+ class pn extends me {
818
818
  constructor(e) {
819
- super(), _e(this, e, null, wn, he, {});
819
+ super(), _e(this, e, null, vn, he, {});
820
820
  }
821
821
  }
822
- function nt(t, e, n) {
822
+ function lt(t, e, n) {
823
823
  const r = t.slice();
824
- return r[71] = e[n], r[73] = n, r;
824
+ return r[73] = e[n], r[75] = n, r;
825
825
  }
826
- function rt(t) {
826
+ function it(t) {
827
827
  let e, n;
828
- return e = new gn({}), {
828
+ return e = new bn({}), {
829
829
  c() {
830
830
  oe(e.$$.fragment);
831
831
  },
@@ -833,19 +833,19 @@ function rt(t) {
833
833
  x(e, r, l), n = !0;
834
834
  },
835
835
  i(r) {
836
- n || (G(e.$$.fragment, r), n = !0);
836
+ n || (F(e.$$.fragment, r), n = !0);
837
837
  },
838
838
  o(r) {
839
- Z(e.$$.fragment, r), n = !1;
839
+ O(e.$$.fragment, r), n = !1;
840
840
  },
841
841
  d(r) {
842
842
  $(e, r);
843
843
  }
844
844
  };
845
845
  }
846
- function lt(t) {
846
+ function st(t) {
847
847
  let e, n, r, l, a;
848
- return n = new bn({}), {
848
+ return n = new kn({}), {
849
849
  c() {
850
850
  e = C("button"), oe(n.$$.fragment), o(e, "type", "button"), o(
851
851
  e,
@@ -860,11 +860,11 @@ function lt(t) {
860
860
  );
861
861
  },
862
862
  m(s, c) {
863
- I(s, e, c), x(n, e, null), r = !0, l || (a = K(
863
+ A(s, e, c), x(n, e, null), r = !0, l || (a = D(
864
864
  e,
865
865
  "click",
866
866
  /*click_handler_2*/
867
- t[57]
867
+ t[59]
868
868
  ), l = !0);
869
869
  },
870
870
  p(s, c) {
@@ -883,28 +883,28 @@ function lt(t) {
883
883
  );
884
884
  },
885
885
  i(s) {
886
- r || (G(n.$$.fragment, s), r = !0);
886
+ r || (F(n.$$.fragment, s), r = !0);
887
887
  },
888
888
  o(s) {
889
- Z(n.$$.fragment, s), r = !1;
889
+ O(n.$$.fragment, s), r = !1;
890
890
  },
891
891
  d(s) {
892
892
  s && S(e), $(n), l = !1, a();
893
893
  }
894
894
  };
895
895
  }
896
- function vn(t) {
896
+ function Tn(t) {
897
897
  let e, n = [], r = /* @__PURE__ */ new Map(), l, a, s, c = (
898
898
  /*listFeatures*/
899
899
  t[12]
900
900
  );
901
901
  const d = (f) => (
902
902
  /*feature*/
903
- f[71].id
903
+ f[73].id
904
904
  );
905
905
  for (let f = 0; f < c.length; f += 1) {
906
- let _ = nt(t, c, f), k = d(_);
907
- r.set(k, n[f] = it(k, _));
906
+ let _ = lt(t, c, f), k = d(_);
907
+ r.set(k, n[f] = ot(k, _));
908
908
  }
909
909
  return {
910
910
  c() {
@@ -914,39 +914,39 @@ function vn(t) {
914
914
  o(e, "class", "svelte-1r7dvt7");
915
915
  },
916
916
  m(f, _) {
917
- I(f, e, _);
917
+ A(f, e, _);
918
918
  for (let k = 0; k < n.length; k += 1)
919
919
  n[k] && n[k].m(e, null);
920
920
  l = !0, a || (s = [
921
- K(
921
+ D(
922
922
  e,
923
923
  "mouseleave",
924
924
  /*mouseleave_handler*/
925
- t[61]
925
+ t[63]
926
926
  ),
927
- K(
927
+ D(
928
928
  e,
929
929
  "blur",
930
930
  /*blur_handler_1*/
931
- t[62]
931
+ t[64]
932
932
  )
933
933
  ], a = !0);
934
934
  },
935
935
  p(f, _) {
936
936
  _[0] & /*listFeatures, showPlaceType, selectedItemIndex, pick*/
937
937
  2110464 && (c = /*listFeatures*/
938
- f[12], Se(), n = en(n, _, d, 1, f, c, r, e, $t, it, null, nt), Ae());
938
+ f[12], Se(), n = nn(n, _, d, 1, f, c, r, e, tn, ot, null, lt), Ie());
939
939
  },
940
940
  i(f) {
941
941
  if (!l) {
942
942
  for (let _ = 0; _ < c.length; _ += 1)
943
- G(n[_]);
943
+ F(n[_]);
944
944
  l = !0;
945
945
  }
946
946
  },
947
947
  o(f) {
948
948
  for (let _ = 0; _ < n.length; _ += 1)
949
- Z(n[_]);
949
+ O(n[_]);
950
950
  l = !1;
951
951
  },
952
952
  d(f) {
@@ -957,17 +957,17 @@ function vn(t) {
957
957
  }
958
958
  };
959
959
  }
960
- function pn(t) {
960
+ function Mn(t) {
961
961
  let e, n, r, l, a, s;
962
- return n = new mt({}), {
962
+ return n = new yt({}), {
963
963
  c() {
964
- e = C("div"), oe(n.$$.fragment), r = H(), l = C("div"), a = se(
964
+ e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
965
965
  /*noResultsMessage*/
966
966
  t[7]
967
967
  ), o(l, "class", "svelte-1r7dvt7"), o(e, "class", "no-results svelte-1r7dvt7");
968
968
  },
969
969
  m(c, d) {
970
- I(c, e, d), x(n, e, null), v(e, r), v(e, l), v(l, a), s = !0;
970
+ A(c, e, d), x(n, e, null), v(e, r), v(e, l), v(l, a), s = !0;
971
971
  },
972
972
  p(c, d) {
973
973
  (!s || d[0] & /*noResultsMessage*/
@@ -978,24 +978,24 @@ function pn(t) {
978
978
  );
979
979
  },
980
980
  i(c) {
981
- s || (G(n.$$.fragment, c), s = !0);
981
+ s || (F(n.$$.fragment, c), s = !0);
982
982
  },
983
983
  o(c) {
984
- Z(n.$$.fragment, c), s = !1;
984
+ O(n.$$.fragment, c), s = !1;
985
985
  },
986
986
  d(c) {
987
987
  c && S(e), $(n);
988
988
  }
989
989
  };
990
990
  }
991
- function Tn(t) {
991
+ function Rn(t) {
992
992
  let e = "", n;
993
993
  return {
994
994
  c() {
995
995
  n = se(e);
996
996
  },
997
997
  m(r, l) {
998
- I(r, n, l);
998
+ A(r, n, l);
999
999
  },
1000
1000
  p: P,
1001
1001
  i: P,
@@ -1005,25 +1005,25 @@ function Tn(t) {
1005
1005
  }
1006
1006
  };
1007
1007
  }
1008
- function Mn(t) {
1008
+ function Ln(t) {
1009
1009
  let e, n, r, l, a, s, c, d, f, _, k;
1010
- return n = new mt({}), d = new _t({}), {
1010
+ return n = new yt({}), d = new gt({}), {
1011
1011
  c() {
1012
- e = C("div"), oe(n.$$.fragment), r = H(), l = C("div"), a = se(
1012
+ e = C("div"), oe(n.$$.fragment), r = V(), l = C("div"), a = se(
1013
1013
  /*errorMessage*/
1014
1014
  t[6]
1015
- ), s = H(), c = C("button"), oe(d.$$.fragment), o(l, "class", "svelte-1r7dvt7"), o(c, "class", "svelte-1r7dvt7"), o(e, "class", "error svelte-1r7dvt7");
1015
+ ), s = V(), c = C("button"), oe(d.$$.fragment), o(l, "class", "svelte-1r7dvt7"), o(c, "class", "svelte-1r7dvt7"), o(e, "class", "error svelte-1r7dvt7");
1016
1016
  },
1017
- m(b, L) {
1018
- I(b, e, L), x(n, e, null), v(e, r), v(e, l), v(l, a), v(e, s), v(e, c), x(d, c, null), f = !0, _ || (k = K(
1017
+ m(b, E) {
1018
+ A(b, e, E), x(n, e, null), v(e, r), v(e, l), v(l, a), v(e, s), v(e, c), x(d, c, null), f = !0, _ || (k = D(
1019
1019
  c,
1020
1020
  "click",
1021
1021
  /*click_handler_3*/
1022
- t[58]
1022
+ t[60]
1023
1023
  ), _ = !0);
1024
1024
  },
1025
- p(b, L) {
1026
- (!f || L[0] & /*errorMessage*/
1025
+ p(b, E) {
1026
+ (!f || E[0] & /*errorMessage*/
1027
1027
  64) && Me(
1028
1028
  a,
1029
1029
  /*errorMessage*/
@@ -1031,41 +1031,41 @@ function Mn(t) {
1031
1031
  );
1032
1032
  },
1033
1033
  i(b) {
1034
- f || (G(n.$$.fragment, b), G(d.$$.fragment, b), f = !0);
1034
+ f || (F(n.$$.fragment, b), F(d.$$.fragment, b), f = !0);
1035
1035
  },
1036
1036
  o(b) {
1037
- Z(n.$$.fragment, b), Z(d.$$.fragment, b), f = !1;
1037
+ O(n.$$.fragment, b), O(d.$$.fragment, b), f = !1;
1038
1038
  },
1039
1039
  d(b) {
1040
1040
  b && S(e), $(n), $(d), _ = !1, k();
1041
1041
  }
1042
1042
  };
1043
1043
  }
1044
- function it(t, e) {
1044
+ function ot(t, e) {
1045
1045
  let n, r, l;
1046
1046
  function a() {
1047
1047
  return (
1048
1048
  /*mouseenter_handler*/
1049
- e[59](
1049
+ e[61](
1050
1050
  /*i*/
1051
- e[73]
1051
+ e[75]
1052
1052
  )
1053
1053
  );
1054
1054
  }
1055
1055
  function s() {
1056
1056
  return (
1057
1057
  /*focus_handler_1*/
1058
- e[60](
1058
+ e[62](
1059
1059
  /*feature*/
1060
- e[71]
1060
+ e[73]
1061
1061
  )
1062
1062
  );
1063
1063
  }
1064
- return r = new _n({
1064
+ return r = new gn({
1065
1065
  props: {
1066
1066
  feature: (
1067
1067
  /*feature*/
1068
- e[71]
1068
+ e[73]
1069
1069
  ),
1070
1070
  showPlaceType: (
1071
1071
  /*showPlaceType*/
@@ -1074,62 +1074,62 @@ function it(t, e) {
1074
1074
  selected: (
1075
1075
  /*selectedItemIndex*/
1076
1076
  e[13] === /*i*/
1077
- e[73]
1077
+ e[75]
1078
1078
  )
1079
1079
  }
1080
1080
  }), r.$on("mouseenter", a), r.$on("focus", s), {
1081
1081
  key: t,
1082
1082
  first: null,
1083
1083
  c() {
1084
- n = Dt(), oe(r.$$.fragment), this.first = n;
1084
+ n = Kt(), oe(r.$$.fragment), this.first = n;
1085
1085
  },
1086
1086
  m(c, d) {
1087
- I(c, n, d), x(r, c, d), l = !0;
1087
+ A(c, n, d), x(r, c, d), l = !0;
1088
1088
  },
1089
1089
  p(c, d) {
1090
1090
  e = c;
1091
1091
  const f = {};
1092
1092
  d[0] & /*listFeatures*/
1093
1093
  4096 && (f.feature = /*feature*/
1094
- e[71]), d[0] & /*showPlaceType*/
1094
+ e[73]), d[0] & /*showPlaceType*/
1095
1095
  1024 && (f.showPlaceType = /*showPlaceType*/
1096
1096
  e[10]), d[0] & /*selectedItemIndex, listFeatures*/
1097
1097
  12288 && (f.selected = /*selectedItemIndex*/
1098
1098
  e[13] === /*i*/
1099
- e[73]), r.$set(f);
1099
+ e[75]), r.$set(f);
1100
1100
  },
1101
1101
  i(c) {
1102
- l || (G(r.$$.fragment, c), l = !0);
1102
+ l || (F(r.$$.fragment, c), l = !0);
1103
1103
  },
1104
1104
  o(c) {
1105
- Z(r.$$.fragment, c), l = !1;
1105
+ O(r.$$.fragment, c), l = !1;
1106
1106
  },
1107
1107
  d(c) {
1108
1108
  c && S(n), $(r, c);
1109
1109
  }
1110
1110
  };
1111
1111
  }
1112
- function Rn(t) {
1113
- let e, n, r, l, a, s, c, d, f, _, k, b, L, z, p, g, W, B, O, F;
1114
- l = new kn({}), _ = new _t({});
1112
+ function En(t) {
1113
+ let e, n, r, l, a, s, c, d, f, _, k, b, E, z, p, g, W, B, G, Z;
1114
+ l = new pn({}), _ = new gt({});
1115
1115
  let h = (
1116
1116
  /*abortController*/
1117
- t[17] && rt()
1117
+ t[17] && it()
1118
1118
  ), y = (
1119
1119
  /*enableReverse*/
1120
- t[5] === !0 && lt(t)
1120
+ t[5] === !0 && st(t)
1121
1121
  );
1122
- const T = (
1122
+ const M = (
1123
1123
  /*#slots*/
1124
- t[49].default
1125
- ), M = Ot(
1126
- T,
1124
+ t[51].default
1125
+ ), R = Zt(
1126
+ M,
1127
1127
  t,
1128
1128
  /*$$scope*/
1129
- t[48],
1129
+ t[50],
1130
1130
  null
1131
- ), m = [Mn, Tn, pn, vn], w = [];
1132
- function Q(u, A) {
1131
+ ), m = [Ln, Rn, Mn, Tn], w = [];
1132
+ function H(u, I) {
1133
1133
  var Y, ce;
1134
1134
  return (
1135
1135
  /*error*/
@@ -1146,9 +1146,9 @@ function Rn(t) {
1146
1146
  )
1147
1147
  );
1148
1148
  }
1149
- return ~(p = Q(t)) && (g = w[p] = m[p](t)), {
1149
+ return ~(p = H(t)) && (g = w[p] = m[p](t)), {
1150
1150
  c() {
1151
- e = C("form"), n = C("div"), r = C("button"), oe(l.$$.fragment), a = H(), s = C("input"), c = H(), d = C("div"), f = C("button"), oe(_.$$.fragment), k = H(), h && h.c(), b = H(), y && y.c(), L = H(), M && M.c(), z = H(), g && g.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
1151
+ e = C("form"), n = C("div"), r = C("button"), oe(l.$$.fragment), a = V(), s = C("input"), c = V(), d = C("div"), f = C("button"), oe(_.$$.fragment), k = V(), h && h.c(), b = V(), y && y.c(), E = V(), R && R.c(), z = V(), g && g.c(), o(r, "class", "search-button svelte-1r7dvt7"), o(r, "type", "button"), o(
1152
1152
  s,
1153
1153
  "placeholder",
1154
1154
  /*placeholder*/
@@ -1168,7 +1168,7 @@ function Rn(t) {
1168
1168
  "displayable",
1169
1169
  /*searchValue*/
1170
1170
  t[1] !== ""
1171
- ), o(n, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", W = Ye(
1171
+ ), o(n, "class", "input-group svelte-1r7dvt7"), o(e, "tabindex", "0"), o(e, "class", W = $e(
1172
1172
  /*className*/
1173
1173
  t[2]
1174
1174
  ) + " svelte-1r7dvt7"), re(
@@ -1179,126 +1179,126 @@ function Rn(t) {
1179
1179
  t[1] === ""
1180
1180
  );
1181
1181
  },
1182
- m(u, A) {
1183
- I(u, e, A), v(e, n), v(n, r), x(l, r, null), v(n, a), v(n, s), t[51](s), xe(
1182
+ m(u, I) {
1183
+ A(u, e, I), v(e, n), v(n, r), x(l, r, null), v(n, a), v(n, s), t[53](s), et(
1184
1184
  s,
1185
1185
  /*searchValue*/
1186
1186
  t[1]
1187
- ), v(n, c), v(n, d), v(d, f), x(_, f, null), v(d, k), h && h.m(d, null), v(n, b), y && y.m(n, null), v(n, L), M && M.m(n, null), v(e, z), ~p && w[p].m(e, null), B = !0, O || (F = [
1188
- K(
1187
+ ), v(n, c), v(n, d), v(d, f), x(_, f, null), v(d, k), h && h.m(d, null), v(n, b), y && y.m(n, null), v(n, E), R && R.m(n, null), v(e, z), ~p && w[p].m(e, null), B = !0, G || (Z = [
1188
+ D(
1189
1189
  r,
1190
1190
  "click",
1191
1191
  /*click_handler*/
1192
- t[50]
1192
+ t[52]
1193
1193
  ),
1194
- K(
1194
+ D(
1195
1195
  s,
1196
1196
  "input",
1197
1197
  /*input_1_input_handler*/
1198
- t[52]
1198
+ t[54]
1199
1199
  ),
1200
- K(
1200
+ D(
1201
1201
  s,
1202
1202
  "focus",
1203
1203
  /*focus_handler*/
1204
- t[53]
1204
+ t[55]
1205
1205
  ),
1206
- K(
1206
+ D(
1207
1207
  s,
1208
1208
  "blur",
1209
1209
  /*blur_handler*/
1210
- t[54]
1210
+ t[56]
1211
1211
  ),
1212
- K(
1212
+ D(
1213
1213
  s,
1214
1214
  "keydown",
1215
1215
  /*handleKeyDown*/
1216
1216
  t[19]
1217
1217
  ),
1218
- K(
1218
+ D(
1219
1219
  s,
1220
1220
  "input",
1221
1221
  /*input_handler*/
1222
- t[55]
1222
+ t[57]
1223
1223
  ),
1224
- K(
1224
+ D(
1225
1225
  f,
1226
1226
  "click",
1227
1227
  /*click_handler_1*/
1228
- t[56]
1228
+ t[58]
1229
1229
  ),
1230
- K(e, "submit", Kt(
1230
+ D(e, "submit", Vt(
1231
1231
  /*handleOnSubmit*/
1232
1232
  t[18]
1233
1233
  ))
1234
- ], O = !0);
1234
+ ], G = !0);
1235
1235
  },
1236
- p(u, A) {
1237
- (!B || A[0] & /*placeholder*/
1236
+ p(u, I) {
1237
+ (!B || I[0] & /*placeholder*/
1238
1238
  256) && o(
1239
1239
  s,
1240
1240
  "placeholder",
1241
1241
  /*placeholder*/
1242
1242
  u[8]
1243
- ), (!B || A[0] & /*placeholder*/
1243
+ ), (!B || I[0] & /*placeholder*/
1244
1244
  256) && o(
1245
1245
  s,
1246
1246
  "aria-label",
1247
1247
  /*placeholder*/
1248
1248
  u[8]
1249
- ), A[0] & /*searchValue*/
1249
+ ), I[0] & /*searchValue*/
1250
1250
  2 && s.value !== /*searchValue*/
1251
- u[1] && xe(
1251
+ u[1] && et(
1252
1252
  s,
1253
1253
  /*searchValue*/
1254
1254
  u[1]
1255
- ), (!B || A[0] & /*clearButtonTitle*/
1255
+ ), (!B || I[0] & /*clearButtonTitle*/
1256
1256
  8) && o(
1257
1257
  f,
1258
1258
  "title",
1259
1259
  /*clearButtonTitle*/
1260
1260
  u[3]
1261
1261
  ), /*abortController*/
1262
- u[17] ? h ? A[0] & /*abortController*/
1263
- 131072 && G(h, 1) : (h = rt(), h.c(), G(h, 1), h.m(d, null)) : h && (Se(), Z(h, 1, 1, () => {
1262
+ u[17] ? h ? I[0] & /*abortController*/
1263
+ 131072 && F(h, 1) : (h = it(), h.c(), F(h, 1), h.m(d, null)) : h && (Se(), O(h, 1, 1, () => {
1264
1264
  h = null;
1265
- }), Ae()), (!B || A[0] & /*searchValue*/
1265
+ }), Ie()), (!B || I[0] & /*searchValue*/
1266
1266
  2) && re(
1267
1267
  d,
1268
1268
  "displayable",
1269
1269
  /*searchValue*/
1270
1270
  u[1] !== ""
1271
1271
  ), /*enableReverse*/
1272
- u[5] === !0 ? y ? (y.p(u, A), A[0] & /*enableReverse*/
1273
- 32 && G(y, 1)) : (y = lt(u), y.c(), G(y, 1), y.m(n, L)) : y && (Se(), Z(y, 1, 1, () => {
1272
+ u[5] === !0 ? y ? (y.p(u, I), I[0] & /*enableReverse*/
1273
+ 32 && F(y, 1)) : (y = st(u), y.c(), F(y, 1), y.m(n, E)) : y && (Se(), O(y, 1, 1, () => {
1274
1274
  y = null;
1275
- }), Ae()), M && M.p && (!B || A[1] & /*$$scope*/
1276
- 131072) && Ft(
1275
+ }), Ie()), R && R.p && (!B || I[1] & /*$$scope*/
1276
+ 524288) && qt(
1277
+ R,
1277
1278
  M,
1278
- T,
1279
1279
  u,
1280
1280
  /*$$scope*/
1281
- u[48],
1282
- B ? Zt(
1283
- T,
1281
+ u[50],
1282
+ B ? Ut(
1283
+ M,
1284
1284
  /*$$scope*/
1285
- u[48],
1286
- A,
1285
+ u[50],
1286
+ I,
1287
1287
  null
1288
- ) : qt(
1288
+ ) : Dt(
1289
1289
  /*$$scope*/
1290
- u[48]
1290
+ u[50]
1291
1291
  ),
1292
1292
  null
1293
1293
  );
1294
1294
  let Y = p;
1295
- p = Q(u), p === Y ? ~p && w[p].p(u, A) : (g && (Se(), Z(w[Y], 1, 1, () => {
1295
+ p = H(u), p === Y ? ~p && w[p].p(u, I) : (g && (Se(), O(w[Y], 1, 1, () => {
1296
1296
  w[Y] = null;
1297
- }), Ae()), ~p ? (g = w[p], g ? g.p(u, A) : (g = w[p] = m[p](u), g.c()), G(g, 1), g.m(e, null)) : g = null), (!B || A[0] & /*className*/
1298
- 4 && W !== (W = Ye(
1297
+ }), Ie()), ~p ? (g = w[p], g ? g.p(u, I) : (g = w[p] = m[p](u), g.c()), F(g, 1), g.m(e, null)) : g = null), (!B || I[0] & /*className*/
1298
+ 4 && W !== (W = $e(
1299
1299
  /*className*/
1300
1300
  u[2]
1301
- ) + " svelte-1r7dvt7")) && o(e, "class", W), (!B || A[0] & /*className, collapsed, searchValue*/
1301
+ ) + " svelte-1r7dvt7")) && o(e, "class", W), (!B || I[0] & /*className, collapsed, searchValue*/
1302
1302
  22) && re(
1303
1303
  e,
1304
1304
  "can-collapse",
@@ -1308,132 +1308,132 @@ function Rn(t) {
1308
1308
  );
1309
1309
  },
1310
1310
  i(u) {
1311
- B || (G(l.$$.fragment, u), G(_.$$.fragment, u), G(h), G(y), G(M, u), G(g), B = !0);
1311
+ B || (F(l.$$.fragment, u), F(_.$$.fragment, u), F(h), F(y), F(R, u), F(g), B = !0);
1312
1312
  },
1313
1313
  o(u) {
1314
- Z(l.$$.fragment, u), Z(_.$$.fragment, u), Z(h), Z(y), Z(M, u), Z(g), B = !1;
1314
+ O(l.$$.fragment, u), O(_.$$.fragment, u), O(h), O(y), O(R, u), O(g), B = !1;
1315
1315
  },
1316
1316
  d(u) {
1317
- u && S(e), $(l), t[51](null), $(_), h && h.d(), y && y.d(), M && M.d(u), ~p && w[p].d(), O = !1, ee(F);
1317
+ u && S(e), $(l), t[53](null), $(_), h && h.d(), y && y.d(), R && R.d(u), ~p && w[p].d(), G = !1, ee(Z);
1318
1318
  }
1319
1319
  };
1320
1320
  }
1321
- function Ln(t, e, n) {
1321
+ function Cn(t, e, n) {
1322
1322
  const r = e[1], l = e[0], a = r - l;
1323
1323
  return t === r && n ? t : ((t - l) % a + a) % a + l;
1324
1324
  }
1325
- function st(t) {
1325
+ function ct(t) {
1326
1326
  let e = [...t];
1327
1327
  return e[2] < e[0] && (e[2] += 360), e;
1328
1328
  }
1329
- function En(t, e, n) {
1330
- let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: c } = e, { bbox: d = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: _ = !1 } = e, { collapsed: k = !1 } = e, { country: b = void 0 } = e, { debounceSearch: L = 200 } = e, { enableReverse: z = !1 } = e, { errorMessage: p = "Something went wrong…" } = e, { filter: g = () => !0 } = e, { flyTo: W = !0 } = e, { fuzzyMatch: B = !0 } = e, { language: O = void 0 } = e, { limit: F = void 0 } = e, { mapController: h = void 0 } = e, { minLength: y = 2 } = e, { noResultsMessage: T = "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: M = "Search" } = e, { proximity: m = void 0 } = e, { reverseActive: w = z === "always" } = e, { reverseButtonTitle: Q = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: A = !0 } = e, { showPlaceType: Y = "ifNeeded" } = e, { showResultsWhileTyping: ce = !0 } = e, { trackProximity: Le = !0 } = e, { types: fe = void 0 } = e, { zoom: Ee = 16 } = e, { maxZoom: pe = 18 } = e, { fetchParameters: Ie = {} } = e;
1331
- function gt() {
1332
- U.focus();
1329
+ function zn(t, e, n) {
1330
+ let r, { $$slots: l = {}, $$scope: a } = e, { class: s = void 0 } = e, { apiKey: c } = e, { bbox: d = void 0 } = e, { clearButtonTitle: f = "clear" } = e, { clearOnBlur: _ = !1 } = e, { collapsed: k = !1 } = e, { country: b = void 0 } = e, { debounceSearch: E = 200 } = e, { enableReverse: z = !1 } = e, { errorMessage: p = "Something went wrong…" } = e, { filter: g = () => !0 } = e, { flyTo: W = !0 } = e, { fuzzyMatch: B = !0 } = e, { language: G = void 0 } = e, { limit: Z = void 0 } = e, { mapController: h = void 0 } = e, { minLength: y = 2 } = e, { noResultsMessage: M = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: R = "Search" } = e, { proximity: m = void 0 } = e, { reverseActive: w = z === "always" } = e, { reverseButtonTitle: H = "toggle reverse geocoding" } = e, { searchValue: u = "" } = e, { showFullGeometry: I = !0 } = e, { showPlaceType: Y = "ifNeeded" } = e, { showResultsWhileTyping: ce = !0 } = e, { trackProximity: Le = !0 } = e, { types: fe = void 0 } = e, { zoom: Ee = 16 } = e, { maxZoom: pe = 18 } = e, { apiUrl: Ae = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: We = {} } = e;
1331
+ function bt() {
1332
+ Q.focus();
1333
1333
  }
1334
- function yt() {
1335
- U.blur();
1334
+ function wt() {
1335
+ Q.blur();
1336
1336
  }
1337
- function Ve(i, j = !0) {
1338
- n(1, u = i), j ? (n(13, N = -1), Qe()) : (Ne(), setTimeout(() => {
1339
- U.focus(), U.select();
1337
+ function He(i, j = !0) {
1338
+ n(1, u = i), j ? (n(13, N = -1), Je()) : (Fe(), setTimeout(() => {
1339
+ Q.focus(), Q.select();
1340
1340
  }));
1341
1341
  }
1342
- let ge = !1, R, q, E, He = "", U, N = -1, J, Ce = [], ue, ye, ze;
1343
- const te = Ut();
1344
- Qt(() => {
1342
+ let ge = !1, L, U, T, Qe = "", Q, N = -1, J, Ce = [], ue, ye, ze, Ne;
1343
+ const te = Xt();
1344
+ Jt(() => {
1345
1345
  h && (h.setEventHandler(void 0), h.indicateReverse(!1), h.setSelectedMarker(-1), h.setMarkers(void 0, void 0));
1346
1346
  });
1347
- function Qe(i) {
1348
- if (ye && (clearTimeout(ye), ye = void 0), N > -1 && R)
1349
- n(46, E = R[N]), n(1, u = E.place_name.replace(/,.*/, "")), n(16, J = void 0), n(45, q = void 0), n(13, N = -1);
1347
+ function Je(i) {
1348
+ if (ye && (clearTimeout(ye), ye = void 0), N > -1 && L)
1349
+ n(47, T = L[N]), n(1, u = T.place_name.replace(/,.*/, "")), n(16, J = void 0), n(46, U = void 0), n(13, N = -1);
1350
1350
  else if (u) {
1351
- const j = i || !Ue();
1352
- We(u, { exact: !0 }).then(() => {
1353
- n(45, q = R), n(46, E = void 0), j && bt();
1351
+ const j = i || !Xe();
1352
+ je(u, { exact: !0 }).then(() => {
1353
+ n(46, U = L), n(47, T = void 0), j && kt();
1354
1354
  }).catch((X) => n(16, J = X));
1355
1355
  }
1356
1356
  }
1357
- function Ue() {
1357
+ function Xe() {
1358
1358
  return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(u);
1359
1359
  }
1360
- async function We(i, { byId: j = !1, exact: X = !1 } = {}) {
1360
+ async function je(i, { byId: j = !1, exact: X = !1 } = {}) {
1361
1361
  n(16, J = void 0);
1362
- const be = Ue(), V = new URLSearchParams();
1363
- O != null && V.set("language", Array.isArray(O) ? O.join(",") : O), fe && V.set("types", fe.join(",")), be || (d && V.set("bbox", d.map((ne) => ne.toFixed(6)).join(",")), b && V.set("country", Array.isArray(b) ? b.join(",") : b)), j || (m && V.set("proximity", m.map((ne) => ne.toFixed(6)).join(",")), (X || !ce) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(B))), F !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && V.set("limit", String(F)), V.set("key", c);
1364
- const ae = "https://api.maptiler.com/geocoding/" + encodeURIComponent(i) + ".json?" + V.toString();
1365
- if (ae === He) {
1366
- j ? (n(12, R = void 0), n(46, E = Ce[0])) : n(12, R = Ce);
1362
+ const be = Xe(), K = new URLSearchParams();
1363
+ G != null && K.set("language", Array.isArray(G) ? G.join(",") : G), fe && K.set("types", fe.join(",")), be || (d && K.set("bbox", d.map((ne) => ne.toFixed(6)).join(",")), b && K.set("country", Array.isArray(b) ? b.join(",") : b)), j || (m && K.set("proximity", m.map((ne) => ne.toFixed(6)).join(",")), (X || !ce) && K.set("autocomplete", "false"), K.set("fuzzyMatch", String(B))), Z !== void 0 && (!be || (fe == null ? void 0 : fe.length) === 1) && K.set("limit", String(Z)), K.set("key", c);
1364
+ const ae = Ae + "/" + encodeURIComponent(i) + ".json?" + K.toString();
1365
+ if (ae === Qe) {
1366
+ j ? (n(12, L = void 0), n(47, T = Ce[0])) : n(12, L = Ce);
1367
1367
  return;
1368
1368
  }
1369
- He = ae, ue == null || ue.abort();
1370
- const D = new AbortController();
1371
- n(17, ue = D);
1372
- let Ge;
1369
+ Qe = ae, ue == null || ue.abort();
1370
+ const q = new AbortController();
1371
+ n(17, ue = q);
1372
+ let Oe;
1373
1373
  try {
1374
- Ge = await fetch(ae, { signal: D.signal, ...Ie }).finally(() => {
1375
- D === ue && n(17, ue = void 0);
1374
+ Oe = await fetch(ae, { signal: q.signal, ...We }).finally(() => {
1375
+ q === ue && n(17, ue = void 0);
1376
1376
  });
1377
1377
  } catch (ne) {
1378
1378
  if (ne && typeof ne == "object" && "name" in ne && ne.name === "AbortError")
1379
1379
  return;
1380
1380
  throw new Error();
1381
1381
  }
1382
- if (!Ge.ok)
1382
+ if (!Oe.ok)
1383
1383
  throw new Error();
1384
- const Oe = await Ge.json();
1385
- te("response", { url: ae, featureCollection: Oe }), j ? (n(12, R = void 0), n(46, E = Oe.features[0]), Ce = [E]) : (n(12, R = Oe.features.filter(g)), Ce = R, be && U.focus());
1384
+ const Ze = await Oe.json();
1385
+ te("response", { url: ae, featureCollection: Ze }), j ? (n(12, L = void 0), n(47, T = Ze.features[0]), Ce = [T]) : (n(12, L = Ze.features.filter(g)), Ce = L, be && Q.focus());
1386
1386
  }
1387
- function bt() {
1388
- var X, be, V, ae;
1389
- if (!(q != null && q.length) || !W)
1387
+ function kt() {
1388
+ var X, be, K, ae;
1389
+ if (!(U != null && U.length) || !W)
1390
1390
  return;
1391
- const i = [180, 90, -180, -90], j = !q.some((D) => !D.matching_text);
1392
- for (const D of q)
1393
- (j || !D.matching_text) && (i[0] = Math.min(i[0], ((X = D.bbox) == null ? void 0 : X[0]) ?? D.center[0]), i[1] = Math.min(i[1], ((be = D.bbox) == null ? void 0 : be[1]) ?? D.center[1]), i[2] = Math.max(i[2], ((V = D.bbox) == null ? void 0 : V[2]) ?? D.center[0]), i[3] = Math.max(i[3], ((ae = D.bbox) == null ? void 0 : ae[3]) ?? D.center[1]));
1394
- h && q.length > 0 && (E && i[0] === i[2] && i[1] === i[3] ? h.flyTo(E.center, Ee) : h.fitBounds(st(i), 50, pe));
1391
+ const i = [180, 90, -180, -90], j = !U.some((q) => !q.matching_text);
1392
+ for (const q of U)
1393
+ (j || !q.matching_text) && (i[0] = Math.min(i[0], ((X = q.bbox) == null ? void 0 : X[0]) ?? q.center[0]), i[1] = Math.min(i[1], ((be = q.bbox) == null ? void 0 : be[1]) ?? q.center[1]), i[2] = Math.max(i[2], ((K = q.bbox) == null ? void 0 : K[2]) ?? q.center[0]), i[3] = Math.max(i[3], ((ae = q.bbox) == null ? void 0 : ae[3]) ?? q.center[1]));
1394
+ h && U.length > 0 && (T && i[0] === i[2] && i[1] === i[3] ? h.flyTo(T.center, Ee) : h.fitBounds(ct(i), 50, pe));
1395
1395
  }
1396
- function wt(i) {
1397
- n(0, w = z === "always"), Ve(Ln(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1396
+ function vt(i) {
1397
+ n(0, w = z === "always"), He(Cn(i[0], [-180, 180], !0).toFixed(6) + "," + i[1].toFixed(6));
1398
1398
  }
1399
- function kt(i) {
1400
- if (!R)
1399
+ function pt(i) {
1400
+ if (!L)
1401
1401
  return;
1402
1402
  let j = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : 0;
1403
- j ? (N === -1 && j === -1 && n(13, N = R.length), n(13, N += j), N >= R.length && n(13, N = -1), i.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(i.key) && n(13, N = -1);
1403
+ j ? (N === -1 && j === -1 && n(13, N = L.length), n(13, N += j), N >= L.length && n(13, N = -1), i.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(i.key) && n(13, N = -1);
1404
1404
  }
1405
- function Ne(i = !0) {
1405
+ function Fe(i = !0) {
1406
1406
  if (n(16, J = void 0), ce) {
1407
1407
  if (ye && clearTimeout(ye), u.length < y)
1408
1408
  return;
1409
1409
  const j = u;
1410
1410
  ye = window.setTimeout(
1411
1411
  () => {
1412
- We(j).catch((X) => n(16, J = X));
1412
+ je(j).catch((X) => n(16, J = X));
1413
1413
  },
1414
- i ? L : 0
1414
+ i ? E : 0
1415
1415
  );
1416
1416
  } else
1417
- n(12, R = void 0), n(16, J = void 0);
1417
+ n(12, L = void 0), n(16, J = void 0);
1418
1418
  }
1419
- function je(i) {
1420
- n(46, E = i), n(1, u = i.place_name), n(13, N = -1);
1419
+ function Ge(i) {
1420
+ n(47, T = i), n(1, u = i.place_name), n(13, N = -1);
1421
1421
  }
1422
- const vt = () => U.focus();
1423
- function pt(i) {
1424
- qe[i ? "unshift" : "push"](() => {
1425
- U = i, n(15, U);
1422
+ const Tt = () => Q.focus();
1423
+ function Mt(i) {
1424
+ De[i ? "unshift" : "push"](() => {
1425
+ Q = i, n(15, Q);
1426
1426
  });
1427
1427
  }
1428
- function Tt() {
1428
+ function Rt() {
1429
1429
  u = this.value, n(1, u), n(11, ge), n(25, _);
1430
1430
  }
1431
- const Mt = () => n(11, ge = !0), Rt = () => n(11, ge = !1), Lt = () => Ne(), Et = () => {
1432
- n(1, u = ""), U.focus();
1433
- }, Ct = () => n(0, w = !w), zt = () => n(16, J = void 0), Bt = (i) => n(13, N = i), Pt = (i) => je(i), St = () => n(13, N = -1), At = () => {
1431
+ const Lt = () => n(11, ge = !0), Et = () => n(11, ge = !1), Ct = () => Fe(), zt = () => {
1432
+ n(1, u = ""), Q.focus();
1433
+ }, Bt = () => n(0, w = !w), Pt = () => n(16, J = void 0), St = (i) => n(13, N = i), It = (i) => Ge(i), At = () => n(13, N = -1), Wt = () => {
1434
1434
  };
1435
1435
  return t.$$set = (i) => {
1436
- "class" in i && n(2, s = i.class), "apiKey" in i && n(23, c = i.apiKey), "bbox" in i && n(24, d = i.bbox), "clearButtonTitle" in i && n(3, f = i.clearButtonTitle), "clearOnBlur" in i && n(25, _ = i.clearOnBlur), "collapsed" in i && n(4, k = i.collapsed), "country" in i && n(26, b = i.country), "debounceSearch" in i && n(27, L = i.debounceSearch), "enableReverse" in i && n(5, z = i.enableReverse), "errorMessage" in i && n(6, p = i.errorMessage), "filter" in i && n(28, g = i.filter), "flyTo" in i && n(29, W = i.flyTo), "fuzzyMatch" in i && n(30, B = i.fuzzyMatch), "language" in i && n(31, O = i.language), "limit" in i && n(32, F = i.limit), "mapController" in i && n(33, h = i.mapController), "minLength" in i && n(34, y = i.minLength), "noResultsMessage" in i && n(7, T = i.noResultsMessage), "placeholder" in i && n(8, M = i.placeholder), "proximity" in i && n(22, m = i.proximity), "reverseActive" in i && n(0, w = i.reverseActive), "reverseButtonTitle" in i && n(9, Q = i.reverseButtonTitle), "searchValue" in i && n(1, u = i.searchValue), "showFullGeometry" in i && n(35, A = i.showFullGeometry), "showPlaceType" in i && n(10, Y = i.showPlaceType), "showResultsWhileTyping" in i && n(36, ce = i.showResultsWhileTyping), "trackProximity" in i && n(37, Le = i.trackProximity), "types" in i && n(38, fe = i.types), "zoom" in i && n(39, Ee = i.zoom), "maxZoom" in i && n(40, pe = i.maxZoom), "fetchParameters" in i && n(41, Ie = i.fetchParameters), "$$scope" in i && n(48, a = i.$$scope);
1436
+ "class" in i && n(2, s = i.class), "apiKey" in i && n(23, c = i.apiKey), "bbox" in i && n(24, d = i.bbox), "clearButtonTitle" in i && n(3, f = i.clearButtonTitle), "clearOnBlur" in i && n(25, _ = i.clearOnBlur), "collapsed" in i && n(4, k = i.collapsed), "country" in i && n(26, b = i.country), "debounceSearch" in i && n(27, E = i.debounceSearch), "enableReverse" in i && n(5, z = i.enableReverse), "errorMessage" in i && n(6, p = i.errorMessage), "filter" in i && n(28, g = i.filter), "flyTo" in i && n(29, W = i.flyTo), "fuzzyMatch" in i && n(30, B = i.fuzzyMatch), "language" in i && n(31, G = i.language), "limit" in i && n(32, Z = i.limit), "mapController" in i && n(33, h = i.mapController), "minLength" in i && n(34, y = i.minLength), "noResultsMessage" in i && n(7, M = i.noResultsMessage), "placeholder" in i && n(8, R = i.placeholder), "proximity" in i && n(22, m = i.proximity), "reverseActive" in i && n(0, w = i.reverseActive), "reverseButtonTitle" in i && n(9, H = i.reverseButtonTitle), "searchValue" in i && n(1, u = i.searchValue), "showFullGeometry" in i && n(35, I = i.showFullGeometry), "showPlaceType" in i && n(10, Y = i.showPlaceType), "showResultsWhileTyping" in i && n(36, ce = i.showResultsWhileTyping), "trackProximity" in i && n(37, Le = i.trackProximity), "types" in i && n(38, fe = i.types), "zoom" in i && n(39, Ee = i.zoom), "maxZoom" in i && n(40, pe = i.maxZoom), "apiUrl" in i && n(41, Ae = i.apiUrl), "fetchParameters" in i && n(42, We = i.fetchParameters), "$$scope" in i && n(50, a = i.$$scope);
1437
1437
  }, t.$$.update = () => {
1438
1438
  if (t.$$.dirty[1] & /*trackProximity*/
1439
1439
  64 && (Le || n(22, m = void 0)), t.$$.dirty[0] & /*focused, clearOnBlur*/
@@ -1441,31 +1441,31 @@ function En(t, e, n) {
1441
1441
  n(14, ze = ge), _ && !ge && n(1, u = "");
1442
1442
  }), t.$$.dirty[0] & /*searchValue, listFeatures*/
1443
1443
  4098 | t.$$.dirty[1] & /*minLength*/
1444
- 8 && u.length < y && (n(46, E = void 0), n(12, R = void 0), n(16, J = void 0), n(45, q = R)), t.$$.dirty[1] & /*showFullGeometry, picked*/
1445
- 32784 && A && E && !E.address && E.geometry.type === "Point" && We(E.id, { byId: !0 }).catch((i) => n(16, J = i)), t.$$.dirty[0] & /*flyTo*/
1446
- 536870912 | t.$$.dirty[1] & /*mapController, picked, maxZoom, zoom*/
1447
- 33540 && h && E && W && (!E.bbox || E.bbox[0] === E.bbox[2] && E.bbox[1] === E.bbox[3] ? h.flyTo(E.center, E.id.startsWith("poi.") || E.id.startsWith("address.") ? pe : Ee) : h.fitBounds(st(E.bbox), 50, pe), n(12, R = void 0), n(45, q = void 0), n(13, N = -1)), t.$$.dirty[0] & /*listFeatures*/
1444
+ 8 && u.length < y && (n(47, T = void 0), n(12, L = void 0), n(16, J = void 0), n(46, U = L)), t.$$.dirty[1] & /*showFullGeometry, picked*/
1445
+ 65552 && I && T && !T.address && T.geometry.type === "Point" && je(T.id, { byId: !0 }).catch((i) => n(16, J = i)), t.$$.dirty[0] & /*flyTo*/
1446
+ 536870912 | t.$$.dirty[1] & /*mapController, picked, prevIdToFly, maxZoom, zoom*/
1447
+ 197380 && (h && T && T.id !== Ne && W && (!T.bbox || T.bbox[0] === T.bbox[2] && T.bbox[1] === T.bbox[3] ? h.flyTo(T.center, T.id.startsWith("poi.") || T.id.startsWith("address.") ? pe : Ee) : h.fitBounds(ct(T.bbox), 50, pe), n(12, L = void 0), n(46, U = void 0), n(13, N = -1)), n(48, Ne = T == null ? void 0 : T.id)), t.$$.dirty[0] & /*listFeatures*/
1448
1448
  4096 | t.$$.dirty[1] & /*markedFeatures*/
1449
- 16384 && q !== R && n(45, q = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1450
- 49156 && h && h.setMarkers(q, E), t.$$.dirty[0] & /*searchValue*/
1449
+ 32768 && U !== L && n(46, U = void 0), t.$$.dirty[1] & /*mapController, markedFeatures, picked*/
1450
+ 98308 && h && h.setMarkers(U, T), t.$$.dirty[0] & /*searchValue*/
1451
1451
  2 && n(13, N = -1), t.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
1452
1452
  20481 | t.$$.dirty[1] & /*mapController, trackProximity*/
1453
1453
  68 && h && h.setEventHandler((i) => {
1454
1454
  switch (i.type) {
1455
1455
  case "mapClick":
1456
- w && wt(i.coordinates);
1456
+ w && vt(i.coordinates);
1457
1457
  break;
1458
1458
  case "proximityChange":
1459
1459
  n(22, m = Le ? i.proximity : void 0);
1460
1460
  break;
1461
1461
  case "markerClick":
1462
1462
  {
1463
- const j = R == null ? void 0 : R.find((X) => X.id === i.id);
1464
- j && je(j);
1463
+ const j = L == null ? void 0 : L.find((X) => X.id === i.id);
1464
+ j && Ge(j);
1465
1465
  }
1466
1466
  break;
1467
1467
  case "markerMouseEnter":
1468
- n(13, N = ze ? (R == null ? void 0 : R.findIndex((j) => j.id === i.id)) ?? -1 : -1);
1468
+ n(13, N = ze ? (L == null ? void 0 : L.findIndex((j) => j.id === i.id)) ?? -1 : -1);
1469
1469
  break;
1470
1470
  case "markerMouseLeave":
1471
1471
  n(13, N = -1);
@@ -1474,18 +1474,18 @@ function En(t, e, n) {
1474
1474
  }), t.$$.dirty[0] & /*selectedItemIndex*/
1475
1475
  8192 | t.$$.dirty[1] & /*mapController*/
1476
1476
  4 && (h == null || h.setSelectedMarker(N)), t.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
1477
- 12288 && n(47, r = R == null ? void 0 : R[N]), t.$$.dirty[0] & /*searchValue*/
1477
+ 12288 && n(49, r = L == null ? void 0 : L[N]), t.$$.dirty[0] & /*searchValue*/
1478
1478
  2 | t.$$.dirty[1] & /*mapController*/
1479
1479
  4) {
1480
1480
  const i = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(u);
1481
1481
  h == null || h.setReverseMarker(i ? [Number(i[1]), Number(i[2])] : void 0);
1482
1482
  }
1483
1483
  t.$$.dirty[1] & /*selected*/
1484
- 65536 && te("select", r), t.$$.dirty[1] & /*picked*/
1485
- 32768 && te("pick", E), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1486
- 20480 && te("optionsVisibilityChange", ze && !!R), t.$$.dirty[0] & /*listFeatures*/
1487
- 4096 && te("featuresListed", R), t.$$.dirty[1] & /*markedFeatures*/
1488
- 16384 && te("featuresMarked", q), t.$$.dirty[0] & /*reverseActive*/
1484
+ 262144 && te("select", r), t.$$.dirty[1] & /*picked*/
1485
+ 65536 && te("pick", T), t.$$.dirty[0] & /*focusedDelayed, listFeatures*/
1486
+ 20480 && te("optionsVisibilityChange", ze && !!L), t.$$.dirty[0] & /*listFeatures*/
1487
+ 4096 && te("featuresListed", L), t.$$.dirty[1] & /*markedFeatures*/
1488
+ 32768 && te("featuresMarked", U), t.$$.dirty[0] & /*reverseActive*/
1489
1489
  1 && te("reverseToggle", w), t.$$.dirty[0] & /*searchValue*/
1490
1490
  2 && te("queryChange", u), t.$$.dirty[0] & /*reverseActive*/
1491
1491
  1 | t.$$.dirty[1] & /*mapController*/
@@ -1498,51 +1498,51 @@ function En(t, e, n) {
1498
1498
  k,
1499
1499
  z,
1500
1500
  p,
1501
- T,
1502
1501
  M,
1503
- Q,
1502
+ R,
1503
+ H,
1504
1504
  Y,
1505
1505
  ge,
1506
- R,
1506
+ L,
1507
1507
  N,
1508
1508
  ze,
1509
- U,
1509
+ Q,
1510
1510
  J,
1511
1511
  ue,
1512
- Qe,
1513
- kt,
1514
- Ne,
1515
- je,
1512
+ Je,
1513
+ pt,
1514
+ Fe,
1515
+ Ge,
1516
1516
  m,
1517
1517
  c,
1518
1518
  d,
1519
1519
  _,
1520
1520
  b,
1521
- L,
1521
+ E,
1522
1522
  g,
1523
1523
  W,
1524
1524
  B,
1525
- O,
1526
- F,
1525
+ G,
1526
+ Z,
1527
1527
  h,
1528
1528
  y,
1529
- A,
1529
+ I,
1530
1530
  ce,
1531
1531
  Le,
1532
1532
  fe,
1533
1533
  Ee,
1534
1534
  pe,
1535
- Ie,
1536
- gt,
1537
- yt,
1538
- Ve,
1539
- q,
1540
- E,
1535
+ Ae,
1536
+ We,
1537
+ bt,
1538
+ wt,
1539
+ He,
1540
+ U,
1541
+ T,
1542
+ Ne,
1541
1543
  r,
1542
1544
  a,
1543
1545
  l,
1544
- vt,
1545
- pt,
1546
1546
  Tt,
1547
1547
  Mt,
1548
1548
  Rt,
@@ -1553,16 +1553,18 @@ function En(t, e, n) {
1553
1553
  Bt,
1554
1554
  Pt,
1555
1555
  St,
1556
- At
1556
+ It,
1557
+ At,
1558
+ Wt
1557
1559
  ];
1558
1560
  }
1559
- class Cn extends me {
1561
+ class Bn extends me {
1560
1562
  constructor(e) {
1561
1563
  super(), _e(
1562
1564
  this,
1563
1565
  e,
1566
+ zn,
1564
1567
  En,
1565
- Rn,
1566
1568
  he,
1567
1569
  {
1568
1570
  class: 2,
@@ -1595,26 +1597,27 @@ class Cn extends me {
1595
1597
  types: 38,
1596
1598
  zoom: 39,
1597
1599
  maxZoom: 40,
1598
- fetchParameters: 41,
1599
- focus: 42,
1600
- blur: 43,
1601
- setQuery: 44
1600
+ apiUrl: 41,
1601
+ fetchParameters: 42,
1602
+ focus: 43,
1603
+ blur: 44,
1604
+ setQuery: 45
1602
1605
  },
1603
1606
  null,
1604
1607
  [-1, -1, -1]
1605
1608
  );
1606
1609
  }
1607
1610
  get focus() {
1608
- return this.$$.ctx[42];
1611
+ return this.$$.ctx[43];
1609
1612
  }
1610
1613
  get blur() {
1611
- return this.$$.ctx[43];
1614
+ return this.$$.ctx[44];
1612
1615
  }
1613
1616
  get setQuery() {
1614
- return this.$$.ctx[44];
1617
+ return this.$$.ctx[45];
1615
1618
  }
1616
1619
  }
1617
- const ot = [
1620
+ const ft = [
1618
1621
  "featuresListed",
1619
1622
  "featuresMarked",
1620
1623
  "optionsVisibilityChange",
@@ -1623,7 +1626,7 @@ const ot = [
1623
1626
  "response",
1624
1627
  "reverseToggle",
1625
1628
  "select"
1626
- ], zn = [
1629
+ ], Pn = [
1627
1630
  "apiKey",
1628
1631
  "bbox",
1629
1632
  "clearButtonTitle",
@@ -1650,29 +1653,29 @@ const ot = [
1650
1653
  "zoom",
1651
1654
  "mapController"
1652
1655
  ];
1653
- function ct(t) {
1656
+ function ut(t) {
1654
1657
  return "on" + t[0].toUpperCase() + t.slice(1);
1655
1658
  }
1656
- const Pn = It(function(e, n) {
1657
- const r = Je(), l = Je(), a = { ...e };
1658
- for (const s of ot)
1659
- delete a[ct(s)];
1660
- Ze(() => {
1659
+ const In = Nt(function(e, n) {
1660
+ const r = Ye(), l = Ye(), a = { ...e };
1661
+ for (const s of ft)
1662
+ delete a[ut(s)];
1663
+ Ue(() => {
1661
1664
  if (!r.current)
1662
1665
  throw new Error();
1663
- const s = new Cn({
1666
+ const s = new Bn({
1664
1667
  target: r.current,
1665
1668
  props: a
1666
1669
  });
1667
1670
  return l.current = s, () => s.$destroy();
1668
1671
  }, []);
1669
- for (const s of zn)
1670
- Ze(() => {
1672
+ for (const s of Pn)
1673
+ Ue(() => {
1671
1674
  l.current && e[s] !== void 0 && l.current.$set({ [s]: e[s] });
1672
1675
  }, [e[s]]);
1673
- for (const s of ot) {
1674
- const c = e[ct(s)];
1675
- Ze(() => {
1676
+ for (const s of ft) {
1677
+ const c = e[ut(s)];
1678
+ Ue(() => {
1676
1679
  var d;
1677
1680
  (d = l.current) == null || d.$on(
1678
1681
  s,
@@ -1682,7 +1685,7 @@ const Pn = It(function(e, n) {
1682
1685
  );
1683
1686
  }, [c]);
1684
1687
  }
1685
- return Wt(n, () => ({
1688
+ return jt(n, () => ({
1686
1689
  setQuery: (s, c = !0) => {
1687
1690
  var d;
1688
1691
  return (d = l.current) == null ? void 0 : d.setQuery(s, c);
@@ -1695,9 +1698,9 @@ const Pn = It(function(e, n) {
1695
1698
  var s;
1696
1699
  return (s = l.current) == null ? void 0 : s.blur();
1697
1700
  }
1698
- })), Nt("div", { ref: r });
1701
+ })), Ft("div", { ref: r });
1699
1702
  });
1700
1703
  export {
1701
- Pn as GeocodingControl
1704
+ In as GeocodingControl
1702
1705
  };
1703
1706
  //# sourceMappingURL=react.js.map