@maptiler/geocoding-control 2.0.0-rc.1 → 2.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/leaflet.js CHANGED
@@ -1,52 +1,52 @@
1
- var yn = Object.defineProperty;
2
- var Vt = (i) => {
1
+ var gn = Object.defineProperty;
2
+ var Ht = (i) => {
3
3
  throw TypeError(i);
4
4
  };
5
- var pn = (i, e, t) => e in i ? yn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
- var xt = (i, e, t) => pn(i, typeof e != "symbol" ? e + "" : e, t), Yt = (i, e, t) => e.has(i) || Vt("Cannot " + t);
7
- var le = (i, e, t) => (Yt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Mt = (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), st = (i, e, t, n) => (Yt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
5
+ var yn = (i, e, t) => e in i ? gn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
6
+ var St = (i, e, t) => yn(i, typeof e != "symbol" ? e + "" : e, t), Vt = (i, e, t) => e.has(i) || Ht("Cannot " + t);
7
+ var le = (i, e, t) => (Vt(i, e, "read from private field"), t ? t.call(i) : e.get(i)), xt = (i, e, t) => e.has(i) ? Ht("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), ot = (i, e, t, n) => (Vt(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t);
8
8
  import * as ue from "leaflet";
9
- function A() {
9
+ function W() {
10
10
  }
11
- function bn(i, e) {
11
+ function pn(i, e) {
12
12
  for (const t in e) i[t] = e[t];
13
13
  return (
14
14
  /** @type {T & S} */
15
15
  i
16
16
  );
17
17
  }
18
- function Pi(i) {
18
+ function Ti(i) {
19
19
  return i();
20
20
  }
21
- function Xt() {
21
+ function Yt() {
22
22
  return /* @__PURE__ */ Object.create(null);
23
23
  }
24
24
  function ye(i) {
25
- i.forEach(Pi);
25
+ i.forEach(Ti);
26
26
  }
27
- function Ri(i) {
27
+ function Pi(i) {
28
28
  return typeof i == "function";
29
29
  }
30
30
  function Me(i, e) {
31
31
  return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function";
32
32
  }
33
- let lt;
33
+ let st;
34
34
  function X(i, e) {
35
- return i === e ? !0 : (lt || (lt = document.createElement("a")), lt.href = e, i === lt.href);
35
+ return i === e ? !0 : (st || (st = document.createElement("a")), st.href = e, i === st.href);
36
36
  }
37
37
  function vn(i) {
38
38
  return Object.keys(i).length === 0;
39
39
  }
40
- function wn(i, e, t, n) {
40
+ function bn(i, e, t, n) {
41
41
  if (i) {
42
- const r = Ii(i, e, t, n);
42
+ const r = Ri(i, e, t, n);
43
43
  return i[0](r);
44
44
  }
45
45
  }
46
- function Ii(i, e, t, n) {
47
- return i[1] && n ? bn(t.ctx.slice(), i[1](n(e))) : t.ctx;
46
+ function Ri(i, e, t, n) {
47
+ return i[1] && n ? pn(t.ctx.slice(), i[1](n(e))) : t.ctx;
48
48
  }
49
- function _n(i, e, t, n) {
49
+ function wn(i, e, t, n) {
50
50
  if (i[2] && n) {
51
51
  const r = i[2](n(t));
52
52
  if (e.dirty === void 0)
@@ -61,13 +61,13 @@ function _n(i, e, t, n) {
61
61
  }
62
62
  return e.dirty;
63
63
  }
64
- function En(i, e, t, n, r, o) {
64
+ function _n(i, e, t, n, r, o) {
65
65
  if (r) {
66
- const u = Ii(e, t, n, o);
66
+ const u = Ri(e, t, n, o);
67
67
  i.p(u, r);
68
68
  }
69
69
  }
70
- function Ln(i) {
70
+ function En(i) {
71
71
  if (i.ctx.length > 32) {
72
72
  const e = [], t = i.ctx.length / 32;
73
73
  for (let n = 0; n < t; n++)
@@ -76,19 +76,19 @@ function Ln(i) {
76
76
  }
77
77
  return -1;
78
78
  }
79
- function Kt(i) {
79
+ function Xt(i) {
80
80
  return i ?? "";
81
81
  }
82
82
  function P(i, e) {
83
83
  i.appendChild(e);
84
84
  }
85
- function F(i, e, t) {
85
+ function U(i, e, t) {
86
86
  i.insertBefore(e, t || null);
87
87
  }
88
88
  function z(i) {
89
89
  i.parentNode && i.parentNode.removeChild(i);
90
90
  }
91
- function W(i) {
91
+ function A(i) {
92
92
  return document.createElement(i);
93
93
  }
94
94
  function ce(i) {
@@ -100,13 +100,13 @@ function Le(i) {
100
100
  function te() {
101
101
  return Le(" ");
102
102
  }
103
- function Sn() {
103
+ function Ln() {
104
104
  return Le("");
105
105
  }
106
106
  function J(i, e, t, n) {
107
107
  return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n);
108
108
  }
109
- function xn(i) {
109
+ function Sn(i) {
110
110
  return function(e) {
111
111
  return e.preventDefault(), i.call(this, e);
112
112
  };
@@ -114,39 +114,39 @@ function xn(i) {
114
114
  function p(i, e, t) {
115
115
  t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t);
116
116
  }
117
- function Mn(i) {
117
+ function xn(i) {
118
118
  return Array.from(i.childNodes);
119
119
  }
120
- function Qe(i, e) {
120
+ function Ze(i, e) {
121
121
  e = "" + e, i.data !== e && (i.data = /** @type {string} */
122
122
  e);
123
123
  }
124
- function Jt(i, e) {
124
+ function Kt(i, e) {
125
125
  i.value = e ?? "";
126
126
  }
127
127
  function se(i, e, t) {
128
128
  i.classList.toggle(e, !!t);
129
129
  }
130
- function Cn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
130
+ function Mn(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) {
131
131
  return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n });
132
132
  }
133
- let He;
133
+ let Qe;
134
134
  function qe(i) {
135
- He = i;
135
+ Qe = i;
136
136
  }
137
- function Oi() {
138
- if (!He) throw new Error("Function called outside component initialization");
139
- return He;
137
+ function Ii() {
138
+ if (!Qe) throw new Error("Function called outside component initialization");
139
+ return Qe;
140
140
  }
141
- function kn(i) {
142
- Oi().$$.on_destroy.push(i);
141
+ function Cn(i) {
142
+ Ii().$$.on_destroy.push(i);
143
143
  }
144
- function Nn() {
145
- const i = Oi();
144
+ function kn() {
145
+ const i = Ii();
146
146
  return (e, t, { cancelable: n = !1 } = {}) => {
147
147
  const r = i.$$.callbacks[e];
148
148
  if (r) {
149
- const o = Cn(
149
+ const o = Mn(
150
150
  /** @type {string} */
151
151
  e,
152
152
  t,
@@ -159,60 +159,60 @@ function Nn() {
159
159
  return !0;
160
160
  };
161
161
  }
162
- function $t(i, e) {
162
+ function Jt(i, e) {
163
163
  const t = i.$$.callbacks[e.type];
164
164
  t && t.slice().forEach((n) => n.call(this, e));
165
165
  }
166
- const Be = [], Tt = [];
167
- let De = [];
168
- const ei = [], Tn = /* @__PURE__ */ Promise.resolve();
169
- let Pt = !1;
170
- function Pn() {
171
- Pt || (Pt = !0, Tn.then(Wi));
166
+ const ze = [], Nt = [];
167
+ let Be = [];
168
+ const $t = [], Nn = /* @__PURE__ */ Promise.resolve();
169
+ let Tt = !1;
170
+ function Tn() {
171
+ Tt || (Tt = !0, Nn.then(Oi));
172
172
  }
173
- function Rt(i) {
174
- De.push(i);
173
+ function Pt(i) {
174
+ Be.push(i);
175
175
  }
176
- const Ct = /* @__PURE__ */ new Set();
176
+ const Mt = /* @__PURE__ */ new Set();
177
177
  let Ae = 0;
178
- function Wi() {
178
+ function Oi() {
179
179
  if (Ae !== 0)
180
180
  return;
181
- const i = He;
181
+ const i = Qe;
182
182
  do {
183
183
  try {
184
- for (; Ae < Be.length; ) {
185
- const e = Be[Ae];
186
- Ae++, qe(e), Rn(e.$$);
184
+ for (; Ae < ze.length; ) {
185
+ const e = ze[Ae];
186
+ Ae++, qe(e), Pn(e.$$);
187
187
  }
188
188
  } catch (e) {
189
- throw Be.length = 0, Ae = 0, e;
189
+ throw ze.length = 0, Ae = 0, e;
190
190
  }
191
- for (qe(null), Be.length = 0, Ae = 0; Tt.length; ) Tt.pop()();
192
- for (let e = 0; e < De.length; e += 1) {
193
- const t = De[e];
194
- Ct.has(t) || (Ct.add(t), t());
191
+ for (qe(null), ze.length = 0, Ae = 0; Nt.length; ) Nt.pop()();
192
+ for (let e = 0; e < Be.length; e += 1) {
193
+ const t = Be[e];
194
+ Mt.has(t) || (Mt.add(t), t());
195
195
  }
196
- De.length = 0;
197
- } while (Be.length);
198
- for (; ei.length; )
199
- ei.pop()();
200
- Pt = !1, Ct.clear(), qe(i);
196
+ Be.length = 0;
197
+ } while (ze.length);
198
+ for (; $t.length; )
199
+ $t.pop()();
200
+ Tt = !1, Mt.clear(), qe(i);
201
201
  }
202
- function Rn(i) {
202
+ function Pn(i) {
203
203
  if (i.fragment !== null) {
204
204
  i.update(), ye(i.before_update);
205
205
  const e = i.dirty;
206
- i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(Rt);
206
+ i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(Pt);
207
207
  }
208
208
  }
209
- function In(i) {
209
+ function Rn(i) {
210
210
  const e = [], t = [];
211
- De.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), De = e;
211
+ Be.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), Be = e;
212
212
  }
213
- const ut = /* @__PURE__ */ new Set();
213
+ const lt = /* @__PURE__ */ new Set();
214
214
  let Pe;
215
- function at() {
215
+ function ut() {
216
216
  Pe = {
217
217
  r: 0,
218
218
  c: [],
@@ -220,81 +220,81 @@ function at() {
220
220
  // parent group
221
221
  };
222
222
  }
223
- function ct() {
223
+ function at() {
224
224
  Pe.r || ye(Pe.c), Pe = Pe.p;
225
225
  }
226
- function Z(i, e) {
227
- i && i.i && (ut.delete(i), i.i(e));
226
+ function q(i, e) {
227
+ i && i.i && (lt.delete(i), i.i(e));
228
228
  }
229
229
  function V(i, e, t, n) {
230
230
  if (i && i.o) {
231
- if (ut.has(i)) return;
232
- ut.add(i), Pe.c.push(() => {
233
- ut.delete(i), n && (t && i.d(1), n());
231
+ if (lt.has(i)) return;
232
+ lt.add(i), Pe.c.push(() => {
233
+ lt.delete(i), n && (t && i.d(1), n());
234
234
  }), i.o(e);
235
235
  } else n && n();
236
236
  }
237
- function ti(i) {
237
+ function ei(i) {
238
238
  return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i);
239
239
  }
240
- function On(i, e) {
240
+ function In(i, e) {
241
241
  V(i, 1, 1, () => {
242
242
  e.delete(i.key);
243
243
  });
244
244
  }
245
- function Wn(i, e, t, n, r, o, u, s, c, l, d, a) {
245
+ function On(i, e, t, n, r, o, u, s, c, l, d, a) {
246
246
  let f = i.length, h = o.length, g = f;
247
247
  const y = {};
248
248
  for (; g--; ) y[i[g].key] = g;
249
- const v = [], b = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), L = [];
249
+ const b = [], v = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), L = [];
250
250
  for (g = h; g--; ) {
251
251
  const S = a(r, o, g), w = t(S);
252
252
  let k = u.get(w);
253
- k ? L.push(() => k.p(S, e)) : (k = l(w, S), k.c()), b.set(w, v[g] = k), w in y && E.set(w, Math.abs(g - y[w]));
253
+ k ? L.push(() => k.p(S, e)) : (k = l(w, S), k.c()), v.set(w, b[g] = k), w in y && E.set(w, Math.abs(g - y[w]));
254
254
  }
255
255
  const _ = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
256
256
  function x(S) {
257
- Z(S, 1), S.m(s, d), u.set(S.key, S), d = S.first, h--;
257
+ q(S, 1), S.m(s, d), u.set(S.key, S), d = S.first, h--;
258
258
  }
259
259
  for (; f && h; ) {
260
- const S = v[h - 1], w = i[f - 1], k = S.key, I = w.key;
261
- S === w ? (d = S.first, f--, h--) : b.has(I) ? !u.has(k) || _.has(k) ? x(S) : C.has(I) ? f-- : E.get(k) > E.get(I) ? (C.add(k), x(S)) : (_.add(I), f--) : (c(w, u), f--);
260
+ const S = b[h - 1], w = i[f - 1], k = S.key, I = w.key;
261
+ S === w ? (d = S.first, f--, h--) : v.has(I) ? !u.has(k) || _.has(k) ? x(S) : C.has(I) ? f-- : E.get(k) > E.get(I) ? (C.add(k), x(S)) : (_.add(I), f--) : (c(w, u), f--);
262
262
  }
263
263
  for (; f--; ) {
264
264
  const S = i[f];
265
- b.has(S.key) || c(S, u);
265
+ v.has(S.key) || c(S, u);
266
266
  }
267
- for (; h; ) x(v[h - 1]);
268
- return ye(L), v;
267
+ for (; h; ) x(b[h - 1]);
268
+ return ye(L), b;
269
269
  }
270
270
  function Se(i) {
271
271
  i && i.c();
272
272
  }
273
273
  function me(i, e, t) {
274
274
  const { fragment: n, after_update: r } = i.$$;
275
- n && n.m(e, t), Rt(() => {
276
- const o = i.$$.on_mount.map(Pi).filter(Ri);
275
+ n && n.m(e, t), Pt(() => {
276
+ const o = i.$$.on_mount.map(Ti).filter(Pi);
277
277
  i.$$.on_destroy ? i.$$.on_destroy.push(...o) : ye(o), i.$$.on_mount = [];
278
- }), r.forEach(Rt);
278
+ }), r.forEach(Pt);
279
279
  }
280
280
  function ge(i, e) {
281
281
  const t = i.$$;
282
- t.fragment !== null && (In(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
282
+ t.fragment !== null && (Rn(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
283
283
  }
284
284
  function An(i, e) {
285
- i.$$.dirty[0] === -1 && (Be.push(i), Pn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
285
+ i.$$.dirty[0] === -1 && (ze.push(i), Tn(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31;
286
286
  }
287
287
  function Ce(i, e, t, n, r, o, u = null, s = [-1]) {
288
- const c = He;
288
+ const c = Qe;
289
289
  qe(i);
290
290
  const l = i.$$ = {
291
291
  fragment: null,
292
292
  ctx: [],
293
293
  // state
294
294
  props: o,
295
- update: A,
295
+ update: W,
296
296
  not_equal: r,
297
- bound: Xt(),
297
+ bound: Yt(),
298
298
  // lifecycle
299
299
  on_mount: [],
300
300
  on_destroy: [],
@@ -303,7 +303,7 @@ function Ce(i, e, t, n, r, o, u = null, s = [-1]) {
303
303
  after_update: [],
304
304
  context: new Map(e.context || (c ? c.$$.context : [])),
305
305
  // everything else
306
- callbacks: Xt(),
306
+ callbacks: Yt(),
307
307
  dirty: s,
308
308
  skip_bound: !1,
309
309
  root: e.target || c.$$.root
@@ -315,11 +315,11 @@ function Ce(i, e, t, n, r, o, u = null, s = [-1]) {
315
315
  return l.ctx && r(l.ctx[a], l.ctx[a] = g) && (!l.skip_bound && l.bound[a] && l.bound[a](g), d && An(i, a)), f;
316
316
  }) : [], l.update(), d = !0, ye(l.before_update), l.fragment = n ? n(l.ctx) : !1, e.target) {
317
317
  if (e.hydrate) {
318
- const a = Mn(e.target);
318
+ const a = xn(e.target);
319
319
  l.fragment && l.fragment.l(a), a.forEach(z);
320
320
  } else
321
321
  l.fragment && l.fragment.c();
322
- e.intro && Z(i.$$.fragment), me(i, e.target, e.anchor), Wi();
322
+ e.intro && q(i.$$.fragment), me(i, e.target, e.anchor), Oi();
323
323
  }
324
324
  qe(c);
325
325
  }
@@ -332,7 +332,7 @@ class ke {
332
332
  *
333
333
  * @type {any}
334
334
  */
335
- xt(this, "$$");
335
+ St(this, "$$");
336
336
  /**
337
337
  * ### PRIVATE API
338
338
  *
@@ -340,11 +340,11 @@ class ke {
340
340
  *
341
341
  * @type {any}
342
342
  */
343
- xt(this, "$$set");
343
+ St(this, "$$set");
344
344
  }
345
345
  /** @returns {void} */
346
346
  $destroy() {
347
- ge(this, 1), this.$destroy = A;
347
+ ge(this, 1), this.$destroy = W;
348
348
  }
349
349
  /**
350
350
  * @template {Extract<keyof Events, string>} K
@@ -353,8 +353,8 @@ class ke {
353
353
  * @returns {() => void}
354
354
  */
355
355
  $on(e, t) {
356
- if (!Ri(t))
357
- return A;
356
+ if (!Pi(t))
357
+ return W;
358
358
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
359
359
  return n.push(t), () => {
360
360
  const r = n.indexOf(t);
@@ -369,20 +369,20 @@ class ke {
369
369
  this.$$set && !vn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
370
370
  }
371
371
  }
372
- const zn = "4";
373
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(zn);
374
- function Bn(i) {
372
+ const Wn = "4";
373
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Wn);
374
+ function zn(i) {
375
375
  let e, t;
376
376
  return {
377
377
  c() {
378
378
  e = ce("svg"), t = ce("path"), p(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"), p(e, "viewBox", "0 0 14 14"), p(e, "width", "13"), p(e, "height", "13"), p(e, "class", "svelte-en2qvf");
379
379
  },
380
380
  m(n, r) {
381
- F(n, e, r), P(e, t);
381
+ U(n, e, r), P(e, t);
382
382
  },
383
- p: A,
384
- i: A,
385
- o: A,
383
+ p: W,
384
+ i: W,
385
+ o: W,
386
386
  d(n) {
387
387
  n && z(e);
388
388
  }
@@ -390,36 +390,36 @@ function Bn(i) {
390
390
  }
391
391
  class Ai extends ke {
392
392
  constructor(e) {
393
- super(), Ce(this, e, null, Bn, Me, {});
393
+ super(), Ce(this, e, null, zn, Me, {});
394
394
  }
395
395
  }
396
- function Dn(i) {
396
+ function Bn(i) {
397
397
  let e, t;
398
398
  return {
399
399
  c() {
400
400
  e = ce("svg"), t = ce("path"), p(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"), p(e, "viewBox", "0 0 30 30"), p(e, "fill", "none"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "class", "svelte-d2loi5");
401
401
  },
402
402
  m(n, r) {
403
- F(n, e, r), P(e, t);
403
+ U(n, e, r), P(e, t);
404
404
  },
405
- p: A,
406
- i: A,
407
- o: A,
405
+ p: W,
406
+ i: W,
407
+ o: W,
408
408
  d(n) {
409
409
  n && z(e);
410
410
  }
411
411
  };
412
412
  }
413
- class zi extends ke {
413
+ class Wi extends ke {
414
414
  constructor(e) {
415
- super(), Ce(this, e, null, Dn, Me, {});
415
+ super(), Ce(this, e, null, Bn, Me, {});
416
416
  }
417
417
  }
418
- function Fn(i) {
418
+ function Dn(i) {
419
419
  let e, t;
420
420
  return {
421
421
  c() {
422
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
422
+ e = A("img"), X(e.src, t = /*iconsBaseUrl*/
423
423
  i[3] + "area.svg") || p(e, "src", t), p(
424
424
  e,
425
425
  "alt",
@@ -428,7 +428,7 @@ function Fn(i) {
428
428
  ), p(e, "class", "svelte-ltkwvy");
429
429
  },
430
430
  m(n, r) {
431
- F(n, e, r);
431
+ U(n, e, r);
432
432
  },
433
433
  p(n, r) {
434
434
  r & /*iconsBaseUrl*/
@@ -450,7 +450,7 @@ function Un(i) {
450
450
  let e, t;
451
451
  return {
452
452
  c() {
453
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
453
+ e = A("img"), X(e.src, t = /*iconsBaseUrl*/
454
454
  i[3] + "reverse.svg") || p(e, "src", t), p(
455
455
  e,
456
456
  "alt",
@@ -459,7 +459,7 @@ function Un(i) {
459
459
  ), p(e, "class", "svelte-ltkwvy");
460
460
  },
461
461
  m(n, r) {
462
- F(n, e, r);
462
+ U(n, e, r);
463
463
  },
464
464
  p(n, r) {
465
465
  r & /*iconsBaseUrl*/
@@ -477,11 +477,11 @@ function Un(i) {
477
477
  }
478
478
  };
479
479
  }
480
- function Gn(i) {
480
+ function Fn(i) {
481
481
  let e, t;
482
482
  return {
483
483
  c() {
484
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
484
+ e = A("img"), X(e.src, t = /*iconsBaseUrl*/
485
485
  i[3] + "poi.svg") || p(e, "src", t), p(
486
486
  e,
487
487
  "alt",
@@ -490,7 +490,7 @@ function Gn(i) {
490
490
  ), p(e, "class", "svelte-ltkwvy");
491
491
  },
492
492
  m(n, r) {
493
- F(n, e, r);
493
+ U(n, e, r);
494
494
  },
495
495
  p(n, r) {
496
496
  r & /*iconsBaseUrl*/
@@ -508,11 +508,11 @@ function Gn(i) {
508
508
  }
509
509
  };
510
510
  }
511
- function jn(i) {
511
+ function Gn(i) {
512
512
  let e, t;
513
513
  return {
514
514
  c() {
515
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
515
+ e = A("img"), X(e.src, t = /*iconsBaseUrl*/
516
516
  i[3] + "postal_code.svg") || p(e, "src", t), p(
517
517
  e,
518
518
  "alt",
@@ -521,7 +521,7 @@ function jn(i) {
521
521
  ), p(e, "class", "svelte-ltkwvy");
522
522
  },
523
523
  m(n, r) {
524
- F(n, e, r);
524
+ U(n, e, r);
525
525
  },
526
526
  p(n, r) {
527
527
  r & /*iconsBaseUrl*/
@@ -539,11 +539,11 @@ function jn(i) {
539
539
  }
540
540
  };
541
541
  }
542
- function Zn(i) {
542
+ function jn(i) {
543
543
  let e, t;
544
544
  return {
545
545
  c() {
546
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
546
+ e = A("img"), X(e.src, t = /*iconsBaseUrl*/
547
547
  i[3] + "street.svg") || p(e, "src", t), p(
548
548
  e,
549
549
  "alt",
@@ -552,7 +552,7 @@ function Zn(i) {
552
552
  ), p(e, "class", "svelte-ltkwvy");
553
553
  },
554
554
  m(n, r) {
555
- F(n, e, r);
555
+ U(n, e, r);
556
556
  },
557
557
  p(n, r) {
558
558
  r & /*iconsBaseUrl*/
@@ -574,7 +574,7 @@ function qn(i) {
574
574
  let e, t;
575
575
  return {
576
576
  c() {
577
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
577
+ e = A("img"), X(e.src, t = /*iconsBaseUrl*/
578
578
  i[3] + "road.svg") || p(e, "src", t), p(
579
579
  e,
580
580
  "alt",
@@ -583,7 +583,7 @@ function qn(i) {
583
583
  ), p(e, "class", "svelte-ltkwvy");
584
584
  },
585
585
  m(n, r) {
586
- F(n, e, r);
586
+ U(n, e, r);
587
587
  },
588
588
  p(n, r) {
589
589
  r & /*iconsBaseUrl*/
@@ -601,11 +601,11 @@ function qn(i) {
601
601
  }
602
602
  };
603
603
  }
604
- function Qn(i) {
604
+ function Zn(i) {
605
605
  let e, t;
606
606
  return {
607
607
  c() {
608
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
608
+ e = A("img"), X(e.src, t = /*iconsBaseUrl*/
609
609
  i[3] + "housenumber.svg") || p(e, "src", t), p(
610
610
  e,
611
611
  "alt",
@@ -614,7 +614,7 @@ function Qn(i) {
614
614
  ), p(e, "class", "svelte-ltkwvy");
615
615
  },
616
616
  m(n, r) {
617
- F(n, e, r);
617
+ U(n, e, r);
618
618
  },
619
619
  p(n, r) {
620
620
  r & /*iconsBaseUrl*/
@@ -632,11 +632,11 @@ function Qn(i) {
632
632
  }
633
633
  };
634
634
  }
635
- function Hn(i) {
635
+ function Qn(i) {
636
636
  let e, t, n, r;
637
637
  return {
638
638
  c() {
639
- e = W("img"), X(e.src, t = /*imageUrl*/
639
+ e = A("img"), X(e.src, t = /*imageUrl*/
640
640
  i[5]) || p(e, "src", t), p(
641
641
  e,
642
642
  "alt",
@@ -645,7 +645,7 @@ function Hn(i) {
645
645
  ), p(e, "class", "svelte-ltkwvy");
646
646
  },
647
647
  m(o, u) {
648
- F(o, e, u), n || (r = J(
648
+ U(o, e, u), n || (r = J(
649
649
  e,
650
650
  "error",
651
651
  /*error_handler*/
@@ -668,21 +668,21 @@ function Hn(i) {
668
668
  }
669
669
  };
670
670
  }
671
- function ii(i) {
671
+ function ti(i) {
672
672
  let e, t;
673
673
  return {
674
674
  c() {
675
- e = W("span"), t = Le(
675
+ e = A("span"), t = Le(
676
676
  /*placeType*/
677
677
  i[6]
678
678
  ), p(e, "class", "secondary svelte-ltkwvy");
679
679
  },
680
680
  m(n, r) {
681
- F(n, e, r), P(e, t);
681
+ U(n, e, r), P(e, t);
682
682
  },
683
683
  p(n, r) {
684
684
  r & /*placeType*/
685
- 64 && Qe(
685
+ 64 && Ze(
686
686
  t,
687
687
  /*placeType*/
688
688
  n[6]
@@ -693,7 +693,7 @@ function ii(i) {
693
693
  }
694
694
  };
695
695
  }
696
- function Vn(i) {
696
+ function Hn(i) {
697
697
  let e, t, n, r, o, u, s, c, l, d = (
698
698
  /*isReverse*/
699
699
  (i[7] ? (
@@ -706,7 +706,7 @@ function Vn(i) {
706
706
  ), a, f, h = (
707
707
  /*showPlaceType*/
708
708
  i[2] === "always" || /*showPlaceType*/
709
- i[2] && !/*feature*/
709
+ i[2] !== "never" && !/*feature*/
710
710
  i[0].address && !/*feature*/
711
711
  i[0].id.startsWith("road.") && !/*feature*/
712
712
  i[0].id.startsWith("address.") && !/*feature*/
@@ -714,35 +714,35 @@ function Vn(i) {
714
714
  i[0].id.startsWith("poi.") || !/*imageUrl*/
715
715
  i[5]) && !/*isReverse*/
716
716
  i[7]
717
- ), g, y, v = (
717
+ ), g, y, b = (
718
718
  /*isReverse*/
719
719
  (i[7] ? "" : (
720
720
  /*feature*/
721
721
  i[0].place_name.replace(/[^,]*,?\s*/, "")
722
722
  )) + ""
723
- ), b, E, L;
723
+ ), v, E, L;
724
724
  function _(w, k) {
725
725
  return k & /*feature*/
726
726
  1 && (t = null), k & /*feature*/
727
727
  1 && (n = null), k & /*feature*/
728
728
  1 && (r = null), k & /*feature*/
729
729
  1 && (o = null), /*imageUrl*/
730
- w[5] ? Hn : (
730
+ w[5] ? Qn : (
731
731
  /*feature*/
732
- w[0].address ? Qn : (t == null && (t = !!/*feature*/
732
+ w[0].address ? Zn : (t == null && (t = !!/*feature*/
733
733
  w[0].id.startsWith("road.")), t ? qn : (n == null && (n = !!/*feature*/
734
- w[0].id.startsWith("address.")), n ? Zn : (r == null && (r = !!/*feature*/
735
- w[0].id.startsWith("postal_code.")), r ? jn : (o == null && (o = !!/*feature*/
736
- w[0].id.startsWith("poi.")), o ? Gn : (
734
+ w[0].id.startsWith("address.")), n ? jn : (r == null && (r = !!/*feature*/
735
+ w[0].id.startsWith("postal_code.")), r ? Gn : (o == null && (o = !!/*feature*/
736
+ w[0].id.startsWith("poi.")), o ? Fn : (
737
737
  /*isReverse*/
738
- w[7] ? Un : Fn
738
+ w[7] ? Un : Dn
739
739
  )))))
740
740
  );
741
741
  }
742
- let C = _(i, -1), x = C(i), S = h && ii(i);
742
+ let C = _(i, -1), x = C(i), S = h && ti(i);
743
743
  return {
744
744
  c() {
745
- e = W("li"), x.c(), u = te(), s = W("span"), c = W("span"), l = W("span"), a = Le(d), f = te(), S && S.c(), g = te(), y = W("span"), b = Le(v), p(l, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(y, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
745
+ e = A("li"), x.c(), u = te(), s = A("span"), c = A("span"), l = A("span"), a = Le(d), f = te(), S && S.c(), g = te(), y = A("span"), v = Le(b), p(l, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(y, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
746
746
  e,
747
747
  "data-selected",
748
748
  /*selected*/
@@ -755,7 +755,7 @@ function Vn(i) {
755
755
  );
756
756
  },
757
757
  m(w, k) {
758
- F(w, e, k), x.m(e, null), P(e, u), P(e, s), P(s, c), P(c, l), P(l, a), P(c, f), S && S.m(c, null), P(s, g), P(s, y), P(y, b), E || (L = [
758
+ U(w, e, k), x.m(e, null), P(e, u), P(e, s), P(s, c), P(c, l), P(l, a), P(c, f), S && S.m(c, null), P(s, g), P(s, y), P(y, v), E || (L = [
759
759
  J(
760
760
  e,
761
761
  "mouseenter",
@@ -779,22 +779,22 @@ function Vn(i) {
779
779
  ) : (
780
780
  /*feature*/
781
781
  w[0].place_name.replace(/,.*/, "")
782
- )) + "") && Qe(a, d), k & /*showPlaceType, feature, imageUrl*/
782
+ )) + "") && Ze(a, d), k & /*showPlaceType, feature, imageUrl*/
783
783
  37 && (h = /*showPlaceType*/
784
784
  w[2] === "always" || /*showPlaceType*/
785
- w[2] && !/*feature*/
785
+ w[2] !== "never" && !/*feature*/
786
786
  w[0].address && !/*feature*/
787
787
  w[0].id.startsWith("road.") && !/*feature*/
788
788
  w[0].id.startsWith("address.") && !/*feature*/
789
789
  w[0].id.startsWith("postal_code.") && (!/*feature*/
790
790
  w[0].id.startsWith("poi.") || !/*imageUrl*/
791
791
  w[5]) && !/*isReverse*/
792
- w[7]), h ? S ? S.p(w, k) : (S = ii(w), S.c(), S.m(c, null)) : S && (S.d(1), S = null), k & /*feature*/
793
- 1 && v !== (v = /*isReverse*/
792
+ w[7]), h ? S ? S.p(w, k) : (S = ti(w), S.c(), S.m(c, null)) : S && (S.d(1), S = null), k & /*feature*/
793
+ 1 && b !== (b = /*isReverse*/
794
794
  (w[7] ? "" : (
795
795
  /*feature*/
796
796
  w[0].place_name.replace(/[^,]*,?\s*/, "")
797
- )) + "") && Qe(b, v), k & /*selected*/
797
+ )) + "") && Ze(v, b), k & /*selected*/
798
798
  2 && p(
799
799
  e,
800
800
  "data-selected",
@@ -808,14 +808,14 @@ function Vn(i) {
808
808
  w[1]
809
809
  );
810
810
  },
811
- i: A,
812
- o: A,
811
+ i: W,
812
+ o: W,
813
813
  d(w) {
814
814
  w && z(e), x.d(), S && S.d(), E = !1, ye(L);
815
815
  }
816
816
  };
817
817
  }
818
- function Yn(i, e, t) {
818
+ function Vn(i, e, t) {
819
819
  var L;
820
820
  let n, r, { feature: o } = e, { selected: u = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: l } = e;
821
821
  const d = (L = o.properties) == null ? void 0 : L.categories;
@@ -823,11 +823,11 @@ function Yn(i, e, t) {
823
823
  function y() {
824
824
  f && c.add(f), t(10, h++, h);
825
825
  }
826
- function v(_) {
827
- $t.call(this, i, _);
828
- }
829
826
  function b(_) {
830
- $t.call(this, i, _);
827
+ Jt.call(this, i, _);
828
+ }
829
+ function v(_) {
830
+ Jt.call(this, i, _);
831
831
  }
832
832
  const E = () => y();
833
833
  return i.$$set = (_) => {
@@ -854,14 +854,14 @@ function Yn(i, e, t) {
854
854
  c,
855
855
  h,
856
856
  n,
857
- v,
858
857
  b,
858
+ v,
859
859
  E
860
860
  ];
861
861
  }
862
- class Xn extends ke {
862
+ class Yn extends ke {
863
863
  constructor(e) {
864
- super(), Ce(this, e, Yn, Vn, Me, {
864
+ super(), Ce(this, e, Vn, Hn, Me, {
865
865
  feature: 0,
866
866
  selected: 1,
867
867
  showPlaceType: 2,
@@ -870,29 +870,29 @@ class Xn extends ke {
870
870
  });
871
871
  }
872
872
  }
873
- function Kn(i) {
873
+ function Xn(i) {
874
874
  let e;
875
875
  return {
876
876
  c() {
877
- e = W("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', p(e, "class", "svelte-7cmwmc");
877
+ e = A("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>', p(e, "class", "svelte-7cmwmc");
878
878
  },
879
879
  m(t, n) {
880
- F(t, e, n);
880
+ U(t, e, n);
881
881
  },
882
- p: A,
883
- i: A,
884
- o: A,
882
+ p: W,
883
+ i: W,
884
+ o: W,
885
885
  d(t) {
886
886
  t && z(e);
887
887
  }
888
888
  };
889
889
  }
890
- class Jn extends ke {
890
+ class Kn extends ke {
891
891
  constructor(e) {
892
- super(), Ce(this, e, null, Kn, Me, {});
892
+ super(), Ce(this, e, null, Xn, Me, {});
893
893
  }
894
894
  }
895
- function $n(i) {
895
+ function Jn(i) {
896
896
  let e, t, n;
897
897
  return {
898
898
  c() {
@@ -910,7 +910,7 @@ function $n(i) {
910
910
  );
911
911
  },
912
912
  m(r, o) {
913
- F(r, e, o), P(e, t);
913
+ U(r, e, o), P(e, t);
914
914
  },
915
915
  p(r, [o]) {
916
916
  o & /*displayIn*/
@@ -929,88 +929,88 @@ function $n(i) {
929
929
  r[0] === "list"
930
930
  );
931
931
  },
932
- i: A,
933
- o: A,
932
+ i: W,
933
+ o: W,
934
934
  d(r) {
935
935
  r && z(e);
936
936
  }
937
937
  };
938
938
  }
939
- function er(i, e, t) {
939
+ function $n(i, e, t) {
940
940
  let { displayIn: n } = e;
941
941
  return i.$$set = (r) => {
942
942
  "displayIn" in r && t(0, n = r.displayIn);
943
943
  }, [n];
944
944
  }
945
- class tr extends ke {
945
+ class er extends ke {
946
946
  constructor(e) {
947
- super(), Ce(this, e, er, $n, Me, { displayIn: 0 });
947
+ super(), Ce(this, e, $n, Jn, Me, { displayIn: 0 });
948
948
  }
949
949
  }
950
- function ir(i) {
950
+ function tr(i) {
951
951
  let e, t;
952
952
  return {
953
953
  c() {
954
954
  e = ce("svg"), t = ce("path"), p(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"), p(e, "viewBox", "0 0 60.006 21.412"), p(e, "width", "14"), p(e, "height", "20"), p(e, "class", "svelte-en2qvf");
955
955
  },
956
956
  m(n, r) {
957
- F(n, e, r), P(e, t);
957
+ U(n, e, r), P(e, t);
958
958
  },
959
- p: A,
960
- i: A,
961
- o: A,
959
+ p: W,
960
+ i: W,
961
+ o: W,
962
962
  d(n) {
963
963
  n && z(e);
964
964
  }
965
965
  };
966
966
  }
967
- class nr extends ke {
967
+ class ir extends ke {
968
968
  constructor(e) {
969
- super(), Ce(this, e, null, ir, Me, {});
969
+ super(), Ce(this, e, null, tr, Me, {});
970
970
  }
971
971
  }
972
- function rr(i) {
972
+ function nr(i) {
973
973
  let e, t, n;
974
974
  return {
975
975
  c() {
976
976
  e = ce("svg"), t = ce("circle"), n = ce("path"), p(t, "cx", "4.789"), p(t, "cy", "4.787"), p(t, "r", "3.85"), p(t, "class", "svelte-1aq105l"), p(n, "d", "M12.063 12.063 7.635 7.635"), p(n, "class", "svelte-1aq105l"), p(e, "xmlns", "http://www.w3.org/2000/svg"), p(e, "width", "13"), p(e, "height", "13"), p(e, "viewBox", "0 0 13 13"), p(e, "class", "svelte-1aq105l");
977
977
  },
978
978
  m(r, o) {
979
- F(r, e, o), P(e, t), P(e, n);
979
+ U(r, e, o), P(e, t), P(e, n);
980
980
  },
981
- p: A,
982
- i: A,
983
- o: A,
981
+ p: W,
982
+ i: W,
983
+ o: W,
984
984
  d(r) {
985
985
  r && z(e);
986
986
  }
987
987
  };
988
988
  }
989
- class or extends ke {
989
+ class rr extends ke {
990
990
  constructor(e) {
991
- super(), Ce(this, e, null, rr, Me, {});
991
+ super(), Ce(this, e, null, nr, Me, {});
992
992
  }
993
993
  }
994
- function sr(i, e, t) {
994
+ function or(i, e, t) {
995
995
  const n = e[1], r = e[0], o = n - r;
996
996
  return i === n && t ? i : ((i - r) % o + o) % o + r;
997
997
  }
998
- function Ve(i) {
998
+ function He(i) {
999
999
  const e = [...i];
1000
1000
  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;
1001
1001
  }
1002
- let Ge;
1003
- async function lr(i, e, t) {
1002
+ let Fe;
1003
+ async function sr(i, e, t) {
1004
1004
  const n = i == null ? void 0 : i.getCenterAndZoom();
1005
1005
  for (const r of e ?? [])
1006
1006
  if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) {
1007
1007
  if (r.type === "fixed")
1008
1008
  return r.coordinates.join(",");
1009
1009
  e: if (r.type === "client-geolocation") {
1010
- if (Ge && r.cachedLocationExpiry && Ge.time + r.cachedLocationExpiry > Date.now()) {
1011
- if (!Ge.coords)
1010
+ if (Fe && r.cachedLocationExpiry && Fe.time + r.cachedLocationExpiry > Date.now()) {
1011
+ if (!Fe.coords)
1012
1012
  break e;
1013
- return Ge.coords;
1013
+ return Fe.coords;
1014
1014
  }
1015
1015
  let o;
1016
1016
  try {
@@ -1031,7 +1031,7 @@ async function lr(i, e, t) {
1031
1031
  }), o;
1032
1032
  } catch {
1033
1033
  } finally {
1034
- r.cachedLocationExpiry && (Ge = {
1034
+ r.cachedLocationExpiry && (Fe = {
1035
1035
  time: Date.now(),
1036
1036
  coords: o
1037
1037
  });
@@ -1045,8 +1045,8 @@ async function lr(i, e, t) {
1045
1045
  return n[1].toFixed(6) + "," + n[2].toFixed(6);
1046
1046
  }
1047
1047
  }
1048
- const ur = /^(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, ni = /^([+-]?[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,})$/, ri = /^(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, oi = /^(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, si = /^(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, li = /^(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;
1049
- function ar(i) {
1048
+ const lr = /^(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, ii = /^([+-]?[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,})$/, ni = /^(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, ri = /^(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, oi = /^(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, si = /^(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;
1049
+ function ur(i) {
1050
1050
  if (!["DMS", "DM", "DD"].includes(i))
1051
1051
  throw new Error("invalid format specified");
1052
1052
  if (this.decimalCoordinates && this.decimalCoordinates.trim()) {
@@ -1055,35 +1055,35 @@ function ar(i) {
1055
1055
  i == "DD" && (c = `${r}° ${u}, ${o}° ${s}`);
1056
1056
  const l = Math.floor(r), d = Math.floor(o), a = (r - l) * 60, f = (o - d) * 60;
1057
1057
  if (i == "DM") {
1058
- let h = ui(a, 3).toFixed(3).padStart(6, "0"), g = ui(f, 3).toFixed(3).padStart(6, "0");
1058
+ let h = li(a, 3).toFixed(3).padStart(6, "0"), g = li(f, 3).toFixed(3).padStart(6, "0");
1059
1059
  h.endsWith(".000") && g.endsWith(".000") && (h = h.replace(/\.000$/, ""), g = g.replace(/\.000$/, "")), c = `${l}° ${h}' ${u}, ${d}° ${g}' ${s}`;
1060
1060
  }
1061
1061
  if (i == "DMS") {
1062
1062
  const h = Math.floor(a), g = Math.floor(f);
1063
- let y = ((a - h) * 60).toFixed(1).padStart(4, "0"), v = ((f - g) * 60).toFixed(1).padStart(4, "0");
1064
- const b = h.toString().padStart(2, "0"), E = g.toString().padStart(2, "0");
1065
- y.endsWith(".0") && v.endsWith(".0") && (y = y.replace(/\.0$/, ""), v = v.replace(/\.0$/, "")), c = `${l}° ${b}' ${y}" ${u}, ${d}° ${E}' ${v}" ${s}`;
1063
+ let y = ((a - h) * 60).toFixed(1).padStart(4, "0"), b = ((f - g) * 60).toFixed(1).padStart(4, "0");
1064
+ const v = h.toString().padStart(2, "0"), E = g.toString().padStart(2, "0");
1065
+ y.endsWith(".0") && b.endsWith(".0") && (y = y.replace(/\.0$/, ""), b = b.replace(/\.0$/, "")), c = `${l}° ${v}' ${y}" ${u}, ${d}° ${E}' ${b}" ${s}`;
1066
1066
  }
1067
1067
  return c;
1068
1068
  } else
1069
1069
  throw new Error("no decimal coordinates to convert");
1070
1070
  }
1071
- function ui(i, e) {
1071
+ function li(i, e) {
1072
1072
  const t = Math.pow(10, e);
1073
1073
  return Math.round((i + Number.EPSILON) * t) / t;
1074
1074
  }
1075
- function Dt(i, e) {
1075
+ function Bt(i, e) {
1076
1076
  e || (e = 5), i = i.replace(/\s+/g, " ").trim();
1077
1077
  let t = null, n = null, r = "", o = "", u = null, s = [], c = !1;
1078
- if (ur.test(i))
1078
+ if (lr.test(i))
1079
1079
  throw new Error("invalid coordinate value");
1080
- if (ni.test(i))
1081
- if (s = ni.exec(i), c = je(s), c)
1080
+ if (ii.test(i))
1081
+ if (s = ii.exec(i), c = Ge(s), c)
1082
1082
  t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), n = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (n *= -1), u = "DM";
1083
1083
  else
1084
1084
  throw new Error("invalid coordinate format");
1085
- else if (ri.test(i))
1086
- if (s = ri.exec(i), c = je(s), c) {
1085
+ else if (ni.test(i))
1086
+ if (s = ni.exec(i), c = Ge(s), c) {
1087
1087
  if (t = s[2], n = s[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), u = "DD", Number(Math.round(t)) == Number(t))
1088
1088
  throw new Error("integer only coordinate provided");
1089
1089
  if (Number(Math.round(n)) == Number(n))
@@ -1091,18 +1091,18 @@ function Dt(i, e) {
1091
1091
  s[1] ? (r = s[1], o = s[5]) : s[4] && (r = s[4], o = s[8]);
1092
1092
  } else
1093
1093
  throw new Error("invalid decimal coordinate format");
1094
- else if (oi.test(i))
1095
- if (s = oi.exec(i), c = je(s), c)
1094
+ else if (ri.test(i))
1095
+ if (s = ri.exec(i), c = Ge(s), c)
1096
1096
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, u = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, u = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[9])), s[11] && (n += s[11] / 60), s[13] && (n += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
1097
1097
  else
1098
1098
  throw new Error("invalid DMS coordinates format");
1099
- else if (si.test(i))
1100
- if (s = si.exec(i), c = je(s), c)
1099
+ else if (oi.test(i))
1100
+ if (s = oi.exec(i), c = Ge(s), c)
1101
1101
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, u = "DM"), s[6] && (t += s[6] / 3600, u = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12] / 60), s[14] && (n += s[14] / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1102
1102
  else
1103
1103
  throw new Error("invalid DMS coordinates format");
1104
- else if (li.test(i)) {
1105
- if (s = li.exec(i), c = je(s), s.filter((l) => l).length <= 5)
1104
+ else if (si.test(i)) {
1105
+ if (s = si.exec(i), c = Ge(s), s.filter((l) => l).length <= 5)
1106
1106
  throw new Error("invalid coordinates format");
1107
1107
  if (c)
1108
1108
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, u = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, u = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(s[10])), s[12] && (n += s[12].replace(",", ".") / 60), s[14] && (n += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (n = -1 * n), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
@@ -1125,17 +1125,17 @@ function Dt(i, e) {
1125
1125
  let a, f;
1126
1126
  const h = /[,/;\u0020]/g, g = d.match(h);
1127
1127
  if (g == null) {
1128
- const b = Math.floor(i.length / 2);
1129
- a = d.substring(0, b).trim(), f = d.substring(b).trim();
1128
+ const v = Math.floor(i.length / 2);
1129
+ a = d.substring(0, v).trim(), f = d.substring(v).trim();
1130
1130
  } else {
1131
- let b;
1132
- g.length % 2 == 1 ? b = Math.floor(g.length / 2) : b = g.length / 2 - 1;
1131
+ let v;
1132
+ g.length % 2 == 1 ? v = Math.floor(g.length / 2) : v = g.length / 2 - 1;
1133
1133
  let E = 0;
1134
- if (b == 0)
1134
+ if (v == 0)
1135
1135
  E = d.indexOf(g[0]), a = d.substring(0, E).trim(), f = d.substring(E + 1).trim();
1136
1136
  else {
1137
1137
  let L = 0, _ = 0;
1138
- for (; L <= b; )
1138
+ for (; L <= v; )
1139
1139
  E = d.indexOf(g[L], _), _ = E + 1, L++;
1140
1140
  a = d.substring(0, E).trim(), f = d.substring(E + 1).trim();
1141
1141
  }
@@ -1143,8 +1143,8 @@ function Dt(i, e) {
1143
1143
  const y = a.split(".");
1144
1144
  if (y.length == 2 && y[1] == 0 && y[1].length != 2)
1145
1145
  throw new Error("invalid coordinates format");
1146
- const v = f.split(".");
1147
- if (v.length == 2 && v[1] == 0 && v[1].length != 2)
1146
+ const b = f.split(".");
1147
+ if (b.length == 2 && b[1] == 0 && b[1].length != 2)
1148
1148
  throw new Error("invalid coordinates format");
1149
1149
  if (/^\d+$/.test(a) || /^\d+$/.test(f))
1150
1150
  throw new Error("degree only coordinate/s provided");
@@ -1156,13 +1156,13 @@ function Dt(i, e) {
1156
1156
  decimalLongitude: n,
1157
1157
  decimalCoordinates: `${t},${n}`,
1158
1158
  originalFormat: u,
1159
- closeEnough: cr,
1160
- toCoordinateFormat: ar
1159
+ closeEnough: ar,
1160
+ toCoordinateFormat: ur
1161
1161
  });
1162
1162
  } else
1163
1163
  throw new Error("coordinates pattern match failed");
1164
1164
  }
1165
- function je(i) {
1165
+ function Ge(i) {
1166
1166
  if (!isNaN(i[0]))
1167
1167
  return !1;
1168
1168
  const e = [...i];
@@ -1181,28 +1181,28 @@ function je(i) {
1181
1181
  }
1182
1182
  return !0;
1183
1183
  }
1184
- function ai(i, e) {
1184
+ function ui(i, e) {
1185
1185
  const t = Math.abs(i - e);
1186
1186
  return Number(t.toFixed(6)) <= 1e-5;
1187
1187
  }
1188
- function cr(i) {
1188
+ function ar(i) {
1189
1189
  if (!i)
1190
1190
  throw new Error("coords must be provided");
1191
1191
  if (i.includes(",")) {
1192
1192
  const e = i.split(",");
1193
1193
  if (Number(e[0]) == NaN || Number(e[1]) == NaN)
1194
1194
  throw new Error("coords are not valid decimals");
1195
- return ai(this.decimalLatitude, Number(e[0])) && ai(this.decimalLongitude, e[1]);
1195
+ return ui(this.decimalLatitude, Number(e[0])) && ui(this.decimalLongitude, e[1]);
1196
1196
  } else
1197
1197
  throw new Error("coords being tested must be separated by a comma");
1198
1198
  }
1199
- const fr = Object.freeze({
1199
+ const cr = Object.freeze({
1200
1200
  DMS: "DMS",
1201
1201
  DM: "DM",
1202
1202
  DD: "DD"
1203
1203
  });
1204
- Dt.to = fr;
1205
- const dr = [
1204
+ Bt.to = cr;
1205
+ const fr = [
1206
1206
  {
1207
1207
  verbatimCoordinates: "40.123, -74.123",
1208
1208
  verbatimLatitude: "40.123",
@@ -1343,10 +1343,10 @@ const dr = [
1343
1343
  verbatimLatitude: "40 7 22.8",
1344
1344
  verbatimLongitude: "-74 7 22.8"
1345
1345
  }
1346
- ], hr = {
1346
+ ], dr = {
1347
1347
  decimalLatitude: 40.123,
1348
1348
  decimalLongitude: -74.123
1349
- }, mr = [
1349
+ }, hr = [
1350
1350
  {
1351
1351
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1352
1352
  verbatimLatitude: `50°4'17.698"south`,
@@ -1431,7 +1431,7 @@ const dr = [
1431
1431
  decimalLatitude: -18.4,
1432
1432
  decimalLongitude: 22.75
1433
1433
  }
1434
- ], gr = [
1434
+ ], mr = [
1435
1435
  {
1436
1436
  verbatimCoordinates: "10.432342S 10.6345345E",
1437
1437
  verbatimLatitude: "10.432342S",
@@ -1566,22 +1566,22 @@ const dr = [
1566
1566
  decimalLongitude: 18.33453
1567
1567
  }
1568
1568
  ];
1569
- function yr() {
1569
+ function gr() {
1570
1570
  const i = [];
1571
- return dr.forEach((e) => {
1572
- e.decimalLatitude ? i.push(e) : i.push({ ...e, ...hr });
1573
- }), [...i, ...mr, ...gr];
1574
- }
1575
- const pr = yr();
1576
- Dt.formats = pr.map((i) => i.verbatimCoordinates);
1577
- const br = Dt;
1578
- function ci(i, e, t) {
1571
+ return fr.forEach((e) => {
1572
+ e.decimalLatitude ? i.push(e) : i.push({ ...e, ...dr });
1573
+ }), [...i, ...hr, ...mr];
1574
+ }
1575
+ const yr = gr();
1576
+ Bt.formats = yr.map((i) => i.verbatimCoordinates);
1577
+ const pr = Bt;
1578
+ function ai(i, e, t) {
1579
1579
  const n = i.slice();
1580
- return n[87] = e[t], n[89] = t, n;
1580
+ return n[86] = e[t], n[88] = t, n;
1581
1581
  }
1582
- function fi(i) {
1582
+ function ci(i) {
1583
1583
  let e, t;
1584
- return e = new Jn({}), {
1584
+ return e = new Kn({}), {
1585
1585
  c() {
1586
1586
  Se(e.$$.fragment);
1587
1587
  },
@@ -1589,7 +1589,7 @@ function fi(i) {
1589
1589
  me(e, n, r), t = !0;
1590
1590
  },
1591
1591
  i(n) {
1592
- t || (Z(e.$$.fragment, n), t = !0);
1592
+ t || (q(e.$$.fragment, n), t = !0);
1593
1593
  },
1594
1594
  o(n) {
1595
1595
  V(e.$$.fragment, n), t = !1;
@@ -1599,11 +1599,11 @@ function fi(i) {
1599
1599
  }
1600
1600
  };
1601
1601
  }
1602
- function di(i) {
1602
+ function fi(i) {
1603
1603
  let e, t, n, r, o;
1604
- return t = new nr({}), {
1604
+ return t = new ir({}), {
1605
1605
  c() {
1606
- e = W("button"), Se(t.$$.fragment), p(e, "type", "button"), p(
1606
+ e = A("button"), Se(t.$$.fragment), p(e, "type", "button"), p(
1607
1607
  e,
1608
1608
  "title",
1609
1609
  /*reverseButtonTitle*/
@@ -1616,11 +1616,11 @@ function di(i) {
1616
1616
  );
1617
1617
  },
1618
1618
  m(u, s) {
1619
- F(u, e, s), me(t, e, null), n = !0, r || (o = J(
1619
+ U(u, e, s), me(t, e, null), n = !0, r || (o = J(
1620
1620
  e,
1621
1621
  "click",
1622
1622
  /*click_handler_2*/
1623
- i[71]
1623
+ i[70]
1624
1624
  ), r = !0);
1625
1625
  },
1626
1626
  p(u, s) {
@@ -1639,7 +1639,7 @@ function di(i) {
1639
1639
  );
1640
1640
  },
1641
1641
  i(u) {
1642
- n || (Z(t.$$.fragment, u), n = !0);
1642
+ n || (q(t.$$.fragment, u), n = !0);
1643
1643
  },
1644
1644
  o(u) {
1645
1645
  V(t.$$.fragment, u), n = !1;
@@ -1650,29 +1650,29 @@ function di(i) {
1650
1650
  };
1651
1651
  }
1652
1652
  function vr(i) {
1653
- let e, t = [], n = /* @__PURE__ */ new Map(), r, o, u, s = ti(
1653
+ let e, t = [], n = /* @__PURE__ */ new Map(), r, o, u, s = ei(
1654
1654
  /*listFeatures*/
1655
1655
  i[14]
1656
1656
  );
1657
1657
  const c = (l) => (
1658
1658
  /*feature*/
1659
- l[87].id + /*feature*/
1660
- (l[87].address ? "," + /*feature*/
1661
- l[87].address : "")
1659
+ l[86].id + /*feature*/
1660
+ (l[86].address ? "," + /*feature*/
1661
+ l[86].address : "")
1662
1662
  );
1663
1663
  for (let l = 0; l < s.length; l += 1) {
1664
- let d = ci(i, s, l), a = c(d);
1665
- n.set(a, t[l] = hi(a, d));
1664
+ let d = ai(i, s, l), a = c(d);
1665
+ n.set(a, t[l] = di(a, d));
1666
1666
  }
1667
1667
  return {
1668
1668
  c() {
1669
- e = W("ul");
1669
+ e = A("ul");
1670
1670
  for (let l = 0; l < t.length; l += 1)
1671
1671
  t[l].c();
1672
1672
  p(e, "class", "options svelte-bz0zu3");
1673
1673
  },
1674
1674
  m(l, d) {
1675
- F(l, e, d);
1675
+ U(l, e, d);
1676
1676
  for (let a = 0; a < t.length; a += 1)
1677
1677
  t[a] && t[a].m(e, null);
1678
1678
  r = !0, o || (u = [
@@ -1680,27 +1680,27 @@ function vr(i) {
1680
1680
  e,
1681
1681
  "mouseleave",
1682
1682
  /*mouseleave_handler*/
1683
- i[75]
1683
+ i[74]
1684
1684
  ),
1685
1685
  J(
1686
1686
  e,
1687
1687
  "blur",
1688
1688
  /*blur_handler_1*/
1689
- i[76]
1689
+ i[75]
1690
1690
  )
1691
1691
  ], o = !0);
1692
1692
  },
1693
1693
  p(l, d) {
1694
1694
  d[0] & /*listFeatures, showPlaceType, selectedItemIndex, missingIconsCache, iconsBaseUrl, pick*/
1695
- 17880064 && (s = ti(
1695
+ 17880064 && (s = ei(
1696
1696
  /*listFeatures*/
1697
1697
  l[14]
1698
- ), at(), t = Wn(t, d, c, 1, l, s, n, e, On, hi, null, ci), ct());
1698
+ ), ut(), t = On(t, d, c, 1, l, s, n, e, In, di, null, ai), at());
1699
1699
  },
1700
1700
  i(l) {
1701
1701
  if (!r) {
1702
1702
  for (let d = 0; d < s.length; d += 1)
1703
- Z(t[d]);
1703
+ q(t[d]);
1704
1704
  r = !0;
1705
1705
  }
1706
1706
  },
@@ -1717,28 +1717,28 @@ function vr(i) {
1717
1717
  }
1718
1718
  };
1719
1719
  }
1720
- function wr(i) {
1720
+ function br(i) {
1721
1721
  let e, t, n, r, o, u;
1722
- return t = new zi({}), {
1722
+ return t = new Wi({}), {
1723
1723
  c() {
1724
- e = W("div"), Se(t.$$.fragment), n = te(), r = W("div"), o = Le(
1724
+ e = A("div"), Se(t.$$.fragment), n = te(), r = A("div"), o = Le(
1725
1725
  /*noResultsMessage*/
1726
1726
  i[7]
1727
1727
  ), p(r, "class", "svelte-bz0zu3"), p(e, "class", "no-results svelte-bz0zu3");
1728
1728
  },
1729
1729
  m(s, c) {
1730
- F(s, e, c), me(t, e, null), P(e, n), P(e, r), P(r, o), u = !0;
1730
+ U(s, e, c), me(t, e, null), P(e, n), P(e, r), P(r, o), u = !0;
1731
1731
  },
1732
1732
  p(s, c) {
1733
1733
  (!u || c[0] & /*noResultsMessage*/
1734
- 128) && Qe(
1734
+ 128) && Ze(
1735
1735
  o,
1736
1736
  /*noResultsMessage*/
1737
1737
  s[7]
1738
1738
  );
1739
1739
  },
1740
1740
  i(s) {
1741
- u || (Z(t.$$.fragment, s), u = !0);
1741
+ u || (q(t.$$.fragment, s), u = !0);
1742
1742
  },
1743
1743
  o(s) {
1744
1744
  V(t.$$.fragment, s), u = !1;
@@ -1748,50 +1748,50 @@ function wr(i) {
1748
1748
  }
1749
1749
  };
1750
1750
  }
1751
- function _r(i) {
1751
+ function wr(i) {
1752
1752
  let e = "", t;
1753
1753
  return {
1754
1754
  c() {
1755
1755
  t = Le(e);
1756
1756
  },
1757
1757
  m(n, r) {
1758
- F(n, t, r);
1758
+ U(n, t, r);
1759
1759
  },
1760
- p: A,
1761
- i: A,
1762
- o: A,
1760
+ p: W,
1761
+ i: W,
1762
+ o: W,
1763
1763
  d(n) {
1764
1764
  n && z(t);
1765
1765
  }
1766
1766
  };
1767
1767
  }
1768
- function Er(i) {
1768
+ function _r(i) {
1769
1769
  let e, t, n, r, o, u, s, c, l, d, a;
1770
- return t = new zi({}), c = new Ai({}), {
1770
+ return t = new Wi({}), c = new Ai({}), {
1771
1771
  c() {
1772
- e = W("div"), Se(t.$$.fragment), n = te(), r = W("div"), o = Le(
1772
+ e = A("div"), Se(t.$$.fragment), n = te(), r = A("div"), o = Le(
1773
1773
  /*errorMessage*/
1774
1774
  i[6]
1775
- ), u = te(), s = W("button"), Se(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1775
+ ), u = te(), s = A("button"), Se(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1776
1776
  },
1777
1777
  m(f, h) {
1778
- F(f, e, h), me(t, e, null), P(e, n), P(e, r), P(r, o), P(e, u), P(e, s), me(c, s, null), l = !0, d || (a = J(
1778
+ U(f, e, h), me(t, e, null), P(e, n), P(e, r), P(r, o), P(e, u), P(e, s), me(c, s, null), l = !0, d || (a = J(
1779
1779
  s,
1780
1780
  "click",
1781
1781
  /*click_handler_3*/
1782
- i[72]
1782
+ i[71]
1783
1783
  ), d = !0);
1784
1784
  },
1785
1785
  p(f, h) {
1786
1786
  (!l || h[0] & /*errorMessage*/
1787
- 64) && Qe(
1787
+ 64) && Ze(
1788
1788
  o,
1789
1789
  /*errorMessage*/
1790
1790
  f[6]
1791
1791
  );
1792
1792
  },
1793
1793
  i(f) {
1794
- l || (Z(t.$$.fragment, f), Z(c.$$.fragment, f), l = !0);
1794
+ l || (q(t.$$.fragment, f), q(c.$$.fragment, f), l = !0);
1795
1795
  },
1796
1796
  o(f) {
1797
1797
  V(t.$$.fragment, f), V(c.$$.fragment, f), l = !1;
@@ -1801,31 +1801,31 @@ function Er(i) {
1801
1801
  }
1802
1802
  };
1803
1803
  }
1804
- function hi(i, e) {
1804
+ function di(i, e) {
1805
1805
  let t, n, r;
1806
1806
  function o() {
1807
1807
  return (
1808
1808
  /*mouseenter_handler*/
1809
- e[73](
1809
+ e[72](
1810
1810
  /*i*/
1811
- e[89]
1811
+ e[88]
1812
1812
  )
1813
1813
  );
1814
1814
  }
1815
1815
  function u() {
1816
1816
  return (
1817
1817
  /*focus_handler_1*/
1818
- e[74](
1818
+ e[73](
1819
1819
  /*feature*/
1820
- e[87]
1820
+ e[86]
1821
1821
  )
1822
1822
  );
1823
1823
  }
1824
- return n = new Xn({
1824
+ return n = new Yn({
1825
1825
  props: {
1826
1826
  feature: (
1827
1827
  /*feature*/
1828
- e[87]
1828
+ e[86]
1829
1829
  ),
1830
1830
  showPlaceType: (
1831
1831
  /*showPlaceType*/
@@ -1834,7 +1834,7 @@ function hi(i, e) {
1834
1834
  selected: (
1835
1835
  /*selectedItemIndex*/
1836
1836
  e[15] === /*i*/
1837
- e[89]
1837
+ e[88]
1838
1838
  ),
1839
1839
  missingIconsCache: (
1840
1840
  /*missingIconsCache*/
@@ -1849,27 +1849,27 @@ function hi(i, e) {
1849
1849
  key: i,
1850
1850
  first: null,
1851
1851
  c() {
1852
- t = Sn(), Se(n.$$.fragment), this.first = t;
1852
+ t = Ln(), Se(n.$$.fragment), this.first = t;
1853
1853
  },
1854
1854
  m(s, c) {
1855
- F(s, t, c), me(n, s, c), r = !0;
1855
+ U(s, t, c), me(n, s, c), r = !0;
1856
1856
  },
1857
1857
  p(s, c) {
1858
1858
  e = s;
1859
1859
  const l = {};
1860
1860
  c[0] & /*listFeatures*/
1861
1861
  16384 && (l.feature = /*feature*/
1862
- e[87]), c[0] & /*showPlaceType*/
1862
+ e[86]), c[0] & /*showPlaceType*/
1863
1863
  1024 && (l.showPlaceType = /*showPlaceType*/
1864
1864
  e[10]), c[0] & /*selectedItemIndex, listFeatures*/
1865
1865
  49152 && (l.selected = /*selectedItemIndex*/
1866
1866
  e[15] === /*i*/
1867
- e[89]), c[0] & /*iconsBaseUrl*/
1867
+ e[88]), c[0] & /*iconsBaseUrl*/
1868
1868
  4096 && (l.iconsBaseUrl = /*iconsBaseUrl*/
1869
1869
  e[12]), n.$set(l);
1870
1870
  },
1871
1871
  i(s) {
1872
- r || (Z(n.$$.fragment, s), r = !0);
1872
+ r || (q(n.$$.fragment, s), r = !0);
1873
1873
  },
1874
1874
  o(s) {
1875
1875
  V(n.$$.fragment, s), r = !1;
@@ -1879,26 +1879,26 @@ function hi(i, e) {
1879
1879
  }
1880
1880
  };
1881
1881
  }
1882
- function Lr(i) {
1883
- let e, t, n, r, o, u, s, c, l, d, a, f, h, g, y, v, b, E, L, _, C, x = !1;
1884
- o = new or({}), a = new Ai({});
1882
+ function Er(i) {
1883
+ let e, t, n, r, o, u, s, c, l, d, a, f, h, g, y, b, v, E, L, _, C, x = !1;
1884
+ o = new rr({}), a = new Ai({});
1885
1885
  let S = (
1886
1886
  /*abortController*/
1887
- i[19] && fi()
1887
+ i[19] && ci()
1888
1888
  ), w = (
1889
1889
  /*enableReverse*/
1890
- i[5] === !0 && di(i)
1890
+ i[5] === !0 && fi(i)
1891
1891
  );
1892
1892
  const k = (
1893
1893
  /*#slots*/
1894
- i[63].default
1895
- ), I = wn(
1894
+ i[62].default
1895
+ ), I = bn(
1896
1896
  k,
1897
1897
  i,
1898
1898
  /*$$scope*/
1899
- i[62],
1899
+ i[61],
1900
1900
  null
1901
- ), B = [Er, _r, wr, vr], U = [];
1901
+ ), B = [_r, wr, br, vr], F = [];
1902
1902
  function O(M, G) {
1903
1903
  var $, pe;
1904
1904
  return (
@@ -1916,9 +1916,9 @@ function Lr(i) {
1916
1916
  )
1917
1917
  );
1918
1918
  }
1919
- return ~(v = O(i)) && (b = U[v] = B[v](i)), {
1919
+ return ~(b = O(i)) && (v = F[b] = B[b](i)), {
1920
1920
  c() {
1921
- e = te(), t = W("form"), n = W("div"), r = W("button"), Se(o.$$.fragment), u = te(), s = W("input"), c = te(), l = W("div"), d = W("button"), Se(a.$$.fragment), f = te(), S && S.c(), h = te(), w && w.c(), g = te(), I && I.c(), y = te(), b && b.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1921
+ e = te(), t = A("form"), n = A("div"), r = A("button"), Se(o.$$.fragment), u = te(), s = A("input"), c = te(), l = A("div"), d = A("button"), Se(a.$$.fragment), f = te(), S && S.c(), h = te(), w && w.c(), g = te(), I && I.c(), y = te(), v && v.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1922
1922
  s,
1923
1923
  "placeholder",
1924
1924
  /*placeholder*/
@@ -1938,7 +1938,7 @@ function Lr(i) {
1938
1938
  "displayable",
1939
1939
  /*searchValue*/
1940
1940
  i[1] !== ""
1941
- ), p(n, "class", "input-group svelte-bz0zu3"), p(t, "tabindex", "0"), p(t, "class", E = Kt(
1941
+ ), p(n, "class", "input-group svelte-bz0zu3"), p(t, "tabindex", "0"), p(t, "class", E = Xt(
1942
1942
  /*className*/
1943
1943
  i[2]
1944
1944
  ) + " svelte-bz0zu3"), se(
@@ -1950,34 +1950,34 @@ function Lr(i) {
1950
1950
  );
1951
1951
  },
1952
1952
  m(M, G) {
1953
- F(M, e, G), F(M, t, G), P(t, n), P(n, r), me(o, r, null), P(n, u), P(n, s), i[65](s), Jt(
1953
+ U(M, e, G), U(M, t, G), P(t, n), P(n, r), me(o, r, null), P(n, u), P(n, s), i[64](s), Kt(
1954
1954
  s,
1955
1955
  /*searchValue*/
1956
1956
  i[1]
1957
- ), P(n, c), P(n, l), P(l, d), me(a, d, null), P(l, f), S && S.m(l, null), P(n, h), w && w.m(n, null), P(n, g), I && I.m(n, null), P(t, y), ~v && U[v].m(t, null), L = !0, _ || (C = [
1957
+ ), P(n, c), P(n, l), P(l, d), me(a, d, null), P(l, f), S && S.m(l, null), P(n, h), w && w.m(n, null), P(n, g), I && I.m(n, null), P(t, y), ~b && F[b].m(t, null), L = !0, _ || (C = [
1958
1958
  J(
1959
1959
  r,
1960
1960
  "click",
1961
1961
  /*click_handler*/
1962
- i[64]
1962
+ i[63]
1963
1963
  ),
1964
1964
  J(
1965
1965
  s,
1966
1966
  "input",
1967
1967
  /*input_1_input_handler*/
1968
- i[66]
1968
+ i[65]
1969
1969
  ),
1970
1970
  J(
1971
1971
  s,
1972
1972
  "focus",
1973
1973
  /*focus_handler*/
1974
- i[67]
1974
+ i[66]
1975
1975
  ),
1976
1976
  J(
1977
1977
  s,
1978
1978
  "blur",
1979
1979
  /*blur_handler*/
1980
- i[68]
1980
+ i[67]
1981
1981
  ),
1982
1982
  J(
1983
1983
  s,
@@ -1989,15 +1989,15 @@ function Lr(i) {
1989
1989
  s,
1990
1990
  "input",
1991
1991
  /*input_handler*/
1992
- i[69]
1992
+ i[68]
1993
1993
  ),
1994
1994
  J(
1995
1995
  d,
1996
1996
  "click",
1997
1997
  /*click_handler_1*/
1998
- i[70]
1998
+ i[69]
1999
1999
  ),
2000
- J(t, "submit", xn(
2000
+ J(t, "submit", Sn(
2001
2001
  /*handleSubmit*/
2002
2002
  i[21]
2003
2003
  ))
@@ -2018,7 +2018,7 @@ function Lr(i) {
2018
2018
  M[8]
2019
2019
  ), G[0] & /*searchValue*/
2020
2020
  2 && s.value !== /*searchValue*/
2021
- M[1] && Jt(
2021
+ M[1] && Kt(
2022
2022
  s,
2023
2023
  /*searchValue*/
2024
2024
  M[1]
@@ -2030,9 +2030,9 @@ function Lr(i) {
2030
2030
  M[3]
2031
2031
  ), /*abortController*/
2032
2032
  M[19] ? S ? G[0] & /*abortController*/
2033
- 524288 && Z(S, 1) : (S = fi(), S.c(), Z(S, 1), S.m(l, null)) : S && (at(), V(S, 1, 1, () => {
2033
+ 524288 && q(S, 1) : (S = ci(), S.c(), q(S, 1), S.m(l, null)) : S && (ut(), V(S, 1, 1, () => {
2034
2034
  S = null;
2035
- }), ct()), (!L || G[0] & /*searchValue*/
2035
+ }), at()), (!L || G[0] & /*searchValue*/
2036
2036
  2) && se(
2037
2037
  l,
2038
2038
  "displayable",
@@ -2040,32 +2040,32 @@ function Lr(i) {
2040
2040
  M[1] !== ""
2041
2041
  ), /*enableReverse*/
2042
2042
  M[5] === !0 ? w ? (w.p(M, G), G[0] & /*enableReverse*/
2043
- 32 && Z(w, 1)) : (w = di(M), w.c(), Z(w, 1), w.m(n, g)) : w && (at(), V(w, 1, 1, () => {
2043
+ 32 && q(w, 1)) : (w = fi(M), w.c(), q(w, 1), w.m(n, g)) : w && (ut(), V(w, 1, 1, () => {
2044
2044
  w = null;
2045
- }), ct()), I && I.p && (!L || G[2] & /*$$scope*/
2046
- 1) && En(
2045
+ }), at()), I && I.p && (!L || G[1] & /*$$scope*/
2046
+ 1073741824) && _n(
2047
2047
  I,
2048
2048
  k,
2049
2049
  M,
2050
2050
  /*$$scope*/
2051
- M[62],
2052
- L ? _n(
2051
+ M[61],
2052
+ L ? wn(
2053
2053
  k,
2054
2054
  /*$$scope*/
2055
- M[62],
2055
+ M[61],
2056
2056
  G,
2057
2057
  null
2058
- ) : Ln(
2058
+ ) : En(
2059
2059
  /*$$scope*/
2060
- M[62]
2060
+ M[61]
2061
2061
  ),
2062
2062
  null
2063
2063
  );
2064
- let $ = v;
2065
- v = O(M), v === $ ? ~v && U[v].p(M, G) : (b && (at(), V(U[$], 1, 1, () => {
2066
- U[$] = null;
2067
- }), ct()), ~v ? (b = U[v], b ? b.p(M, G) : (b = U[v] = B[v](M), b.c()), Z(b, 1), b.m(t, null)) : b = null), (!L || G[0] & /*className*/
2068
- 4 && E !== (E = Kt(
2064
+ let $ = b;
2065
+ b = O(M), b === $ ? ~b && F[b].p(M, G) : (v && (ut(), V(F[$], 1, 1, () => {
2066
+ F[$] = null;
2067
+ }), at()), ~b ? (v = F[b], v ? v.p(M, G) : (v = F[b] = B[b](M), v.c()), q(v, 1), v.m(t, null)) : v = null), (!L || G[0] & /*className*/
2068
+ 4 && E !== (E = Xt(
2069
2069
  /*className*/
2070
2070
  M[2]
2071
2071
  ) + " svelte-bz0zu3")) && p(t, "class", E), (!L || G[0] & /*className, collapsed, searchValue*/
@@ -2078,17 +2078,17 @@ function Lr(i) {
2078
2078
  );
2079
2079
  },
2080
2080
  i(M) {
2081
- L || (Z(x), Z(o.$$.fragment, M), Z(a.$$.fragment, M), Z(S), Z(w), Z(I, M), Z(b), L = !0);
2081
+ L || (q(x), q(o.$$.fragment, M), q(a.$$.fragment, M), q(S), q(w), q(I, M), q(v), L = !0);
2082
2082
  },
2083
2083
  o(M) {
2084
- V(x), V(o.$$.fragment, M), V(a.$$.fragment, M), V(S), V(w), V(I, M), V(b), L = !1;
2084
+ V(x), V(o.$$.fragment, M), V(a.$$.fragment, M), V(S), V(w), V(I, M), V(v), L = !1;
2085
2085
  },
2086
2086
  d(M) {
2087
- M && (z(e), z(t)), ge(o), i[65](null), ge(a), S && S.d(), w && w.d(), I && I.d(M), ~v && U[v].d(), _ = !1, ye(C);
2087
+ M && (z(e), z(t)), ge(o), i[64](null), ge(a), S && S.d(), w && w.d(), I && I.d(M), ~b && F[b].d(), _ = !1, ye(C);
2088
2088
  }
2089
2089
  };
2090
2090
  }
2091
- function Sr(i, e, t) {
2091
+ function Lr(i, e, t) {
2092
2092
  let n, { $$slots: r = {}, $$scope: o } = e;
2093
2093
  const u = {
2094
2094
  continental_marine: 4,
@@ -2114,76 +2114,76 @@ function Sr(i, e, t) {
2114
2114
  "poi.restaurant": 18,
2115
2115
  "poi.aerodrome": 13
2116
2116
  };
2117
- let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: l = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: h = void 0 } = e, { debounceSearch: g = 200 } = e, { enableReverse: y = !1 } = e, { errorMessage: v = "Something went wrong…" } = e, { filter: b = () => !0 } = e, { flyTo: E = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: _ = void 0 } = e, { limit: C = void 0 } = e, { mapController: x = void 0 } = e, { minLength: S = 2 } = e, { noResultsMessage: w = "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: k = "Search" } = e, { proximity: I = [{ type: "server-geolocation" }] } = e, { reverseActive: B = y === "always" } = e, { reverseButtonTitle: U = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { showFullGeometry: M = !0 } = e, { showPlaceType: G = "if-needed" } = e, { showResultsWhileTyping: $ = !0 } = e, { autocompleteTimeout: pe = void 0 } = e, { selectFirst: Ie = !0 } = e, { flyToSelected: mt = !1 } = e, { markerOnSelected: $e = !0 } = e, { types: Ne = void 0 } = e, { exhaustiveReverseGeocoding: gt = !1 } = e, { excludeTypes: et = !1 } = e, { zoom: Oe = u } = e, { maxZoom: tt = void 0 } = e, { apiUrl: yt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: pt = {} } = e, { iconsBaseUrl: Zt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.1/icons/" } = e, { adjustUrlQuery: bt = () => {
2117
+ let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: l = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: h = void 0 } = e, { debounceSearch: g = 200 } = e, { enableReverse: y = !1 } = e, { errorMessage: b = "Something went wrong…" } = e, { filter: v = () => !0 } = e, { flyTo: E = !0 } = e, { fuzzyMatch: L = !0 } = e, { language: _ = void 0 } = e, { limit: C = void 0 } = e, { mapController: x = void 0 } = e, { minLength: S = 2 } = e, { noResultsMessage: w = "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: k = "Search" } = e, { proximity: I = [{ type: "server-geolocation" }] } = e, { reverseActive: B = y === "always" } = e, { reverseButtonTitle: F = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { pickedResultStyle: M = "full-geometry" } = e, { showPlaceType: G = "if-needed" } = e, { showResultsWhileTyping: $ = !0 } = e, { autocompleteTimeout: pe = void 0 } = e, { selectFirst: Ie = !0 } = e, { flyToSelected: ht = !1 } = e, { markerOnSelected: Je = !0 } = e, { types: Ne = void 0 } = e, { exhaustiveReverseGeocoding: mt = !1 } = e, { excludeTypes: $e = !1 } = e, { zoom: et = u } = e, { apiUrl: gt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: yt = {} } = e, { iconsBaseUrl: jt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/" } = e, { adjustUrlQuery: pt = () => {
2118
2118
  } } = e;
2119
- function Hi() {
2119
+ function Qi() {
2120
2120
  fe.focus();
2121
2121
  }
2122
- function Vi() {
2122
+ function Hi() {
2123
2123
  fe.blur();
2124
2124
  }
2125
2125
  function qt(m, j = !0, Q = !1) {
2126
- t(1, O = m), j ? (t(15, D = -1), Ht()) : (_t(!Q, Q), setTimeout(() => {
2126
+ t(1, O = m), j ? (t(15, D = -1), Qt()) : (wt(!Q, Q), setTimeout(() => {
2127
2127
  fe.focus(), fe.select();
2128
2128
  }));
2129
2129
  }
2130
- function Yi() {
2131
- t(14, R = void 0), t(58, N = void 0), t(15, D = -1);
2130
+ function Vi() {
2131
+ t(14, R = void 0), t(57, N = void 0), t(15, D = -1);
2132
2132
  }
2133
- function Xi() {
2134
- t(57, q = []), t(58, N = void 0);
2133
+ function Yi() {
2134
+ t(56, Z = []), t(57, N = void 0);
2135
2135
  }
2136
- let We = !1, R, q, N, Qt = "", fe, D = -1, de, it = [], Te, be, ie, nt, vt;
2137
- const Ki = /* @__PURE__ */ new Set(), ve = Nn();
2138
- function Ji() {
2136
+ let Oe = !1, R, Z, N, Zt = "", fe, D = -1, de, tt = [], Te, ve, ie, it, vt;
2137
+ const Xi = /* @__PURE__ */ new Set(), be = kn();
2138
+ function Ki() {
2139
2139
  return !!ie;
2140
2140
  }
2141
- kn(() => {
2141
+ Cn(() => {
2142
2142
  x && (x.setEventHandler(void 0), x.indicateReverse(!1), x.setSelectedMarker(-1), x.setMarkers(void 0, void 0));
2143
2143
  });
2144
- function Ht(m) {
2145
- if (be && (window.clearTimeout(be), be = void 0), ie) {
2146
- window.clearTimeout(ie), t(59, ie = void 0), Fe(O, { exact: !0 });
2144
+ function Qt(m) {
2145
+ if (ve && (window.clearTimeout(ve), ve = void 0), ie) {
2146
+ window.clearTimeout(ie), t(58, ie = void 0), De(O, { exact: !0 });
2147
2147
  return;
2148
2148
  }
2149
2149
  if (D > -1 && R)
2150
- t(58, N = R[D]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, de = void 0), t(57, q = void 0), t(15, D = -1);
2150
+ t(57, N = R[D]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, de = void 0), t(56, Z = void 0), t(15, D = -1);
2151
2151
  else if (O) {
2152
- const j = m || !wt(O);
2153
- Fe(O, { exact: !0 }).then(() => {
2154
- t(57, q = R), t(58, N = void 0), j && $i();
2152
+ const j = m || !bt(O);
2153
+ De(O, { exact: !0 }).then(() => {
2154
+ t(56, Z = R), t(57, N = void 0), j && Ji();
2155
2155
  }).catch((Q) => t(18, de = Q));
2156
2156
  }
2157
2157
  }
2158
- function wt(m) {
2158
+ function bt(m) {
2159
2159
  try {
2160
- return br(m, 6);
2160
+ return pr(m, 6);
2161
2161
  } catch {
2162
2162
  return !1;
2163
2163
  }
2164
2164
  }
2165
- async function Fe(m, { byId: j = !1, exact: Q = !1, appendSpace: ne = !1 } = {}) {
2165
+ async function De(m, { byId: j = !1, exact: Q = !1, appendSpace: ne = !1 } = {}) {
2166
2166
  t(18, de = void 0), Te == null || Te.abort();
2167
2167
  const ee = new AbortController();
2168
2168
  t(19, Te = ee);
2169
2169
  try {
2170
- const T = wt(m), H = new URLSearchParams();
2171
- if (_ !== void 0 && H.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), Ne && H.set("types", Ne.join(",")), et && H.set("excludeTypes", String(et)), l && H.set("bbox", l.map((ot) => ot.toFixed(6)).join(",")), h && H.set("country", Array.isArray(h) ? h.join(",") : h), !j && !T) {
2172
- const ot = await lr(x, I, ee);
2173
- ot && H.set("proximity", ot), (Q || !$) && H.set("autocomplete", "false"), H.set("fuzzyMatch", String(L));
2170
+ const T = bt(m), H = new URLSearchParams();
2171
+ if (_ !== void 0 && H.set("language", Array.isArray(_) ? _.join(",") : _ ?? ""), Ne && H.set("types", Ne.join(",")), $e && H.set("excludeTypes", String($e)), l && H.set("bbox", l.map((rt) => rt.toFixed(6)).join(",")), h && H.set("country", Array.isArray(h) ? h.join(",") : h), !j && !T) {
2172
+ const rt = await sr(x, I, ee);
2173
+ rt && H.set("proximity", rt), (Q || !$) && H.set("autocomplete", "false"), H.set("fuzzyMatch", String(L));
2174
2174
  }
2175
- C !== void 0 && (gt || !T || (Ne == null ? void 0 : Ne.length) === 1) && H.set("limit", String(C)), H.set("key", c), bt(H);
2176
- const rt = yt + "/" + encodeURIComponent(T ? T.decimalLongitude + "," + T.decimalLatitude : m + (ne ? " " : "")) + ".json?" + H.toString();
2177
- if (rt === Qt) {
2178
- j ? (t(14, R = void 0), t(58, N = it[0])) : t(14, R = it);
2175
+ C !== void 0 && (mt || !T || (Ne == null ? void 0 : Ne.length) === 1) && H.set("limit", String(C)), H.set("key", c), pt(H);
2176
+ const nt = gt + "/" + encodeURIComponent(T ? T.decimalLongitude + "," + T.decimalLatitude : m + (ne ? " " : "")) + ".json?" + H.toString();
2177
+ if (nt === Zt) {
2178
+ j ? (t(14, R = void 0), t(57, N = tt[0])) : t(14, R = tt);
2179
2179
  return;
2180
2180
  }
2181
- Qt = rt;
2182
- const Lt = await fetch(rt, { signal: ee.signal, ...pt });
2183
- if (!Lt.ok)
2184
- throw new Error(await Lt.text());
2185
- const St = await Lt.json();
2186
- ve("response", { url: rt, featureCollection: St }), j ? (t(14, R = void 0), t(58, N = St.features[0]), it = [N]) : (t(14, R = St.features.filter(b)), T && R.unshift({
2181
+ Zt = nt;
2182
+ const Et = await fetch(nt, { signal: ee.signal, ...yt });
2183
+ if (!Et.ok)
2184
+ throw new Error(await Et.text());
2185
+ const Lt = await Et.json();
2186
+ be("response", { url: nt, featureCollection: Lt }), j ? (t(14, R = void 0), t(57, N = Lt.features[0]), tt = [N]) : (t(14, R = Lt.features.filter(v)), T && R.unshift({
2187
2187
  type: "Feature",
2188
2188
  properties: {},
2189
2189
  id: "reverse_" + T.decimalLongitude + "_" + T.decimalLatitude,
@@ -2201,7 +2201,7 @@ function Sr(i, e, t) {
2201
2201
  type: "Point",
2202
2202
  coordinates: [T.decimalLongitude, T.decimalLatitude]
2203
2203
  }
2204
- }), it = R, T && fe.focus());
2204
+ }), tt = R, T && fe.focus());
2205
2205
  } catch (T) {
2206
2206
  if (T && typeof T == "object" && "name" in T && T.name === "AbortError")
2207
2207
  return;
@@ -2210,139 +2210,137 @@ function Sr(i, e, t) {
2210
2210
  ee === Te && t(19, Te = void 0);
2211
2211
  }
2212
2212
  }
2213
- function $i() {
2213
+ function Ji() {
2214
2214
  var ne;
2215
- if (!(q != null && q.length) || !E)
2215
+ if (!(Z != null && Z.length) || !E)
2216
2216
  return;
2217
- const m = [180, 90, -180, -90], j = !q.some((ee) => !ee.matching_text);
2217
+ const m = [180, 90, -180, -90], j = !Z.some((ee) => !ee.matching_text);
2218
2218
  let Q;
2219
- for (const ee of q) {
2219
+ for (const ee of Z) {
2220
2220
  const T = Ue(ee);
2221
- if (Q = tt ?? (Q === void 0 ? T : T === void 0 ? Q : Math.max(Q, T)), j || !ee.matching_text)
2221
+ if (Q = Q === void 0 ? T : T === void 0 ? Q : Math.max(Q, T), j || !ee.matching_text)
2222
2222
  for (const H of [0, 1, 2, 3])
2223
2223
  m[H] = Math[H < 2 ? "min" : "max"](m[H], ((ne = ee.bbox) == null ? void 0 : ne[H]) ?? ee.center[H % 2]);
2224
2224
  }
2225
- x && q.length > 0 && (N && m[0] === m[2] && m[1] === m[3] ? x.flyTo(N.center, Ue(N)) : x.fitBounds(Ve(m), 50, Q));
2225
+ x && Z.length > 0 && (N && m[0] === m[2] && m[1] === m[3] ? x.flyTo(N.center, Ue(N)) : x.fitBounds(He(m), 50, Q));
2226
2226
  }
2227
2227
  function Ue(m) {
2228
2228
  var Q;
2229
2229
  if (!m.bbox || m.bbox[0] !== m.bbox[2] && m.bbox[1] !== m.bbox[3])
2230
2230
  return;
2231
- if (typeof Oe == "number")
2232
- return m.id.startsWith("poi.") || m.id.startsWith("address.") ? tt : Oe;
2233
2231
  const j = m.id.replace(/\..*/, "");
2234
2232
  return (Array.isArray((Q = m.properties) == null ? void 0 : Q.categories) ? m.properties.categories.reduce(
2235
2233
  (ne, ee) => {
2236
- const T = Oe[j + "." + ee];
2234
+ const T = et[j + "." + ee];
2237
2235
  return ne === void 0 ? T : T === void 0 ? ne : Math.max(ne, T);
2238
2236
  },
2239
2237
  void 0
2240
- ) : void 0) ?? Oe[j];
2238
+ ) : void 0) ?? et[j];
2241
2239
  }
2242
- function en(m) {
2243
- t(0, B = y === "always"), t(14, R = void 0), t(58, N = void 0), t(15, D = -1), qt(m[1].toFixed(6) + ", " + sr(m[0], [-180, 180], !0).toFixed(6), !1, !0);
2240
+ function $i(m) {
2241
+ t(0, B = y === "always"), t(14, R = void 0), t(57, N = void 0), t(15, D = -1), qt(m[1].toFixed(6) + ", " + or(m[0], [-180, 180], !0).toFixed(6), !1, !0);
2244
2242
  }
2245
- function tn(m) {
2243
+ function en(m) {
2246
2244
  if (!R)
2247
2245
  return;
2248
2246
  let j = m.key === "ArrowDown" ? 1 : m.key === "ArrowUp" ? -1 : 0;
2249
2247
  j && (D === (Ie ? 0 : -1) && j === -1 && t(15, D = R.length), t(15, D += j), D >= R.length && t(15, D = -1), D < 0 && Ie && t(15, D = 0), m.preventDefault());
2250
2248
  }
2251
- function _t(m = !0, j = !1) {
2252
- if (t(18, de = void 0), be && (window.clearTimeout(be), be = void 0), ie && (window.clearTimeout(ie), t(59, ie = void 0)), !$ && !j || O.length < S) {
2249
+ function wt(m = !0, j = !1) {
2250
+ if (t(18, de = void 0), ve && (window.clearTimeout(ve), ve = void 0), ie && (window.clearTimeout(ie), t(58, ie = void 0)), !$ && !j || O.length < S) {
2253
2251
  t(14, R = void 0);
2254
2252
  return;
2255
2253
  }
2256
2254
  const Q = O;
2257
- be = window.setTimeout(
2255
+ ve = window.setTimeout(
2258
2256
  () => {
2259
- be = void 0, Fe(Q).catch((ne) => t(18, de = ne));
2257
+ ve = void 0, De(Q).catch((ne) => t(18, de = ne));
2260
2258
  },
2261
2259
  m ? g : 0
2262
- ), O.endsWith(" ") || t(59, ie = window.setTimeout(
2260
+ ), O.endsWith(" ") || t(58, ie = window.setTimeout(
2263
2261
  () => {
2264
- t(59, ie = void 0), Fe(Q, { appendSpace: !0 }).catch((ne) => t(18, de = ne));
2262
+ t(58, ie = void 0), De(Q, { appendSpace: !0 }).catch((ne) => t(18, de = ne));
2265
2263
  },
2266
2264
  pe
2267
2265
  ));
2268
2266
  }
2269
- function Et(m) {
2270
- t(58, N = m), t(1, O = m.place_name), t(15, D = -1);
2267
+ function _t(m) {
2268
+ t(57, N = m), t(1, O = m.place_name), t(15, D = -1);
2271
2269
  }
2272
- const nn = () => fe.focus();
2273
- function rn(m) {
2274
- Tt[m ? "unshift" : "push"](() => {
2270
+ const tn = () => fe.focus();
2271
+ function nn(m) {
2272
+ Nt[m ? "unshift" : "push"](() => {
2275
2273
  fe = m, t(17, fe);
2276
2274
  });
2277
2275
  }
2278
- function on() {
2279
- O = this.value, t(1, O), t(13, We), t(28, a);
2276
+ function rn() {
2277
+ O = this.value, t(1, O), t(13, Oe), t(28, a);
2280
2278
  }
2281
- const sn = () => t(13, We = !0), ln = () => t(13, We = !1), un = () => _t(), an = () => {
2279
+ const on = () => t(13, Oe = !0), sn = () => t(13, Oe = !1), ln = () => wt(), un = () => {
2282
2280
  t(1, O = ""), fe.focus();
2283
- }, cn = () => t(0, B = !B), fn = () => t(18, de = void 0), dn = (m) => t(15, D = m), hn = (m) => Et(m), mn = () => {
2281
+ }, an = () => t(0, B = !B), cn = () => t(18, de = void 0), fn = (m) => t(15, D = m), dn = (m) => _t(m), hn = () => {
2284
2282
  Ie || t(15, D = -1);
2285
- }, gn = () => {
2283
+ }, mn = () => {
2286
2284
  };
2287
2285
  return i.$$set = (m) => {
2288
- "class" in m && t(2, s = m.class), "apiKey" in m && t(26, c = m.apiKey), "bbox" in m && t(27, l = m.bbox), "clearButtonTitle" in m && t(3, d = m.clearButtonTitle), "clearOnBlur" in m && t(28, a = m.clearOnBlur), "collapsed" in m && t(4, f = m.collapsed), "country" in m && t(29, h = m.country), "debounceSearch" in m && t(30, g = m.debounceSearch), "enableReverse" in m && t(5, y = m.enableReverse), "errorMessage" in m && t(6, v = m.errorMessage), "filter" in m && t(31, b = m.filter), "flyTo" in m && t(32, E = m.flyTo), "fuzzyMatch" in m && t(33, L = m.fuzzyMatch), "language" in m && t(34, _ = m.language), "limit" in m && t(35, C = m.limit), "mapController" in m && t(36, x = m.mapController), "minLength" in m && t(37, S = m.minLength), "noResultsMessage" in m && t(7, w = m.noResultsMessage), "placeholder" in m && t(8, k = m.placeholder), "proximity" in m && t(38, I = m.proximity), "reverseActive" in m && t(0, B = m.reverseActive), "reverseButtonTitle" in m && t(9, U = m.reverseButtonTitle), "searchValue" in m && t(1, O = m.searchValue), "showFullGeometry" in m && t(39, M = m.showFullGeometry), "showPlaceType" in m && t(10, G = m.showPlaceType), "showResultsWhileTyping" in m && t(40, $ = m.showResultsWhileTyping), "autocompleteTimeout" in m && t(41, pe = m.autocompleteTimeout), "selectFirst" in m && t(11, Ie = m.selectFirst), "flyToSelected" in m && t(42, mt = m.flyToSelected), "markerOnSelected" in m && t(43, $e = m.markerOnSelected), "types" in m && t(44, Ne = m.types), "exhaustiveReverseGeocoding" in m && t(45, gt = m.exhaustiveReverseGeocoding), "excludeTypes" in m && t(46, et = m.excludeTypes), "zoom" in m && t(47, Oe = m.zoom), "maxZoom" in m && t(48, tt = m.maxZoom), "apiUrl" in m && t(49, yt = m.apiUrl), "fetchParameters" in m && t(50, pt = m.fetchParameters), "iconsBaseUrl" in m && t(12, Zt = m.iconsBaseUrl), "adjustUrlQuery" in m && t(51, bt = m.adjustUrlQuery), "$$scope" in m && t(62, o = m.$$scope);
2286
+ "class" in m && t(2, s = m.class), "apiKey" in m && t(26, c = m.apiKey), "bbox" in m && t(27, l = m.bbox), "clearButtonTitle" in m && t(3, d = m.clearButtonTitle), "clearOnBlur" in m && t(28, a = m.clearOnBlur), "collapsed" in m && t(4, f = m.collapsed), "country" in m && t(29, h = m.country), "debounceSearch" in m && t(30, g = m.debounceSearch), "enableReverse" in m && t(5, y = m.enableReverse), "errorMessage" in m && t(6, b = m.errorMessage), "filter" in m && t(31, v = m.filter), "flyTo" in m && t(32, E = m.flyTo), "fuzzyMatch" in m && t(33, L = m.fuzzyMatch), "language" in m && t(34, _ = m.language), "limit" in m && t(35, C = m.limit), "mapController" in m && t(36, x = m.mapController), "minLength" in m && t(37, S = m.minLength), "noResultsMessage" in m && t(7, w = m.noResultsMessage), "placeholder" in m && t(8, k = m.placeholder), "proximity" in m && t(38, I = m.proximity), "reverseActive" in m && t(0, B = m.reverseActive), "reverseButtonTitle" in m && t(9, F = m.reverseButtonTitle), "searchValue" in m && t(1, O = m.searchValue), "pickedResultStyle" in m && t(39, M = m.pickedResultStyle), "showPlaceType" in m && t(10, G = m.showPlaceType), "showResultsWhileTyping" in m && t(40, $ = m.showResultsWhileTyping), "autocompleteTimeout" in m && t(41, pe = m.autocompleteTimeout), "selectFirst" in m && t(11, Ie = m.selectFirst), "flyToSelected" in m && t(42, ht = m.flyToSelected), "markerOnSelected" in m && t(43, Je = m.markerOnSelected), "types" in m && t(44, Ne = m.types), "exhaustiveReverseGeocoding" in m && t(45, mt = m.exhaustiveReverseGeocoding), "excludeTypes" in m && t(46, $e = m.excludeTypes), "zoom" in m && t(47, et = m.zoom), "apiUrl" in m && t(48, gt = m.apiUrl), "fetchParameters" in m && t(49, yt = m.fetchParameters), "iconsBaseUrl" in m && t(12, jt = m.iconsBaseUrl), "adjustUrlQuery" in m && t(50, pt = m.adjustUrlQuery), "$$scope" in m && t(61, o = m.$$scope);
2289
2287
  }, i.$$.update = () => {
2290
2288
  if (i.$$.dirty[0] & /*enableReverse*/
2291
2289
  32 && t(0, B = y === "always"), i.$$.dirty[0] & /*focused, clearOnBlur*/
2292
2290
  268443648 && setTimeout(() => {
2293
- t(16, nt = We), a && !We && t(1, O = "");
2291
+ t(16, it = Oe), a && !Oe && t(1, O = "");
2294
2292
  }), i.$$.dirty[0] & /*searchValue, listFeatures*/
2295
2293
  16386 | i.$$.dirty[1] & /*minLength*/
2296
- 64 && O.length < S && (t(58, N = void 0), t(14, R = void 0), t(18, de = void 0), t(57, q = R)), i.$$.dirty[1] & /*showFullGeometry, picked*/
2297
- 134217984 && M && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && Fe(N.id, { byId: !0 }).catch((m) => t(18, de = m)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2298
- 671088674 && (x && N && N.id !== vt && E && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? x.flyTo(N.center, Ue(N)) : x.fitBounds(Ve(N.bbox), 50, Ue(N)), t(14, R = void 0), t(57, q = void 0), t(15, D = -1)), t(60, vt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2299
- 18432 && Ie && R != null && R.length && (Ji() || t(15, D = 0)), i.$$.dirty[0] & /*searchValue*/
2294
+ 64 && O.length < S && (t(57, N = void 0), t(14, R = void 0), t(18, de = void 0), t(56, Z = R)), i.$$.dirty[1] & /*pickedResultStyle, picked*/
2295
+ 67109120 && M !== "marker-only" && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && De(N.id, { byId: !0 }).catch((m) => t(18, de = m)), i.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2296
+ 335544354 && (x && N && N.id !== vt && E && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? x.flyTo(N.center, Ue(N)) : x.fitBounds(He(N.bbox), 50, Ue(N)), t(14, R = void 0), t(56, Z = void 0), t(15, D = -1)), t(59, vt = N == null ? void 0 : N.id)), i.$$.dirty[0] & /*selectFirst, listFeatures*/
2297
+ 18432 && Ie && R != null && R.length && (Ki() || t(15, D = 0)), i.$$.dirty[0] & /*searchValue*/
2300
2298
  2 && t(15, D = -1), i.$$.dirty[0] & /*listFeatures*/
2301
2299
  16384 | i.$$.dirty[1] & /*markedFeatures*/
2302
- 67108864 && q !== R && t(57, q = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2300
+ 33554432 && Z !== R && t(56, Z = void 0), i.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2303
2301
  81921 | i.$$.dirty[1] & /*mapController, markedFeatures*/
2304
- 67108896 && x && x.setEventHandler((m) => {
2302
+ 33554464 && x && x.setEventHandler((m) => {
2305
2303
  switch (m.type) {
2306
2304
  case "mapClick":
2307
- B && en(m.coordinates);
2305
+ B && $i(m.coordinates);
2308
2306
  break;
2309
2307
  case "markerClick":
2310
2308
  {
2311
2309
  const j = R == null ? void 0 : R.find((Q) => Q.id === m.id);
2312
- j && Et(j);
2310
+ j && _t(j);
2313
2311
  }
2314
2312
  break;
2315
2313
  case "markerMouseEnter":
2316
- q && t(15, D = nt ? (R == null ? void 0 : R.findIndex((j) => j.id === m.id)) ?? -1 : -1);
2314
+ Z && t(15, D = it ? (R == null ? void 0 : R.findIndex((j) => j.id === m.id)) ?? -1 : -1);
2317
2315
  break;
2318
2316
  case "markerMouseLeave":
2319
- q && t(15, D = -1);
2317
+ Z && t(15, D = -1);
2320
2318
  break;
2321
2319
  }
2322
2320
  }), i.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2323
- 49152 && t(61, n = R == null ? void 0 : R[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2324
- 1073743906 && x && n && E && mt && x.flyTo(n.center, Ue(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2325
- 4128 && ($e || x == null || x.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2326
- 1140854816 && x && $e && !q && (x.setMarkers(n ? [n] : void 0, void 0), x.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2327
- 201326624 && x && x.setMarkers(q, N), i.$$.dirty[0] & /*selectedItemIndex*/
2321
+ 49152 && t(60, n = R == null ? void 0 : R[D]), i.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2322
+ 536872994 && x && n && E && ht && x.flyTo(n.center, Ue(n)), i.$$.dirty[1] & /*markerOnSelected, mapController*/
2323
+ 4128 && (Je || x == null || x.setMarkers(void 0, void 0)), i.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2324
+ 570429472 && x && Je && !Z && (x.setMarkers(n ? [n] : void 0, void 0), x.setSelectedMarker(n ? 0 : -1)), i.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2325
+ 100663328 && x && x.setMarkers(Z, N), i.$$.dirty[0] & /*selectedItemIndex*/
2328
2326
  32768 | i.$$.dirty[1] & /*markedFeatures, mapController*/
2329
- 67108896 && q && x && x.setSelectedMarker(D), i.$$.dirty[1] & /*selected, autocompleteTimeoutRef*/
2330
- 1342177280 && n && (window.clearTimeout(ie), t(59, ie = void 0)), i.$$.dirty[0] & /*searchValue*/
2327
+ 33554464 && Z && x && x.setSelectedMarker(D), i.$$.dirty[1] & /*selected, autocompleteTimeoutRef*/
2328
+ 671088640 && n && (window.clearTimeout(ie), t(58, ie = void 0)), i.$$.dirty[0] & /*searchValue*/
2331
2329
  2 | i.$$.dirty[1] & /*mapController*/
2332
2330
  32 && x) {
2333
- const m = wt(O);
2331
+ const m = bt(O);
2334
2332
  x.setReverseMarker(m ? [m.decimalLongitude, m.decimalLatitude] : void 0);
2335
2333
  }
2336
2334
  i.$$.dirty[1] & /*selected*/
2337
- 1073741824 && ve("select", { feature: n }), i.$$.dirty[1] & /*picked*/
2338
- 134217728 && ve("pick", { feature: N }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2339
- 81920 && ve("optionsvisibilitychange", {
2340
- optionsVisible: nt && !!R
2335
+ 536870912 && be("select", { feature: n }), i.$$.dirty[1] & /*picked*/
2336
+ 67108864 && be("pick", { feature: N }), i.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2337
+ 81920 && be("optionsvisibilitychange", {
2338
+ optionsVisible: it && !!R
2341
2339
  }), i.$$.dirty[0] & /*listFeatures*/
2342
- 16384 && ve("featureslisted", { features: R }), i.$$.dirty[1] & /*markedFeatures*/
2343
- 67108864 && ve("featuresmarked", { features: q }), i.$$.dirty[0] & /*reverseActive*/
2344
- 1 && ve("reversetoggle", { reverse: B }), i.$$.dirty[0] & /*searchValue*/
2345
- 2 && ve("querychange", { query: O }), i.$$.dirty[0] & /*reverseActive*/
2340
+ 16384 && be("featureslisted", { features: R }), i.$$.dirty[1] & /*markedFeatures*/
2341
+ 33554432 && be("featuresmarked", { features: Z }), i.$$.dirty[0] & /*reverseActive*/
2342
+ 1 && be("reversetoggle", { reverse: B }), i.$$.dirty[0] & /*searchValue*/
2343
+ 2 && be("querychange", { query: O }), i.$$.dirty[0] & /*reverseActive*/
2346
2344
  1 | i.$$.dirty[1] & /*mapController*/
2347
2345
  32 && x && x.indicateReverse(B);
2348
2346
  }, [
@@ -2352,32 +2350,32 @@ function Sr(i, e, t) {
2352
2350
  d,
2353
2351
  f,
2354
2352
  y,
2355
- v,
2353
+ b,
2356
2354
  w,
2357
2355
  k,
2358
- U,
2356
+ F,
2359
2357
  G,
2360
2358
  Ie,
2361
- Zt,
2362
- We,
2359
+ jt,
2360
+ Oe,
2363
2361
  R,
2364
2362
  D,
2365
- nt,
2363
+ it,
2366
2364
  fe,
2367
2365
  de,
2368
2366
  Te,
2369
- Ki,
2370
- Ht,
2371
- tn,
2367
+ Xi,
2368
+ Qt,
2369
+ en,
2370
+ wt,
2372
2371
  _t,
2373
- Et,
2374
2372
  u,
2375
2373
  c,
2376
2374
  l,
2377
2375
  a,
2378
2376
  h,
2379
2377
  g,
2380
- b,
2378
+ v,
2381
2379
  E,
2382
2380
  L,
2383
2381
  _,
@@ -2388,28 +2386,28 @@ function Sr(i, e, t) {
2388
2386
  M,
2389
2387
  $,
2390
2388
  pe,
2389
+ ht,
2390
+ Je,
2391
+ Ne,
2391
2392
  mt,
2392
2393
  $e,
2393
- Ne,
2394
- gt,
2395
2394
  et,
2396
- Oe,
2397
- tt,
2395
+ gt,
2398
2396
  yt,
2399
2397
  pt,
2400
- bt,
2398
+ Qi,
2401
2399
  Hi,
2402
- Vi,
2403
2400
  qt,
2401
+ Vi,
2404
2402
  Yi,
2405
- Xi,
2406
- q,
2403
+ Z,
2407
2404
  N,
2408
2405
  ie,
2409
2406
  vt,
2410
2407
  n,
2411
2408
  o,
2412
2409
  r,
2410
+ tn,
2413
2411
  nn,
2414
2412
  rn,
2415
2413
  on,
@@ -2421,17 +2419,16 @@ function Sr(i, e, t) {
2421
2419
  fn,
2422
2420
  dn,
2423
2421
  hn,
2424
- mn,
2425
- gn
2422
+ mn
2426
2423
  ];
2427
2424
  }
2428
- let xr = class extends ke {
2425
+ let Sr = class extends ke {
2429
2426
  constructor(e) {
2430
2427
  super(), Ce(
2431
2428
  this,
2432
2429
  e,
2433
- Sr,
2434
2430
  Lr,
2431
+ Er,
2435
2432
  Me,
2436
2433
  {
2437
2434
  ZOOM_DEFAULTS: 25,
@@ -2458,7 +2455,7 @@ let xr = class extends ke {
2458
2455
  reverseActive: 0,
2459
2456
  reverseButtonTitle: 9,
2460
2457
  searchValue: 1,
2461
- showFullGeometry: 39,
2458
+ pickedResultStyle: 39,
2462
2459
  showPlaceType: 10,
2463
2460
  showResultsWhileTyping: 40,
2464
2461
  autocompleteTimeout: 41,
@@ -2469,16 +2466,15 @@ let xr = class extends ke {
2469
2466
  exhaustiveReverseGeocoding: 45,
2470
2467
  excludeTypes: 46,
2471
2468
  zoom: 47,
2472
- maxZoom: 48,
2473
- apiUrl: 49,
2474
- fetchParameters: 50,
2469
+ apiUrl: 48,
2470
+ fetchParameters: 49,
2475
2471
  iconsBaseUrl: 12,
2476
- adjustUrlQuery: 51,
2477
- focus: 52,
2478
- blur: 53,
2479
- setQuery: 54,
2480
- clearList: 55,
2481
- clearMap: 56
2472
+ adjustUrlQuery: 50,
2473
+ focus: 51,
2474
+ blur: 52,
2475
+ setQuery: 53,
2476
+ clearList: 54,
2477
+ clearMap: 55
2482
2478
  },
2483
2479
  null,
2484
2480
  [-1, -1, -1]
@@ -2488,26 +2484,26 @@ let xr = class extends ke {
2488
2484
  return this.$$.ctx[25];
2489
2485
  }
2490
2486
  get focus() {
2491
- return this.$$.ctx[52];
2487
+ return this.$$.ctx[51];
2492
2488
  }
2493
2489
  get blur() {
2494
- return this.$$.ctx[53];
2490
+ return this.$$.ctx[52];
2495
2491
  }
2496
2492
  get setQuery() {
2497
- return this.$$.ctx[54];
2493
+ return this.$$.ctx[53];
2498
2494
  }
2499
2495
  get clearList() {
2500
- return this.$$.ctx[55];
2496
+ return this.$$.ctx[54];
2501
2497
  }
2502
2498
  get clearMap() {
2503
- return this.$$.ctx[56];
2499
+ return this.$$.ctx[55];
2504
2500
  }
2505
2501
  };
2506
- function Ye(i, e, t = {}) {
2502
+ function Ve(i, e, t = {}) {
2507
2503
  const n = { type: "Feature" };
2508
2504
  return (t.id === 0 || t.id) && (n.id = t.id), t.bbox && (n.bbox = t.bbox), n.properties = e || {}, n.geometry = i, n;
2509
2505
  }
2510
- function Ft(i, e, t = {}) {
2506
+ function Dt(i, e, t = {}) {
2511
2507
  for (const r of i) {
2512
2508
  if (r.length < 4)
2513
2509
  throw new Error(
@@ -2519,25 +2515,25 @@ function Ft(i, e, t = {}) {
2519
2515
  if (r[r.length - 1][o] !== r[0][o])
2520
2516
  throw new Error("First and last Position are not equivalent.");
2521
2517
  }
2522
- return Ye({
2518
+ return Ve({
2523
2519
  type: "Polygon",
2524
2520
  coordinates: i
2525
2521
  }, e, t);
2526
2522
  }
2527
- function Xe(i, e = {}) {
2523
+ function Ye(i, e = {}) {
2528
2524
  const t = { type: "FeatureCollection" };
2529
2525
  return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = i, t;
2530
2526
  }
2531
- function Bi(i, e, t = {}) {
2532
- return Ye({
2527
+ function zi(i, e, t = {}) {
2528
+ return Ve({
2533
2529
  type: "MultiPolygon",
2534
2530
  coordinates: i
2535
2531
  }, e, t);
2536
2532
  }
2537
- function Di(i, e, t) {
2533
+ function Bi(i, e, t) {
2538
2534
  if (i !== null)
2539
- for (var n, r, o, u, s, c, l, d = 0, a = 0, f, h = i.type, g = h === "FeatureCollection", y = h === "Feature", v = g ? i.features.length : 1, b = 0; b < v; b++) {
2540
- l = g ? i.features[b].geometry : y ? i.geometry : i, f = l ? l.type === "GeometryCollection" : !1, s = f ? l.geometries.length : 1;
2535
+ for (var n, r, o, u, s, c, l, d = 0, a = 0, f, h = i.type, g = h === "FeatureCollection", y = h === "Feature", b = g ? i.features.length : 1, v = 0; v < b; v++) {
2536
+ l = g ? i.features[v].geometry : y ? i.geometry : i, f = l ? l.type === "GeometryCollection" : !1, s = f ? l.geometries.length : 1;
2541
2537
  for (var E = 0; E < s; E++) {
2542
2538
  var L = 0, _ = 0;
2543
2539
  if (u = f ? l.geometries[E] : l, u !== null) {
@@ -2550,7 +2546,7 @@ function Di(i, e, t) {
2550
2546
  if (e(
2551
2547
  c,
2552
2548
  a,
2553
- b,
2549
+ v,
2554
2550
  L,
2555
2551
  _
2556
2552
  ) === !1)
@@ -2563,7 +2559,7 @@ function Di(i, e, t) {
2563
2559
  if (e(
2564
2560
  c[n],
2565
2561
  a,
2566
- b,
2562
+ v,
2567
2563
  L,
2568
2564
  _
2569
2565
  ) === !1)
@@ -2579,7 +2575,7 @@ function Di(i, e, t) {
2579
2575
  if (e(
2580
2576
  c[n][r],
2581
2577
  a,
2582
- b,
2578
+ v,
2583
2579
  L,
2584
2580
  _
2585
2581
  ) === !1)
@@ -2597,7 +2593,7 @@ function Di(i, e, t) {
2597
2593
  if (e(
2598
2594
  c[n][r][o],
2599
2595
  a,
2600
- b,
2596
+ v,
2601
2597
  L,
2602
2598
  _
2603
2599
  ) === !1)
@@ -2611,7 +2607,7 @@ function Di(i, e, t) {
2611
2607
  break;
2612
2608
  case "GeometryCollection":
2613
2609
  for (n = 0; n < u.geometries.length; n++)
2614
- if (Di(u.geometries[n], e) === !1)
2610
+ if (Bi(u.geometries[n], e) === !1)
2615
2611
  return !1;
2616
2612
  break;
2617
2613
  default:
@@ -2672,7 +2668,7 @@ function Ut(i, e) {
2672
2668
  f++;
2673
2669
  }
2674
2670
  }
2675
- function Mr(i, e) {
2671
+ function xr(i, e) {
2676
2672
  Ut(i, function(t, n, r, o, u) {
2677
2673
  var s = t === null ? null : t.type;
2678
2674
  switch (s) {
@@ -2681,7 +2677,7 @@ function Mr(i, e) {
2681
2677
  case "LineString":
2682
2678
  case "Polygon":
2683
2679
  return e(
2684
- Ye(t, r, { bbox: o, id: u }),
2680
+ Ve(t, r, { bbox: o, id: u }),
2685
2681
  n,
2686
2682
  0
2687
2683
  ) === !1 ? !1 : void 0;
@@ -2703,28 +2699,28 @@ function Mr(i, e) {
2703
2699
  type: c,
2704
2700
  coordinates: d
2705
2701
  };
2706
- if (e(Ye(a, r), n, l) === !1)
2702
+ if (e(Ve(a, r), n, l) === !1)
2707
2703
  return !1;
2708
2704
  }
2709
2705
  });
2710
2706
  }
2711
- function Cr(i, e = {}) {
2707
+ function Mr(i, e = {}) {
2712
2708
  if (i.bbox != null && e.recompute !== !0)
2713
2709
  return i.bbox;
2714
2710
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
2715
- return Di(i, (n) => {
2711
+ return Bi(i, (n) => {
2716
2712
  t[0] > n[0] && (t[0] = n[0]), t[1] > n[1] && (t[1] = n[1]), t[2] < n[0] && (t[2] = n[0]), t[3] < n[1] && (t[3] = n[1]);
2717
2713
  }), t;
2718
2714
  }
2719
- var It = Cr;
2720
- function kr(i) {
2715
+ var Rt = Mr;
2716
+ function Cr(i) {
2721
2717
  if (!i)
2722
2718
  throw new Error("geojson is required");
2723
2719
  switch (i.type) {
2724
2720
  case "Feature":
2725
- return Fi(i);
2721
+ return Di(i);
2726
2722
  case "FeatureCollection":
2727
- return Nr(i);
2723
+ return kr(i);
2728
2724
  case "Point":
2729
2725
  case "LineString":
2730
2726
  case "Polygon":
@@ -2732,12 +2728,12 @@ function kr(i) {
2732
2728
  case "MultiLineString":
2733
2729
  case "MultiPolygon":
2734
2730
  case "GeometryCollection":
2735
- return Gt(i);
2731
+ return Ft(i);
2736
2732
  default:
2737
2733
  throw new Error("unknown GeoJSON type");
2738
2734
  }
2739
2735
  }
2740
- function Fi(i) {
2736
+ function Di(i) {
2741
2737
  const e = { type: "Feature" };
2742
2738
  return Object.keys(i).forEach((t) => {
2743
2739
  switch (t) {
@@ -2748,7 +2744,7 @@ function Fi(i) {
2748
2744
  default:
2749
2745
  e[t] = i[t];
2750
2746
  }
2751
- }), e.properties = Ui(i.properties), i.geometry == null ? e.geometry = null : e.geometry = Gt(i.geometry), e;
2747
+ }), e.properties = Ui(i.properties), i.geometry == null ? e.geometry = null : e.geometry = Ft(i.geometry), e;
2752
2748
  }
2753
2749
  function Ui(i) {
2754
2750
  const e = {};
@@ -2757,7 +2753,7 @@ function Ui(i) {
2757
2753
  typeof n == "object" ? n === null ? e[t] = null : Array.isArray(n) ? e[t] = n.map((r) => r) : e[t] = Ui(n) : e[t] = n;
2758
2754
  }), e;
2759
2755
  }
2760
- function Nr(i) {
2756
+ function kr(i) {
2761
2757
  const e = { type: "FeatureCollection" };
2762
2758
  return Object.keys(i).forEach((t) => {
2763
2759
  switch (t) {
@@ -2767,17 +2763,17 @@ function Nr(i) {
2767
2763
  default:
2768
2764
  e[t] = i[t];
2769
2765
  }
2770
- }), e.features = i.features.map((t) => Fi(t)), e;
2766
+ }), e.features = i.features.map((t) => Di(t)), e;
2771
2767
  }
2772
- function Gt(i) {
2768
+ function Ft(i) {
2773
2769
  const e = { type: i.type };
2774
- return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => Gt(t)), e) : (e.coordinates = Gi(i.coordinates), e);
2770
+ return i.bbox && (e.bbox = i.bbox), i.type === "GeometryCollection" ? (e.geometries = i.geometries.map((t) => Ft(t)), e) : (e.coordinates = Fi(i.coordinates), e);
2775
2771
  }
2776
- function Gi(i) {
2772
+ function Fi(i) {
2777
2773
  const e = i;
2778
- return typeof e[0] != "object" ? e.slice() : e.map((t) => Gi(t));
2774
+ return typeof e[0] != "object" ? e.slice() : e.map((t) => Fi(t));
2779
2775
  }
2780
- var Tr = kr;
2776
+ var Nr = Cr;
2781
2777
  /**
2782
2778
  * splaytree v3.1.2
2783
2779
  * Fast Splay tree for Node and browser
@@ -2800,7 +2796,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
2800
2796
  See the Apache Version 2.0 License for specific language governing permissions
2801
2797
  and limitations under the License.
2802
2798
  ***************************************************************************** */
2803
- function Pr(i, e) {
2799
+ function Tr(i, e) {
2804
2800
  var t = { label: 0, sent: function() {
2805
2801
  if (o[0] & 1) throw o[1];
2806
2802
  return o[1];
@@ -2869,7 +2865,7 @@ var xe = (
2869
2865
  return i;
2870
2866
  }()
2871
2867
  );
2872
- function Rr(i, e) {
2868
+ function Pr(i, e) {
2873
2869
  return i > e ? 1 : i < e ? -1 : 0;
2874
2870
  }
2875
2871
  function we(i, e, t) {
@@ -2898,7 +2894,7 @@ function we(i, e, t) {
2898
2894
  }
2899
2895
  return r.right = e.left, o.left = e.right, e.left = n.right, e.right = n.left, e;
2900
2896
  }
2901
- function kt(i, e, t, n) {
2897
+ function Ct(i, e, t, n) {
2902
2898
  var r = new xe(i, e);
2903
2899
  if (t === null)
2904
2900
  return r.left = r.right = null, r;
@@ -2906,7 +2902,7 @@ function kt(i, e, t, n) {
2906
2902
  var o = n(i, t.key);
2907
2903
  return o < 0 ? (r.left = t.left, r.right = t, t.left = null) : o >= 0 && (r.right = t.right, r.left = t, t.right = null), r;
2908
2904
  }
2909
- function mi(i, e, t) {
2905
+ function hi(i, e, t) {
2910
2906
  var n = null, r = null;
2911
2907
  if (e) {
2912
2908
  e = we(i, e, t);
@@ -2915,25 +2911,25 @@ function mi(i, e, t) {
2915
2911
  }
2916
2912
  return { left: n, right: r };
2917
2913
  }
2918
- function Ir(i, e, t) {
2914
+ function Rr(i, e, t) {
2919
2915
  return e === null ? i : (i === null || (e = we(i.key, e, t), e.left = i), e);
2920
2916
  }
2921
- function Ot(i, e, t, n, r) {
2917
+ function It(i, e, t, n, r) {
2922
2918
  if (i) {
2923
2919
  n("" + e + (t ? "└── " : "├── ") + r(i) + `
2924
2920
  `);
2925
2921
  var o = e + (t ? " " : "│ ");
2926
- i.left && Ot(i.left, o, !1, n, r), i.right && Ot(i.right, o, !0, n, r);
2922
+ i.left && It(i.left, o, !1, n, r), i.right && It(i.right, o, !0, n, r);
2927
2923
  }
2928
2924
  }
2929
- var jt = (
2925
+ var Gt = (
2930
2926
  /** @class */
2931
2927
  function() {
2932
2928
  function i(e) {
2933
- e === void 0 && (e = Rr), this._root = null, this._size = 0, this._comparator = e;
2929
+ e === void 0 && (e = Pr), this._root = null, this._size = 0, this._comparator = e;
2934
2930
  }
2935
2931
  return i.prototype.insert = function(e, t) {
2936
- return this._size++, this._root = kt(e, t, this._root, this._comparator);
2932
+ return this._size++, this._root = Ct(e, t, this._root, this._comparator);
2937
2933
  }, i.prototype.add = function(e, t) {
2938
2934
  var n = new xe(e, t);
2939
2935
  this._root === null && (n.left = n.right = null, this._size++, this._root = n);
@@ -3058,14 +3054,14 @@ var jt = (
3058
3054
  }, i.prototype.clear = function() {
3059
3055
  return this._root = null, this._size = 0, this;
3060
3056
  }, i.prototype.toList = function() {
3061
- return Wr(this._root);
3057
+ return Or(this._root);
3062
3058
  }, i.prototype.load = function(e, t, n) {
3063
3059
  t === void 0 && (t = []), n === void 0 && (n = !1);
3064
3060
  var r = e.length, o = this._comparator;
3065
- if (n && zt(e, t, 0, r - 1, o), this._root === null)
3066
- this._root = Wt(e, t, 0, r), this._size = r;
3061
+ if (n && Wt(e, t, 0, r - 1, o), this._root === null)
3062
+ this._root = Ot(e, t, 0, r), this._size = r;
3067
3063
  else {
3068
- var u = Ar(this.toList(), Or(e, t), o);
3064
+ var u = Ar(this.toList(), Ir(e, t), o);
3069
3065
  r = this._size + r, this._root = At({ head: u }, 0, r);
3070
3066
  }
3071
3067
  return this;
@@ -3088,17 +3084,17 @@ var jt = (
3088
3084
  return String(n.key);
3089
3085
  });
3090
3086
  var t = [];
3091
- return Ot(this._root, "", !0, function(n) {
3087
+ return It(this._root, "", !0, function(n) {
3092
3088
  return t.push(n);
3093
3089
  }, e), t.join("");
3094
3090
  }, i.prototype.update = function(e, t, n) {
3095
- var r = this._comparator, o = mi(e, this._root, r), u = o.left, s = o.right;
3096
- r(e, t) < 0 ? s = kt(t, n, s, r) : u = kt(t, n, u, r), this._root = Ir(u, s, r);
3091
+ var r = this._comparator, o = hi(e, this._root, r), u = o.left, s = o.right;
3092
+ r(e, t) < 0 ? s = Ct(t, n, s, r) : u = Ct(t, n, u, r), this._root = Rr(u, s, r);
3097
3093
  }, i.prototype.split = function(e) {
3098
- return mi(e, this._root, this._comparator);
3094
+ return hi(e, this._root, this._comparator);
3099
3095
  }, i.prototype[Symbol.iterator] = function() {
3100
3096
  var e, t, n;
3101
- return Pr(this, function(r) {
3097
+ return Tr(this, function(r) {
3102
3098
  switch (r.label) {
3103
3099
  case 0:
3104
3100
  e = this._root, t = [], n = !1, r.label = 1;
@@ -3122,20 +3118,20 @@ var jt = (
3122
3118
  }, i;
3123
3119
  }()
3124
3120
  );
3125
- function Wt(i, e, t, n) {
3121
+ function Ot(i, e, t, n) {
3126
3122
  var r = n - t;
3127
3123
  if (r > 0) {
3128
3124
  var o = t + Math.floor(r / 2), u = i[o], s = e[o], c = new xe(u, s);
3129
- return c.left = Wt(i, e, t, o), c.right = Wt(i, e, o + 1, n), c;
3125
+ return c.left = Ot(i, e, t, o), c.right = Ot(i, e, o + 1, n), c;
3130
3126
  }
3131
3127
  return null;
3132
3128
  }
3133
- function Or(i, e) {
3129
+ function Ir(i, e) {
3134
3130
  for (var t = new xe(null, null), n = t, r = 0; r < i.length; r++)
3135
3131
  n = n.next = new xe(i[r], e[r]);
3136
3132
  return n.next = null, t.next;
3137
3133
  }
3138
- function Wr(i) {
3134
+ function Or(i) {
3139
3135
  for (var e = i, t = [], n = !1, r = new xe(null, null), o = r; !n; )
3140
3136
  e ? (t.push(e), e = e.left) : t.length > 0 ? (e = o = o.next = t.pop(), e = e.right) : n = !0;
3141
3137
  return o.next = null, r.next;
@@ -3153,7 +3149,7 @@ function Ar(i, e, t) {
3153
3149
  t(o.key, u.key) < 0 ? (r.next = o, o = o.next) : (r.next = u, u = u.next), r = r.next;
3154
3150
  return o !== null ? r.next = o : u !== null && (r.next = u), n.next;
3155
3151
  }
3156
- function zt(i, e, t, n, r) {
3152
+ function Wt(i, e, t, n, r) {
3157
3153
  if (!(t >= n)) {
3158
3154
  for (var o = i[t + n >> 1], u = t - 1, s = n + 1; ; ) {
3159
3155
  do
@@ -3167,11 +3163,11 @@ function zt(i, e, t, n, r) {
3167
3163
  var c = i[u];
3168
3164
  i[u] = i[s], i[s] = c, c = e[u], e[u] = e[s], e[s] = c;
3169
3165
  }
3170
- zt(i, e, t, s, r), zt(i, e, s + 1, n, r);
3166
+ Wt(i, e, t, s, r), Wt(i, e, s + 1, n, r);
3171
3167
  }
3172
3168
  }
3173
- const he = 11102230246251565e-32, Y = 134217729, zr = (3 + 8 * he) * he;
3174
- function Nt(i, e, t, n, r) {
3169
+ const he = 11102230246251565e-32, Y = 134217729, Wr = (3 + 8 * he) * he;
3170
+ function kt(i, e, t, n, r) {
3175
3171
  let o, u, s, c, l = e[0], d = n[0], a = 0, f = 0;
3176
3172
  d > l == d > -l ? (o = l, l = e[++a]) : (o = d, d = n[++f]);
3177
3173
  let h = 0;
@@ -3184,34 +3180,34 @@ function Nt(i, e, t, n, r) {
3184
3180
  u = o + d, c = u - o, s = o - (u - c) + (d - c), d = n[++f], o = u, s !== 0 && (r[h++] = s);
3185
3181
  return (o !== 0 || h === 0) && (r[h++] = o), h;
3186
3182
  }
3187
- function Br(i, e) {
3183
+ function zr(i, e) {
3188
3184
  let t = e[0];
3189
3185
  for (let n = 1; n < i; n++) t += e[n];
3190
3186
  return t;
3191
3187
  }
3192
- function Je(i) {
3188
+ function Ke(i) {
3193
3189
  return new Float64Array(i);
3194
3190
  }
3195
- const Dr = (3 + 16 * he) * he, Fr = (2 + 12 * he) * he, Ur = (9 + 64 * he) * he * he, ze = Je(4), gi = Je(8), yi = Je(12), pi = Je(16), K = Je(4);
3196
- function Gr(i, e, t, n, r, o, u) {
3197
- let s, c, l, d, a, f, h, g, y, v, b, E, L, _, C, x, S, w;
3198
- const k = i - r, I = t - r, B = e - o, U = n - o;
3199
- _ = k * U, f = Y * k, h = f - (f - k), g = k - h, f = Y * U, y = f - (f - U), v = U - y, C = g * v - (_ - h * y - g * y - h * v), x = B * I, f = Y * B, h = f - (f - B), g = B - h, f = Y * I, y = f - (f - I), v = I - y, S = g * v - (x - h * y - g * y - h * v), b = C - S, a = C - b, ze[0] = C - (b + a) + (a - S), E = _ + b, a = E - _, L = _ - (E - a) + (b - a), b = L - x, a = L - b, ze[1] = L - (b + a) + (a - x), w = E + b, a = w - E, ze[2] = E - (w - a) + (b - a), ze[3] = w;
3200
- let O = Br(4, ze), M = Fr * u;
3201
- if (O >= M || -O >= M || (a = i - k, s = i - (k + a) + (a - r), a = t - I, l = t - (I + a) + (a - r), a = e - B, c = e - (B + a) + (a - o), a = n - U, d = n - (U + a) + (a - o), s === 0 && c === 0 && l === 0 && d === 0) || (M = Ur * u + zr * Math.abs(O), O += k * d + U * s - (B * l + I * c), O >= M || -O >= M)) return O;
3202
- _ = s * U, f = Y * s, h = f - (f - s), g = s - h, f = Y * U, y = f - (f - U), v = U - y, C = g * v - (_ - h * y - g * y - h * v), x = c * I, f = Y * c, h = f - (f - c), g = c - h, f = Y * I, y = f - (f - I), v = I - y, S = g * v - (x - h * y - g * y - h * v), b = C - S, a = C - b, K[0] = C - (b + a) + (a - S), E = _ + b, a = E - _, L = _ - (E - a) + (b - a), b = L - x, a = L - b, K[1] = L - (b + a) + (a - x), w = E + b, a = w - E, K[2] = E - (w - a) + (b - a), K[3] = w;
3203
- const G = Nt(4, ze, 4, K, gi);
3204
- _ = k * d, f = Y * k, h = f - (f - k), g = k - h, f = Y * d, y = f - (f - d), v = d - y, C = g * v - (_ - h * y - g * y - h * v), x = B * l, f = Y * B, h = f - (f - B), g = B - h, f = Y * l, y = f - (f - l), v = l - y, S = g * v - (x - h * y - g * y - h * v), b = C - S, a = C - b, K[0] = C - (b + a) + (a - S), E = _ + b, a = E - _, L = _ - (E - a) + (b - a), b = L - x, a = L - b, K[1] = L - (b + a) + (a - x), w = E + b, a = w - E, K[2] = E - (w - a) + (b - a), K[3] = w;
3205
- const $ = Nt(G, gi, 4, K, yi);
3206
- _ = s * d, f = Y * s, h = f - (f - s), g = s - h, f = Y * d, y = f - (f - d), v = d - y, C = g * v - (_ - h * y - g * y - h * v), x = c * l, f = Y * c, h = f - (f - c), g = c - h, f = Y * l, y = f - (f - l), v = l - y, S = g * v - (x - h * y - g * y - h * v), b = C - S, a = C - b, K[0] = C - (b + a) + (a - S), E = _ + b, a = E - _, L = _ - (E - a) + (b - a), b = L - x, a = L - b, K[1] = L - (b + a) + (a - x), w = E + b, a = w - E, K[2] = E - (w - a) + (b - a), K[3] = w;
3207
- const pe = Nt($, yi, 4, K, pi);
3208
- return pi[pe - 1];
3209
- }
3210
- function jr(i, e, t, n, r, o) {
3191
+ const Br = (3 + 16 * he) * he, Dr = (2 + 12 * he) * he, Ur = (9 + 64 * he) * he * he, We = Ke(4), mi = Ke(8), gi = Ke(12), yi = Ke(16), K = Ke(4);
3192
+ function Fr(i, e, t, n, r, o, u) {
3193
+ let s, c, l, d, a, f, h, g, y, b, v, E, L, _, C, x, S, w;
3194
+ const k = i - r, I = t - r, B = e - o, F = n - o;
3195
+ _ = k * F, f = Y * k, h = f - (f - k), g = k - h, f = Y * F, y = f - (f - F), b = F - y, C = g * b - (_ - h * y - g * y - h * b), x = B * I, f = Y * B, h = f - (f - B), g = B - h, f = Y * I, y = f - (f - I), b = I - y, S = g * b - (x - h * y - g * y - h * b), v = C - S, a = C - v, We[0] = C - (v + a) + (a - S), E = _ + v, a = E - _, L = _ - (E - a) + (v - a), v = L - x, a = L - v, We[1] = L - (v + a) + (a - x), w = E + v, a = w - E, We[2] = E - (w - a) + (v - a), We[3] = w;
3196
+ let O = zr(4, We), M = Dr * u;
3197
+ if (O >= M || -O >= M || (a = i - k, s = i - (k + a) + (a - r), a = t - I, l = t - (I + a) + (a - r), a = e - B, c = e - (B + a) + (a - o), a = n - F, d = n - (F + a) + (a - o), s === 0 && c === 0 && l === 0 && d === 0) || (M = Ur * u + Wr * Math.abs(O), O += k * d + F * s - (B * l + I * c), O >= M || -O >= M)) return O;
3198
+ _ = s * F, f = Y * s, h = f - (f - s), g = s - h, f = Y * F, y = f - (f - F), b = F - y, C = g * b - (_ - h * y - g * y - h * b), x = c * I, f = Y * c, h = f - (f - c), g = c - h, f = Y * I, y = f - (f - I), b = I - y, S = g * b - (x - h * y - g * y - h * b), v = C - S, a = C - v, K[0] = C - (v + a) + (a - S), E = _ + v, a = E - _, L = _ - (E - a) + (v - a), v = L - x, a = L - v, K[1] = L - (v + a) + (a - x), w = E + v, a = w - E, K[2] = E - (w - a) + (v - a), K[3] = w;
3199
+ const G = kt(4, We, 4, K, mi);
3200
+ _ = k * d, f = Y * k, h = f - (f - k), g = k - h, f = Y * d, y = f - (f - d), b = d - y, C = g * b - (_ - h * y - g * y - h * b), x = B * l, f = Y * B, h = f - (f - B), g = B - h, f = Y * l, y = f - (f - l), b = l - y, S = g * b - (x - h * y - g * y - h * b), v = C - S, a = C - v, K[0] = C - (v + a) + (a - S), E = _ + v, a = E - _, L = _ - (E - a) + (v - a), v = L - x, a = L - v, K[1] = L - (v + a) + (a - x), w = E + v, a = w - E, K[2] = E - (w - a) + (v - a), K[3] = w;
3201
+ const $ = kt(G, mi, 4, K, gi);
3202
+ _ = s * d, f = Y * s, h = f - (f - s), g = s - h, f = Y * d, y = f - (f - d), b = d - y, C = g * b - (_ - h * y - g * y - h * b), x = c * l, f = Y * c, h = f - (f - c), g = c - h, f = Y * l, y = f - (f - l), b = l - y, S = g * b - (x - h * y - g * y - h * b), v = C - S, a = C - v, K[0] = C - (v + a) + (a - S), E = _ + v, a = E - _, L = _ - (E - a) + (v - a), v = L - x, a = L - v, K[1] = L - (v + a) + (a - x), w = E + v, a = w - E, K[2] = E - (w - a) + (v - a), K[3] = w;
3203
+ const pe = kt($, gi, 4, K, yi);
3204
+ return yi[pe - 1];
3205
+ }
3206
+ function Gr(i, e, t, n, r, o) {
3211
3207
  const u = (e - o) * (t - r), s = (i - r) * (n - o), c = u - s, l = Math.abs(u + s);
3212
- return Math.abs(c) >= Dr * l ? c : -Gr(i, e, t, n, r, o, l);
3208
+ return Math.abs(c) >= Br * l ? c : -Fr(i, e, t, n, r, o, l);
3213
3209
  }
3214
- const Ze = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, Bt = (i, e) => {
3210
+ const je = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i.ur.y, zt = (i, e) => {
3215
3211
  if (e.ur.x < i.ll.x || i.ur.x < e.ll.x || e.ur.y < i.ll.y || i.ur.y < e.ll.y) return null;
3216
3212
  const t = i.ll.x < e.ll.x ? e.ll.x : i.ll.x, n = i.ur.x < e.ur.x ? i.ur.x : e.ur.x, r = i.ll.y < e.ll.y ? e.ll.y : i.ll.y, o = i.ur.y < e.ur.y ? i.ur.y : e.ur.y;
3217
3213
  return {
@@ -3227,11 +3223,11 @@ const Ze = (i, e) => i.ll.x <= e.x && e.x <= i.ur.x && i.ll.y <= e.y && e.y <= i
3227
3223
  };
3228
3224
  let _e = Number.EPSILON;
3229
3225
  _e === void 0 && (_e = Math.pow(2, -52));
3230
- const Zr = _e * _e, bi = (i, e) => {
3226
+ const jr = _e * _e, pi = (i, e) => {
3231
3227
  if (-_e < i && i < _e && -_e < e && e < _e)
3232
3228
  return 0;
3233
3229
  const t = i - e;
3234
- return t * t < Zr * i * e ? 0 : i < e ? -1 : 1;
3230
+ return t * t < jr * i * e ? 0 : i < e ? -1 : 1;
3235
3231
  };
3236
3232
  class qr {
3237
3233
  constructor() {
@@ -3249,7 +3245,7 @@ class qr {
3249
3245
  }
3250
3246
  class vi {
3251
3247
  constructor() {
3252
- this.tree = new jt(), this.round(0);
3248
+ this.tree = new Gt(), this.round(0);
3253
3249
  }
3254
3250
  // Note: this can rounds input values backwards or forwards.
3255
3251
  // You might ask, why not restrict this to just rounding
@@ -3260,16 +3256,16 @@ class vi {
3260
3256
  // angle for t-intersections).
3261
3257
  round(e) {
3262
3258
  const t = this.tree.add(e), n = this.tree.prev(t);
3263
- if (n !== null && bi(t.key, n.key) === 0)
3259
+ if (n !== null && pi(t.key, n.key) === 0)
3264
3260
  return this.tree.remove(e), n.key;
3265
3261
  const r = this.tree.next(t);
3266
- return r !== null && bi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3262
+ return r !== null && pi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3267
3263
  }
3268
3264
  }
3269
- const Ke = new qr(), ft = (i, e) => i.x * e.y - i.y * e.x, ji = (i, e) => i.x * e.x + i.y * e.y, wi = (i, e, t) => {
3270
- const n = jr(i.x, i.y, e.x, e.y, t.x, t.y);
3265
+ const Xe = new qr(), ct = (i, e) => i.x * e.y - i.y * e.x, Gi = (i, e) => i.x * e.x + i.y * e.y, bi = (i, e, t) => {
3266
+ const n = Gr(i.x, i.y, e.x, e.y, t.x, t.y);
3271
3267
  return n > 0 ? -1 : n < 0 ? 1 : 0;
3272
- }, dt = (i) => Math.sqrt(ji(i, i)), Qr = (i, e, t) => {
3268
+ }, ft = (i) => Math.sqrt(Gi(i, i)), Zr = (i, e, t) => {
3273
3269
  const n = {
3274
3270
  x: e.x - i.x,
3275
3271
  y: e.y - i.y
@@ -3277,8 +3273,8 @@ const Ke = new qr(), ft = (i, e) => i.x * e.y - i.y * e.x, ji = (i, e) => i.x *
3277
3273
  x: t.x - i.x,
3278
3274
  y: t.y - i.y
3279
3275
  };
3280
- return ft(r, n) / dt(r) / dt(n);
3281
- }, Hr = (i, e, t) => {
3276
+ return ct(r, n) / ft(r) / ft(n);
3277
+ }, Qr = (i, e, t) => {
3282
3278
  const n = {
3283
3279
  x: e.x - i.x,
3284
3280
  y: e.y - i.y
@@ -3286,24 +3282,24 @@ const Ke = new qr(), ft = (i, e) => i.x * e.y - i.y * e.x, ji = (i, e) => i.x *
3286
3282
  x: t.x - i.x,
3287
3283
  y: t.y - i.y
3288
3284
  };
3289
- return ji(r, n) / dt(r) / dt(n);
3290
- }, _i = (i, e, t) => e.y === 0 ? null : {
3285
+ return Gi(r, n) / ft(r) / ft(n);
3286
+ }, wi = (i, e, t) => e.y === 0 ? null : {
3291
3287
  x: i.x + e.x / e.y * (t - i.y),
3292
3288
  y: t
3293
- }, Ei = (i, e, t) => e.x === 0 ? null : {
3289
+ }, _i = (i, e, t) => e.x === 0 ? null : {
3294
3290
  x: t,
3295
3291
  y: i.y + e.y / e.x * (t - i.x)
3296
- }, Vr = (i, e, t, n) => {
3297
- if (e.x === 0) return Ei(t, n, i.x);
3298
- if (n.x === 0) return Ei(i, e, t.x);
3299
- if (e.y === 0) return _i(t, n, i.y);
3300
- if (n.y === 0) return _i(i, e, t.y);
3301
- const r = ft(e, n);
3292
+ }, Hr = (i, e, t, n) => {
3293
+ if (e.x === 0) return _i(t, n, i.x);
3294
+ if (n.x === 0) return _i(i, e, t.x);
3295
+ if (e.y === 0) return wi(t, n, i.y);
3296
+ if (n.y === 0) return wi(i, e, t.y);
3297
+ const r = ct(e, n);
3302
3298
  if (r == 0) return null;
3303
3299
  const o = {
3304
3300
  x: t.x - i.x,
3305
3301
  y: t.y - i.y
3306
- }, u = ft(o, e) / r, s = ft(o, n) / r, c = i.x + s * e.x, l = t.x + u * n.x, d = i.y + s * e.y, a = t.y + u * n.y, f = (c + l) / 2, h = (d + a) / 2;
3302
+ }, u = ct(o, e) / r, s = ct(o, n) / r, c = i.x + s * e.x, l = t.x + u * n.x, d = i.y + s * e.y, a = t.y + u * n.y, f = (c + l) / 2, h = (d + a) / 2;
3307
3303
  return {
3308
3304
  x: f,
3309
3305
  y: h
@@ -3368,8 +3364,8 @@ class oe {
3368
3364
  const t = /* @__PURE__ */ new Map(), n = (r) => {
3369
3365
  const o = r.otherSE;
3370
3366
  t.set(r, {
3371
- sine: Qr(this.point, e.point, o.point),
3372
- cosine: Hr(this.point, e.point, o.point)
3367
+ sine: Zr(this.point, e.point, o.point),
3368
+ cosine: Qr(this.point, e.point, o.point)
3373
3369
  });
3374
3370
  };
3375
3371
  return (r, o) => {
@@ -3385,7 +3381,7 @@ class oe {
3385
3381
  };
3386
3382
  }
3387
3383
  }
3388
- let Yr = 0;
3384
+ let Vr = 0;
3389
3385
  class Ee {
3390
3386
  /* This compare() function is for ordering segments in the sweep
3391
3387
  * line tree, and does so according to the following criteria:
@@ -3443,7 +3439,7 @@ class Ee {
3443
3439
  /* Warning: a reference to ringWindings input will be stored,
3444
3440
  * and possibly will be later modified */
3445
3441
  constructor(e, t, n, r) {
3446
- this.id = ++Yr, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
3442
+ this.id = ++Vr, this.leftSE = e, e.segment = this, e.otherSE = t, this.rightSE = t, t.segment = this, t.otherSE = e, this.rings = n, this.windings = r;
3447
3443
  }
3448
3444
  static fromRing(e, t, n) {
3449
3445
  let r, o, u;
@@ -3522,9 +3518,9 @@ class Ee {
3522
3518
  * Else, return null.
3523
3519
  */
3524
3520
  getIntersection(e) {
3525
- const t = this.bbox(), n = e.bbox(), r = Bt(t, n);
3521
+ const t = this.bbox(), n = e.bbox(), r = zt(t, n);
3526
3522
  if (r === null) return null;
3527
- const o = this.leftSE.point, u = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, l = Ze(t, s) && this.comparePoint(s) === 0, d = Ze(n, o) && e.comparePoint(o) === 0, a = Ze(t, c) && this.comparePoint(c) === 0, f = Ze(n, u) && e.comparePoint(u) === 0;
3523
+ const o = this.leftSE.point, u = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, l = je(t, s) && this.comparePoint(s) === 0, d = je(n, o) && e.comparePoint(o) === 0, a = je(t, c) && this.comparePoint(c) === 0, f = je(n, u) && e.comparePoint(u) === 0;
3528
3524
  if (d && l)
3529
3525
  return f && !a ? u : !f && a ? c : null;
3530
3526
  if (d)
@@ -3534,8 +3530,8 @@ class Ee {
3534
3530
  if (f && a) return null;
3535
3531
  if (f) return u;
3536
3532
  if (a) return c;
3537
- const h = Vr(o, this.vector(), s, e.vector());
3538
- return h === null || !Ze(r, h) ? null : Ke.round(h.x, h.y);
3533
+ const h = Hr(o, this.vector(), s, e.vector());
3534
+ return h === null || !je(r, h) ? null : Xe.round(h.x, h.y);
3539
3535
  }
3540
3536
  /**
3541
3537
  * Split the given segment into multiple segments on the given points.
@@ -3665,13 +3661,13 @@ class Ee {
3665
3661
  return this._isInResult;
3666
3662
  }
3667
3663
  }
3668
- class Li {
3664
+ class Ei {
3669
3665
  constructor(e, t, n) {
3670
3666
  if (!Array.isArray(e) || e.length === 0)
3671
3667
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3672
3668
  if (this.poly = t, this.isExterior = n, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
3673
3669
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3674
- const r = Ke.round(e[0][0], e[0][1]);
3670
+ const r = Xe.round(e[0][0], e[0][1]);
3675
3671
  this.bbox = {
3676
3672
  ll: {
3677
3673
  x: r.x,
@@ -3686,7 +3682,7 @@ class Li {
3686
3682
  for (let u = 1, s = e.length; u < s; u++) {
3687
3683
  if (typeof e[u][0] != "number" || typeof e[u][1] != "number")
3688
3684
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3689
- let c = Ke.round(e[u][0], e[u][1]);
3685
+ let c = Xe.round(e[u][0], e[u][1]);
3690
3686
  c.x === o.x && c.y === o.y || (this.segments.push(Ee.fromRing(o, c, this)), c.x < this.bbox.ll.x && (this.bbox.ll.x = c.x), c.y < this.bbox.ll.y && (this.bbox.ll.y = c.y), c.x > this.bbox.ur.x && (this.bbox.ur.x = c.x), c.y > this.bbox.ur.y && (this.bbox.ur.y = c.y), o = c);
3691
3687
  }
3692
3688
  (r.x !== o.x || r.y !== o.y) && this.segments.push(Ee.fromRing(o, r, this));
@@ -3700,11 +3696,11 @@ class Li {
3700
3696
  return e;
3701
3697
  }
3702
3698
  }
3703
- class Xr {
3699
+ class Yr {
3704
3700
  constructor(e, t) {
3705
3701
  if (!Array.isArray(e))
3706
3702
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3707
- this.exteriorRing = new Li(e[0], this, !0), this.bbox = {
3703
+ this.exteriorRing = new Ei(e[0], this, !0), this.bbox = {
3708
3704
  ll: {
3709
3705
  x: this.exteriorRing.bbox.ll.x,
3710
3706
  y: this.exteriorRing.bbox.ll.y
@@ -3715,7 +3711,7 @@ class Xr {
3715
3711
  }
3716
3712
  }, this.interiorRings = [];
3717
3713
  for (let n = 1, r = e.length; n < r; n++) {
3718
- const o = new Li(e[n], this, !1);
3714
+ const o = new Ei(e[n], this, !1);
3719
3715
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.interiorRings.push(o);
3720
3716
  }
3721
3717
  this.multiPoly = t;
@@ -3730,7 +3726,7 @@ class Xr {
3730
3726
  return e;
3731
3727
  }
3732
3728
  }
3733
- class Si {
3729
+ class Li {
3734
3730
  constructor(e, t) {
3735
3731
  if (!Array.isArray(e))
3736
3732
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
@@ -3749,7 +3745,7 @@ class Si {
3749
3745
  }
3750
3746
  };
3751
3747
  for (let n = 0, r = e.length; n < r; n++) {
3752
- const o = new Xr(e[n], this);
3748
+ const o = new Yr(e[n], this);
3753
3749
  o.bbox.ll.x < this.bbox.ll.x && (this.bbox.ll.x = o.bbox.ll.x), o.bbox.ll.y < this.bbox.ll.y && (this.bbox.ll.y = o.bbox.ll.y), o.bbox.ur.x > this.bbox.ur.x && (this.bbox.ur.x = o.bbox.ur.x), o.bbox.ur.y > this.bbox.ur.y && (this.bbox.ur.y = o.bbox.ur.y), this.polys.push(o);
3754
3750
  }
3755
3751
  this.isSubject = t;
@@ -3764,7 +3760,7 @@ class Si {
3764
3760
  return e;
3765
3761
  }
3766
3762
  }
3767
- class ht {
3763
+ class dt {
3768
3764
  /* Given the segments from the sweep line pass, compute & return a series
3769
3765
  * of closed rings from all the segments marked to be part of the result */
3770
3766
  static factory(e) {
@@ -3778,22 +3774,22 @@ class ht {
3778
3774
  for (; ; ) {
3779
3775
  const f = s.getAvailableLinkedEvents();
3780
3776
  if (f.length === 0) {
3781
- const y = l[0].point, v = l[l.length - 1].point;
3782
- throw new Error(`Unable to complete output ring starting at [${y.x}, ${y.y}]. Last matching segment found ends at [${v.x}, ${v.y}].`);
3777
+ const y = l[0].point, b = l[l.length - 1].point;
3778
+ throw new Error(`Unable to complete output ring starting at [${y.x}, ${y.y}]. Last matching segment found ends at [${b.x}, ${b.y}].`);
3783
3779
  }
3784
3780
  if (f.length === 1) {
3785
3781
  c = f[0].otherSE;
3786
3782
  break;
3787
3783
  }
3788
3784
  let h = null;
3789
- for (let y = 0, v = a.length; y < v; y++)
3785
+ for (let y = 0, b = a.length; y < b; y++)
3790
3786
  if (a[y].point === s.point) {
3791
3787
  h = y;
3792
3788
  break;
3793
3789
  }
3794
3790
  if (h !== null) {
3795
- const y = a.splice(h)[0], v = l.splice(y.index);
3796
- v.unshift(v[0].otherSE), t.push(new ht(v.reverse()));
3791
+ const y = a.splice(h)[0], b = l.splice(y.index);
3792
+ b.unshift(b[0].otherSE), t.push(new dt(b.reverse()));
3797
3793
  continue;
3798
3794
  }
3799
3795
  a.push({
@@ -3804,7 +3800,7 @@ class ht {
3804
3800
  c = f.sort(g)[0].otherSE;
3805
3801
  break;
3806
3802
  }
3807
- t.push(new ht(l));
3803
+ t.push(new dt(l));
3808
3804
  }
3809
3805
  return t;
3810
3806
  }
@@ -3819,11 +3815,11 @@ class ht {
3819
3815
  const t = [e];
3820
3816
  for (let l = 1, d = this.events.length - 1; l < d; l++) {
3821
3817
  const a = this.events[l].point, f = this.events[l + 1].point;
3822
- wi(a, e, f) !== 0 && (t.push(a), e = a);
3818
+ bi(a, e, f) !== 0 && (t.push(a), e = a);
3823
3819
  }
3824
3820
  if (t.length === 1) return null;
3825
3821
  const n = t[0], r = t[1];
3826
- wi(n, e, r) === 0 && t.shift(), t.push(t[0]);
3822
+ bi(n, e, r) === 0 && t.shift(), t.push(t[0]);
3827
3823
  const o = this.isExteriorRing() ? 1 : -1, u = this.isExteriorRing() ? 0 : t.length - 1, s = this.isExteriorRing() ? t.length : -1, c = [];
3828
3824
  for (let l = u; l != s; l += o) c.push([t[l].x, t[l].y]);
3829
3825
  return c;
@@ -3855,7 +3851,7 @@ class ht {
3855
3851
  }
3856
3852
  }
3857
3853
  }
3858
- class xi {
3854
+ class Si {
3859
3855
  constructor(e) {
3860
3856
  this.exteriorRing = e, e.poly = this, this.interiorRings = [];
3861
3857
  }
@@ -3872,7 +3868,7 @@ class xi {
3872
3868
  return e;
3873
3869
  }
3874
3870
  }
3875
- class Kr {
3871
+ class Xr {
3876
3872
  constructor(e) {
3877
3873
  this.rings = e, this.polys = this._composePolys(e);
3878
3874
  }
@@ -3889,19 +3885,19 @@ class Kr {
3889
3885
  for (let n = 0, r = e.length; n < r; n++) {
3890
3886
  const o = e[n];
3891
3887
  if (!o.poly)
3892
- if (o.isExteriorRing()) t.push(new xi(o));
3888
+ if (o.isExteriorRing()) t.push(new Si(o));
3893
3889
  else {
3894
3890
  const u = o.enclosingRing();
3895
- u.poly || t.push(new xi(u)), u.poly.addInterior(o);
3891
+ u.poly || t.push(new Si(u)), u.poly.addInterior(o);
3896
3892
  }
3897
3893
  }
3898
3894
  return t;
3899
3895
  }
3900
3896
  }
3901
- class Jr {
3897
+ class Kr {
3902
3898
  constructor(e) {
3903
3899
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ee.compare;
3904
- this.queue = e, this.tree = new jt(t), this.segments = [];
3900
+ this.queue = e, this.tree = new Gt(t), this.segments = [];
3905
3901
  }
3906
3902
  process(e) {
3907
3903
  const t = e.segment, n = [];
@@ -3971,33 +3967,33 @@ class Jr {
3971
3967
  return r.push(n), e.consumedBy === void 0 && this.tree.add(e), r;
3972
3968
  }
3973
3969
  }
3974
- const Mi = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, $r = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3975
- class eo {
3970
+ const xi = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, Jr = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3971
+ class $r {
3976
3972
  run(e, t, n) {
3977
- ae.type = e, Ke.reset();
3978
- const r = [new Si(t, !0)];
3973
+ ae.type = e, Xe.reset();
3974
+ const r = [new Li(t, !0)];
3979
3975
  for (let a = 0, f = n.length; a < f; a++)
3980
- r.push(new Si(n[a], !1));
3976
+ r.push(new Li(n[a], !1));
3981
3977
  if (ae.numMultiPolys = r.length, ae.type === "difference") {
3982
3978
  const a = r[0];
3983
3979
  let f = 1;
3984
3980
  for (; f < r.length; )
3985
- Bt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3981
+ zt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3986
3982
  }
3987
3983
  if (ae.type === "intersection")
3988
3984
  for (let a = 0, f = r.length; a < f; a++) {
3989
3985
  const h = r[a];
3990
3986
  for (let g = a + 1, y = r.length; g < y; g++)
3991
- if (Bt(h.bbox, r[g].bbox) === null) return [];
3987
+ if (zt(h.bbox, r[g].bbox) === null) return [];
3992
3988
  }
3993
- const o = new jt(oe.compare);
3989
+ const o = new Gt(oe.compare);
3994
3990
  for (let a = 0, f = r.length; a < f; a++) {
3995
3991
  const h = r[a].getSweepEvents();
3996
3992
  for (let g = 0, y = h.length; g < y; g++)
3997
- if (o.insert(h[g]), o.size > Mi)
3993
+ if (o.insert(h[g]), o.size > xi)
3998
3994
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
3999
3995
  }
4000
- const u = new Jr(o);
3996
+ const u = new Kr(o);
4001
3997
  let s = o.size, c = o.pop();
4002
3998
  for (; c; ) {
4003
3999
  const a = c.key;
@@ -4005,9 +4001,9 @@ class eo {
4005
4001
  const h = a.segment;
4006
4002
  throw new Error(`Unable to pop() ${a.isLeft ? "left" : "right"} SweepEvent [${a.point.x}, ${a.point.y}] from segment #${h.id} [${h.leftSE.point.x}, ${h.leftSE.point.y}] -> [${h.rightSE.point.x}, ${h.rightSE.point.y}] from queue.`);
4007
4003
  }
4008
- if (o.size > Mi)
4004
+ if (o.size > xi)
4009
4005
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");
4010
- if (u.segments.length > $r)
4006
+ if (u.segments.length > Jr)
4011
4007
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
4012
4008
  const f = u.process(a);
4013
4009
  for (let h = 0, g = f.length; h < g; h++) {
@@ -4016,67 +4012,67 @@ class eo {
4016
4012
  }
4017
4013
  s = o.size, c = o.pop();
4018
4014
  }
4019
- Ke.reset();
4020
- const l = ht.factory(u.segments);
4021
- return new Kr(l).getGeom();
4015
+ Xe.reset();
4016
+ const l = dt.factory(u.segments);
4017
+ return new Xr(l).getGeom();
4022
4018
  }
4023
4019
  }
4024
- const ae = new eo(), to = function(i) {
4020
+ const ae = new $r(), eo = function(i) {
4025
4021
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4026
4022
  t[n - 1] = arguments[n];
4027
4023
  return ae.run("union", i, t);
4028
- }, io = function(i) {
4024
+ }, to = function(i) {
4029
4025
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4030
4026
  t[n - 1] = arguments[n];
4031
4027
  return ae.run("intersection", i, t);
4032
- }, no = function(i) {
4028
+ }, io = function(i) {
4033
4029
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4034
4030
  t[n - 1] = arguments[n];
4035
4031
  return ae.run("xor", i, t);
4036
- }, ro = function(i) {
4032
+ }, no = function(i) {
4037
4033
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
4038
4034
  t[n - 1] = arguments[n];
4039
4035
  return ae.run("difference", i, t);
4040
4036
  };
4041
- var Zi = {
4042
- union: to,
4043
- intersection: io,
4044
- xor: no,
4045
- difference: ro
4037
+ var ji = {
4038
+ union: eo,
4039
+ intersection: to,
4040
+ xor: io,
4041
+ difference: no
4046
4042
  };
4047
- function oo(i, e = {}) {
4043
+ function ro(i, e = {}) {
4048
4044
  const t = [];
4049
4045
  if (Ut(i, (r) => {
4050
4046
  t.push(r.coordinates);
4051
4047
  }), t.length < 2)
4052
4048
  throw new Error("Must have at least 2 geometries");
4053
- const n = Zi.union(t[0], ...t.slice(1));
4054
- return n.length === 0 ? null : n.length === 1 ? Ft(n[0], e.properties) : Bi(n, e.properties);
4049
+ const n = ji.union(t[0], ...t.slice(1));
4050
+ return n.length === 0 ? null : n.length === 1 ? Dt(n[0], e.properties) : zi(n, e.properties);
4055
4051
  }
4056
- var qi = oo;
4057
- function so(i) {
4052
+ var qi = ro;
4053
+ function oo(i) {
4058
4054
  const e = [];
4059
4055
  if (Ut(i, (r) => {
4060
4056
  e.push(r.coordinates);
4061
4057
  }), e.length < 2)
4062
4058
  throw new Error("Must have at least two features");
4063
- const t = i.features[0].properties || {}, n = Zi.difference(e[0], ...e.slice(1));
4064
- return n.length === 0 ? null : n.length === 1 ? Ft(n[0], t) : Bi(n, t);
4059
+ const t = i.features[0].properties || {}, n = ji.difference(e[0], ...e.slice(1));
4060
+ return n.length === 0 ? null : n.length === 1 ? Dt(n[0], t) : zi(n, t);
4065
4061
  }
4066
- var lo = so;
4067
- function uo(i) {
4062
+ var so = oo;
4063
+ function lo(i) {
4068
4064
  if (!i)
4069
4065
  throw new Error("geojson is required");
4070
4066
  var e = [];
4071
- return Mr(i, function(t) {
4067
+ return xr(i, function(t) {
4072
4068
  e.push(t);
4073
- }), Xe(e);
4069
+ }), Ye(e);
4074
4070
  }
4075
- var ao = uo;
4076
- function Ci(i, e) {
4077
- const t = lo(
4078
- Xe([
4079
- Ft([
4071
+ var uo = lo;
4072
+ function Mi(i, e) {
4073
+ const t = so(
4074
+ Ye([
4075
+ Dt([
4080
4076
  [
4081
4077
  [180, 90],
4082
4078
  [-180, 90],
@@ -4091,10 +4087,10 @@ function Ci(i, e) {
4091
4087
  if (!t)
4092
4088
  return;
4093
4089
  t.properties = { isMask: !0 };
4094
- const n = Ve(It(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, u = n[2] > 180, s = ao(i);
4090
+ const n = He(Rt(i)), r = (n[2] - n[0]) / 360 / 1e3, o = n[0] < -180, u = n[2] > 180, s = uo(i);
4095
4091
  if (s.features.length > 1 && (o || u))
4096
4092
  for (const c of s.features) {
4097
- const l = Ve(It(c));
4093
+ const l = He(Rt(c));
4098
4094
  if (u && l[0] < -180 + r)
4099
4095
  for (const d of c.geometry.coordinates)
4100
4096
  for (const a of d)
@@ -4105,13 +4101,13 @@ function Ci(i, e) {
4105
4101
  a[0] -= 360 - r;
4106
4102
  }
4107
4103
  e(
4108
- Xe([
4104
+ Ye([
4109
4105
  s.features.length < 2 ? i : qi(s) ?? i,
4110
4106
  t
4111
4107
  ])
4112
4108
  );
4113
4109
  }
4114
- const ki = (i) => {
4110
+ const Ci = (i) => {
4115
4111
  var n, r, o;
4116
4112
  const e = (n = i == null ? void 0 : i.geometry) == null ? void 0 : n.type, t = (r = i == null ? void 0 : i.properties) != null && r.isMask ? 0 : e === "LineString" || e === "MultiLineString" ? 3 : 2;
4117
4113
  return {
@@ -4123,12 +4119,12 @@ const ki = (i) => {
4123
4119
  lineCap: "butt"
4124
4120
  };
4125
4121
  };
4126
- function co(i, e = !0, t = !0, n = {}, r = {}, o = ki, u = !1) {
4122
+ function ao(i, e = !0, t = !0, n = {}, r = {}, o = Ci, u = !1) {
4127
4123
  let s;
4128
4124
  const c = [];
4129
4125
  let l, d;
4130
4126
  const a = ue.geoJSON(void 0, {
4131
- style: o === !0 ? ki : o === !1 ? void 0 : o ?? void 0,
4127
+ style: o === !0 ? Ci : o === !1 ? void 0 : o ?? void 0,
4132
4128
  interactive: !1
4133
4129
  }).addTo(i), f = (g) => {
4134
4130
  s == null || s({
@@ -4137,11 +4133,11 @@ function co(i, e = !0, t = !0, n = {}, r = {}, o = ki, u = !1) {
4137
4133
  });
4138
4134
  };
4139
4135
  function h(g, y = !1) {
4140
- const v = document.createElement("div");
4141
- return new tr({ props: { displayIn: "leaflet" }, target: v }), new ue.Marker(g, {
4136
+ const b = document.createElement("div");
4137
+ return new er({ props: { displayIn: "leaflet" }, target: b }), new ue.Marker(g, {
4142
4138
  interactive: y,
4143
4139
  icon: new ue.DivIcon({
4144
- html: v,
4140
+ html: b,
4145
4141
  className: "",
4146
4142
  iconAnchor: [12, 26],
4147
4143
  iconSize: [25, 30],
@@ -4156,7 +4152,7 @@ function co(i, e = !0, t = !0, n = {}, r = {}, o = ki, u = !1) {
4156
4152
  flyTo(g, y) {
4157
4153
  i.flyTo([g[1], g[0]], y, { duration: 2, ...n });
4158
4154
  },
4159
- fitBounds(g, y, v) {
4155
+ fitBounds(g, y, b) {
4160
4156
  i.flyToBounds(
4161
4157
  [
4162
4158
  [g[1], g[0]],
@@ -4165,7 +4161,7 @@ function co(i, e = !0, t = !0, n = {}, r = {}, o = ki, u = !1) {
4165
4161
  {
4166
4162
  padding: [y, y],
4167
4163
  duration: 2,
4168
- ...v ? { maxZoom: v } : {},
4164
+ ...b ? { maxZoom: b } : {},
4169
4165
  ...r
4170
4166
  }
4171
4167
  );
@@ -4174,57 +4170,57 @@ function co(i, e = !0, t = !0, n = {}, r = {}, o = ki, u = !1) {
4174
4170
  i.getContainer().style.cursor = g ? "crosshair" : "";
4175
4171
  },
4176
4172
  setReverseMarker(g) {
4177
- var v;
4173
+ var b;
4178
4174
  if (!e)
4179
4175
  return;
4180
4176
  const y = g && [g[1], g[0]];
4181
- d ? y ? d.setLatLng(y) : (d.remove(), d = void 0) : y && (e instanceof Function ? d = e(i) ?? void 0 : (d = (typeof e == "object" ? new ue.Marker(y, e) : h(y)).addTo(i), (v = d.getElement()) == null || v.classList.add("marker-reverse")));
4177
+ d ? y ? d.setLatLng(y) : (d.remove(), d = void 0) : y && (e instanceof Function ? d = e(i) ?? void 0 : (d = (typeof e == "object" ? new ue.Marker(y, e) : h(y)).addTo(i), (b = d.getElement()) == null || b.classList.add("marker-reverse")));
4182
4178
  },
4183
4179
  setMarkers(g, y) {
4184
- function v(b) {
4185
- a.clearLayers(), b && a.addData(b);
4180
+ function b(v) {
4181
+ a.clearLayers(), v && a.addData(v);
4186
4182
  }
4187
- for (const b of c)
4188
- b.remove();
4189
- if (c.length = 0, v(), y) {
4190
- let b = !1;
4183
+ for (const v of c)
4184
+ v.remove();
4185
+ if (c.length = 0, b(), y) {
4186
+ let v = !1;
4191
4187
  if (y.geometry.type === "GeometryCollection") {
4192
4188
  const E = y.geometry.geometries.filter(
4193
4189
  (L) => L.type === "Polygon" || L.type === "MultiPolygon"
4194
4190
  );
4195
4191
  e: if (E.length > 0) {
4196
4192
  const L = qi(
4197
- Xe(E.map((_) => Ye(_)))
4193
+ Ye(E.map((_) => Ve(_)))
4198
4194
  );
4199
4195
  if (!L)
4200
4196
  break e;
4201
- Ci(
4197
+ Mi(
4202
4198
  {
4203
4199
  ...y,
4204
4200
  geometry: L.geometry
4205
4201
  },
4206
- v
4207
- ), b = !0;
4202
+ b
4203
+ ), v = !0;
4208
4204
  } else {
4209
4205
  const L = y.geometry.geometries.filter(
4210
4206
  (_) => _.type === "LineString" || _.type === "MultiLineString"
4211
4207
  );
4212
- L.length > 0 && (v({
4208
+ L.length > 0 && (b({
4213
4209
  ...y,
4214
4210
  geometry: { type: "GeometryCollection", geometries: L }
4215
- }), b = !0);
4211
+ }), v = !0);
4216
4212
  }
4217
4213
  }
4218
- if (!b) {
4214
+ if (!v) {
4219
4215
  if (y.geometry.type === "Polygon" || y.geometry.type === "MultiPolygon")
4220
- Ci(y, (E) => {
4216
+ Mi(y, (E) => {
4221
4217
  if (!E)
4222
4218
  return;
4223
- const L = [...E.features], _ = Ve(It(y)), C = _[2] - _[0];
4224
- _[0] - C / 4 < -180 && L.push(...Ni(E, -360).features), _[2] + C / 4 > 180 && L.push(...Ni(E, 360).features), v(Xe(L));
4219
+ const L = [...E.features], _ = He(Rt(y)), C = _[2] - _[0];
4220
+ _[0] - C / 4 < -180 && L.push(...ki(E, -360).features), _[2] + C / 4 > 180 && L.push(...ki(E, 360).features), b(Ye(L));
4225
4221
  });
4226
4222
  else if (y.geometry.type === "LineString" || y.geometry.type === "MultiLineString") {
4227
- v(y);
4223
+ b(y);
4228
4224
  return;
4229
4225
  }
4230
4226
  }
@@ -4241,37 +4237,37 @@ function co(i, e = !0, t = !0, n = {}, r = {}, o = ki, u = !1) {
4241
4237
  }
4242
4238
  }
4243
4239
  if (t)
4244
- for (const b of g ?? []) {
4245
- if (b === y)
4240
+ for (const v of g ?? []) {
4241
+ if (v === y)
4246
4242
  continue;
4247
4243
  const E = [
4248
- b.center[1],
4249
- b.center[0]
4244
+ v.center[1],
4245
+ v.center[0]
4250
4246
  ];
4251
4247
  let L;
4252
4248
  if (t instanceof Function) {
4253
- if (L = t(i, b), !L)
4249
+ if (L = t(i, v), !L)
4254
4250
  continue;
4255
4251
  } else
4256
4252
  L = (typeof t == "object" ? new ue.Marker(E, t) : h(E, !0)).addTo(i).bindTooltip(
4257
- b.place_type[0] === "reverse" ? b.place_name : b.place_name.replace(/,.*/, ""),
4253
+ v.place_type[0] === "reverse" ? v.place_name : v.place_name.replace(/,.*/, ""),
4258
4254
  {
4259
4255
  direction: "top"
4260
4256
  }
4261
4257
  );
4262
4258
  const _ = L.getElement();
4263
4259
  _ && (_.addEventListener("click", (C) => {
4264
- C.stopPropagation(), s == null || s({ type: "markerClick", id: b.id });
4260
+ C.stopPropagation(), s == null || s({ type: "markerClick", id: v.id });
4265
4261
  }), _.addEventListener("mouseenter", () => {
4266
- s == null || s({ type: "markerMouseEnter", id: b.id });
4262
+ s == null || s({ type: "markerMouseEnter", id: v.id });
4267
4263
  }), _.addEventListener("mouseleave", () => {
4268
- s == null || s({ type: "markerMouseLeave", id: b.id });
4269
- }), _.classList.toggle("marker-fuzzy", !!b.matching_text)), c.push(L);
4264
+ s == null || s({ type: "markerMouseLeave", id: v.id });
4265
+ }), _.classList.toggle("marker-fuzzy", !!v.matching_text)), c.push(L);
4270
4266
  }
4271
4267
  },
4272
4268
  setSelectedMarker(g) {
4273
- var y, v;
4274
- l && ((y = l.getElement()) == null || y.classList.toggle("marker-selected", !1)), l = g > -1 ? c[g] : void 0, (v = l == null ? void 0 : l.getElement()) == null || v.classList.toggle("marker-selected", !0);
4269
+ var y, b;
4270
+ l && ((y = l.getElement()) == null || y.classList.toggle("marker-selected", !1)), l = g > -1 ? c[g] : void 0, (b = l == null ? void 0 : l.getElement()) == null || b.classList.toggle("marker-selected", !0);
4275
4271
  },
4276
4272
  getCenterAndZoom() {
4277
4273
  const g = i.getCenter();
@@ -4279,31 +4275,31 @@ function co(i, e = !0, t = !0, n = {}, r = {}, o = ki, u = !1) {
4279
4275
  }
4280
4276
  };
4281
4277
  }
4282
- function Ni(i, e) {
4283
- const t = Tr(i);
4278
+ function ki(i, e) {
4279
+ const t = Nr(i);
4284
4280
  for (const n of t.features)
4285
4281
  if (n.geometry.type == "MultiPolygon")
4286
4282
  for (const r of n.geometry.coordinates)
4287
- Ti(r, e);
4283
+ Ni(r, e);
4288
4284
  else
4289
- Ti(n.geometry.coordinates, e);
4285
+ Ni(n.geometry.coordinates, e);
4290
4286
  return t;
4291
4287
  }
4292
- function Ti(i, e) {
4288
+ function Ni(i, e) {
4293
4289
  for (const t of i)
4294
4290
  for (const n of t)
4295
4291
  n[0] += e;
4296
4292
  }
4297
- class Qi extends ue.Control {
4293
+ class Zi extends ue.Control {
4298
4294
  }
4299
- ue.Util.extend(Qi.prototype, ue.Evented.prototype);
4295
+ ue.Util.extend(Zi.prototype, ue.Evented.prototype);
4300
4296
  var re, Re;
4301
- class fo extends Qi {
4297
+ class co extends Zi {
4302
4298
  constructor(t) {
4303
4299
  super(t);
4304
- Mt(this, re);
4305
- Mt(this, Re);
4306
- st(this, Re, t);
4300
+ xt(this, re);
4301
+ xt(this, Re);
4302
+ ot(this, Re, t);
4307
4303
  }
4308
4304
  onAdd(t) {
4309
4305
  const n = document.createElement("div");
@@ -4315,16 +4311,16 @@ class fo extends Qi {
4315
4311
  fullGeometryStyle: s,
4316
4312
  position: c,
4317
4313
  ...l
4318
- } = le(this, Re), d = typeof u == "boolean" ? {} : u, a = co(
4314
+ } = le(this, Re), d = typeof u == "boolean" ? {} : u, a = ao(
4319
4315
  t,
4320
4316
  r,
4321
4317
  o,
4322
4318
  d,
4323
4319
  d,
4324
4320
  s,
4325
- l.showFullGeometry === "polygon-with-marker"
4321
+ l.pickedResultStyle === "full-geometry-including-polygon-center-marker"
4326
4322
  );
4327
- st(this, re, new xr({
4323
+ ot(this, re, new Sr({
4328
4324
  target: n,
4329
4325
  props: {
4330
4326
  mapController: a,
@@ -4348,7 +4344,7 @@ class fo extends Qi {
4348
4344
  }
4349
4345
  setOptions(t) {
4350
4346
  var c;
4351
- st(this, Re, t);
4347
+ ot(this, Re, t);
4352
4348
  const {
4353
4349
  marker: n,
4354
4350
  showResultMarkers: r,
@@ -4384,12 +4380,12 @@ class fo extends Qi {
4384
4380
  }
4385
4381
  }
4386
4382
  re = new WeakMap(), Re = new WeakMap();
4387
- function ho(...i) {
4388
- return new fo(...i);
4383
+ function fo(...i) {
4384
+ return new co(...i);
4389
4385
  }
4390
- window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = ho);
4386
+ window.L && typeof window.L == "object" && typeof window.L.control == "function" && (window.L.control.maptilerGeocoding = fo);
4391
4387
  export {
4392
- fo as GeocodingControl,
4393
- co as createLeafletMapController
4388
+ co as GeocodingControl,
4389
+ ao as createLeafletMapController
4394
4390
  };
4395
4391
  //# sourceMappingURL=leaflet.js.map