@maptiler/geocoding-control 2.0.0-rc.9 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vanilla.js CHANGED
@@ -1,54 +1,54 @@
1
- var vi = Object.defineProperty;
2
- var Li = Object.getPrototypeOf;
3
- var _i = Reflect.get;
4
- var vt = (i) => {
1
+ var mi = Object.defineProperty;
2
+ var gi = Object.getPrototypeOf;
3
+ var hi = Reflect.get;
4
+ var gt = (i) => {
5
5
  throw TypeError(i);
6
6
  };
7
- var yi = (i, e, t) => e in i ? vi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
- var rt = (i, e, t) => yi(i, typeof e != "symbol" ? e + "" : e, t), ot = (i, e, t) => e.has(i) || vt("Cannot " + t);
9
- var ie = (i, e, t) => (ot(i, e, "read from private field"), t ? t.call(i) : e.get(i)), st = (i, e, t) => e.has(i) ? vt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), Lt = (i, e, t, n) => (ot(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), _t = (i, e, t) => (ot(i, e, "access private method"), t);
10
- var yt = (i, e, t) => _i(Li(i), t, e);
7
+ var bi = (i, e, t) => e in i ? mi(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
8
+ var tt = (i, e, t) => bi(i, typeof e != "symbol" ? e + "" : e, t), it = (i, e, t) => e.has(i) || gt("Cannot " + t);
9
+ var te = (i, e, t) => (it(i, e, "read from private field"), t ? t.call(i) : e.get(i)), nt = (i, e, t) => e.has(i) ? gt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), ht = (i, e, t, n) => (it(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t), bt = (i, e, t) => (it(i, e, "access private method"), t);
10
+ var vt = (i, e, t) => hi(gi(i), t, e);
11
11
  function A() {
12
12
  }
13
- function wi(i, e) {
13
+ function vi(i, e) {
14
14
  for (const t in e) i[t] = e[t];
15
15
  return (
16
16
  /** @type {T & S} */
17
17
  i
18
18
  );
19
19
  }
20
- function Pt(i) {
20
+ function Bt(i) {
21
21
  return i();
22
22
  }
23
- function wt() {
23
+ function Lt() {
24
24
  return /* @__PURE__ */ Object.create(null);
25
25
  }
26
- function ae(i) {
27
- i.forEach(Pt);
26
+ function se(i) {
27
+ i.forEach(Bt);
28
28
  }
29
- function jt(i) {
29
+ function Ft(i) {
30
30
  return typeof i == "function";
31
31
  }
32
- function ve(i, e) {
32
+ function he(i, e) {
33
33
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
34
34
  }
35
- let Pe;
35
+ let Be;
36
36
  function K(i, e) {
37
- return i === e ? !0 : (Pe || (Pe = document.createElement("a")), Pe.href = e, i === Pe.href);
37
+ return i === e ? !0 : (Be || (Be = document.createElement("a")), Be.href = e, i === Be.href);
38
38
  }
39
- function Ei(i) {
39
+ function Li(i) {
40
40
  return Object.keys(i).length === 0;
41
41
  }
42
- function Si(i, e, t, n) {
42
+ function _i(i, e, t, n) {
43
43
  if (i) {
44
- const r = Zt(i, e, t, n);
44
+ const r = Ht(i, e, t, n);
45
45
  return i[0](r);
46
46
  }
47
47
  }
48
- function Zt(i, e, t, n) {
49
- return i[1] && n ? wi(t.ctx.slice(), i[1](n(e))) : t.ctx;
48
+ function Ht(i, e, t, n) {
49
+ return i[1] && n ? vi(t.ctx.slice(), i[1](n(e))) : t.ctx;
50
50
  }
51
- function pi(i, e, t, n) {
51
+ function yi(i, e, t, n) {
52
52
  if (i[2] && n) {
53
53
  const r = i[2](n(t));
54
54
  if (e.dirty === void 0)
@@ -63,13 +63,13 @@ function pi(i, e, t, n) {
63
63
  }
64
64
  return e.dirty;
65
65
  }
66
- function Ti(i, e, t, n, r, l) {
66
+ function wi(i, e, t, n, r, l) {
67
67
  if (r) {
68
- const d = Zt(e, t, n, l);
68
+ const d = Ht(e, t, n, l);
69
69
  i.p(d, r);
70
70
  }
71
71
  }
72
- function Ni(i) {
72
+ function Ei(i) {
73
73
  if (i.ctx.length > 32) {
74
74
  const e = [], t = i.ctx.length / 32;
75
75
  for (let n = 0; n < t; n++)
@@ -78,37 +78,37 @@ function Ni(i) {
78
78
  }
79
79
  return -1;
80
80
  }
81
- function Et(i) {
81
+ function _t(i) {
82
82
  return i ?? "";
83
83
  }
84
- function N(i, e) {
84
+ function k(i, e) {
85
85
  i.appendChild(e);
86
86
  }
87
87
  function B(i, e, t) {
88
88
  i.insertBefore(e, t || null);
89
89
  }
90
- function O(i) {
90
+ function D(i) {
91
91
  i.parentNode && i.parentNode.removeChild(i);
92
92
  }
93
93
  function W(i) {
94
94
  return document.createElement(i);
95
95
  }
96
- function re(i) {
96
+ function ne(i) {
97
97
  return document.createElementNS("http://www.w3.org/2000/svg", i);
98
98
  }
99
- function de(i) {
99
+ function ue(i) {
100
100
  return document.createTextNode(i);
101
101
  }
102
102
  function X() {
103
- return de(" ");
103
+ return ue(" ");
104
104
  }
105
- function ki() {
106
- return de("");
105
+ function Si() {
106
+ return ue("");
107
107
  }
108
108
  function V(i, e, t, n) {
109
109
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
110
110
  }
111
- function Mi(i) {
111
+ function pi(i) {
112
112
  return function(e) {
113
113
  return e.preventDefault(), i.call(this, e);
114
114
  };
@@ -116,39 +116,39 @@ function Mi(i) {
116
116
  function a(i, e, t) {
117
117
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
118
118
  }
119
- function Ci(i) {
119
+ function Ni(i) {
120
120
  return Array.from(i.childNodes);
121
121
  }
122
- function Re(i, e) {
122
+ function We(i, e) {
123
123
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
124
124
  e);
125
125
  }
126
- function St(i, e) {
126
+ function yt(i, e) {
127
127
  i.value = e ?? "";
128
128
  }
129
- function ce(i, e, t) {
129
+ function le(i, e, t) {
130
130
  i.classList.toggle(e, !!t);
131
131
  }
132
- function Wi(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
132
+ function ki(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
133
133
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
134
134
  }
135
- let De;
136
- function ze(i) {
137
- De = i;
135
+ let ze;
136
+ function Ce(i) {
137
+ ze = i;
138
138
  }
139
- function qt() {
140
- if (!De) throw new Error("Function called outside component initialization");
141
- return De;
139
+ function Pt() {
140
+ if (!ze) throw new Error("Function called outside component initialization");
141
+ return ze;
142
142
  }
143
- function zi(i) {
144
- qt().$$.on_destroy.push(i);
143
+ function Mi(i) {
144
+ Pt().$$.on_destroy.push(i);
145
145
  }
146
- function Ri() {
147
- const i = qt();
146
+ function Ti() {
147
+ const i = Pt();
148
148
  return (e, t, { cancelable: n = !1 } = {}) => {
149
149
  const r = i.$$.callbacks[e];
150
150
  if (r) {
151
- const l = Wi(
151
+ const l = ki(
152
152
  /** @type {string} */
153
153
  e,
154
154
  t,
@@ -161,134 +161,134 @@ function Ri() {
161
161
  return !0;
162
162
  };
163
163
  }
164
- function pt(i, e) {
164
+ function wt(i, e) {
165
165
  const t = i.$$.callbacks[e.type];
166
166
  t && t.slice().forEach((n) => n.call(this, e));
167
167
  }
168
- const pe = [], lt = [];
169
- let Te = [];
170
- const Tt = [], Di = /* @__PURE__ */ Promise.resolve();
171
- let ut = !1;
172
- function Oi() {
173
- ut || (ut = !0, Di.then(Gt));
168
+ const Se = [], ot = [];
169
+ let pe = [];
170
+ const Et = [], Ci = /* @__PURE__ */ Promise.resolve();
171
+ let st = !1;
172
+ function Wi() {
173
+ st || (st = !0, Ci.then(jt));
174
174
  }
175
- function ct(i) {
176
- Te.push(i);
175
+ function at(i) {
176
+ pe.push(i);
177
177
  }
178
- const at = /* @__PURE__ */ new Set();
179
- let Se = 0;
180
- function Gt() {
181
- if (Se !== 0)
178
+ const rt = /* @__PURE__ */ new Set();
179
+ let Ee = 0;
180
+ function jt() {
181
+ if (Ee !== 0)
182
182
  return;
183
- const i = De;
183
+ const i = ze;
184
184
  do {
185
185
  try {
186
- for (; Se < pe.length; ) {
187
- const e = pe[Se];
188
- Se++, ze(e), Ii(e.$$);
186
+ for (; Ee < Se.length; ) {
187
+ const e = Se[Ee];
188
+ Ee++, Ce(e), zi(e.$$);
189
189
  }
190
190
  } catch (e) {
191
- throw pe.length = 0, Se = 0, e;
191
+ throw Se.length = 0, Ee = 0, e;
192
192
  }
193
- for (ze(null), pe.length = 0, Se = 0; lt.length; ) lt.pop()();
194
- for (let e = 0; e < Te.length; e += 1) {
195
- const t = Te[e];
196
- at.has(t) || (at.add(t), t());
193
+ for (Ce(null), Se.length = 0, Ee = 0; ot.length; ) ot.pop()();
194
+ for (let e = 0; e < pe.length; e += 1) {
195
+ const t = pe[e];
196
+ rt.has(t) || (rt.add(t), t());
197
197
  }
198
- Te.length = 0;
199
- } while (pe.length);
200
- for (; Tt.length; )
201
- Tt.pop()();
202
- ut = !1, at.clear(), ze(i);
198
+ pe.length = 0;
199
+ } while (Se.length);
200
+ for (; Et.length; )
201
+ Et.pop()();
202
+ st = !1, rt.clear(), Ce(i);
203
203
  }
204
- function Ii(i) {
204
+ function zi(i) {
205
205
  if (i.fragment !== null) {
206
- i.update(), ae(i.before_update);
206
+ i.update(), se(i.before_update);
207
207
  const e = i.dirty;
208
- i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(ct);
208
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(at);
209
209
  }
210
210
  }
211
- function Ui(i) {
211
+ function Ri(i) {
212
212
  const e = [], t = [];
213
- Te.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Te = e;
213
+ pe.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), pe = e;
214
214
  }
215
- const je = /* @__PURE__ */ new Set();
216
- let be;
217
- function Ze() {
218
- be = {
215
+ const Fe = /* @__PURE__ */ new Set();
216
+ let ge;
217
+ function He() {
218
+ ge = {
219
219
  r: 0,
220
220
  c: [],
221
- p: be
221
+ p: ge
222
222
  // parent group
223
223
  };
224
224
  }
225
- function qe() {
226
- be.r || ae(be.c), be = be.p;
225
+ function Pe() {
226
+ ge.r || se(ge.c), ge = ge.p;
227
227
  }
228
228
  function F(i, e) {
229
- i && i.i && (je.delete(i), i.i(e));
229
+ i && i.i && (Fe.delete(i), i.i(e));
230
230
  }
231
231
  function Q(i, e, t, n) {
232
232
  if (i && i.o) {
233
- if (je.has(i)) return;
234
- je.add(i), be.c.push(() => {
235
- je.delete(i), n && (t && i.d(1), n());
233
+ if (Fe.has(i)) return;
234
+ Fe.add(i), ge.c.push(() => {
235
+ Fe.delete(i), n && (t && i.d(1), n());
236
236
  }), i.o(e);
237
237
  } else n && n();
238
238
  }
239
- function Nt(i) {
239
+ function St(i) {
240
240
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
241
241
  }
242
- function Ai(i, e) {
242
+ function Oi(i, e) {
243
243
  Q(i, 1, 1, () => {
244
244
  e.delete(i.key);
245
245
  });
246
246
  }
247
- function Bi(i, e, t, n, r, l, d, o, m, u, f, v) {
247
+ function Di(i, e, t, n, r, l, d, o, m, u, f, v) {
248
248
  let b = i.length, y = l.length, _ = b;
249
249
  const z = {};
250
250
  for (; _--; ) z[i[_].key] = _;
251
- const L = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), M = [];
251
+ const L = [], E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), T = [];
252
252
  for (_ = y; _--; ) {
253
253
  const c = v(r, l, _), g = t(c);
254
- let k = d.get(g);
255
- k ? M.push(() => k.p(c, e)) : (k = u(g, c), k.c()), E.set(g, L[_] = k), g in z && C.set(g, Math.abs(_ - z[g]));
254
+ let M = d.get(g);
255
+ M ? T.push(() => M.p(c, e)) : (M = u(g, c), M.c()), E.set(g, L[_] = M), g in z && C.set(g, Math.abs(_ - z[g]));
256
256
  }
257
257
  const p = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set();
258
258
  function R(c) {
259
259
  F(c, 1), c.m(o, f), d.set(c.key, c), f = c.first, y--;
260
260
  }
261
261
  for (; b && y; ) {
262
- const c = L[y - 1], g = i[b - 1], k = c.key, Z = g.key;
263
- c === g ? (f = c.first, b--, y--) : E.has(Z) ? !d.has(k) || p.has(k) ? R(c) : H.has(Z) ? b-- : C.get(k) > C.get(Z) ? (H.add(k), R(c)) : (p.add(Z), b--) : (m(g, d), b--);
262
+ const c = L[y - 1], g = i[b - 1], M = c.key, Z = g.key;
263
+ c === g ? (f = c.first, b--, y--) : E.has(Z) ? !d.has(M) || p.has(M) ? R(c) : H.has(Z) ? b-- : C.get(M) > C.get(Z) ? (H.add(M), R(c)) : (p.add(Z), b--) : (m(g, d), b--);
264
264
  }
265
265
  for (; b--; ) {
266
266
  const c = i[b];
267
267
  E.has(c.key) || m(c, d);
268
268
  }
269
269
  for (; y; ) R(L[y - 1]);
270
- return ae(M), L;
270
+ return se(T), L;
271
271
  }
272
- function fe(i) {
272
+ function ce(i) {
273
273
  i && i.c();
274
274
  }
275
- function oe(i, e, t) {
275
+ function re(i, e, t) {
276
276
  const { fragment: n, after_update: r } = i.$$;
277
- n && n.m(e, t), ct(() => {
278
- const l = i.$$.on_mount.map(Pt).filter(jt);
279
- i.$$.on_destroy ? i.$$.on_destroy.push(...l) : ae(l), i.$$.on_mount = [];
280
- }), r.forEach(ct);
277
+ n && n.m(e, t), at(() => {
278
+ const l = i.$$.on_mount.map(Bt).filter(Ft);
279
+ i.$$.on_destroy ? i.$$.on_destroy.push(...l) : se(l), i.$$.on_mount = [];
280
+ }), r.forEach(at);
281
281
  }
282
- function se(i, e) {
282
+ function oe(i, e) {
283
283
  const t = i.$$;
284
- t.fragment !== null && (Ui(t.after_update), ae(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
284
+ t.fragment !== null && (Ri(t.after_update), se(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
285
285
  }
286
- function Fi(i, e) {
287
- i.$$.dirty[0] === -1 && (pe.push(i), Oi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
+ function Ui(i, e) {
287
+ i.$$.dirty[0] === -1 && (Se.push(i), Wi(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
288
288
  }
289
- function Le(i, e, t, n, r, l, d = null, o = [-1]) {
290
- const m = De;
291
- ze(i);
289
+ function be(i, e, t, n, r, l, d = null, o = [-1]) {
290
+ const m = ze;
291
+ Ce(i);
292
292
  const u = i.$$ = {
293
293
  fragment: null,
294
294
  ctx: [],
@@ -296,7 +296,7 @@ function Le(i, e, t, n, r, l, d = null, o = [-1]) {
296
296
  props: l,
297
297
  update: A,
298
298
  not_equal: r,
299
- bound: wt(),
299
+ bound: Lt(),
300
300
  // lifecycle
301
301
  on_mount: [],
302
302
  on_destroy: [],
@@ -305,7 +305,7 @@ function Le(i, e, t, n, r, l, d = null, o = [-1]) {
305
305
  after_update: [],
306
306
  context: new Map(e.context || (m ? m.$$.context : [])),
307
307
  // everything else
308
- callbacks: wt(),
308
+ callbacks: Lt(),
309
309
  dirty: o,
310
310
  skip_bound: !1,
311
311
  root: e.target || m.$$.root
@@ -314,18 +314,18 @@ function Le(i, e, t, n, r, l, d = null, o = [-1]) {
314
314
  let f = !1;
315
315
  if (u.ctx = t ? t(i, e.props || {}, (v, b, ...y) => {
316
316
  const _ = y.length ? y[0] : b;
317
- return u.ctx && r(u.ctx[v], u.ctx[v] = _) && (!u.skip_bound && u.bound[v] && u.bound[v](_), f && Fi(i, v)), b;
318
- }) : [], u.update(), f = !0, ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
317
+ return u.ctx && r(u.ctx[v], u.ctx[v] = _) && (!u.skip_bound && u.bound[v] && u.bound[v](_), f && Ui(i, v)), b;
318
+ }) : [], u.update(), f = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
319
319
  if (e.hydrate) {
320
- const v = Ci(e.target);
321
- u.fragment && u.fragment.l(v), v.forEach(O);
320
+ const v = Ni(e.target);
321
+ u.fragment && u.fragment.l(v), v.forEach(D);
322
322
  } else
323
323
  u.fragment && u.fragment.c();
324
- e.intro && F(i.$$.fragment), oe(i, e.target, e.anchor), Gt();
324
+ e.intro && F(i.$$.fragment), re(i, e.target, e.anchor), jt();
325
325
  }
326
- ze(m);
326
+ Ce(m);
327
327
  }
328
- class _e {
328
+ class ve {
329
329
  constructor() {
330
330
  /**
331
331
  * ### PRIVATE API
@@ -334,7 +334,7 @@ class _e {
334
334
  *
335
335
  * @type {any}
336
336
  */
337
- rt(this, "$$");
337
+ tt(this, "$$");
338
338
  /**
339
339
  * ### PRIVATE API
340
340
  *
@@ -342,11 +342,11 @@ class _e {
342
342
  *
343
343
  * @type {any}
344
344
  */
345
- rt(this, "$$set");
345
+ tt(this, "$$set");
346
346
  }
347
347
  /** @returns {void} */
348
348
  $destroy() {
349
- se(this, 1), this.$destroy = A;
349
+ oe(this, 1), this.$destroy = A;
350
350
  }
351
351
  /**
352
352
  * @template {Extract<keyof Events, string>} K
@@ -355,7 +355,7 @@ class _e {
355
355
  * @returns {() => void}
356
356
  */
357
357
  $on(e, t) {
358
- if (!jt(t))
358
+ if (!Ft(t))
359
359
  return A;
360
360
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
361
361
  return n.push(t), () => {
@@ -368,56 +368,56 @@ class _e {
368
368
  * @returns {void}
369
369
  */
370
370
  $set(e) {
371
- this.$$set && !Ei(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
371
+ this.$$set && !Li(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
372
372
  }
373
373
  }
374
- const Hi = "4";
375
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hi);
376
- function Pi(i) {
374
+ const Ii = "4";
375
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ii);
376
+ function Ai(i) {
377
377
  let e, t;
378
378
  return {
379
379
  c() {
380
- e = re("svg"), t = re("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");
380
+ e = ne("svg"), t = ne("path"), a(t, "d", "M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"), a(e, "viewBox", "0 0 14 14"), a(e, "width", "13"), a(e, "height", "13"), a(e, "class", "svelte-en2qvf");
381
381
  },
382
382
  m(n, r) {
383
- B(n, e, r), N(e, t);
383
+ B(n, e, r), k(e, t);
384
384
  },
385
385
  p: A,
386
386
  i: A,
387
387
  o: A,
388
388
  d(n) {
389
- n && O(e);
389
+ n && D(e);
390
390
  }
391
391
  };
392
392
  }
393
- class Qt extends _e {
393
+ class Zt extends ve {
394
394
  constructor(e) {
395
- super(), Le(this, e, null, Pi, ve, {});
395
+ super(), be(this, e, null, Ai, he, {});
396
396
  }
397
397
  }
398
- function ji(i) {
398
+ function Bi(i) {
399
399
  let e, t;
400
400
  return {
401
401
  c() {
402
- e = re("svg"), t = re("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");
402
+ e = ne("svg"), t = ne("path"), a(t, "d", "M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"), a(e, "viewBox", "0 0 30 30"), a(e, "fill", "none"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "class", "svelte-d2loi5");
403
403
  },
404
404
  m(n, r) {
405
- B(n, e, r), N(e, t);
405
+ B(n, e, r), k(e, t);
406
406
  },
407
407
  p: A,
408
408
  i: A,
409
409
  o: A,
410
410
  d(n) {
411
- n && O(e);
411
+ n && D(e);
412
412
  }
413
413
  };
414
414
  }
415
- class Kt extends _e {
415
+ class qt extends ve {
416
416
  constructor(e) {
417
- super(), Le(this, e, null, ji, ve, {});
417
+ super(), be(this, e, null, Bi, he, {});
418
418
  }
419
419
  }
420
- function Zi(i) {
420
+ function Fi(i) {
421
421
  let e, t;
422
422
  return {
423
423
  c() {
@@ -444,11 +444,11 @@ function Zi(i) {
444
444
  );
445
445
  },
446
446
  d(n) {
447
- n && O(e);
447
+ n && D(e);
448
448
  }
449
449
  };
450
450
  }
451
- function qi(i) {
451
+ function Hi(i) {
452
452
  let e, t;
453
453
  return {
454
454
  c() {
@@ -475,11 +475,11 @@ function qi(i) {
475
475
  );
476
476
  },
477
477
  d(n) {
478
- n && O(e);
478
+ n && D(e);
479
479
  }
480
480
  };
481
481
  }
482
- function Gi(i) {
482
+ function Pi(i) {
483
483
  let e, t;
484
484
  return {
485
485
  c() {
@@ -506,11 +506,11 @@ function Gi(i) {
506
506
  );
507
507
  },
508
508
  d(n) {
509
- n && O(e);
509
+ n && D(e);
510
510
  }
511
511
  };
512
512
  }
513
- function Qi(i) {
513
+ function ji(i) {
514
514
  let e, t;
515
515
  return {
516
516
  c() {
@@ -537,11 +537,11 @@ function Qi(i) {
537
537
  );
538
538
  },
539
539
  d(n) {
540
- n && O(e);
540
+ n && D(e);
541
541
  }
542
542
  };
543
543
  }
544
- function Ki(i) {
544
+ function Zi(i) {
545
545
  let e, t;
546
546
  return {
547
547
  c() {
@@ -568,11 +568,11 @@ function Ki(i) {
568
568
  );
569
569
  },
570
570
  d(n) {
571
- n && O(e);
571
+ n && D(e);
572
572
  }
573
573
  };
574
574
  }
575
- function Vi(i) {
575
+ function qi(i) {
576
576
  let e, t;
577
577
  return {
578
578
  c() {
@@ -599,11 +599,11 @@ function Vi(i) {
599
599
  );
600
600
  },
601
601
  d(n) {
602
- n && O(e);
602
+ n && D(e);
603
603
  }
604
604
  };
605
605
  }
606
- function xi(i) {
606
+ function Gi(i) {
607
607
  let e, t;
608
608
  return {
609
609
  c() {
@@ -630,11 +630,11 @@ function xi(i) {
630
630
  );
631
631
  },
632
632
  d(n) {
633
- n && O(e);
633
+ n && D(e);
634
634
  }
635
635
  };
636
636
  }
637
- function Ji(i) {
637
+ function Qi(i) {
638
638
  let e, t, n, r;
639
639
  return {
640
640
  c() {
@@ -666,36 +666,36 @@ function Ji(i) {
666
666
  );
667
667
  },
668
668
  d(l) {
669
- l && O(e), n = !1, r();
669
+ l && D(e), n = !1, r();
670
670
  }
671
671
  };
672
672
  }
673
- function kt(i) {
673
+ function pt(i) {
674
674
  let e, t;
675
675
  return {
676
676
  c() {
677
- e = W("span"), t = de(
677
+ e = W("span"), t = ue(
678
678
  /*placeType*/
679
679
  i[6]
680
680
  ), a(e, "class", "secondary svelte-ltkwvy");
681
681
  },
682
682
  m(n, r) {
683
- B(n, e, r), N(e, t);
683
+ B(n, e, r), k(e, t);
684
684
  },
685
685
  p(n, r) {
686
686
  r & /*placeType*/
687
- 64 && Re(
687
+ 64 && We(
688
688
  t,
689
689
  /*placeType*/
690
690
  n[6]
691
691
  );
692
692
  },
693
693
  d(n) {
694
- n && O(e);
694
+ n && D(e);
695
695
  }
696
696
  };
697
697
  }
698
- function Xi(i) {
698
+ function Ki(i) {
699
699
  let e, t, n, r, l, d, o, m, u, f = (
700
700
  /*isReverse*/
701
701
  (i[7] ? (
@@ -722,42 +722,42 @@ function Xi(i) {
722
722
  /*feature*/
723
723
  i[0].place_name.replace(/[^,]*,?\s*/, "")
724
724
  )) + ""
725
- ), E, C, M;
726
- function p(g, k) {
727
- return k & /*feature*/
728
- 1 && (t = null), k & /*feature*/
729
- 1 && (n = null), k & /*feature*/
730
- 1 && (r = null), k & /*feature*/
725
+ ), E, C, T;
726
+ function p(g, M) {
727
+ return M & /*feature*/
728
+ 1 && (t = null), M & /*feature*/
729
+ 1 && (n = null), M & /*feature*/
730
+ 1 && (r = null), M & /*feature*/
731
731
  1 && (l = null), /*imageUrl*/
732
- g[5] ? Ji : (
732
+ g[5] ? Qi : (
733
733
  /*feature*/
734
- g[0].address ? xi : (t == null && (t = !!/*feature*/
735
- g[0].id.startsWith("road.")), t ? Vi : (n == null && (n = !!/*feature*/
736
- g[0].id.startsWith("address.")), n ? Ki : (r == null && (r = !!/*feature*/
737
- g[0].id.startsWith("postal_code.")), r ? Qi : (l == null && (l = !!/*feature*/
738
- g[0].id.startsWith("poi.")), l ? Gi : (
734
+ g[0].address ? Gi : (t == null && (t = !!/*feature*/
735
+ g[0].id.startsWith("road.")), t ? qi : (n == null && (n = !!/*feature*/
736
+ g[0].id.startsWith("address.")), n ? Zi : (r == null && (r = !!/*feature*/
737
+ g[0].id.startsWith("postal_code.")), r ? ji : (l == null && (l = !!/*feature*/
738
+ g[0].id.startsWith("poi.")), l ? Pi : (
739
739
  /*isReverse*/
740
- g[7] ? qi : Zi
740
+ g[7] ? Hi : Fi
741
741
  )))))
742
742
  );
743
743
  }
744
- let H = p(i, -1), R = H(i), c = y && kt(i);
744
+ let H = p(i, -1), R = H(i), c = y && pt(i);
745
745
  return {
746
746
  c() {
747
- e = W("li"), R.c(), d = X(), o = W("span"), m = W("span"), u = W("span"), v = de(f), b = X(), c && c.c(), _ = X(), z = W("span"), E = de(L), a(u, "class", "primary svelte-ltkwvy"), a(m, "class", "svelte-ltkwvy"), a(z, "class", "line2 svelte-ltkwvy"), a(o, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
747
+ e = W("li"), R.c(), d = X(), o = W("span"), m = W("span"), u = W("span"), v = ue(f), b = X(), c && c.c(), _ = X(), z = W("span"), E = ue(L), a(u, "class", "primary svelte-ltkwvy"), a(m, "class", "svelte-ltkwvy"), a(z, "class", "line2 svelte-ltkwvy"), a(o, "class", "texts svelte-ltkwvy"), a(e, "tabindex", "0"), a(
748
748
  e,
749
749
  "data-selected",
750
750
  /*selected*/
751
751
  i[1]
752
- ), a(e, "class", "svelte-ltkwvy"), ce(
752
+ ), a(e, "class", "svelte-ltkwvy"), le(
753
753
  e,
754
754
  "selected",
755
755
  /*selected*/
756
756
  i[1]
757
757
  );
758
758
  },
759
- m(g, k) {
760
- B(g, e, k), R.m(e, null), N(e, d), N(e, o), N(o, m), N(m, u), N(u, v), N(m, b), c && c.m(m, null), N(o, _), N(o, z), N(z, E), C || (M = [
759
+ m(g, M) {
760
+ B(g, e, M), R.m(e, null), k(e, d), k(e, o), k(o, m), k(m, u), k(u, v), k(m, b), c && c.m(m, null), k(o, _), k(o, z), k(z, E), C || (T = [
761
761
  V(
762
762
  e,
763
763
  "mouseenter",
@@ -772,8 +772,8 @@ function Xi(i) {
772
772
  )
773
773
  ], C = !0);
774
774
  },
775
- p(g, [k]) {
776
- H === (H = p(g, k)) && R ? R.p(g, k) : (R.d(1), R = H(g), R && (R.c(), R.m(e, d))), k & /*feature*/
775
+ p(g, [M]) {
776
+ H === (H = p(g, M)) && R ? R.p(g, M) : (R.d(1), R = H(g), R && (R.c(), R.m(e, d))), M & /*feature*/
777
777
  1 && f !== (f = /*isReverse*/
778
778
  (g[7] ? (
779
779
  /*feature*/
@@ -781,7 +781,7 @@ function Xi(i) {
781
781
  ) : (
782
782
  /*feature*/
783
783
  g[0].place_name.replace(/,.*/, "")
784
- )) + "") && Re(v, f), k & /*showPlaceType, feature, imageUrl*/
784
+ )) + "") && We(v, f), M & /*showPlaceType, feature, imageUrl*/
785
785
  37 && (y = /*showPlaceType*/
786
786
  g[2] === "always" || /*showPlaceType*/
787
787
  g[2] !== "never" && !/*feature*/
@@ -791,19 +791,19 @@ function Xi(i) {
791
791
  g[0].id.startsWith("postal_code.") && (!/*feature*/
792
792
  g[0].id.startsWith("poi.") || !/*imageUrl*/
793
793
  g[5]) && !/*isReverse*/
794
- g[7]), y ? c ? c.p(g, k) : (c = kt(g), c.c(), c.m(m, null)) : c && (c.d(1), c = null), k & /*feature*/
794
+ g[7]), y ? c ? c.p(g, M) : (c = pt(g), c.c(), c.m(m, null)) : c && (c.d(1), c = null), M & /*feature*/
795
795
  1 && L !== (L = /*isReverse*/
796
796
  (g[7] ? "" : (
797
797
  /*feature*/
798
798
  g[0].place_name.replace(/[^,]*,?\s*/, "")
799
- )) + "") && Re(E, L), k & /*selected*/
799
+ )) + "") && We(E, L), M & /*selected*/
800
800
  2 && a(
801
801
  e,
802
802
  "data-selected",
803
803
  /*selected*/
804
804
  g[1]
805
- ), k & /*selected*/
806
- 2 && ce(
805
+ ), M & /*selected*/
806
+ 2 && le(
807
807
  e,
808
808
  "selected",
809
809
  /*selected*/
@@ -813,23 +813,23 @@ function Xi(i) {
813
813
  i: A,
814
814
  o: A,
815
815
  d(g) {
816
- g && O(e), R.d(), c && c.d(), C = !1, ae(M);
816
+ g && D(e), R.d(), c && c.d(), C = !1, se(T);
817
817
  }
818
818
  };
819
819
  }
820
- function Yi(i, e, t) {
821
- var M;
820
+ function Vi(i, e, t) {
821
+ var T;
822
822
  let n, r, { feature: l } = e, { selected: d = !1 } = e, { showPlaceType: o } = e, { missingIconsCache: m } = e, { iconsBaseUrl: u } = e;
823
- const f = (M = l.properties) == null ? void 0 : M.categories;
823
+ const f = (T = l.properties) == null ? void 0 : T.categories;
824
824
  let v, b, y = 0, _ = l.place_type[0] === "reverse";
825
825
  function z() {
826
826
  b && m.add(b), t(10, y++, y);
827
827
  }
828
828
  function L(p) {
829
- pt.call(this, i, p);
829
+ wt.call(this, i, p);
830
830
  }
831
831
  function E(p) {
832
- pt.call(this, i, p);
832
+ wt.call(this, i, p);
833
833
  }
834
834
  const C = () => z();
835
835
  return i.$$set = (p) => {
@@ -861,9 +861,9 @@ function Yi(i, e, t) {
861
861
  C
862
862
  ];
863
863
  }
864
- class $i extends _e {
864
+ class xi extends ve {
865
865
  constructor(e) {
866
- super(), Le(this, e, Yi, Xi, ve, {
866
+ super(), be(this, e, Vi, Ki, he, {
867
867
  feature: 0,
868
868
  selected: 1,
869
869
  showPlaceType: 2,
@@ -872,7 +872,7 @@ class $i extends _e {
872
872
  });
873
873
  }
874
874
  }
875
- function en(i) {
875
+ function Ji(i) {
876
876
  let e;
877
877
  return {
878
878
  c() {
@@ -885,79 +885,79 @@ function en(i) {
885
885
  i: A,
886
886
  o: A,
887
887
  d(t) {
888
- t && O(e);
888
+ t && D(e);
889
889
  }
890
890
  };
891
891
  }
892
- class tn extends _e {
892
+ class Xi extends ve {
893
893
  constructor(e) {
894
- super(), Le(this, e, null, en, ve, {});
894
+ super(), be(this, e, null, Ji, he, {});
895
895
  }
896
896
  }
897
- function nn(i) {
897
+ function Yi(i) {
898
898
  let e, t;
899
899
  return {
900
900
  c() {
901
- e = re("svg"), t = re("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");
901
+ e = ne("svg"), t = ne("path"), a(t, "d", "M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"), a(e, "viewBox", "0 0 60.006 21.412"), a(e, "width", "14"), a(e, "height", "20"), a(e, "class", "svelte-en2qvf");
902
902
  },
903
903
  m(n, r) {
904
- B(n, e, r), N(e, t);
904
+ B(n, e, r), k(e, t);
905
905
  },
906
906
  p: A,
907
907
  i: A,
908
908
  o: A,
909
909
  d(n) {
910
- n && O(e);
910
+ n && D(e);
911
911
  }
912
912
  };
913
913
  }
914
- class rn extends _e {
914
+ class $i extends ve {
915
915
  constructor(e) {
916
- super(), Le(this, e, null, nn, ve, {});
916
+ super(), be(this, e, null, Yi, he, {});
917
917
  }
918
918
  }
919
- function on(i) {
919
+ function en(i) {
920
920
  let e, t, n;
921
921
  return {
922
922
  c() {
923
- e = re("svg"), t = re("circle"), n = re("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");
923
+ e = ne("svg"), t = ne("circle"), n = ne("path"), a(t, "cx", "4.789"), a(t, "cy", "4.787"), a(t, "r", "3.85"), a(t, "class", "svelte-1aq105l"), a(n, "d", "M12.063 12.063 7.635 7.635"), a(n, "class", "svelte-1aq105l"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "13"), a(e, "height", "13"), a(e, "viewBox", "0 0 13 13"), a(e, "class", "svelte-1aq105l");
924
924
  },
925
925
  m(r, l) {
926
- B(r, e, l), N(e, t), N(e, n);
926
+ B(r, e, l), k(e, t), k(e, n);
927
927
  },
928
928
  p: A,
929
929
  i: A,
930
930
  o: A,
931
931
  d(r) {
932
- r && O(e);
932
+ r && D(e);
933
933
  }
934
934
  };
935
935
  }
936
- class sn extends _e {
936
+ class tn extends ve {
937
937
  constructor(e) {
938
- super(), Le(this, e, null, on, ve, {});
938
+ super(), be(this, e, null, en, he, {});
939
939
  }
940
940
  }
941
- function an(i, e, t) {
941
+ function nn(i, e, t) {
942
942
  const n = e[1], r = e[0], l = n - r;
943
943
  return i === n && t ? i : ((i - r) % l + l) % l + r;
944
944
  }
945
- function Mt(i) {
945
+ function Nt(i) {
946
946
  const e = [...i];
947
947
  return e[2] < e[0] && (Math.abs((e[0] + e[2] + 360) / 2) > Math.abs((e[0] - 360 + e[2]) / 2) ? e[0] -= 360 : e[2] += 360), e;
948
948
  }
949
- let Ce;
950
- async function ln(i, e, t) {
949
+ let Me;
950
+ async function rn(i, e, t) {
951
951
  const n = i == null ? void 0 : i.getCenterAndZoom();
952
952
  for (const r of e ?? [])
953
953
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
954
954
  if (r.type === "fixed")
955
955
  return r.coordinates.join(",");
956
956
  e: if (r.type === "client-geolocation") {
957
- if (Ce && r.cachedLocationExpiry && Ce.time + r.cachedLocationExpiry > Date.now()) {
958
- if (!Ce.coords)
957
+ if (Me && r.cachedLocationExpiry && Me.time + r.cachedLocationExpiry > Date.now()) {
958
+ if (!Me.coords)
959
959
  break e;
960
- return Ce.coords;
960
+ return Me.coords;
961
961
  }
962
962
  let l;
963
963
  try {
@@ -978,7 +978,7 @@ async function ln(i, e, t) {
978
978
  }), l;
979
979
  } catch {
980
980
  } finally {
981
- r.cachedLocationExpiry && (Ce = {
981
+ r.cachedLocationExpiry && (Me = {
982
982
  time: Date.now(),
983
983
  coords: l
984
984
  });
@@ -992,8 +992,8 @@ async function ln(i, e, t) {
992
992
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
993
993
  }
994
994
  }
995
- const un = /^(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, Ct = /^([+-]?[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,})$/, Wt = /^(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, zt = /^(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, Rt = /^(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, Dt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
996
- function cn(i) {
995
+ const on = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, kt = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Mt = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Tt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Ct = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Wt = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i;
996
+ function sn(i) {
997
997
  if (!["DMS", "DM", "DD"].includes(i))
998
998
  throw new Error("invalid format specified");
999
999
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
@@ -1002,7 +1002,7 @@ function cn(i) {
1002
1002
  i == "DD" && (m = `${r}° ${d}, ${l}° ${o}`);
1003
1003
  const u = Math.floor(r), f = Math.floor(l), v = (r - u) * 60, b = (l - f) * 60;
1004
1004
  if (i == "DM") {
1005
- let y = Ot(v, 3).toFixed(3).padStart(6, "0"), _ = Ot(b, 3).toFixed(3).padStart(6, "0");
1005
+ let y = zt(v, 3).toFixed(3).padStart(6, "0"), _ = zt(b, 3).toFixed(3).padStart(6, "0");
1006
1006
  y.endsWith(".000") && _.endsWith(".000") && (y = y.replace(/\.000$/, ""), _ = _.replace(/\.000$/, "")), m = `${u}° ${y}' ${d}, ${f}° ${_}' ${o}`;
1007
1007
  }
1008
1008
  if (i == "DMS") {
@@ -1015,22 +1015,22 @@ function cn(i) {
1015
1015
  } else
1016
1016
  throw new Error("no decimal coordinates to convert");
1017
1017
  }
1018
- function Ot(i, e) {
1018
+ function zt(i, e) {
1019
1019
  const t = Math.pow(10, e);
1020
1020
  return Math.round((i + Number.EPSILON) * t) / t;
1021
1021
  }
1022
- function dt(i, e) {
1022
+ function lt(i, e) {
1023
1023
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1024
1024
  let t = null, n = null, r = "", l = "", d = null, o = [], m = !1;
1025
- if (un.test(i))
1025
+ if (on.test(i))
1026
1026
  throw new Error("invalid coordinate value");
1027
- if (Ct.test(i))
1028
- if (o = Ct.exec(i), m = We(o), m)
1027
+ if (kt.test(i))
1028
+ if (o = kt.exec(i), m = Te(o), m)
1029
1029
  t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), d = "DM";
1030
1030
  else
1031
1031
  throw new Error("invalid coordinate format");
1032
- else if (Wt.test(i))
1033
- if (o = Wt.exec(i), m = We(o), m) {
1032
+ else if (Mt.test(i))
1033
+ if (o = Mt.exec(i), m = Te(o), m) {
1034
1034
  if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), d = "DD", Number(Math.round(t)) == Number(t))
1035
1035
  throw new Error("integer only coordinate provided");
1036
1036
  if (Number(Math.round(n)) == Number(n))
@@ -1038,18 +1038,18 @@ function dt(i, e) {
1038
1038
  o[1] ? (r = o[1], l = o[5]) : o[4] && (r = o[4], l = o[8]);
1039
1039
  } else
1040
1040
  throw new Error("invalid decimal coordinate format");
1041
- else if (zt.test(i))
1042
- if (o = zt.exec(i), m = We(o), m)
1041
+ else if (Tt.test(i))
1042
+ if (o = Tt.exec(i), m = Te(o), m)
1043
1043
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, d = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, d = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[8]) : o[7] && (r = o[7], l = o[14]);
1044
1044
  else
1045
1045
  throw new Error("invalid DMS coordinates format");
1046
- else if (Rt.test(i))
1047
- if (o = Rt.exec(i), m = We(o), m)
1046
+ else if (Ct.test(i))
1047
+ if (o = Ct.exec(i), m = Te(o), m)
1048
1048
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, d = "DM"), o[6] && (t += o[6] / 3600, d = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
1049
1049
  else
1050
1050
  throw new Error("invalid DMS coordinates format");
1051
- else if (Dt.test(i)) {
1052
- if (o = Dt.exec(i), m = We(o), o.filter((u) => u).length <= 5)
1051
+ else if (Wt.test(i)) {
1052
+ if (o = Wt.exec(i), m = Te(o), o.filter((u) => u).length <= 5)
1053
1053
  throw new Error("invalid coordinates format");
1054
1054
  if (m)
1055
1055
  t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, d = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, d = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], l = o[9]) : o[8] && (r = o[8], l = o[16]);
@@ -1081,9 +1081,9 @@ function dt(i, e) {
1081
1081
  if (E == 0)
1082
1082
  C = f.indexOf(_[0]), v = f.substring(0, C).trim(), b = f.substring(C + 1).trim();
1083
1083
  else {
1084
- let M = 0, p = 0;
1085
- for (; M <= E; )
1086
- C = f.indexOf(_[M], p), p = C + 1, M++;
1084
+ let T = 0, p = 0;
1085
+ for (; T <= E; )
1086
+ C = f.indexOf(_[T], p), p = C + 1, T++;
1087
1087
  v = f.substring(0, C).trim(), b = f.substring(C + 1).trim();
1088
1088
  }
1089
1089
  }
@@ -1103,13 +1103,13 @@ function dt(i, e) {
1103
1103
  decimalLongitude: n,
1104
1104
  decimalCoordinates: `${t},${n}`,
1105
1105
  originalFormat: d,
1106
- closeEnough: dn,
1107
- toCoordinateFormat: cn
1106
+ closeEnough: an,
1107
+ toCoordinateFormat: sn
1108
1108
  });
1109
1109
  } else
1110
1110
  throw new Error("coordinates pattern match failed");
1111
1111
  }
1112
- function We(i) {
1112
+ function Te(i) {
1113
1113
  if (!isNaN(i[0]))
1114
1114
  return !1;
1115
1115
  const e = [...i];
@@ -1128,28 +1128,28 @@ function We(i) {
1128
1128
  }
1129
1129
  return !0;
1130
1130
  }
1131
- function It(i, e) {
1131
+ function Rt(i, e) {
1132
1132
  const t = Math.abs(i - e);
1133
1133
  return Number(t.toFixed(6)) <= 1e-5;
1134
1134
  }
1135
- function dn(i) {
1135
+ function an(i) {
1136
1136
  if (!i)
1137
1137
  throw new Error("coords must be provided");
1138
1138
  if (i.includes(",")) {
1139
1139
  const e = i.split(",");
1140
1140
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1141
1141
  throw new Error("coords are not valid decimals");
1142
- return It(this.decimalLatitude, Number(e[0])) && It(this.decimalLongitude, e[1]);
1142
+ return Rt(this.decimalLatitude, Number(e[0])) && Rt(this.decimalLongitude, e[1]);
1143
1143
  } else
1144
1144
  throw new Error("coords being tested must be separated by a comma");
1145
1145
  }
1146
- const fn = Object.freeze({
1146
+ const ln = Object.freeze({
1147
1147
  DMS: "DMS",
1148
1148
  DM: "DM",
1149
1149
  DD: "DD"
1150
1150
  });
1151
- dt.to = fn;
1152
- const mn = [
1151
+ lt.to = ln;
1152
+ const un = [
1153
1153
  {
1154
1154
  verbatimCoordinates: "40.123, -74.123",
1155
1155
  verbatimLatitude: "40.123",
@@ -1290,10 +1290,10 @@ const mn = [
1290
1290
  verbatimLatitude: "40 7 22.8",
1291
1291
  verbatimLongitude: "-74 7 22.8"
1292
1292
  }
1293
- ], gn = {
1293
+ ], cn = {
1294
1294
  decimalLatitude: 40.123,
1295
1295
  decimalLongitude: -74.123
1296
- }, hn = [
1296
+ }, dn = [
1297
1297
  {
1298
1298
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1299
1299
  verbatimLatitude: `50°4'17.698"south`,
@@ -1378,7 +1378,7 @@ const mn = [
1378
1378
  decimalLatitude: -18.4,
1379
1379
  decimalLongitude: 22.75
1380
1380
  }
1381
- ], bn = [
1381
+ ], fn = [
1382
1382
  {
1383
1383
  verbatimCoordinates: "10.432342S 10.6345345E",
1384
1384
  verbatimLatitude: "10.432342S",
@@ -1513,27 +1513,27 @@ const mn = [
1513
1513
  decimalLongitude: 18.33453
1514
1514
  }
1515
1515
  ];
1516
- function vn() {
1516
+ function mn() {
1517
1517
  const i = [];
1518
- return mn.forEach((e) => {
1519
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...gn });
1520
- }), [...i, ...hn, ...bn];
1521
- }
1522
- const Ln = vn();
1523
- dt.formats = Ln.map((i) => i.verbatimCoordinates);
1524
- const _n = dt;
1525
- function Ut(i, e, t) {
1518
+ return un.forEach((e) => {
1519
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...cn });
1520
+ }), [...i, ...dn, ...fn];
1521
+ }
1522
+ const gn = mn();
1523
+ lt.formats = gn.map((i) => i.verbatimCoordinates);
1524
+ const hn = lt;
1525
+ function Ot(i, e, t) {
1526
1526
  const n = i.slice();
1527
- return n[87] = e[t], n[89] = t, n;
1527
+ return n[84] = e[t], n[86] = t, n;
1528
1528
  }
1529
- function At(i) {
1529
+ function Dt(i) {
1530
1530
  let e, t;
1531
- return e = new tn({}), {
1531
+ return e = new Xi({}), {
1532
1532
  c() {
1533
- fe(e.$$.fragment);
1533
+ ce(e.$$.fragment);
1534
1534
  },
1535
1535
  m(n, r) {
1536
- oe(e, n, r), t = !0;
1536
+ re(e, n, r), t = !0;
1537
1537
  },
1538
1538
  i(n) {
1539
1539
  t || (F(e.$$.fragment, n), t = !0);
@@ -1542,20 +1542,20 @@ function At(i) {
1542
1542
  Q(e.$$.fragment, n), t = !1;
1543
1543
  },
1544
1544
  d(n) {
1545
- se(e, n);
1545
+ oe(e, n);
1546
1546
  }
1547
1547
  };
1548
1548
  }
1549
- function Bt(i) {
1549
+ function Ut(i) {
1550
1550
  let e, t, n, r, l;
1551
- return t = new rn({}), {
1551
+ return t = new $i({}), {
1552
1552
  c() {
1553
- e = W("button"), fe(t.$$.fragment), a(e, "type", "button"), a(
1553
+ e = W("button"), ce(t.$$.fragment), a(e, "type", "button"), a(
1554
1554
  e,
1555
1555
  "title",
1556
1556
  /*reverseButtonTitle*/
1557
1557
  i[9]
1558
- ), a(e, "class", "svelte-bz0zu3"), ce(
1558
+ ), a(e, "class", "svelte-bz0zu3"), le(
1559
1559
  e,
1560
1560
  "active",
1561
1561
  /*reverseActive*/
@@ -1563,11 +1563,11 @@ function Bt(i) {
1563
1563
  );
1564
1564
  },
1565
1565
  m(d, o) {
1566
- B(d, e, o), oe(t, e, null), n = !0, r || (l = V(
1566
+ B(d, e, o), re(t, e, null), n = !0, r || (l = V(
1567
1567
  e,
1568
1568
  "click",
1569
1569
  /*click_handler_2*/
1570
- i[71]
1570
+ i[69]
1571
1571
  ), r = !0);
1572
1572
  },
1573
1573
  p(d, o) {
@@ -1578,7 +1578,7 @@ function Bt(i) {
1578
1578
  /*reverseButtonTitle*/
1579
1579
  d[9]
1580
1580
  ), (!n || o[0] & /*reverseActive*/
1581
- 1) && ce(
1581
+ 1) && le(
1582
1582
  e,
1583
1583
  "active",
1584
1584
  /*reverseActive*/
@@ -1592,24 +1592,24 @@ function Bt(i) {
1592
1592
  Q(t.$$.fragment, d), n = !1;
1593
1593
  },
1594
1594
  d(d) {
1595
- d && O(e), se(t), r = !1, l();
1595
+ d && D(e), oe(t), r = !1, l();
1596
1596
  }
1597
1597
  };
1598
1598
  }
1599
- function yn(i) {
1600
- let e, t = [], n = /* @__PURE__ */ new Map(), r, l, d, o = Nt(
1599
+ function bn(i) {
1600
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, l, d, o = St(
1601
1601
  /*listFeatures*/
1602
1602
  i[14]
1603
1603
  );
1604
1604
  const m = (u) => (
1605
1605
  /*feature*/
1606
- u[87].id + /*feature*/
1607
- (u[87].address ? "," + /*feature*/
1608
- u[87].address : "")
1606
+ u[84].id + /*feature*/
1607
+ (u[84].address ? "," + /*feature*/
1608
+ u[84].address : "")
1609
1609
  );
1610
1610
  for (let u = 0; u < o.length; u += 1) {
1611
- let f = Ut(i, o, u), v = m(f);
1612
- n.set(v, t[u] = Ft(v, f));
1611
+ let f = Ot(i, o, u), v = m(f);
1612
+ n.set(v, t[u] = It(v, f));
1613
1613
  }
1614
1614
  return {
1615
1615
  c() {
@@ -1627,22 +1627,22 @@ function yn(i) {
1627
1627
  e,
1628
1628
  "mouseleave",
1629
1629
  /*mouseleave_handler*/
1630
- i[75]
1630
+ i[73]
1631
1631
  ),
1632
1632
  V(
1633
1633
  e,
1634
1634
  "blur",
1635
1635
  /*blur_handler_1*/
1636
- i[76]
1636
+ i[74]
1637
1637
  )
1638
1638
  ], l = !0);
1639
1639
  },
1640
1640
  p(u, f) {
1641
1641
  f[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
1642
- 17880064 && (o = Nt(
1642
+ 17880064 && (o = St(
1643
1643
  /*listFeatures*/
1644
1644
  u[14]
1645
- ), Ze(), t = Bi(t, f, m, 1, u, o, n, e, Ai, Ft, null, Ut), qe());
1645
+ ), He(), t = Di(t, f, m, 1, u, o, n, e, Oi, It, null, Ot), Pe());
1646
1646
  },
1647
1647
  i(u) {
1648
1648
  if (!r) {
@@ -1657,28 +1657,28 @@ function yn(i) {
1657
1657
  r = !1;
1658
1658
  },
1659
1659
  d(u) {
1660
- u && O(e);
1660
+ u && D(e);
1661
1661
  for (let f = 0; f < t.length; f += 1)
1662
1662
  t[f].d();
1663
- l = !1, ae(d);
1663
+ l = !1, se(d);
1664
1664
  }
1665
1665
  };
1666
1666
  }
1667
- function wn(i) {
1667
+ function vn(i) {
1668
1668
  let e, t, n, r, l, d;
1669
- return t = new Kt({}), {
1669
+ return t = new qt({}), {
1670
1670
  c() {
1671
- e = W("div"), fe(t.$$.fragment), n = X(), r = W("div"), l = de(
1671
+ e = W("div"), ce(t.$$.fragment), n = X(), r = W("div"), l = ue(
1672
1672
  /*noResultsMessage*/
1673
1673
  i[7]
1674
1674
  ), a(r, "class", "svelte-bz0zu3"), a(e, "class", "no-results svelte-bz0zu3");
1675
1675
  },
1676
1676
  m(o, m) {
1677
- B(o, e, m), oe(t, e, null), N(e, n), N(e, r), N(r, l), d = !0;
1677
+ B(o, e, m), re(t, e, null), k(e, n), k(e, r), k(r, l), d = !0;
1678
1678
  },
1679
1679
  p(o, m) {
1680
1680
  (!d || m[0] & /*noResultsMessage*/
1681
- 128) && Re(
1681
+ 128) && We(
1682
1682
  l,
1683
1683
  /*noResultsMessage*/
1684
1684
  o[7]
@@ -1691,15 +1691,15 @@ function wn(i) {
1691
1691
  Q(t.$$.fragment, o), d = !1;
1692
1692
  },
1693
1693
  d(o) {
1694
- o && O(e), se(t);
1694
+ o && D(e), oe(t);
1695
1695
  }
1696
1696
  };
1697
1697
  }
1698
- function En(i) {
1698
+ function Ln(i) {
1699
1699
  let e = "", t;
1700
1700
  return {
1701
1701
  c() {
1702
- t = de(e);
1702
+ t = ue(e);
1703
1703
  },
1704
1704
  m(n, r) {
1705
1705
  B(n, t, r);
@@ -1708,30 +1708,30 @@ function En(i) {
1708
1708
  i: A,
1709
1709
  o: A,
1710
1710
  d(n) {
1711
- n && O(t);
1711
+ n && D(t);
1712
1712
  }
1713
1713
  };
1714
1714
  }
1715
- function Sn(i) {
1715
+ function _n(i) {
1716
1716
  let e, t, n, r, l, d, o, m, u, f, v;
1717
- return t = new Kt({}), m = new Qt({}), {
1717
+ return t = new qt({}), m = new Zt({}), {
1718
1718
  c() {
1719
- e = W("div"), fe(t.$$.fragment), n = X(), r = W("div"), l = de(
1719
+ e = W("div"), ce(t.$$.fragment), n = X(), r = W("div"), l = ue(
1720
1720
  /*errorMessage*/
1721
1721
  i[6]
1722
- ), d = X(), o = W("button"), fe(m.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1722
+ ), d = X(), o = W("button"), ce(m.$$.fragment), a(r, "class", "svelte-bz0zu3"), a(o, "class", "svelte-bz0zu3"), a(e, "class", "error svelte-bz0zu3");
1723
1723
  },
1724
1724
  m(b, y) {
1725
- B(b, e, y), oe(t, e, null), N(e, n), N(e, r), N(r, l), N(e, d), N(e, o), oe(m, o, null), u = !0, f || (v = V(
1725
+ B(b, e, y), re(t, e, null), k(e, n), k(e, r), k(r, l), k(e, d), k(e, o), re(m, o, null), u = !0, f || (v = V(
1726
1726
  o,
1727
1727
  "click",
1728
1728
  /*click_handler_3*/
1729
- i[72]
1729
+ i[70]
1730
1730
  ), f = !0);
1731
1731
  },
1732
1732
  p(b, y) {
1733
1733
  (!u || y[0] & /*errorMessage*/
1734
- 64) && Re(
1734
+ 64) && We(
1735
1735
  l,
1736
1736
  /*errorMessage*/
1737
1737
  b[6]
@@ -1744,35 +1744,35 @@ function Sn(i) {
1744
1744
  Q(t.$$.fragment, b), Q(m.$$.fragment, b), u = !1;
1745
1745
  },
1746
1746
  d(b) {
1747
- b && O(e), se(t), se(m), f = !1, v();
1747
+ b && D(e), oe(t), oe(m), f = !1, v();
1748
1748
  }
1749
1749
  };
1750
1750
  }
1751
- function Ft(i, e) {
1751
+ function It(i, e) {
1752
1752
  let t, n, r;
1753
1753
  function l() {
1754
1754
  return (
1755
1755
  /*mouseenter_handler*/
1756
- e[73](
1756
+ e[71](
1757
1757
  /*i*/
1758
- e[89]
1758
+ e[86]
1759
1759
  )
1760
1760
  );
1761
1761
  }
1762
1762
  function d() {
1763
1763
  return (
1764
1764
  /*focus_handler_1*/
1765
- e[74](
1765
+ e[72](
1766
1766
  /*feature*/
1767
- e[87]
1767
+ e[84]
1768
1768
  )
1769
1769
  );
1770
1770
  }
1771
- return n = new $i({
1771
+ return n = new xi({
1772
1772
  props: {
1773
1773
  feature: (
1774
1774
  /*feature*/
1775
- e[87]
1775
+ e[84]
1776
1776
  ),
1777
1777
  showPlaceType: (
1778
1778
  /*showPlaceType*/
@@ -1781,7 +1781,7 @@ function Ft(i, e) {
1781
1781
  selected: (
1782
1782
  /*selectedItemIndex*/
1783
1783
  e[15] === /*i*/
1784
- e[89]
1784
+ e[86]
1785
1785
  ),
1786
1786
  missingIconsCache: (
1787
1787
  /*missingIconsCache*/
@@ -1796,22 +1796,22 @@ function Ft(i, e) {
1796
1796
  key: i,
1797
1797
  first: null,
1798
1798
  c() {
1799
- t = ki(), fe(n.$$.fragment), this.first = t;
1799
+ t = Si(), ce(n.$$.fragment), this.first = t;
1800
1800
  },
1801
1801
  m(o, m) {
1802
- B(o, t, m), oe(n, o, m), r = !0;
1802
+ B(o, t, m), re(n, o, m), r = !0;
1803
1803
  },
1804
1804
  p(o, m) {
1805
1805
  e = o;
1806
1806
  const u = {};
1807
1807
  m[0] & /*listFeatures*/
1808
1808
  16384 && (u.feature = /*feature*/
1809
- e[87]), m[0] & /*showPlaceType*/
1809
+ e[84]), m[0] & /*showPlaceType*/
1810
1810
  1024 && (u.showPlaceType = /*showPlaceType*/
1811
1811
  e[10]), m[0] & /*selectedItemIndex, listFeatures*/
1812
1812
  49152 && (u.selected = /*selectedItemIndex*/
1813
1813
  e[15] === /*i*/
1814
- e[89]), m[0] & /*iconsBaseUrl*/
1814
+ e[86]), m[0] & /*iconsBaseUrl*/
1815
1815
  4096 && (u.iconsBaseUrl = /*iconsBaseUrl*/
1816
1816
  e[12]), n.$set(u);
1817
1817
  },
@@ -1822,50 +1822,50 @@ function Ft(i, e) {
1822
1822
  Q(n.$$.fragment, o), r = !1;
1823
1823
  },
1824
1824
  d(o) {
1825
- o && O(t), se(n, o);
1825
+ o && D(t), oe(n, o);
1826
1826
  }
1827
1827
  };
1828
1828
  }
1829
- function pn(i) {
1830
- let e, t, n, r, l, d, o, m, u, f, v, b, y, _, z, L, E, C, M, p, H, R = !1;
1831
- l = new sn({}), v = new Qt({});
1829
+ function yn(i) {
1830
+ let e, t, n, r, l, d, o, m, u, f, v, b, y, _, z, L, E, C, T, p, H, R = !1;
1831
+ l = new tn({}), v = new Zt({});
1832
1832
  let c = (
1833
1833
  /*abortController*/
1834
- i[19] && At()
1834
+ i[19] && Dt()
1835
1835
  ), g = (
1836
1836
  /*enableReverse*/
1837
- i[5] === "button" && Bt(i)
1837
+ i[5] === "button" && Ut(i)
1838
1838
  );
1839
- const k = (
1839
+ const M = (
1840
1840
  /*#slots*/
1841
- i[63].default
1842
- ), Z = Si(
1843
- k,
1841
+ i[61].default
1842
+ ), Z = _i(
1843
+ M,
1844
1844
  i,
1845
1845
  /*$$scope*/
1846
- i[62],
1846
+ i[60],
1847
1847
  null
1848
- ), ye = [Sn, En, wn, yn], q = [];
1849
- function Ne(h, I) {
1850
- var ne, me;
1848
+ ), Le = [_n, Ln, vn, bn], G = [];
1849
+ function Ne(h, U) {
1850
+ var ie, de;
1851
1851
  return (
1852
1852
  /*error*/
1853
1853
  h[18] ? 0 : (
1854
1854
  /*focusedDelayed*/
1855
1855
  h[16] ? (
1856
1856
  /*listFeatures*/
1857
- ((ne = h[14]) == null ? void 0 : ne.length) === 0 ? 2 : (
1857
+ ((ie = h[14]) == null ? void 0 : ie.length) === 0 ? 2 : (
1858
1858
  /*focusedDelayed*/
1859
1859
  h[16] && /*listFeatures*/
1860
- ((me = h[14]) != null && me.length) ? 3 : -1
1860
+ ((de = h[14]) != null && de.length) ? 3 : -1
1861
1861
  )
1862
1862
  ) : 1
1863
1863
  )
1864
1864
  );
1865
1865
  }
1866
- return ~(L = Ne(i)) && (E = q[L] = ye[L](i)), {
1866
+ return ~(L = Ne(i)) && (E = G[L] = Le[L](i)), {
1867
1867
  c() {
1868
- e = X(), t = W("form"), n = W("div"), r = W("button"), fe(l.$$.fragment), d = X(), o = W("input"), m = X(), u = W("div"), f = W("button"), fe(v.$$.fragment), b = X(), c && c.c(), y = X(), g && g.c(), _ = X(), Z && Z.c(), z = X(), E && E.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1868
+ e = X(), t = W("form"), n = W("div"), r = W("button"), ce(l.$$.fragment), d = X(), o = W("input"), m = X(), u = W("div"), f = W("button"), ce(v.$$.fragment), b = X(), c && c.c(), y = X(), g && g.c(), _ = X(), Z && Z.c(), z = X(), E && E.c(), a(r, "class", "search-button svelte-bz0zu3"), a(r, "type", "button"), a(
1869
1869
  o,
1870
1870
  "placeholder",
1871
1871
  /*placeholder*/
@@ -1880,15 +1880,15 @@ function pn(i) {
1880
1880
  "title",
1881
1881
  /*clearButtonTitle*/
1882
1882
  i[3]
1883
- ), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), ce(
1883
+ ), a(f, "class", "svelte-bz0zu3"), a(u, "class", "clear-button-container svelte-bz0zu3"), le(
1884
1884
  u,
1885
1885
  "displayable",
1886
1886
  /*searchValue*/
1887
1887
  i[1] !== ""
1888
- ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C = Et(
1888
+ ), a(n, "class", "input-group svelte-bz0zu3"), a(t, "tabindex", "0"), a(t, "class", C = _t(
1889
1889
  /*className*/
1890
1890
  i[2]
1891
- ) + " svelte-bz0zu3"), ce(
1891
+ ) + " svelte-bz0zu3"), le(
1892
1892
  t,
1893
1893
  "can-collapse",
1894
1894
  /*collapsed*/
@@ -1896,35 +1896,35 @@ function pn(i) {
1896
1896
  i[1] === ""
1897
1897
  );
1898
1898
  },
1899
- m(h, I) {
1900
- B(h, e, I), B(h, t, I), N(t, n), N(n, r), oe(l, r, null), N(n, d), N(n, o), i[65](o), St(
1899
+ m(h, U) {
1900
+ B(h, e, U), B(h, t, U), k(t, n), k(n, r), re(l, r, null), k(n, d), k(n, o), i[63](o), yt(
1901
1901
  o,
1902
1902
  /*searchValue*/
1903
1903
  i[1]
1904
- ), N(n, m), N(n, u), N(u, f), oe(v, f, null), N(u, b), c && c.m(u, null), N(n, y), g && g.m(n, null), N(n, _), Z && Z.m(n, null), N(t, z), ~L && q[L].m(t, null), M = !0, p || (H = [
1904
+ ), k(n, m), k(n, u), k(u, f), re(v, f, null), k(u, b), c && c.m(u, null), k(n, y), g && g.m(n, null), k(n, _), Z && Z.m(n, null), k(t, z), ~L && G[L].m(t, null), T = !0, p || (H = [
1905
1905
  V(
1906
1906
  r,
1907
1907
  "click",
1908
1908
  /*click_handler*/
1909
- i[64]
1909
+ i[62]
1910
1910
  ),
1911
1911
  V(
1912
1912
  o,
1913
1913
  "input",
1914
1914
  /*input_1_input_handler*/
1915
- i[66]
1915
+ i[64]
1916
1916
  ),
1917
1917
  V(
1918
1918
  o,
1919
1919
  "focus",
1920
1920
  /*focus_handler*/
1921
- i[67]
1921
+ i[65]
1922
1922
  ),
1923
1923
  V(
1924
1924
  o,
1925
1925
  "blur",
1926
1926
  /*blur_handler*/
1927
- i[68]
1927
+ i[66]
1928
1928
  ),
1929
1929
  V(
1930
1930
  o,
@@ -1936,87 +1936,87 @@ function pn(i) {
1936
1936
  o,
1937
1937
  "input",
1938
1938
  /*input_handler*/
1939
- i[69]
1939
+ i[67]
1940
1940
  ),
1941
1941
  V(
1942
1942
  f,
1943
1943
  "click",
1944
1944
  /*click_handler_1*/
1945
- i[70]
1945
+ i[68]
1946
1946
  ),
1947
- V(t, "submit", Mi(
1948
- /*handleSubmit*/
1947
+ V(t, "submit", pi(
1948
+ /*handleOnSubmit*/
1949
1949
  i[21]
1950
1950
  ))
1951
1951
  ], p = !0);
1952
1952
  },
1953
- p(h, I) {
1954
- (!M || I[0] & /*placeholder*/
1953
+ p(h, U) {
1954
+ (!T || U[0] & /*placeholder*/
1955
1955
  256) && a(
1956
1956
  o,
1957
1957
  "placeholder",
1958
1958
  /*placeholder*/
1959
1959
  h[8]
1960
- ), (!M || I[0] & /*placeholder*/
1960
+ ), (!T || U[0] & /*placeholder*/
1961
1961
  256) && a(
1962
1962
  o,
1963
1963
  "aria-label",
1964
1964
  /*placeholder*/
1965
1965
  h[8]
1966
- ), I[0] & /*searchValue*/
1966
+ ), U[0] & /*searchValue*/
1967
1967
  2 && o.value !== /*searchValue*/
1968
- h[1] && St(
1968
+ h[1] && yt(
1969
1969
  o,
1970
1970
  /*searchValue*/
1971
1971
  h[1]
1972
- ), (!M || I[0] & /*clearButtonTitle*/
1972
+ ), (!T || U[0] & /*clearButtonTitle*/
1973
1973
  8) && a(
1974
1974
  f,
1975
1975
  "title",
1976
1976
  /*clearButtonTitle*/
1977
1977
  h[3]
1978
1978
  ), /*abortController*/
1979
- h[19] ? c ? I[0] & /*abortController*/
1980
- 524288 && F(c, 1) : (c = At(), c.c(), F(c, 1), c.m(u, null)) : c && (Ze(), Q(c, 1, 1, () => {
1979
+ h[19] ? c ? U[0] & /*abortController*/
1980
+ 524288 && F(c, 1) : (c = Dt(), c.c(), F(c, 1), c.m(u, null)) : c && (He(), Q(c, 1, 1, () => {
1981
1981
  c = null;
1982
- }), qe()), (!M || I[0] & /*searchValue*/
1983
- 2) && ce(
1982
+ }), Pe()), (!T || U[0] & /*searchValue*/
1983
+ 2) && le(
1984
1984
  u,
1985
1985
  "displayable",
1986
1986
  /*searchValue*/
1987
1987
  h[1] !== ""
1988
1988
  ), /*enableReverse*/
1989
- h[5] === "button" ? g ? (g.p(h, I), I[0] & /*enableReverse*/
1990
- 32 && F(g, 1)) : (g = Bt(h), g.c(), F(g, 1), g.m(n, _)) : g && (Ze(), Q(g, 1, 1, () => {
1989
+ h[5] === "button" ? g ? (g.p(h, U), U[0] & /*enableReverse*/
1990
+ 32 && F(g, 1)) : (g = Ut(h), g.c(), F(g, 1), g.m(n, _)) : g && (He(), Q(g, 1, 1, () => {
1991
1991
  g = null;
1992
- }), qe()), Z && Z.p && (!M || I[2] & /*$$scope*/
1993
- 1) && Ti(
1992
+ }), Pe()), Z && Z.p && (!T || U[1] & /*$$scope*/
1993
+ 536870912) && wi(
1994
1994
  Z,
1995
- k,
1995
+ M,
1996
1996
  h,
1997
1997
  /*$$scope*/
1998
- h[62],
1999
- M ? pi(
2000
- k,
1998
+ h[60],
1999
+ T ? yi(
2000
+ M,
2001
2001
  /*$$scope*/
2002
- h[62],
2003
- I,
2002
+ h[60],
2003
+ U,
2004
2004
  null
2005
- ) : Ni(
2005
+ ) : Ei(
2006
2006
  /*$$scope*/
2007
- h[62]
2007
+ h[60]
2008
2008
  ),
2009
2009
  null
2010
2010
  );
2011
- let ne = L;
2012
- L = Ne(h), L === ne ? ~L && q[L].p(h, I) : (E && (Ze(), Q(q[ne], 1, 1, () => {
2013
- q[ne] = null;
2014
- }), qe()), ~L ? (E = q[L], E ? E.p(h, I) : (E = q[L] = ye[L](h), E.c()), F(E, 1), E.m(t, null)) : E = null), (!M || I[0] & /*className*/
2015
- 4 && C !== (C = Et(
2011
+ let ie = L;
2012
+ L = Ne(h), L === ie ? ~L && G[L].p(h, U) : (E && (He(), Q(G[ie], 1, 1, () => {
2013
+ G[ie] = null;
2014
+ }), Pe()), ~L ? (E = G[L], E ? E.p(h, U) : (E = G[L] = Le[L](h), E.c()), F(E, 1), E.m(t, null)) : E = null), (!T || U[0] & /*className*/
2015
+ 4 && C !== (C = _t(
2016
2016
  /*className*/
2017
2017
  h[2]
2018
- ) + " svelte-bz0zu3")) && a(t, "class", C), (!M || I[0] & /*className, collapsed, searchValue*/
2019
- 22) && ce(
2018
+ ) + " svelte-bz0zu3")) && a(t, "class", C), (!T || U[0] & /*className, collapsed, searchValue*/
2019
+ 22) && le(
2020
2020
  t,
2021
2021
  "can-collapse",
2022
2022
  /*collapsed*/
@@ -2025,17 +2025,17 @@ function pn(i) {
2025
2025
  );
2026
2026
  },
2027
2027
  i(h) {
2028
- M || (F(R), F(l.$$.fragment, h), F(v.$$.fragment, h), F(c), F(g), F(Z, h), F(E), M = !0);
2028
+ T || (F(R), F(l.$$.fragment, h), F(v.$$.fragment, h), F(c), F(g), F(Z, h), F(E), T = !0);
2029
2029
  },
2030
2030
  o(h) {
2031
- Q(R), Q(l.$$.fragment, h), Q(v.$$.fragment, h), Q(c), Q(g), Q(Z, h), Q(E), M = !1;
2031
+ Q(R), Q(l.$$.fragment, h), Q(v.$$.fragment, h), Q(c), Q(g), Q(Z, h), Q(E), T = !1;
2032
2032
  },
2033
2033
  d(h) {
2034
- h && (O(e), O(t)), se(l), i[65](null), se(v), c && c.d(), g && g.d(), Z && Z.d(h), ~L && q[L].d(), p = !1, ae(H);
2034
+ h && (D(e), D(t)), oe(l), i[63](null), oe(v), c && c.d(), g && g.d(), Z && Z.d(h), ~L && G[L].d(), p = !1, se(H);
2035
2035
  }
2036
2036
  };
2037
2037
  }
2038
- function Tn(i, e, t) {
2038
+ function wn(i, e, t) {
2039
2039
  let n, r, { $$slots: l = {}, $$scope: d } = e;
2040
2040
  const o = {
2041
2041
  continental_marine: 4,
@@ -2061,76 +2061,69 @@ function Tn(i, e, t) {
2061
2061
  "poi.restaurant": 18,
2062
2062
  "poi.aerodrome": 13
2063
2063
  };
2064
- let { class: m = void 0 } = e, { apiKey: u } = e, { bbox: f = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: b = !1 } = e, { collapsed: y = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: L = "never" } = e, { errorMessage: E = "Something went wrong…" } = e, { filter: C = () => !0 } = e, { flyTo: M = !0 } = e, { fuzzyMatch: p = !0 } = e, { language: H = void 0 } = e, { limit: R = void 0 } = e, { mapController: c = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: k = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: Z = "Search" } = e, { proximity: ye = [{ type: "server-geolocation" }] } = e, { reverseActive: q = L === "always" } = e, { reverseButtonTitle: Ne = "toggle reverse geocoding" } = e, { searchValue: h = "" } = e, { pickedResultStyle: I = "full-geometry" } = e, { showPlaceType: ne = "if-needed" } = e, { showResultsWhileTyping: me = !0 } = e, { autocompleteTimeout: Qe = void 0 } = e, { selectFirst: we = !0 } = e, { flyToSelected: Ke = !1 } = e, { markerOnSelected: Oe = !0 } = e, { types: ge = void 0 } = e, { exhaustiveReverseGeocoding: Ve = !1 } = e, { excludeTypes: Ie = !1 } = e, { zoom: Ue = o } = e, { apiUrl: xe = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Je = {} } = e, { iconsBaseUrl: mt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.9/icons/" } = e, { adjustUrlQuery: Xe = () => {
2064
+ let { class: m = void 0 } = e, { apiKey: u } = e, { bbox: f = void 0 } = e, { clearButtonTitle: v = "clear" } = e, { clearOnBlur: b = !1 } = e, { collapsed: y = !1 } = e, { country: _ = void 0 } = e, { debounceSearch: z = 200 } = e, { enableReverse: L = "never" } = e, { errorMessage: E = "Something went wrong…" } = e, { filter: C = () => !0 } = e, { flyTo: T = !0 } = e, { fuzzyMatch: p = !0 } = e, { language: H = void 0 } = e, { limit: R = void 0 } = e, { mapController: c = void 0 } = e, { minLength: g = 2 } = e, { noResultsMessage: M = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: Z = "Search" } = e, { proximity: Le = [{ type: "server-geolocation" }] } = e, { reverseActive: G = L === "always" } = e, { reverseButtonTitle: Ne = "toggle reverse geocoding" } = e, { searchValue: h = "" } = e, { pickedResultStyle: U = "full-geometry" } = e, { showPlaceType: ie = "if-needed" } = e, { showResultsWhileTyping: de = !0 } = e, { selectFirst: _e = !0 } = e, { flyToSelected: Ze = !1 } = e, { markerOnSelected: Re = !0 } = e, { types: fe = void 0 } = e, { exhaustiveReverseGeocoding: qe = !1 } = e, { excludeTypes: Oe = !1 } = e, { zoom: De = o } = e, { apiUrl: Ge = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: Qe = {} } = e, { iconsBaseUrl: ct = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.1/icons/" } = e, { adjustUrlQuery: Ke = () => {
2065
2065
  } } = e;
2066
- function xt() {
2067
- ee.focus();
2066
+ function Qt() {
2067
+ Y.focus();
2068
2068
  }
2069
- function Jt() {
2070
- ee.blur();
2069
+ function Kt() {
2070
+ Y.blur();
2071
2071
  }
2072
- function gt(s, U = !0, j = !1) {
2073
- t(1, h = s), U ? (t(15, D = -1), bt()) : (et(!j, j), setTimeout(() => {
2074
- ee.focus(), ee.select();
2072
+ function dt(s, I = !0, q = !1) {
2073
+ t(1, h = s), I ? (t(15, O = -1), mt()) : (Xe(!q, q), setTimeout(() => {
2074
+ Y.focus(), Y.select();
2075
2075
  }));
2076
2076
  }
2077
- function Xt() {
2078
- t(14, T = void 0), t(57, w = void 0), t(15, D = -1);
2077
+ function Vt() {
2078
+ t(14, N = void 0), t(56, w = void 0), t(15, O = -1);
2079
2079
  }
2080
- function Yt() {
2081
- t(56, P = []), t(57, w = void 0);
2082
- }
2083
- let Ee = !1, T, P, w, ht = "", ee, D = -1, te, Ae = [], he, le, Y, Be, Ye;
2084
- const $t = /* @__PURE__ */ new Set(), ue = Ri();
2085
- function ei() {
2086
- return !!Y;
2080
+ function xt() {
2081
+ t(55, P = []), t(56, w = void 0);
2087
2082
  }
2088
- zi(() => {
2083
+ let ye = !1, N, P, w, ft = "", Y, O = -1, $, Ue = [], me, we, Ie, Ve;
2084
+ const Jt = /* @__PURE__ */ new Set(), ae = Ti();
2085
+ Mi(() => {
2089
2086
  c && (c.setEventHandler(void 0), c.indicateReverse(!1), c.setSelectedMarker(-1), c.setFeatures(void 0, void 0, !1));
2090
2087
  });
2091
- function bt(s) {
2092
- if (le && (window.clearTimeout(le), le = void 0), Y) {
2093
- window.clearTimeout(Y), t(58, Y = void 0), ke(h, { appendSpace: !0 });
2094
- return;
2095
- }
2096
- if (D > -1 && T)
2097
- t(57, w = T[D]), t(1, h = w.place_type[0] === "reverse" ? w.place_name : w.place_name.replace(/,.*/, "")), t(18, te = void 0), t(56, P = void 0), t(15, D = -1);
2088
+ function mt(s) {
2089
+ if (we && (clearTimeout(we), we = void 0), O > -1 && N)
2090
+ t(56, w = N[O]), t(1, h = w.place_type[0] === "reverse" ? w.place_name : w.place_name.replace(/,.*/, "")), t(18, $ = void 0), t(55, P = void 0), t(15, O = -1);
2098
2091
  else if (h) {
2099
- const U = s || !$e(h);
2100
- ke(h, { exact: !0 }).then(() => {
2101
- t(56, P = T), t(57, w = void 0), U && ti();
2102
- }).catch((j) => t(18, te = j));
2092
+ const I = s || !xe(h);
2093
+ Je(h, { exact: !0 }).then(() => {
2094
+ t(55, P = N), t(56, w = void 0), I && Xt();
2095
+ }).catch((q) => t(18, $ = q));
2103
2096
  }
2104
2097
  }
2105
- function $e(s) {
2098
+ function xe(s) {
2106
2099
  try {
2107
- return _n(s, 6);
2100
+ return hn(s, 6);
2108
2101
  } catch {
2109
2102
  return !1;
2110
2103
  }
2111
2104
  }
2112
- async function ke(s, { byId: U = !1, exact: j = !1, appendSpace: $ = !1 } = {}) {
2113
- t(18, te = void 0), he == null || he.abort();
2105
+ async function Je(s, { byId: I = !1, exact: q = !1 } = {}) {
2106
+ t(18, $ = void 0), me == null || me.abort();
2114
2107
  const x = new AbortController();
2115
- t(19, he = x);
2108
+ t(19, me = x);
2116
2109
  try {
2117
- const S = $e(s), G = new URLSearchParams();
2118
- if (H !== void 0 && G.set("language", Array.isArray(H) ? H.join(",") : H ?? ""), ge && G.set("types", ge.join(",")), Ie && G.set("excludeTypes", String(Ie)), f && G.set("bbox", f.map((He) => He.toFixed(6)).join(",")), _ && G.set("country", Array.isArray(_) ? _.join(",") : _), !U && !S) {
2119
- const He = await ln(c, ye, x);
2120
- He && G.set("proximity", He), (j || !me) && G.set("autocomplete", "false"), G.set("fuzzyMatch", String(p));
2110
+ const S = xe(s), j = new URLSearchParams();
2111
+ if (H !== void 0 && j.set("language", Array.isArray(H) ? H.join(",") : H ?? ""), fe && j.set("types", fe.join(",")), Oe && j.set("excludeTypes", String(Oe)), f && j.set("bbox", f.map((Ae) => Ae.toFixed(6)).join(",")), _ && j.set("country", Array.isArray(_) ? _.join(",") : _), !I && !S) {
2112
+ const Ae = await rn(c, Le, x);
2113
+ Ae && j.set("proximity", Ae), (q || !de) && j.set("autocomplete", "false"), j.set("fuzzyMatch", String(p));
2121
2114
  }
2122
- R !== void 0 && (Ve || !S || (ge == null ? void 0 : ge.length) === 1) && G.set("limit", String(R)), G.set("key", u), Xe(G);
2123
- const Fe = xe + "/" + encodeURIComponent(S ? S.decimalLongitude + "," + S.decimalLatitude : s + ($ ? " " : "")) + ".json?" + G.toString();
2124
- if (Fe === ht) {
2125
- U ? (t(14, T = void 0), t(57, w = Ae[0])) : t(14, T = Ae);
2115
+ R !== void 0 && (qe || !S || (fe == null ? void 0 : fe.length) === 1) && j.set("limit", String(R)), j.set("key", u), Ke(j);
2116
+ const ee = Ge + "/" + encodeURIComponent(S ? S.decimalLongitude + "," + S.decimalLatitude : s) + ".json?" + j.toString();
2117
+ if (ee === ft) {
2118
+ I ? (t(14, N = void 0), t(56, w = Ue[0])) : t(14, N = Ue);
2126
2119
  return;
2127
2120
  }
2128
- ht = Fe;
2129
- const it = await fetch(Fe, { signal: x.signal, ...Je });
2130
- if (!it.ok)
2131
- throw new Error(await it.text());
2132
- const nt = await it.json();
2133
- ue("response", { url: Fe, featureCollection: nt }), U ? (t(14, T = void 0), t(57, w = nt.features[0]), Ae = [w]) : (t(14, T = nt.features.filter(C)), S && T.unshift({
2121
+ ft = ee;
2122
+ const $e = await fetch(ee, { signal: x.signal, ...Qe });
2123
+ if (!$e.ok)
2124
+ throw new Error(await $e.text());
2125
+ const et = await $e.json();
2126
+ ae("response", { url: ee, featureCollection: et }), I ? (t(14, N = void 0), t(56, w = et.features[0]), Ue = [w]) : (t(14, N = et.features.filter(C)), S && N.unshift({
2134
2127
  type: "Feature",
2135
2128
  properties: {},
2136
2129
  id: "reverse_" + S.decimalLongitude + "_" + S.decimalLatitude,
@@ -2148,175 +2141,170 @@ function Tn(i, e, t) {
2148
2141
  type: "Point",
2149
2142
  coordinates: [S.decimalLongitude, S.decimalLatitude]
2150
2143
  }
2151
- }), Ae = T, S && ee.focus());
2144
+ }), Ue = N, S && Y.focus());
2152
2145
  } catch (S) {
2153
2146
  if (S && typeof S == "object" && "name" in S && S.name === "AbortError")
2154
2147
  return;
2155
2148
  throw S;
2156
2149
  } finally {
2157
- x === he && t(19, he = void 0);
2150
+ x === me && t(19, me = void 0);
2158
2151
  }
2159
2152
  }
2160
- function ti() {
2161
- var $;
2162
- if (!(P != null && P.length) || !M)
2153
+ function Xt() {
2154
+ var x;
2155
+ if (!(P != null && P.length) || !T)
2163
2156
  return;
2164
- const s = [180, 90, -180, -90], U = !P.some((x) => !x.matching_text);
2165
- let j;
2166
- for (const x of P) {
2167
- const S = Me(x);
2168
- if (j = j === void 0 ? S : S === void 0 ? j : Math.max(j, S), U || !x.matching_text)
2169
- for (const G of [0, 1, 2, 3])
2170
- s[G] = Math[G < 2 ? "min" : "max"](s[G], (($ = x.bbox) == null ? void 0 : $[G]) ?? x.center[G % 2]);
2157
+ const s = [180, 90, -180, -90], I = !P.some((S) => !S.matching_text);
2158
+ let q;
2159
+ for (const S of P) {
2160
+ const j = ke(S);
2161
+ if (q = q === void 0 ? j : j === void 0 ? q : Math.max(q, j), I || !S.matching_text)
2162
+ for (const ee of [0, 1, 2, 3])
2163
+ s[ee] = Math[ee < 2 ? "min" : "max"](s[ee], ((x = S.bbox) == null ? void 0 : x[ee]) ?? S.center[ee % 2]);
2171
2164
  }
2172
- c && P.length > 0 && (w && s[0] === s[2] && s[1] === s[3] ? c.flyTo(w.center, Me(w)) : c.fitBounds(Mt(s), 50, j));
2165
+ c && P.length > 0 && (w && s[0] === s[2] && s[1] === s[3] ? c.flyTo(w.center, ke(w)) : c.fitBounds(Nt(s), 50, q));
2173
2166
  }
2174
- function Me(s) {
2175
- var j;
2167
+ function ke(s) {
2168
+ var q;
2176
2169
  if (!s.bbox || s.bbox[0] !== s.bbox[2] && s.bbox[1] !== s.bbox[3])
2177
2170
  return;
2178
- const U = s.id.replace(/\..*/, "");
2179
- return (Array.isArray((j = s.properties) == null ? void 0 : j.categories) ? s.properties.categories.reduce(
2180
- ($, x) => {
2181
- const S = Ue[U + "." + x];
2182
- return $ === void 0 ? S : S === void 0 ? $ : Math.max($, S);
2171
+ const I = s.id.replace(/\..*/, "");
2172
+ return (Array.isArray((q = s.properties) == null ? void 0 : q.categories) ? s.properties.categories.reduce(
2173
+ (x, S) => {
2174
+ const j = De[I + "." + S];
2175
+ return x === void 0 ? j : j === void 0 ? x : Math.max(x, j);
2183
2176
  },
2184
2177
  void 0
2185
- ) : void 0) ?? Ue[U];
2178
+ ) : void 0) ?? De[I];
2186
2179
  }
2187
- function ii(s) {
2188
- t(0, q = L === "always"), t(14, T = void 0), t(57, w = void 0), t(15, D = -1), gt(s[1].toFixed(6) + ", " + an(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2180
+ function Yt(s) {
2181
+ t(0, G = L === "always"), t(14, N = void 0), t(56, w = void 0), t(15, O = -1), dt(s[1].toFixed(6) + ", " + nn(s[0], [-180, 180], !0).toFixed(6), !1, !0);
2189
2182
  }
2190
- function ni(s) {
2191
- if (!T)
2183
+ function $t(s) {
2184
+ if (!N)
2192
2185
  return;
2193
- let U = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2194
- U && (D === (we ? 0 : -1) && U === -1 && t(15, D = T.length), t(15, D += U), D >= T.length && t(15, D = -1), D < 0 && we && t(15, D = 0), s.preventDefault());
2186
+ let I = s.key === "ArrowDown" ? 1 : s.key === "ArrowUp" ? -1 : 0;
2187
+ I && (O === (_e ? 0 : -1) && I === -1 && t(15, O = N.length), t(15, O += I), O >= N.length && t(15, O = -1), O < 0 && _e && t(15, O = 0), s.preventDefault());
2195
2188
  }
2196
- function et(s = !0, U = !1) {
2197
- if (t(18, te = void 0), le && (window.clearTimeout(le), le = void 0), Y && (window.clearTimeout(Y), t(58, Y = void 0)), !me && !U || h.length < g) {
2198
- t(14, T = void 0);
2199
- return;
2200
- }
2201
- const j = h;
2202
- le = window.setTimeout(
2203
- () => {
2204
- le = void 0, ke(j).catch(($) => t(18, te = $));
2205
- },
2206
- s ? z : 0
2207
- ), h.endsWith(" ") || t(58, Y = window.setTimeout(
2208
- () => {
2209
- t(58, Y = void 0), ke(j, { appendSpace: !0 }).catch(($) => t(18, te = $));
2210
- },
2211
- Qe
2212
- ));
2189
+ function Xe(s = !0, I = !1) {
2190
+ if (t(18, $ = void 0), de || I) {
2191
+ if (we && clearTimeout(we), h.length < g)
2192
+ return;
2193
+ const q = h;
2194
+ we = window.setTimeout(
2195
+ () => {
2196
+ Je(q).catch((x) => t(18, $ = x));
2197
+ },
2198
+ s ? z : 0
2199
+ );
2200
+ } else
2201
+ t(14, N = void 0), t(18, $ = void 0);
2213
2202
  }
2214
- function tt(s) {
2215
- t(57, w = s), t(1, h = s.place_name), t(15, D = -1);
2203
+ function Ye(s) {
2204
+ t(56, w = s), t(1, h = s.place_name), t(15, O = -1);
2216
2205
  }
2217
- const ri = () => ee.focus();
2218
- function oi(s) {
2219
- lt[s ? "unshift" : "push"](() => {
2220
- ee = s, t(17, ee);
2206
+ const ei = () => Y.focus();
2207
+ function ti(s) {
2208
+ ot[s ? "unshift" : "push"](() => {
2209
+ Y = s, t(17, Y);
2221
2210
  });
2222
2211
  }
2223
- function si() {
2224
- h = this.value, t(1, h), t(13, Ee), t(28, b);
2212
+ function ii() {
2213
+ h = this.value, t(1, h), t(13, ye), t(28, b);
2225
2214
  }
2226
- const ai = () => t(13, Ee = !0), li = () => t(13, Ee = !1), ui = () => et(), ci = () => {
2227
- t(1, h = ""), ee.focus();
2228
- }, di = () => t(0, q = !q), fi = () => t(18, te = void 0), mi = (s) => t(15, D = s), gi = (s) => tt(s), hi = () => {
2229
- we || t(15, D = -1);
2230
- }, bi = () => {
2215
+ const ni = () => t(13, ye = !0), ri = () => t(13, ye = !1), oi = () => Xe(), si = () => {
2216
+ t(1, h = ""), Y.focus();
2217
+ }, ai = () => t(0, G = !G), li = () => t(18, $ = void 0), ui = (s) => t(15, O = s), ci = (s) => Ye(s), di = () => {
2218
+ _e || t(15, O = -1);
2219
+ }, fi = () => {
2231
2220
  };
2232
2221
  return i.$$set = (s) => {
2233
- "class" in s && t(2, m = s.class), "apiKey" in s && t(26, u = s.apiKey), "bbox" in s && t(27, f = s.bbox), "clearButtonTitle" in s && t(3, v = s.clearButtonTitle), "clearOnBlur" in s && t(28, b = s.clearOnBlur), "collapsed" in s && t(4, y = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, z = s.debounceSearch), "enableReverse" in s && t(5, L = s.enableReverse), "errorMessage" in s && t(6, E = s.errorMessage), "filter" in s && t(31, C = s.filter), "flyTo" in s && t(32, M = s.flyTo), "fuzzyMatch" in s && t(33, p = s.fuzzyMatch), "language" in s && t(34, H = s.language), "limit" in s && t(35, R = s.limit), "mapController" in s && t(36, c = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, k = s.noResultsMessage), "placeholder" in s && t(8, Z = s.placeholder), "proximity" in s && t(38, ye = s.proximity), "reverseActive" in s && t(0, q = s.reverseActive), "reverseButtonTitle" in s && t(9, Ne = s.reverseButtonTitle), "searchValue" in s && t(1, h = s.searchValue), "pickedResultStyle" in s && t(39, I = s.pickedResultStyle), "showPlaceType" in s && t(10, ne = s.showPlaceType), "showResultsWhileTyping" in s && t(40, me = s.showResultsWhileTyping), "autocompleteTimeout" in s && t(41, Qe = s.autocompleteTimeout), "selectFirst" in s && t(11, we = s.selectFirst), "flyToSelected" in s && t(42, Ke = s.flyToSelected), "markerOnSelected" in s && t(43, Oe = s.markerOnSelected), "types" in s && t(44, ge = s.types), "exhaustiveReverseGeocoding" in s && t(45, Ve = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(46, Ie = s.excludeTypes), "zoom" in s && t(47, Ue = s.zoom), "apiUrl" in s && t(48, xe = s.apiUrl), "fetchParameters" in s && t(49, Je = s.fetchParameters), "iconsBaseUrl" in s && t(12, mt = s.iconsBaseUrl), "adjustUrlQuery" in s && t(50, Xe = s.adjustUrlQuery), "$$scope" in s && t(62, d = s.$$scope);
2222
+ "class" in s && t(2, m = s.class), "apiKey" in s && t(26, u = s.apiKey), "bbox" in s && t(27, f = s.bbox), "clearButtonTitle" in s && t(3, v = s.clearButtonTitle), "clearOnBlur" in s && t(28, b = s.clearOnBlur), "collapsed" in s && t(4, y = s.collapsed), "country" in s && t(29, _ = s.country), "debounceSearch" in s && t(30, z = s.debounceSearch), "enableReverse" in s && t(5, L = s.enableReverse), "errorMessage" in s && t(6, E = s.errorMessage), "filter" in s && t(31, C = s.filter), "flyTo" in s && t(32, T = s.flyTo), "fuzzyMatch" in s && t(33, p = s.fuzzyMatch), "language" in s && t(34, H = s.language), "limit" in s && t(35, R = s.limit), "mapController" in s && t(36, c = s.mapController), "minLength" in s && t(37, g = s.minLength), "noResultsMessage" in s && t(7, M = s.noResultsMessage), "placeholder" in s && t(8, Z = s.placeholder), "proximity" in s && t(38, Le = s.proximity), "reverseActive" in s && t(0, G = s.reverseActive), "reverseButtonTitle" in s && t(9, Ne = s.reverseButtonTitle), "searchValue" in s && t(1, h = s.searchValue), "pickedResultStyle" in s && t(39, U = s.pickedResultStyle), "showPlaceType" in s && t(10, ie = s.showPlaceType), "showResultsWhileTyping" in s && t(40, de = s.showResultsWhileTyping), "selectFirst" in s && t(11, _e = s.selectFirst), "flyToSelected" in s && t(41, Ze = s.flyToSelected), "markerOnSelected" in s && t(42, Re = s.markerOnSelected), "types" in s && t(43, fe = s.types), "exhaustiveReverseGeocoding" in s && t(44, qe = s.exhaustiveReverseGeocoding), "excludeTypes" in s && t(45, Oe = s.excludeTypes), "zoom" in s && t(46, De = s.zoom), "apiUrl" in s && t(47, Ge = s.apiUrl), "fetchParameters" in s && t(48, Qe = s.fetchParameters), "iconsBaseUrl" in s && t(12, ct = s.iconsBaseUrl), "adjustUrlQuery" in s && t(49, Ke = s.adjustUrlQuery), "$$scope" in s && t(60, d = s.$$scope);
2234
2223
  }, i.$$.update = () => {
2235
2224
  if (i.$$.dirty[0] & /*enableReverse*/
2236
- 32 && t(0, q = L === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2225
+ 32 && t(0, G = L === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2237
2226
  268443648 && setTimeout(() => {
2238
- t(16, Be = Ee), b && !Ee && t(1, h = "");
2227
+ t(16, Ie = ye), b && !ye && t(1, h = "");
2239
2228
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2240
2229
  16386 | i.$$.dirty[1] & /*minLength*/
2241
- 64 && h.length < g && (t(57, w = void 0), t(14, T = void 0), t(18, te = void 0), t(56, P = T)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2242
- 67109120 && I !== "marker-only" && w && !w.address && w.geometry.type === "Point" && w.place_type[0] !== "reverse" && ke(w.id, { byId: !0 }).catch((s) => t(18, te = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2243
- 335544354 && (c && w && w.id !== Ye && M && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? c.flyTo(w.center, Me(w)) : c.fitBounds(Mt(w.bbox), 50, Me(w)), t(14, T = void 0), t(56, P = void 0), t(15, D = -1)), t(59, Ye = w == null ? void 0 : w.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2244
- 18432 && we && T != null && T.length && (ei() || t(15, D = 0)), i.$$.dirty[0] & /*searchValue*/
2245
- 2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
2230
+ 64 && h.length < g && (t(56, w = void 0), t(14, N = void 0), t(18, $ = void 0), t(55, P = N)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2231
+ 33554688 && U !== "marker-only" && w && !w.address && w.geometry.type === "Point" && w.place_type[0] !== "reverse" && Je(w.id, { byId: !0 }).catch((s) => t(18, $ = s)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2232
+ 100663330 && (c && w && w.id !== Ve && T && (!w.bbox || w.bbox[0] === w.bbox[2] && w.bbox[1] === w.bbox[3] ? c.flyTo(w.center, ke(w)) : c.fitBounds(Nt(w.bbox), 50, ke(w)), t(14, N = void 0), t(55, P = void 0), t(15, O = -1)), t(57, Ve = w == null ? void 0 : w.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2233
+ 18432 && _e && N != null && N.length && t(15, O = 0), i.$$.dirty[0] & /*searchValue*/
2234
+ 2 && t(15, O = -1), i.$$.dirty[0] & /*listFeatures*/
2246
2235
  16384 | i.$$.dirty[1] & /*markedFeatures*/
2247
- 33554432 && P !== T && t(56, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2236
+ 16777216 && P !== N && t(55, P = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2248
2237
  81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2249
- 33554464 && c && c.setEventHandler((s) => {
2238
+ 16777248 && c && c.setEventHandler((s) => {
2250
2239
  switch (s.type) {
2251
2240
  case "mapClick":
2252
- q && ii(s.coordinates);
2241
+ G && Yt(s.coordinates);
2253
2242
  break;
2254
2243
  case "markerClick":
2255
2244
  {
2256
- const U = T == null ? void 0 : T.find((j) => j.id === s.id);
2257
- U && tt(U);
2245
+ const I = N == null ? void 0 : N.find((q) => q.id === s.id);
2246
+ I && Ye(I);
2258
2247
  }
2259
2248
  break;
2260
2249
  case "markerMouseEnter":
2261
- P && t(15, D = Be ? (T == null ? void 0 : T.findIndex((U) => U.id === s.id)) ?? -1 : -1);
2250
+ P && t(15, O = Ie ? (N == null ? void 0 : N.findIndex((I) => I.id === s.id)) ?? -1 : -1);
2262
2251
  break;
2263
2252
  case "markerMouseLeave":
2264
- P && t(15, D = -1);
2253
+ P && t(15, O = -1);
2265
2254
  break;
2266
2255
  }
2267
2256
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2268
- 49152 && t(60, r = T == null ? void 0 : T[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2269
- 536872994 && c && r && M && Ke && c.flyTo(r.center, Me(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2270
- 256 && t(61, n = I === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
2271
- 1073745952 && (Oe || c == null || c.setFeatures(void 0, void 0, n)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
2272
- 1644171296 && c && Oe && !P && (c.setFeatures(r ? [r] : void 0, void 0, n), c.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
2273
- 1174405152 && c && c.setFeatures(P, w, n), i.$$.dirty[0] & /*selectedItemIndex*/
2257
+ 49152 && t(58, r = N == null ? void 0 : N[O]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2258
+ 134218786 && c && r && T && Ze && c.flyTo(r.center, ke(r)), i.$$.dirty[1] & /*pickedResultStyle*/
2259
+ 256 && t(59, n = U === "full-geometry-including-polygon-center-marker"), i.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
2260
+ 268437536 && (Re || c == null || c.setFeatures(void 0, void 0, n)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
2261
+ 419432480 && c && Re && !P && (c.setFeatures(r ? [r] : void 0, void 0, n), c.setSelectedMarker(r ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
2262
+ 318767136 && c && c.setFeatures(P, w, n), i.$$.dirty[0] & /*selectedItemIndex*/
2274
2263
  32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2275
- 33554464 && P && c && c.setSelectedMarker(D), i.$$.dirty[1] & /*selected, autocompleteTimeoutRef*/
2276
- 671088640 && r && (window.clearTimeout(Y), t(58, Y = void 0)), i.$$.dirty[0] & /*searchValue*/
2264
+ 16777248 && P && c && c.setSelectedMarker(O), i.$$.dirty[0] & /*searchValue*/
2277
2265
  2 | i.$$.dirty[1] & /*mapController*/
2278
2266
  32 && c) {
2279
- const s = $e(h);
2267
+ const s = xe(h);
2280
2268
  c.setReverseMarker(s ? [s.decimalLongitude, s.decimalLatitude] : void 0);
2281
2269
  }
2282
2270
  i.$$.dirty[1] & /*selected*/
2283
- 536870912 && ue("select", { feature: r }), i.$$.dirty[1] & /*picked*/
2284
- 67108864 && ue("pick", { feature: w }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2285
- 81920 && ue("optionsvisibilitychange", {
2286
- optionsVisible: Be && !!T
2271
+ 134217728 && ae("select", { feature: r }), i.$$.dirty[1] & /*picked*/
2272
+ 33554432 && ae("pick", { feature: w }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2273
+ 81920 && ae("optionsvisibilitychange", {
2274
+ optionsVisible: Ie && !!N
2287
2275
  }), i.$$.dirty[0] & /*listFeatures*/
2288
- 16384 && ue("featureslisted", { features: T }), i.$$.dirty[1] & /*markedFeatures*/
2289
- 33554432 && ue("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
2290
- 1 && ue("reversetoggle", { reverse: q }), i.$$.dirty[0] & /*searchValue*/
2291
- 2 && ue("querychange", { query: h }), i.$$.dirty[0] & /*reverseActive*/
2276
+ 16384 && ae("featureslisted", { features: N }), i.$$.dirty[1] & /*markedFeatures*/
2277
+ 16777216 && ae("featuresmarked", { features: P }), i.$$.dirty[0] & /*reverseActive*/
2278
+ 1 && ae("reversetoggle", { reverse: G }), i.$$.dirty[0] & /*searchValue*/
2279
+ 2 && ae("querychange", { query: h }), i.$$.dirty[0] & /*reverseActive*/
2292
2280
  1 | i.$$.dirty[1] & /*mapController*/
2293
- 32 && c && c.indicateReverse(q);
2281
+ 32 && c && c.indicateReverse(G);
2294
2282
  }, [
2295
- q,
2283
+ G,
2296
2284
  h,
2297
2285
  m,
2298
2286
  v,
2299
2287
  y,
2300
2288
  L,
2301
2289
  E,
2302
- k,
2290
+ M,
2303
2291
  Z,
2304
2292
  Ne,
2305
- ne,
2306
- we,
2293
+ ie,
2294
+ _e,
2295
+ ct,
2296
+ ye,
2297
+ N,
2298
+ O,
2299
+ Ie,
2300
+ Y,
2301
+ $,
2302
+ me,
2303
+ Jt,
2307
2304
  mt,
2308
- Ee,
2309
- T,
2310
- D,
2311
- Be,
2312
- ee,
2313
- te,
2314
- he,
2315
2305
  $t,
2316
- bt,
2317
- ni,
2318
- et,
2319
- tt,
2306
+ Xe,
2307
+ Ye,
2320
2308
  o,
2321
2309
  u,
2322
2310
  f,
@@ -2324,38 +2312,40 @@ function Tn(i, e, t) {
2324
2312
  _,
2325
2313
  z,
2326
2314
  C,
2327
- M,
2315
+ T,
2328
2316
  p,
2329
2317
  H,
2330
2318
  R,
2331
2319
  c,
2332
2320
  g,
2333
- ye,
2334
- I,
2335
- me,
2321
+ Le,
2322
+ U,
2323
+ de,
2324
+ Ze,
2325
+ Re,
2326
+ fe,
2327
+ qe,
2328
+ Oe,
2329
+ De,
2330
+ Ge,
2336
2331
  Qe,
2337
2332
  Ke,
2338
- Oe,
2339
- ge,
2340
- Ve,
2341
- Ie,
2342
- Ue,
2343
- xe,
2344
- Je,
2345
- Xe,
2333
+ Qt,
2334
+ Kt,
2335
+ dt,
2336
+ Vt,
2346
2337
  xt,
2347
- Jt,
2348
- gt,
2349
- Xt,
2350
- Yt,
2351
2338
  P,
2352
2339
  w,
2353
- Y,
2354
- Ye,
2340
+ Ve,
2355
2341
  r,
2356
2342
  n,
2357
2343
  d,
2358
2344
  l,
2345
+ ei,
2346
+ ti,
2347
+ ii,
2348
+ ni,
2359
2349
  ri,
2360
2350
  oi,
2361
2351
  si,
@@ -2364,21 +2354,17 @@ function Tn(i, e, t) {
2364
2354
  ui,
2365
2355
  ci,
2366
2356
  di,
2367
- fi,
2368
- mi,
2369
- gi,
2370
- hi,
2371
- bi
2357
+ fi
2372
2358
  ];
2373
2359
  }
2374
- let Nn = class extends _e {
2360
+ let En = class extends ve {
2375
2361
  constructor(e) {
2376
- super(), Le(
2362
+ super(), be(
2377
2363
  this,
2378
2364
  e,
2379
- Tn,
2380
- pn,
2381
- ve,
2365
+ wn,
2366
+ yn,
2367
+ he,
2382
2368
  {
2383
2369
  ZOOM_DEFAULTS: 25,
2384
2370
  class: 2,
@@ -2407,23 +2393,22 @@ let Nn = class extends _e {
2407
2393
  pickedResultStyle: 39,
2408
2394
  showPlaceType: 10,
2409
2395
  showResultsWhileTyping: 40,
2410
- autocompleteTimeout: 41,
2411
2396
  selectFirst: 11,
2412
- flyToSelected: 42,
2413
- markerOnSelected: 43,
2414
- types: 44,
2415
- exhaustiveReverseGeocoding: 45,
2416
- excludeTypes: 46,
2417
- zoom: 47,
2418
- apiUrl: 48,
2419
- fetchParameters: 49,
2397
+ flyToSelected: 41,
2398
+ markerOnSelected: 42,
2399
+ types: 43,
2400
+ exhaustiveReverseGeocoding: 44,
2401
+ excludeTypes: 45,
2402
+ zoom: 46,
2403
+ apiUrl: 47,
2404
+ fetchParameters: 48,
2420
2405
  iconsBaseUrl: 12,
2421
- adjustUrlQuery: 50,
2422
- focus: 51,
2423
- blur: 52,
2424
- setQuery: 53,
2425
- clearList: 54,
2426
- clearMap: 55
2406
+ adjustUrlQuery: 49,
2407
+ focus: 50,
2408
+ blur: 51,
2409
+ setQuery: 52,
2410
+ clearList: 53,
2411
+ clearMap: 54
2427
2412
  },
2428
2413
  null,
2429
2414
  [-1, -1, -1]
@@ -2433,31 +2418,31 @@ let Nn = class extends _e {
2433
2418
  return this.$$.ctx[25];
2434
2419
  }
2435
2420
  get focus() {
2436
- return this.$$.ctx[51];
2421
+ return this.$$.ctx[50];
2437
2422
  }
2438
2423
  get blur() {
2439
- return this.$$.ctx[52];
2424
+ return this.$$.ctx[51];
2440
2425
  }
2441
2426
  get setQuery() {
2442
- return this.$$.ctx[53];
2427
+ return this.$$.ctx[52];
2443
2428
  }
2444
2429
  get clearList() {
2445
- return this.$$.ctx[54];
2430
+ return this.$$.ctx[53];
2446
2431
  }
2447
2432
  get clearMap() {
2448
- return this.$$.ctx[55];
2433
+ return this.$$.ctx[54];
2449
2434
  }
2450
2435
  };
2451
- const kn = new FinalizationRegistry((i) => {
2436
+ const Sn = new FinalizationRegistry((i) => {
2452
2437
  i.$destroy();
2453
2438
  });
2454
- var J, Ge, Vt;
2455
- const ft = class ft extends EventTarget {
2439
+ var J, je, Gt;
2440
+ const ut = class ut extends EventTarget {
2456
2441
  constructor({ target: t, ...n }) {
2457
2442
  super();
2458
- st(this, Ge);
2459
- st(this, J);
2460
- Lt(this, J, new Nn({
2443
+ nt(this, je);
2444
+ nt(this, J);
2445
+ ht(this, J, new En({
2461
2446
  target: t,
2462
2447
  props: n
2463
2448
  }));
@@ -2471,38 +2456,38 @@ const ft = class ft extends EventTarget {
2471
2456
  "reversetoggle",
2472
2457
  "querychange"
2473
2458
  ])
2474
- ie(this, J).$on(r, (l) => {
2475
- _t(this, Ge, Vt).call(this, r, l.detail);
2459
+ te(this, J).$on(r, (l) => {
2460
+ bt(this, je, Gt).call(this, r, l.detail);
2476
2461
  });
2477
- ie(this, J).$on("select", (r) => {
2462
+ te(this, J).$on("select", (r) => {
2478
2463
  const l = new CustomEvent(r.type, {
2479
2464
  detail: r.detail
2480
2465
  });
2481
2466
  this.dispatchEvent(l);
2482
- }), kn.register(this, ie(this, J));
2467
+ }), Sn.register(this, te(this, J));
2483
2468
  }
2484
2469
  setOptions(t) {
2485
- ie(this, J).$set(t);
2470
+ te(this, J).$set(t);
2486
2471
  }
2487
2472
  setQuery(t, n = !0) {
2488
2473
  var r;
2489
- (r = ie(this, J)) == null || r.setQuery(t, n);
2474
+ (r = te(this, J)) == null || r.setQuery(t, n);
2490
2475
  }
2491
2476
  clearMap() {
2492
2477
  var t;
2493
- (t = ie(this, J)) == null || t.clearMap();
2478
+ (t = te(this, J)) == null || t.clearMap();
2494
2479
  }
2495
2480
  clearList() {
2496
2481
  var t;
2497
- (t = ie(this, J)) == null || t.clearList();
2482
+ (t = te(this, J)) == null || t.clearList();
2498
2483
  }
2499
2484
  focus() {
2500
2485
  var t;
2501
- (t = ie(this, J)) == null || t.focus();
2486
+ (t = te(this, J)) == null || t.focus();
2502
2487
  }
2503
2488
  blur() {
2504
2489
  var t;
2505
- (t = ie(this, J)) == null || t.blur();
2490
+ (t = te(this, J)) == null || t.blur();
2506
2491
  }
2507
2492
  addEventListener(t, n, r) {
2508
2493
  super.addEventListener(t, n, r);
@@ -2514,16 +2499,16 @@ const ft = class ft extends EventTarget {
2514
2499
  return super.dispatchEvent(t);
2515
2500
  }
2516
2501
  };
2517
- J = new WeakMap(), Ge = new WeakSet(), Vt = function(t, n) {
2518
- return yt(ft.prototype, this, "dispatchEvent").call(
2502
+ J = new WeakMap(), je = new WeakSet(), Gt = function(t, n) {
2503
+ return vt(ut.prototype, this, "dispatchEvent").call(
2519
2504
  this,
2520
2505
  new CustomEvent(t, {
2521
2506
  detail: n
2522
2507
  })
2523
2508
  );
2524
2509
  };
2525
- let Ht = ft;
2510
+ let At = ut;
2526
2511
  export {
2527
- Ht as GeocodingControl
2512
+ At as GeocodingControl
2528
2513
  };
2529
2514
  //# sourceMappingURL=vanilla.js.map