@maptiler/geocoding-control 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +2616 -27
  2. package/leaflet-controller.d.ts +1 -1
  3. package/leaflet-controller.js +97 -95
  4. package/leaflet-controller.js.map +1 -1
  5. package/leaflet-controller.umd.js +2 -2
  6. package/leaflet-controller.umd.js.map +1 -1
  7. package/leaflet.d.ts +26 -4
  8. package/leaflet.js +906 -909
  9. package/leaflet.js.map +1 -1
  10. package/leaflet.umd.js +3 -3
  11. package/leaflet.umd.js.map +1 -1
  12. package/maplibregl-controller.d.ts +1 -1
  13. package/maplibregl-controller.js +480 -466
  14. package/maplibregl-controller.js.map +1 -1
  15. package/maplibregl-controller.umd.js +3 -3
  16. package/maplibregl-controller.umd.js.map +1 -1
  17. package/maplibregl.d.ts +2594 -9
  18. package/maplibregl.js +2094 -1969
  19. package/maplibregl.js.map +1 -1
  20. package/maplibregl.umd.js +3 -3
  21. package/maplibregl.umd.js.map +1 -1
  22. package/maptilersdk.d.ts +2594 -9
  23. package/maptilersdk.js +2086 -1964
  24. package/maptilersdk.js.map +1 -1
  25. package/maptilersdk.umd.js +3 -3
  26. package/maptilersdk.umd.js.map +1 -1
  27. package/openlayers-controller.d.ts +1 -1
  28. package/openlayers-controller.js +62 -60
  29. package/openlayers-controller.js.map +1 -1
  30. package/openlayers-controller.umd.js +2 -2
  31. package/openlayers-controller.umd.js.map +1 -1
  32. package/openlayers.d.ts +21 -0
  33. package/openlayers.js +754 -786
  34. package/openlayers.js.map +1 -1
  35. package/openlayers.umd.js +3 -3
  36. package/openlayers.umd.js.map +1 -1
  37. package/package.json +18 -18
  38. package/react.d.ts +4 -4
  39. package/react.js +619 -619
  40. package/react.js.map +1 -1
  41. package/react.umd.js +1 -1
  42. package/react.umd.js.map +1 -1
  43. package/style.css +1 -1
  44. package/svelte/FeatureItem.svelte +1 -1
  45. package/svelte/FeatureItem.svelte.d.ts +2 -2
  46. package/svelte/GeocodingControl.svelte +31 -32
  47. package/svelte/GeocodingControl.svelte.d.ts +26 -13
  48. package/svelte/MapLibreBasedGeocodingControl.d.ts +2616 -27
  49. package/svelte/MapLibreBasedGeocodingControl.js +120 -17
  50. package/svelte/leaflet-controller.d.ts +1 -1
  51. package/svelte/leaflet-controller.js +4 -1
  52. package/svelte/leaflet.d.ts +26 -4
  53. package/svelte/leaflet.js +17 -19
  54. package/svelte/maplibregl-controller.d.ts +1 -1
  55. package/svelte/maplibregl-controller.js +45 -36
  56. package/svelte/maplibregl.d.ts +2594 -9
  57. package/svelte/maplibregl.js +11 -3
  58. package/svelte/maptilersdk.d.ts +2594 -9
  59. package/svelte/maptilersdk.js +11 -3
  60. package/svelte/openlayers-controller.d.ts +1 -1
  61. package/svelte/openlayers-controller.js +4 -1
  62. package/svelte/openlayers.d.ts +21 -0
  63. package/svelte/openlayers.js +30 -45
  64. package/svelte/react.d.ts +4 -4
  65. package/svelte/react.js +5 -5
  66. package/svelte/types.d.ts +84 -35
  67. package/svelte/vanilla.d.ts +14 -1
  68. package/svelte/vanilla.js +31 -8
  69. package/types.d.ts +84 -35
  70. package/vanilla.d.ts +14 -1
  71. package/vanilla.js +929 -901
  72. package/vanilla.js.map +1 -1
  73. package/vanilla.umd.js +1 -1
  74. package/vanilla.umd.js.map +1 -1
package/openlayers.js CHANGED
@@ -1,23 +1,23 @@
1
1
  var gn = Object.defineProperty;
2
- var Qt = (n) => {
2
+ var Vt = (n) => {
3
3
  throw TypeError(n);
4
4
  };
5
5
  var mn = (n, e, t) => e in n ? gn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
6
- var ie = (n, e, t) => mn(n, typeof e != "symbol" ? e + "" : e, t), Vt = (n, e, t) => e.has(n) || Qt("Cannot " + t);
7
- var se = (n, e, t) => (Vt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), St = (n, e, t) => e.has(n) ? Qt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), tt = (n, e, t, i) => (Vt(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t);
6
+ var ne = (n, e, t) => mn(n, typeof e != "symbol" ? e + "" : e, t), Zt = (n, e, t) => e.has(n) || Vt("Cannot " + t);
7
+ var V = (n, e, t) => (Zt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), Lt = (n, e, t) => e.has(n) ? Vt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), St = (n, e, t, i) => (Zt(n, e, "write to private field"), i ? i.call(n, t) : e.set(n, t), t);
8
8
  import { Control as yn } from "ol/control";
9
9
  import xe from "ol/events/Event";
10
10
  import { Feature as fe } from "ol";
11
- import { Point as xt, Polygon as Ht, MultiPolygon as Yt, GeometryCollection as vn, LineString as Xt, MultiLineString as Kt } from "ol/geom";
12
- import pn from "ol/layer/Vector";
13
- import { fromLonLat as it, transformExtent as bn, toLonLat as Jt, getUserProjection as wn } from "ol/proj";
11
+ import { Point as xt, Polygon as Ht, MultiPolygon as Yt, GeometryCollection as pn, LineString as Xt, MultiLineString as Kt } from "ol/geom";
12
+ import vn from "ol/layer/Vector";
13
+ import { fromLonLat as tt, transformExtent as bn, toLonLat as Jt, getUserProjection as wn } from "ol/proj";
14
14
  import _n from "ol/source/Vector";
15
15
  import $t from "ol/style/Fill";
16
16
  import En from "ol/style/Icon";
17
17
  import ei from "ol/style/Stroke";
18
18
  import Ln from "ol/style/Style";
19
19
  import Sn from "ol/style/Text";
20
- function z() {
20
+ function D() {
21
21
  }
22
22
  function xn(n, e) {
23
23
  for (const t in e) n[t] = e[t];
@@ -41,20 +41,20 @@ function Ai(n) {
41
41
  function Pe(n, e) {
42
42
  return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
43
43
  }
44
- let nt;
45
- function X(n, e) {
46
- return n === e ? !0 : (nt || (nt = document.createElement("a")), nt.href = e, n === nt.href);
44
+ let it;
45
+ function K(n, e) {
46
+ return n === e ? !0 : (it || (it = document.createElement("a")), it.href = e, n === it.href);
47
47
  }
48
48
  function Mn(n) {
49
49
  return Object.keys(n).length === 0;
50
50
  }
51
51
  function kn(n, e, t, i) {
52
52
  if (n) {
53
- const r = Fi(n, e, t, i);
53
+ const r = zi(n, e, t, i);
54
54
  return n[0](r);
55
55
  }
56
56
  }
57
- function Fi(n, e, t, i) {
57
+ function zi(n, e, t, i) {
58
58
  return n[1] && i ? xn(t.ctx.slice(), n[1](i(e))) : t.ctx;
59
59
  }
60
60
  function Cn(n, e, t, i) {
@@ -74,7 +74,7 @@ function Cn(n, e, t, i) {
74
74
  }
75
75
  function Nn(n, e, t, i, r, o) {
76
76
  if (r) {
77
- const l = Fi(e, t, i, o);
77
+ const l = zi(e, t, i, o);
78
78
  n.p(l, r);
79
79
  }
80
80
  }
@@ -90,13 +90,13 @@ function Pn(n) {
90
90
  function ii(n) {
91
91
  return n ?? "";
92
92
  }
93
- function R(n, e) {
93
+ function T(n, e) {
94
94
  n.appendChild(e);
95
95
  }
96
- function j(n, e, t) {
96
+ function U(n, e, t) {
97
97
  n.insertBefore(e, t || null);
98
98
  }
99
- function B(n) {
99
+ function F(n) {
100
100
  n.parentNode && n.parentNode.removeChild(n);
101
101
  }
102
102
  function W(n) {
@@ -108,16 +108,16 @@ function de(n) {
108
108
  function Ee(n) {
109
109
  return document.createTextNode(n);
110
110
  }
111
- function te() {
111
+ function ie() {
112
112
  return Ee(" ");
113
113
  }
114
- function Tn() {
114
+ function Rn() {
115
115
  return Ee("");
116
116
  }
117
- function J(n, e, t, i) {
117
+ function ee(n, e, t, i) {
118
118
  return n.addEventListener(e, t, i), () => n.removeEventListener(e, t, i);
119
119
  }
120
- function Rn(n) {
120
+ function Tn(n) {
121
121
  return function(e) {
122
122
  return e.preventDefault(), n.call(this, e);
123
123
  };
@@ -128,7 +128,7 @@ function p(n, e, t) {
128
128
  function In(n) {
129
129
  return Array.from(n.childNodes);
130
130
  }
131
- function Ze(n, e) {
131
+ function Qe(n, e) {
132
132
  e = "" + e, n.data !== e && (n.data = /** @type {string} */
133
133
  e);
134
134
  }
@@ -141,19 +141,19 @@ function be(n, e, t) {
141
141
  function On(n, e, { bubbles: t = !1, cancelable: i = !1 } = {}) {
142
142
  return new CustomEvent(n, { detail: e, bubbles: t, cancelable: i });
143
143
  }
144
- let Qe;
144
+ let Ve;
145
145
  function qe(n) {
146
- Qe = n;
146
+ Ve = n;
147
147
  }
148
- function Bi() {
149
- if (!Qe) throw new Error("Function called outside component initialization");
150
- return Qe;
148
+ function Fi() {
149
+ if (!Ve) throw new Error("Function called outside component initialization");
150
+ return Ve;
151
151
  }
152
152
  function Wn(n) {
153
- Bi().$$.on_destroy.push(n);
153
+ Fi().$$.on_destroy.push(n);
154
154
  }
155
155
  function An() {
156
- const n = Bi();
156
+ const n = Fi();
157
157
  return (e, t, { cancelable: i = !1 } = {}) => {
158
158
  const r = n.$$.callbacks[e];
159
159
  if (r) {
@@ -174,56 +174,56 @@ function ri(n, e) {
174
174
  const t = n.$$.callbacks[e.type];
175
175
  t && t.slice().forEach((i) => i.call(this, e));
176
176
  }
177
- const Be = [], Nt = [];
178
- let De = [];
179
- const oi = [], Fn = /* @__PURE__ */ Promise.resolve();
177
+ const Fe = [], Nt = [];
178
+ let Be = [];
179
+ const oi = [], zn = /* @__PURE__ */ Promise.resolve();
180
180
  let Pt = !1;
181
- function Bn() {
182
- Pt || (Pt = !0, Fn.then(Di));
181
+ function Fn() {
182
+ Pt || (Pt = !0, zn.then(Bi));
183
183
  }
184
- function Tt(n) {
185
- De.push(n);
184
+ function Rt(n) {
185
+ Be.push(n);
186
186
  }
187
187
  const Mt = /* @__PURE__ */ new Set();
188
188
  let Ae = 0;
189
- function Di() {
189
+ function Bi() {
190
190
  if (Ae !== 0)
191
191
  return;
192
- const n = Qe;
192
+ const n = Ve;
193
193
  do {
194
194
  try {
195
- for (; Ae < Be.length; ) {
196
- const e = Be[Ae];
197
- Ae++, qe(e), Dn(e.$$);
195
+ for (; Ae < Fe.length; ) {
196
+ const e = Fe[Ae];
197
+ Ae++, qe(e), Bn(e.$$);
198
198
  }
199
199
  } catch (e) {
200
- throw Be.length = 0, Ae = 0, e;
200
+ throw Fe.length = 0, Ae = 0, e;
201
201
  }
202
- for (qe(null), Be.length = 0, Ae = 0; Nt.length; ) Nt.pop()();
203
- for (let e = 0; e < De.length; e += 1) {
204
- const t = De[e];
202
+ for (qe(null), Fe.length = 0, Ae = 0; Nt.length; ) Nt.pop()();
203
+ for (let e = 0; e < Be.length; e += 1) {
204
+ const t = Be[e];
205
205
  Mt.has(t) || (Mt.add(t), t());
206
206
  }
207
- De.length = 0;
208
- } while (Be.length);
207
+ Be.length = 0;
208
+ } while (Fe.length);
209
209
  for (; oi.length; )
210
210
  oi.pop()();
211
211
  Pt = !1, Mt.clear(), qe(n);
212
212
  }
213
- function Dn(n) {
213
+ function Bn(n) {
214
214
  if (n.fragment !== null) {
215
215
  n.update(), ye(n.before_update);
216
216
  const e = n.dirty;
217
- n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Tt);
217
+ n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Rt);
218
218
  }
219
219
  }
220
- function Un(n) {
220
+ function Dn(n) {
221
221
  const e = [], t = [];
222
- De.forEach((i) => n.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), De = e;
222
+ Be.forEach((i) => n.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), Be = e;
223
223
  }
224
- const rt = /* @__PURE__ */ new Set();
224
+ const nt = /* @__PURE__ */ new Set();
225
225
  let Ce;
226
- function ot() {
226
+ function rt() {
227
227
  Ce = {
228
228
  r: 0,
229
229
  c: [],
@@ -231,79 +231,79 @@ function ot() {
231
231
  // parent group
232
232
  };
233
233
  }
234
- function st() {
234
+ function ot() {
235
235
  Ce.r || ye(Ce.c), Ce = Ce.p;
236
236
  }
237
- function q(n, e) {
238
- n && n.i && (rt.delete(n), n.i(e));
237
+ function G(n, e) {
238
+ n && n.i && (nt.delete(n), n.i(e));
239
239
  }
240
- function H(n, e, t, i) {
240
+ function Y(n, e, t, i) {
241
241
  if (n && n.o) {
242
- if (rt.has(n)) return;
243
- rt.add(n), Ce.c.push(() => {
244
- rt.delete(n), i && (t && n.d(1), i());
242
+ if (nt.has(n)) return;
243
+ nt.add(n), Ce.c.push(() => {
244
+ nt.delete(n), i && (t && n.d(1), i());
245
245
  }), n.o(e);
246
246
  } else i && i();
247
247
  }
248
248
  function si(n) {
249
249
  return (n == null ? void 0 : n.length) !== void 0 ? n : Array.from(n);
250
250
  }
251
- function Gn(n, e) {
252
- H(n, 1, 1, () => {
251
+ function Un(n, e) {
252
+ Y(n, 1, 1, () => {
253
253
  e.delete(n.key);
254
254
  });
255
255
  }
256
- function zn(n, e, t, i, r, o, l, s, c, u, d, a) {
256
+ function Gn(n, e, t, i, r, o, l, s, c, u, d, a) {
257
257
  let f = n.length, h = o.length, m = f;
258
258
  const y = {};
259
259
  for (; m--; ) y[n[m].key] = m;
260
- const b = [], v = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), _ = [];
260
+ const b = [], w = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), S = [];
261
261
  for (m = h; m--; ) {
262
- const L = a(r, o, m), w = t(L);
263
- let k = l.get(w);
264
- k ? _.push(() => k.p(L, e)) : (k = u(w, L), k.c()), v.set(w, b[m] = k), w in y && E.set(w, Math.abs(m - y[w]));
262
+ const v = a(r, o, m), _ = t(v);
263
+ let k = l.get(_);
264
+ k ? S.push(() => k.p(v, e)) : (k = u(_, v), k.c()), w.set(_, b[m] = k), _ in y && L.set(_, Math.abs(m - y[_]));
265
265
  }
266
- const x = /* @__PURE__ */ new Set(), C = /* @__PURE__ */ new Set();
267
- function S(L) {
268
- q(L, 1), L.m(s, d), l.set(L.key, L), d = L.first, h--;
266
+ const E = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set();
267
+ function C(v) {
268
+ G(v, 1), v.m(s, d), l.set(v.key, v), d = v.first, h--;
269
269
  }
270
270
  for (; f && h; ) {
271
- const L = b[h - 1], w = n[f - 1], k = L.key, I = w.key;
272
- L === w ? (d = L.first, f--, h--) : v.has(I) ? !l.has(k) || x.has(k) ? S(L) : C.has(I) ? f-- : E.get(k) > E.get(I) ? (C.add(k), S(L)) : (x.add(I), f--) : (c(w, l), f--);
271
+ const v = b[h - 1], _ = n[f - 1], k = v.key, I = _.key;
272
+ v === _ ? (d = v.first, f--, h--) : w.has(I) ? !l.has(k) || E.has(k) ? C(v) : M.has(I) ? f-- : L.get(k) > L.get(I) ? (M.add(k), C(v)) : (E.add(I), f--) : (c(_, l), f--);
273
273
  }
274
274
  for (; f--; ) {
275
- const L = n[f];
276
- v.has(L.key) || c(L, l);
275
+ const v = n[f];
276
+ w.has(v.key) || c(v, l);
277
277
  }
278
- for (; h; ) S(b[h - 1]);
279
- return ye(_), b;
278
+ for (; h; ) C(b[h - 1]);
279
+ return ye(S), b;
280
280
  }
281
281
  function Le(n) {
282
282
  n && n.c();
283
283
  }
284
284
  function ge(n, e, t) {
285
285
  const { fragment: i, after_update: r } = n.$$;
286
- i && i.m(e, t), Tt(() => {
286
+ i && i.m(e, t), Rt(() => {
287
287
  const o = n.$$.on_mount.map(Wi).filter(Ai);
288
288
  n.$$.on_destroy ? n.$$.on_destroy.push(...o) : ye(o), n.$$.on_mount = [];
289
- }), r.forEach(Tt);
289
+ }), r.forEach(Rt);
290
290
  }
291
291
  function me(n, e) {
292
292
  const t = n.$$;
293
- t.fragment !== null && (Un(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
293
+ t.fragment !== null && (Dn(t.after_update), ye(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
294
294
  }
295
295
  function jn(n, e) {
296
- n.$$.dirty[0] === -1 && (Be.push(n), Bn(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
296
+ n.$$.dirty[0] === -1 && (Fe.push(n), Fn(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
297
297
  }
298
- function Te(n, e, t, i, r, o, l = null, s = [-1]) {
299
- const c = Qe;
298
+ function Re(n, e, t, i, r, o, l = null, s = [-1]) {
299
+ const c = Ve;
300
300
  qe(n);
301
301
  const u = n.$$ = {
302
302
  fragment: null,
303
303
  ctx: [],
304
304
  // state
305
305
  props: o,
306
- update: z,
306
+ update: D,
307
307
  not_equal: r,
308
308
  bound: ti(),
309
309
  // lifecycle
@@ -327,14 +327,14 @@ function Te(n, e, t, i, r, o, l = null, s = [-1]) {
327
327
  }) : [], u.update(), d = !0, ye(u.before_update), u.fragment = i ? i(u.ctx) : !1, e.target) {
328
328
  if (e.hydrate) {
329
329
  const a = In(e.target);
330
- u.fragment && u.fragment.l(a), a.forEach(B);
330
+ u.fragment && u.fragment.l(a), a.forEach(F);
331
331
  } else
332
332
  u.fragment && u.fragment.c();
333
- e.intro && q(n.$$.fragment), ge(n, e.target, e.anchor), Di();
333
+ e.intro && G(n.$$.fragment), ge(n, e.target, e.anchor), Bi();
334
334
  }
335
335
  qe(c);
336
336
  }
337
- class Re {
337
+ class Te {
338
338
  constructor() {
339
339
  /**
340
340
  * ### PRIVATE API
@@ -343,7 +343,7 @@ class Re {
343
343
  *
344
344
  * @type {any}
345
345
  */
346
- ie(this, "$$");
346
+ ne(this, "$$");
347
347
  /**
348
348
  * ### PRIVATE API
349
349
  *
@@ -351,11 +351,11 @@ class Re {
351
351
  *
352
352
  * @type {any}
353
353
  */
354
- ie(this, "$$set");
354
+ ne(this, "$$set");
355
355
  }
356
356
  /** @returns {void} */
357
357
  $destroy() {
358
- me(this, 1), this.$destroy = z;
358
+ me(this, 1), this.$destroy = D;
359
359
  }
360
360
  /**
361
361
  * @template {Extract<keyof Events, string>} K
@@ -365,7 +365,7 @@ class Re {
365
365
  */
366
366
  $on(e, t) {
367
367
  if (!Ai(t))
368
- return z;
368
+ return D;
369
369
  const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
370
370
  return i.push(t), () => {
371
371
  const r = i.indexOf(t);
@@ -382,55 +382,55 @@ class Re {
382
382
  }
383
383
  const qn = "4";
384
384
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(qn);
385
- function Zn(n) {
385
+ function Qn(n) {
386
386
  let e, t;
387
387
  return {
388
388
  c() {
389
389
  e = de("svg"), t = de("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");
390
390
  },
391
391
  m(i, r) {
392
- j(i, e, r), R(e, t);
392
+ U(i, e, r), T(e, t);
393
393
  },
394
- p: z,
395
- i: z,
396
- o: z,
394
+ p: D,
395
+ i: D,
396
+ o: D,
397
397
  d(i) {
398
- i && B(e);
398
+ i && F(e);
399
399
  }
400
400
  };
401
401
  }
402
- class Ui extends Re {
402
+ class Di extends Te {
403
403
  constructor(e) {
404
- super(), Te(this, e, null, Zn, Pe, {});
404
+ super(), Re(this, e, null, Qn, Pe, {});
405
405
  }
406
406
  }
407
- function Qn(n) {
407
+ function Vn(n) {
408
408
  let e, t;
409
409
  return {
410
410
  c() {
411
411
  e = de("svg"), t = de("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");
412
412
  },
413
413
  m(i, r) {
414
- j(i, e, r), R(e, t);
414
+ U(i, e, r), T(e, t);
415
415
  },
416
- p: z,
417
- i: z,
418
- o: z,
416
+ p: D,
417
+ i: D,
418
+ o: D,
419
419
  d(i) {
420
- i && B(e);
420
+ i && F(e);
421
421
  }
422
422
  };
423
423
  }
424
- class Gi extends Re {
424
+ class Ui extends Te {
425
425
  constructor(e) {
426
- super(), Te(this, e, null, Qn, Pe, {});
426
+ super(), Re(this, e, null, Vn, Pe, {});
427
427
  }
428
428
  }
429
- function Vn(n) {
429
+ function Zn(n) {
430
430
  let e, t;
431
431
  return {
432
432
  c() {
433
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
433
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
434
434
  n[3] + "area.svg") || p(e, "src", t), p(
435
435
  e,
436
436
  "alt",
@@ -439,11 +439,11 @@ function Vn(n) {
439
439
  ), p(e, "class", "svelte-ltkwvy");
440
440
  },
441
441
  m(i, r) {
442
- j(i, e, r);
442
+ U(i, e, r);
443
443
  },
444
444
  p(i, r) {
445
445
  r & /*iconsBaseUrl*/
446
- 8 && !X(e.src, t = /*iconsBaseUrl*/
446
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
447
447
  i[3] + "area.svg") && p(e, "src", t), r & /*placeType*/
448
448
  64 && p(
449
449
  e,
@@ -453,7 +453,7 @@ function Vn(n) {
453
453
  );
454
454
  },
455
455
  d(i) {
456
- i && B(e);
456
+ i && F(e);
457
457
  }
458
458
  };
459
459
  }
@@ -461,7 +461,7 @@ function Hn(n) {
461
461
  let e, t;
462
462
  return {
463
463
  c() {
464
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
464
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
465
465
  n[3] + "reverse.svg") || p(e, "src", t), p(
466
466
  e,
467
467
  "alt",
@@ -470,11 +470,11 @@ function Hn(n) {
470
470
  ), p(e, "class", "svelte-ltkwvy");
471
471
  },
472
472
  m(i, r) {
473
- j(i, e, r);
473
+ U(i, e, r);
474
474
  },
475
475
  p(i, r) {
476
476
  r & /*iconsBaseUrl*/
477
- 8 && !X(e.src, t = /*iconsBaseUrl*/
477
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
478
478
  i[3] + "reverse.svg") && p(e, "src", t), r & /*placeType*/
479
479
  64 && p(
480
480
  e,
@@ -484,7 +484,7 @@ function Hn(n) {
484
484
  );
485
485
  },
486
486
  d(i) {
487
- i && B(e);
487
+ i && F(e);
488
488
  }
489
489
  };
490
490
  }
@@ -492,7 +492,7 @@ function Yn(n) {
492
492
  let e, t;
493
493
  return {
494
494
  c() {
495
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
495
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
496
496
  n[3] + "poi.svg") || p(e, "src", t), p(
497
497
  e,
498
498
  "alt",
@@ -501,11 +501,11 @@ function Yn(n) {
501
501
  ), p(e, "class", "svelte-ltkwvy");
502
502
  },
503
503
  m(i, r) {
504
- j(i, e, r);
504
+ U(i, e, r);
505
505
  },
506
506
  p(i, r) {
507
507
  r & /*iconsBaseUrl*/
508
- 8 && !X(e.src, t = /*iconsBaseUrl*/
508
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
509
509
  i[3] + "poi.svg") && p(e, "src", t), r & /*placeType*/
510
510
  64 && p(
511
511
  e,
@@ -515,7 +515,7 @@ function Yn(n) {
515
515
  );
516
516
  },
517
517
  d(i) {
518
- i && B(e);
518
+ i && F(e);
519
519
  }
520
520
  };
521
521
  }
@@ -523,7 +523,7 @@ function Xn(n) {
523
523
  let e, t;
524
524
  return {
525
525
  c() {
526
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
526
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
527
527
  n[3] + "postal_code.svg") || p(e, "src", t), p(
528
528
  e,
529
529
  "alt",
@@ -532,11 +532,11 @@ function Xn(n) {
532
532
  ), p(e, "class", "svelte-ltkwvy");
533
533
  },
534
534
  m(i, r) {
535
- j(i, e, r);
535
+ U(i, e, r);
536
536
  },
537
537
  p(i, r) {
538
538
  r & /*iconsBaseUrl*/
539
- 8 && !X(e.src, t = /*iconsBaseUrl*/
539
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
540
540
  i[3] + "postal_code.svg") && p(e, "src", t), r & /*placeType*/
541
541
  64 && p(
542
542
  e,
@@ -546,7 +546,7 @@ function Xn(n) {
546
546
  );
547
547
  },
548
548
  d(i) {
549
- i && B(e);
549
+ i && F(e);
550
550
  }
551
551
  };
552
552
  }
@@ -554,7 +554,7 @@ function Kn(n) {
554
554
  let e, t;
555
555
  return {
556
556
  c() {
557
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
557
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
558
558
  n[3] + "street.svg") || p(e, "src", t), p(
559
559
  e,
560
560
  "alt",
@@ -563,11 +563,11 @@ function Kn(n) {
563
563
  ), p(e, "class", "svelte-ltkwvy");
564
564
  },
565
565
  m(i, r) {
566
- j(i, e, r);
566
+ U(i, e, r);
567
567
  },
568
568
  p(i, r) {
569
569
  r & /*iconsBaseUrl*/
570
- 8 && !X(e.src, t = /*iconsBaseUrl*/
570
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
571
571
  i[3] + "street.svg") && p(e, "src", t), r & /*placeType*/
572
572
  64 && p(
573
573
  e,
@@ -577,7 +577,7 @@ function Kn(n) {
577
577
  );
578
578
  },
579
579
  d(i) {
580
- i && B(e);
580
+ i && F(e);
581
581
  }
582
582
  };
583
583
  }
@@ -585,7 +585,7 @@ function Jn(n) {
585
585
  let e, t;
586
586
  return {
587
587
  c() {
588
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
588
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
589
589
  n[3] + "road.svg") || p(e, "src", t), p(
590
590
  e,
591
591
  "alt",
@@ -594,11 +594,11 @@ function Jn(n) {
594
594
  ), p(e, "class", "svelte-ltkwvy");
595
595
  },
596
596
  m(i, r) {
597
- j(i, e, r);
597
+ U(i, e, r);
598
598
  },
599
599
  p(i, r) {
600
600
  r & /*iconsBaseUrl*/
601
- 8 && !X(e.src, t = /*iconsBaseUrl*/
601
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
602
602
  i[3] + "road.svg") && p(e, "src", t), r & /*placeType*/
603
603
  64 && p(
604
604
  e,
@@ -608,7 +608,7 @@ function Jn(n) {
608
608
  );
609
609
  },
610
610
  d(i) {
611
- i && B(e);
611
+ i && F(e);
612
612
  }
613
613
  };
614
614
  }
@@ -616,7 +616,7 @@ function $n(n) {
616
616
  let e, t;
617
617
  return {
618
618
  c() {
619
- e = W("img"), X(e.src, t = /*iconsBaseUrl*/
619
+ e = W("img"), K(e.src, t = /*iconsBaseUrl*/
620
620
  n[3] + "housenumber.svg") || p(e, "src", t), p(
621
621
  e,
622
622
  "alt",
@@ -625,11 +625,11 @@ function $n(n) {
625
625
  ), p(e, "class", "svelte-ltkwvy");
626
626
  },
627
627
  m(i, r) {
628
- j(i, e, r);
628
+ U(i, e, r);
629
629
  },
630
630
  p(i, r) {
631
631
  r & /*iconsBaseUrl*/
632
- 8 && !X(e.src, t = /*iconsBaseUrl*/
632
+ 8 && !K(e.src, t = /*iconsBaseUrl*/
633
633
  i[3] + "housenumber.svg") && p(e, "src", t), r & /*placeType*/
634
634
  64 && p(
635
635
  e,
@@ -639,7 +639,7 @@ function $n(n) {
639
639
  );
640
640
  },
641
641
  d(i) {
642
- i && B(e);
642
+ i && F(e);
643
643
  }
644
644
  };
645
645
  }
@@ -647,7 +647,7 @@ function er(n) {
647
647
  let e, t, i, r;
648
648
  return {
649
649
  c() {
650
- e = W("img"), X(e.src, t = /*imageUrl*/
650
+ e = W("img"), K(e.src, t = /*imageUrl*/
651
651
  n[5]) || p(e, "src", t), p(
652
652
  e,
653
653
  "alt",
@@ -656,7 +656,7 @@ function er(n) {
656
656
  ), p(e, "class", "svelte-ltkwvy");
657
657
  },
658
658
  m(o, l) {
659
- j(o, e, l), i || (r = J(
659
+ U(o, e, l), i || (r = ee(
660
660
  e,
661
661
  "error",
662
662
  /*error_handler*/
@@ -665,7 +665,7 @@ function er(n) {
665
665
  },
666
666
  p(o, l) {
667
667
  l & /*imageUrl*/
668
- 32 && !X(e.src, t = /*imageUrl*/
668
+ 32 && !K(e.src, t = /*imageUrl*/
669
669
  o[5]) && p(e, "src", t), l & /*category*/
670
670
  16 && p(
671
671
  e,
@@ -675,7 +675,7 @@ function er(n) {
675
675
  );
676
676
  },
677
677
  d(o) {
678
- o && B(e), i = !1, r();
678
+ o && F(e), i = !1, r();
679
679
  }
680
680
  };
681
681
  }
@@ -689,18 +689,18 @@ function li(n) {
689
689
  ), p(e, "class", "secondary svelte-ltkwvy");
690
690
  },
691
691
  m(i, r) {
692
- j(i, e, r), R(e, t);
692
+ U(i, e, r), T(e, t);
693
693
  },
694
694
  p(i, r) {
695
695
  r & /*placeType*/
696
- 64 && Ze(
696
+ 64 && Qe(
697
697
  t,
698
698
  /*placeType*/
699
699
  i[6]
700
700
  );
701
701
  },
702
702
  d(i) {
703
- i && B(e);
703
+ i && F(e);
704
704
  }
705
705
  };
706
706
  }
@@ -717,7 +717,7 @@ function tr(n) {
717
717
  ), a, f, h = (
718
718
  /*showPlaceType*/
719
719
  n[2] === "always" || /*showPlaceType*/
720
- n[2] && !/*feature*/
720
+ n[2] !== "never" && !/*feature*/
721
721
  n[0].address && !/*feature*/
722
722
  n[0].id.startsWith("road.") && !/*feature*/
723
723
  n[0].id.startsWith("address.") && !/*feature*/
@@ -731,29 +731,29 @@ function tr(n) {
731
731
  /*feature*/
732
732
  n[0].place_name.replace(/[^,]*,?\s*/, "")
733
733
  )) + ""
734
- ), v, E, _;
735
- function x(w, k) {
734
+ ), w, L, S;
735
+ function E(_, k) {
736
736
  return k & /*feature*/
737
737
  1 && (t = null), k & /*feature*/
738
738
  1 && (i = null), k & /*feature*/
739
739
  1 && (r = null), k & /*feature*/
740
740
  1 && (o = null), /*imageUrl*/
741
- w[5] ? er : (
741
+ _[5] ? er : (
742
742
  /*feature*/
743
- w[0].address ? $n : (t == null && (t = !!/*feature*/
744
- w[0].id.startsWith("road.")), t ? Jn : (i == null && (i = !!/*feature*/
745
- w[0].id.startsWith("address.")), i ? Kn : (r == null && (r = !!/*feature*/
746
- w[0].id.startsWith("postal_code.")), r ? Xn : (o == null && (o = !!/*feature*/
747
- w[0].id.startsWith("poi.")), o ? Yn : (
743
+ _[0].address ? $n : (t == null && (t = !!/*feature*/
744
+ _[0].id.startsWith("road.")), t ? Jn : (i == null && (i = !!/*feature*/
745
+ _[0].id.startsWith("address.")), i ? Kn : (r == null && (r = !!/*feature*/
746
+ _[0].id.startsWith("postal_code.")), r ? Xn : (o == null && (o = !!/*feature*/
747
+ _[0].id.startsWith("poi.")), o ? Yn : (
748
748
  /*isReverse*/
749
- w[7] ? Hn : Vn
749
+ _[7] ? Hn : Zn
750
750
  )))))
751
751
  );
752
752
  }
753
- let C = x(n, -1), S = C(n), L = h && li(n);
753
+ let M = E(n, -1), C = M(n), v = h && li(n);
754
754
  return {
755
755
  c() {
756
- e = W("li"), S.c(), l = te(), s = W("span"), c = W("span"), u = W("span"), a = Ee(d), f = te(), L && L.c(), m = te(), y = W("span"), v = Ee(b), p(u, "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(
756
+ e = W("li"), C.c(), l = ie(), s = W("span"), c = W("span"), u = W("span"), a = Ee(d), f = ie(), v && v.c(), m = ie(), y = W("span"), w = Ee(b), p(u, "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(
757
757
  e,
758
758
  "data-selected",
759
759
  /*selected*/
@@ -765,93 +765,93 @@ function tr(n) {
765
765
  n[1]
766
766
  );
767
767
  },
768
- m(w, k) {
769
- j(w, e, k), S.m(e, null), R(e, l), R(e, s), R(s, c), R(c, u), R(u, a), R(c, f), L && L.m(c, null), R(s, m), R(s, y), R(y, v), E || (_ = [
770
- J(
768
+ m(_, k) {
769
+ U(_, e, k), C.m(e, null), T(e, l), T(e, s), T(s, c), T(c, u), T(u, a), T(c, f), v && v.m(c, null), T(s, m), T(s, y), T(y, w), L || (S = [
770
+ ee(
771
771
  e,
772
772
  "mouseenter",
773
773
  /*mouseenter_handler*/
774
774
  n[12]
775
775
  ),
776
- J(
776
+ ee(
777
777
  e,
778
778
  "focus",
779
779
  /*focus_handler*/
780
780
  n[13]
781
781
  )
782
- ], E = !0);
782
+ ], L = !0);
783
783
  },
784
- p(w, [k]) {
785
- C === (C = x(w, k)) && S ? S.p(w, k) : (S.d(1), S = C(w), S && (S.c(), S.m(e, l))), k & /*feature*/
784
+ p(_, [k]) {
785
+ M === (M = E(_, k)) && C ? C.p(_, k) : (C.d(1), C = M(_), C && (C.c(), C.m(e, l))), k & /*feature*/
786
786
  1 && d !== (d = /*isReverse*/
787
- (w[7] ? (
787
+ (_[7] ? (
788
788
  /*feature*/
789
- w[0].place_name
789
+ _[0].place_name
790
790
  ) : (
791
791
  /*feature*/
792
- w[0].place_name.replace(/,.*/, "")
793
- )) + "") && Ze(a, d), k & /*showPlaceType, feature, imageUrl*/
792
+ _[0].place_name.replace(/,.*/, "")
793
+ )) + "") && Qe(a, d), k & /*showPlaceType, feature, imageUrl*/
794
794
  37 && (h = /*showPlaceType*/
795
- w[2] === "always" || /*showPlaceType*/
796
- w[2] && !/*feature*/
797
- w[0].address && !/*feature*/
798
- w[0].id.startsWith("road.") && !/*feature*/
799
- w[0].id.startsWith("address.") && !/*feature*/
800
- w[0].id.startsWith("postal_code.") && (!/*feature*/
801
- w[0].id.startsWith("poi.") || !/*imageUrl*/
802
- w[5]) && !/*isReverse*/
803
- w[7]), h ? L ? L.p(w, k) : (L = li(w), L.c(), L.m(c, null)) : L && (L.d(1), L = null), k & /*feature*/
795
+ _[2] === "always" || /*showPlaceType*/
796
+ _[2] !== "never" && !/*feature*/
797
+ _[0].address && !/*feature*/
798
+ _[0].id.startsWith("road.") && !/*feature*/
799
+ _[0].id.startsWith("address.") && !/*feature*/
800
+ _[0].id.startsWith("postal_code.") && (!/*feature*/
801
+ _[0].id.startsWith("poi.") || !/*imageUrl*/
802
+ _[5]) && !/*isReverse*/
803
+ _[7]), h ? v ? v.p(_, k) : (v = li(_), v.c(), v.m(c, null)) : v && (v.d(1), v = null), k & /*feature*/
804
804
  1 && b !== (b = /*isReverse*/
805
- (w[7] ? "" : (
805
+ (_[7] ? "" : (
806
806
  /*feature*/
807
- w[0].place_name.replace(/[^,]*,?\s*/, "")
808
- )) + "") && Ze(v, b), k & /*selected*/
807
+ _[0].place_name.replace(/[^,]*,?\s*/, "")
808
+ )) + "") && Qe(w, b), k & /*selected*/
809
809
  2 && p(
810
810
  e,
811
811
  "data-selected",
812
812
  /*selected*/
813
- w[1]
813
+ _[1]
814
814
  ), k & /*selected*/
815
815
  2 && be(
816
816
  e,
817
817
  "selected",
818
818
  /*selected*/
819
- w[1]
819
+ _[1]
820
820
  );
821
821
  },
822
- i: z,
823
- o: z,
824
- d(w) {
825
- w && B(e), S.d(), L && L.d(), E = !1, ye(_);
822
+ i: D,
823
+ o: D,
824
+ d(_) {
825
+ _ && F(e), C.d(), v && v.d(), L = !1, ye(S);
826
826
  }
827
827
  };
828
828
  }
829
829
  function ir(n, e, t) {
830
- var _;
830
+ var S;
831
831
  let i, r, { feature: o } = e, { selected: l = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: u } = e;
832
- const d = (_ = o.properties) == null ? void 0 : _.categories;
832
+ const d = (S = o.properties) == null ? void 0 : S.categories;
833
833
  let a, f, h = 0, m = o.place_type[0] === "reverse";
834
834
  function y() {
835
835
  f && c.add(f), t(10, h++, h);
836
836
  }
837
- function b(x) {
838
- ri.call(this, n, x);
837
+ function b(E) {
838
+ ri.call(this, n, E);
839
839
  }
840
- function v(x) {
841
- ri.call(this, n, x);
840
+ function w(E) {
841
+ ri.call(this, n, E);
842
842
  }
843
- const E = () => y();
844
- return n.$$set = (x) => {
845
- "feature" in x && t(0, o = x.feature), "selected" in x && t(1, l = x.selected), "showPlaceType" in x && t(2, s = x.showPlaceType), "missingIconsCache" in x && t(9, c = x.missingIconsCache), "iconsBaseUrl" in x && t(3, u = x.iconsBaseUrl);
843
+ const L = () => y();
844
+ return n.$$set = (E) => {
845
+ "feature" in E && t(0, o = E.feature), "selected" in E && t(1, l = E.selected), "showPlaceType" in E && t(2, s = E.showPlaceType), "missingIconsCache" in E && t(9, c = E.missingIconsCache), "iconsBaseUrl" in E && t(3, u = E.iconsBaseUrl);
846
846
  }, n.$$.update = () => {
847
- var x, C, S, L;
847
+ var E, M, C, v;
848
848
  if (n.$$.dirty & /*loadIconAttempt, index, category, iconsBaseUrl, imageUrl, missingIconsCache*/
849
849
  3640)
850
850
  do
851
851
  t(11, i--, i), t(4, a = d == null ? void 0 : d[i]), t(5, f = a ? u + a.replace(/ /g, "_") + ".svg" : void 0);
852
852
  while (i > -1 && (!f || c.has(f)));
853
853
  n.$$.dirty & /*feature*/
854
- 1 && t(6, r = ((C = (x = o.properties) == null ? void 0 : x.categories) == null ? void 0 : C.join(", ")) ?? ((L = (S = o.properties) == null ? void 0 : S.place_type_name) == null ? void 0 : L[0]) ?? o.place_type[0]);
854
+ 1 && t(6, r = ((M = (E = o.properties) == null ? void 0 : E.categories) == null ? void 0 : M.join(", ")) ?? ((v = (C = o.properties) == null ? void 0 : C.place_type_name) == null ? void 0 : v[0]) ?? o.place_type[0]);
855
855
  }, t(11, i = (d == null ? void 0 : d.length) ?? 0), [
856
856
  o,
857
857
  l,
@@ -866,13 +866,13 @@ function ir(n, e, t) {
866
866
  h,
867
867
  i,
868
868
  b,
869
- v,
870
- E
869
+ w,
870
+ L
871
871
  ];
872
872
  }
873
- class nr extends Re {
873
+ class nr extends Te {
874
874
  constructor(e) {
875
- super(), Te(this, e, ir, tr, Pe, {
875
+ super(), Re(this, e, ir, tr, Pe, {
876
876
  feature: 0,
877
877
  selected: 1,
878
878
  showPlaceType: 2,
@@ -888,19 +888,19 @@ function rr(n) {
888
888
  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");
889
889
  },
890
890
  m(t, i) {
891
- j(t, e, i);
891
+ U(t, e, i);
892
892
  },
893
- p: z,
894
- i: z,
895
- o: z,
893
+ p: D,
894
+ i: D,
895
+ o: D,
896
896
  d(t) {
897
- t && B(e);
897
+ t && F(e);
898
898
  }
899
899
  };
900
900
  }
901
- class or extends Re {
901
+ class or extends Te {
902
902
  constructor(e) {
903
- super(), Te(this, e, null, rr, Pe, {});
903
+ super(), Re(this, e, null, rr, Pe, {});
904
904
  }
905
905
  }
906
906
  function sr(n) {
@@ -910,19 +910,19 @@ function sr(n) {
910
910
  e = de("svg"), t = de("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");
911
911
  },
912
912
  m(i, r) {
913
- j(i, e, r), R(e, t);
913
+ U(i, e, r), T(e, t);
914
914
  },
915
- p: z,
916
- i: z,
917
- o: z,
915
+ p: D,
916
+ i: D,
917
+ o: D,
918
918
  d(i) {
919
- i && B(e);
919
+ i && F(e);
920
920
  }
921
921
  };
922
922
  }
923
- class lr extends Re {
923
+ class lr extends Te {
924
924
  constructor(e) {
925
- super(), Te(this, e, null, sr, Pe, {});
925
+ super(), Re(this, e, null, sr, Pe, {});
926
926
  }
927
927
  }
928
928
  function ur(n) {
@@ -932,30 +932,30 @@ function ur(n) {
932
932
  e = de("svg"), t = de("circle"), i = de("path"), p(t, "cx", "4.789"), p(t, "cy", "4.787"), p(t, "r", "3.85"), p(t, "class", "svelte-1aq105l"), p(i, "d", "M12.063 12.063 7.635 7.635"), p(i, "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");
933
933
  },
934
934
  m(r, o) {
935
- j(r, e, o), R(e, t), R(e, i);
935
+ U(r, e, o), T(e, t), T(e, i);
936
936
  },
937
- p: z,
938
- i: z,
939
- o: z,
937
+ p: D,
938
+ i: D,
939
+ o: D,
940
940
  d(r) {
941
- r && B(e);
941
+ r && F(e);
942
942
  }
943
943
  };
944
944
  }
945
- class ar extends Re {
945
+ class ar extends Te {
946
946
  constructor(e) {
947
- super(), Te(this, e, null, ur, Pe, {});
947
+ super(), Re(this, e, null, ur, Pe, {});
948
948
  }
949
949
  }
950
950
  function cr(n, e, t) {
951
951
  const i = e[1], r = e[0], o = i - r;
952
952
  return n === i && t ? n : ((n - r) % o + o) % o + r;
953
953
  }
954
- function ut(n) {
954
+ function lt(n) {
955
955
  const e = [...n];
956
956
  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;
957
957
  }
958
- let Ge;
958
+ let Ue;
959
959
  async function fr(n, e, t) {
960
960
  const i = n == null ? void 0 : n.getCenterAndZoom();
961
961
  for (const r of e ?? [])
@@ -963,10 +963,10 @@ async function fr(n, e, t) {
963
963
  if (r.type === "fixed")
964
964
  return r.coordinates.join(",");
965
965
  e: if (r.type === "client-geolocation") {
966
- if (Ge && r.cachedLocationExpiry && Ge.time + r.cachedLocationExpiry > Date.now()) {
967
- if (!Ge.coords)
966
+ if (Ue && r.cachedLocationExpiry && Ue.time + r.cachedLocationExpiry > Date.now()) {
967
+ if (!Ue.coords)
968
968
  break e;
969
- return Ge.coords;
969
+ return Ue.coords;
970
970
  }
971
971
  let o;
972
972
  try {
@@ -987,7 +987,7 @@ async function fr(n, e, t) {
987
987
  }), o;
988
988
  } catch {
989
989
  } finally {
990
- r.cachedLocationExpiry && (Ge = {
990
+ r.cachedLocationExpiry && (Ue = {
991
991
  time: Date.now(),
992
992
  coords: o
993
993
  });
@@ -1017,8 +1017,8 @@ function hr(n) {
1017
1017
  if (n == "DMS") {
1018
1018
  const h = Math.floor(a), m = Math.floor(f);
1019
1019
  let y = ((a - h) * 60).toFixed(1).padStart(4, "0"), b = ((f - m) * 60).toFixed(1).padStart(4, "0");
1020
- const v = h.toString().padStart(2, "0"), E = m.toString().padStart(2, "0");
1021
- y.endsWith(".0") && b.endsWith(".0") && (y = y.replace(/\.0$/, ""), b = b.replace(/\.0$/, "")), c = `${u}° ${v}' ${y}" ${l}, ${d}° ${E}' ${b}" ${s}`;
1020
+ const w = h.toString().padStart(2, "0"), L = m.toString().padStart(2, "0");
1021
+ y.endsWith(".0") && b.endsWith(".0") && (y = y.replace(/\.0$/, ""), b = b.replace(/\.0$/, "")), c = `${u}° ${w}' ${y}" ${l}, ${d}° ${L}' ${b}" ${s}`;
1022
1022
  }
1023
1023
  return c;
1024
1024
  } else
@@ -1028,18 +1028,18 @@ function hi(n, e) {
1028
1028
  const t = Math.pow(10, e);
1029
1029
  return Math.round((n + Number.EPSILON) * t) / t;
1030
1030
  }
1031
- function Bt(n, e) {
1031
+ function Ft(n, e) {
1032
1032
  e || (e = 5), n = n.replace(/\s+/g, " ").trim();
1033
1033
  let t = null, i = null, r = "", o = "", l = null, s = [], c = !1;
1034
1034
  if (dr.test(n))
1035
1035
  throw new Error("invalid coordinate value");
1036
1036
  if (ui.test(n))
1037
- if (s = ui.exec(n), c = ze(s), c)
1037
+ if (s = ui.exec(n), c = Ge(s), c)
1038
1038
  t = Math.abs(s[1]) + s[2] / 60, Number(s[1]) < 0 && (t *= -1), i = Math.abs(s[3]) + s[4] / 60, Number(s[3]) < 0 && (i *= -1), l = "DM";
1039
1039
  else
1040
1040
  throw new Error("invalid coordinate format");
1041
1041
  else if (ai.test(n))
1042
- if (s = ai.exec(n), c = ze(s), c) {
1042
+ if (s = ai.exec(n), c = Ge(s), c) {
1043
1043
  if (t = s[2], i = s[6], t.includes(",") && (t = t.replace(",", ".")), i.includes(",") && (i = i.replace(",", ".")), l = "DD", Number(Math.round(t)) == Number(t))
1044
1044
  throw new Error("integer only coordinate provided");
1045
1045
  if (Number(Math.round(i)) == Number(i))
@@ -1048,17 +1048,17 @@ function Bt(n, e) {
1048
1048
  } else
1049
1049
  throw new Error("invalid decimal coordinate format");
1050
1050
  else if (ci.test(n))
1051
- if (s = ci.exec(n), c = ze(s), c)
1051
+ if (s = ci.exec(n), c = Ge(s), c)
1052
1052
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[9])), s[11] && (i += s[11] / 60), s[13] && (i += s[13].replace(",", ".") / 3600), parseInt(s[9]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[8]) : s[7] && (r = s[7], o = s[14]);
1053
1053
  else
1054
1054
  throw new Error("invalid DMS coordinates format");
1055
1055
  else if (fi.test(n))
1056
- if (s = fi.exec(n), c = ze(s), c)
1056
+ if (s = fi.exec(n), c = Ge(s), c)
1057
1057
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4] / 60, l = "DM"), s[6] && (t += s[6] / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[10])), s[12] && (i += s[12] / 60), s[14] && (i += s[14] / 3600), parseInt(s[10]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
1058
1058
  else
1059
1059
  throw new Error("invalid DMS coordinates format");
1060
1060
  else if (di.test(n)) {
1061
- if (s = di.exec(n), c = ze(s), s.filter((u) => u).length <= 5)
1061
+ if (s = di.exec(n), c = Ge(s), s.filter((u) => u).length <= 5)
1062
1062
  throw new Error("invalid coordinates format");
1063
1063
  if (c)
1064
1064
  t = Math.abs(parseInt(s[2])), s[4] && (t += s[4].replace(",", ".") / 60, l = "DM"), s[6] && (t += s[6].replace(",", ".") / 3600, l = "DMS"), parseInt(s[2]) < 0 && (t = -1 * t), i = Math.abs(parseInt(s[10])), s[12] && (i += s[12].replace(",", ".") / 60), s[14] && (i += s[14].replace(",", ".") / 3600), parseInt(s[10]) < 0 && (i = -1 * i), s[1] ? (r = s[1], o = s[9]) : s[8] && (r = s[8], o = s[16]);
@@ -1081,19 +1081,19 @@ function Bt(n, e) {
1081
1081
  let a, f;
1082
1082
  const h = /[,/;\u0020]/g, m = d.match(h);
1083
1083
  if (m == null) {
1084
- const v = Math.floor(n.length / 2);
1085
- a = d.substring(0, v).trim(), f = d.substring(v).trim();
1084
+ const w = Math.floor(n.length / 2);
1085
+ a = d.substring(0, w).trim(), f = d.substring(w).trim();
1086
1086
  } else {
1087
- let v;
1088
- m.length % 2 == 1 ? v = Math.floor(m.length / 2) : v = m.length / 2 - 1;
1089
- let E = 0;
1090
- if (v == 0)
1091
- E = d.indexOf(m[0]), a = d.substring(0, E).trim(), f = d.substring(E + 1).trim();
1087
+ let w;
1088
+ m.length % 2 == 1 ? w = Math.floor(m.length / 2) : w = m.length / 2 - 1;
1089
+ let L = 0;
1090
+ if (w == 0)
1091
+ L = d.indexOf(m[0]), a = d.substring(0, L).trim(), f = d.substring(L + 1).trim();
1092
1092
  else {
1093
- let _ = 0, x = 0;
1094
- for (; _ <= v; )
1095
- E = d.indexOf(m[_], x), x = E + 1, _++;
1096
- a = d.substring(0, E).trim(), f = d.substring(E + 1).trim();
1093
+ let S = 0, E = 0;
1094
+ for (; S <= w; )
1095
+ L = d.indexOf(m[S], E), E = L + 1, S++;
1096
+ a = d.substring(0, L).trim(), f = d.substring(L + 1).trim();
1097
1097
  }
1098
1098
  }
1099
1099
  const y = a.split(".");
@@ -1118,7 +1118,7 @@ function Bt(n, e) {
1118
1118
  } else
1119
1119
  throw new Error("coordinates pattern match failed");
1120
1120
  }
1121
- function ze(n) {
1121
+ function Ge(n) {
1122
1122
  if (!isNaN(n[0]))
1123
1123
  return !1;
1124
1124
  const e = [...n];
@@ -1157,7 +1157,7 @@ const mr = Object.freeze({
1157
1157
  DM: "DM",
1158
1158
  DD: "DD"
1159
1159
  });
1160
- Bt.to = mr;
1160
+ Ft.to = mr;
1161
1161
  const yr = [
1162
1162
  {
1163
1163
  verbatimCoordinates: "40.123, -74.123",
@@ -1299,10 +1299,10 @@ const yr = [
1299
1299
  verbatimLatitude: "40 7 22.8",
1300
1300
  verbatimLongitude: "-74 7 22.8"
1301
1301
  }
1302
- ], vr = {
1302
+ ], pr = {
1303
1303
  decimalLatitude: 40.123,
1304
1304
  decimalLongitude: -74.123
1305
- }, pr = [
1305
+ }, vr = [
1306
1306
  {
1307
1307
  verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`,
1308
1308
  verbatimLatitude: `50°4'17.698"south`,
@@ -1525,12 +1525,12 @@ const yr = [
1525
1525
  function wr() {
1526
1526
  const n = [];
1527
1527
  return yr.forEach((e) => {
1528
- e.decimalLatitude ? n.push(e) : n.push({ ...e, ...vr });
1529
- }), [...n, ...pr, ...br];
1528
+ e.decimalLatitude ? n.push(e) : n.push({ ...e, ...pr });
1529
+ }), [...n, ...vr, ...br];
1530
1530
  }
1531
1531
  const _r = wr();
1532
- Bt.formats = _r.map((n) => n.verbatimCoordinates);
1533
- const Er = Bt;
1532
+ Ft.formats = _r.map((n) => n.verbatimCoordinates);
1533
+ const Er = Ft;
1534
1534
  function mi(n, e, t) {
1535
1535
  const i = n.slice();
1536
1536
  return i[84] = e[t], i[86] = t, i;
@@ -1545,17 +1545,17 @@ function yi(n) {
1545
1545
  ge(e, i, r), t = !0;
1546
1546
  },
1547
1547
  i(i) {
1548
- t || (q(e.$$.fragment, i), t = !0);
1548
+ t || (G(e.$$.fragment, i), t = !0);
1549
1549
  },
1550
1550
  o(i) {
1551
- H(e.$$.fragment, i), t = !1;
1551
+ Y(e.$$.fragment, i), t = !1;
1552
1552
  },
1553
1553
  d(i) {
1554
1554
  me(e, i);
1555
1555
  }
1556
1556
  };
1557
1557
  }
1558
- function vi(n) {
1558
+ function pi(n) {
1559
1559
  let e, t, i, r, o;
1560
1560
  return t = new lr({}), {
1561
1561
  c() {
@@ -1564,7 +1564,7 @@ function vi(n) {
1564
1564
  "title",
1565
1565
  /*reverseButtonTitle*/
1566
1566
  n[9]
1567
- ), p(e, "class", "svelte-1uvos7g"), be(
1567
+ ), p(e, "class", "svelte-bz0zu3"), be(
1568
1568
  e,
1569
1569
  "active",
1570
1570
  /*reverseActive*/
@@ -1572,7 +1572,7 @@ function vi(n) {
1572
1572
  );
1573
1573
  },
1574
1574
  m(l, s) {
1575
- j(l, e, s), ge(t, e, null), i = !0, r || (o = J(
1575
+ U(l, e, s), ge(t, e, null), i = !0, r || (o = ee(
1576
1576
  e,
1577
1577
  "click",
1578
1578
  /*click_handler_2*/
@@ -1595,13 +1595,13 @@ function vi(n) {
1595
1595
  );
1596
1596
  },
1597
1597
  i(l) {
1598
- i || (q(t.$$.fragment, l), i = !0);
1598
+ i || (G(t.$$.fragment, l), i = !0);
1599
1599
  },
1600
1600
  o(l) {
1601
- H(t.$$.fragment, l), i = !1;
1601
+ Y(t.$$.fragment, l), i = !1;
1602
1602
  },
1603
1603
  d(l) {
1604
- l && B(e), me(t), r = !1, o();
1604
+ l && F(e), me(t), r = !1, o();
1605
1605
  }
1606
1606
  };
1607
1607
  }
@@ -1618,27 +1618,27 @@ function Lr(n) {
1618
1618
  );
1619
1619
  for (let u = 0; u < s.length; u += 1) {
1620
1620
  let d = mi(n, s, u), a = c(d);
1621
- i.set(a, t[u] = pi(a, d));
1621
+ i.set(a, t[u] = vi(a, d));
1622
1622
  }
1623
1623
  return {
1624
1624
  c() {
1625
1625
  e = W("ul");
1626
1626
  for (let u = 0; u < t.length; u += 1)
1627
1627
  t[u].c();
1628
- p(e, "class", "svelte-1uvos7g");
1628
+ p(e, "class", "options svelte-bz0zu3");
1629
1629
  },
1630
1630
  m(u, d) {
1631
- j(u, e, d);
1631
+ U(u, e, d);
1632
1632
  for (let a = 0; a < t.length; a += 1)
1633
1633
  t[a] && t[a].m(e, null);
1634
1634
  r = !0, o || (l = [
1635
- J(
1635
+ ee(
1636
1636
  e,
1637
1637
  "mouseleave",
1638
1638
  /*mouseleave_handler*/
1639
1639
  n[73]
1640
1640
  ),
1641
- J(
1641
+ ee(
1642
1642
  e,
1643
1643
  "blur",
1644
1644
  /*blur_handler_1*/
@@ -1651,22 +1651,22 @@ function Lr(n) {
1651
1651
  17880064 && (s = si(
1652
1652
  /*listFeatures*/
1653
1653
  u[14]
1654
- ), ot(), t = zn(t, d, c, 1, u, s, i, e, Gn, pi, null, mi), st());
1654
+ ), rt(), t = Gn(t, d, c, 1, u, s, i, e, Un, vi, null, mi), ot());
1655
1655
  },
1656
1656
  i(u) {
1657
1657
  if (!r) {
1658
1658
  for (let d = 0; d < s.length; d += 1)
1659
- q(t[d]);
1659
+ G(t[d]);
1660
1660
  r = !0;
1661
1661
  }
1662
1662
  },
1663
1663
  o(u) {
1664
1664
  for (let d = 0; d < t.length; d += 1)
1665
- H(t[d]);
1665
+ Y(t[d]);
1666
1666
  r = !1;
1667
1667
  },
1668
1668
  d(u) {
1669
- u && B(e);
1669
+ u && F(e);
1670
1670
  for (let d = 0; d < t.length; d += 1)
1671
1671
  t[d].d();
1672
1672
  o = !1, ye(l);
@@ -1675,32 +1675,32 @@ function Lr(n) {
1675
1675
  }
1676
1676
  function Sr(n) {
1677
1677
  let e, t, i, r, o, l;
1678
- return t = new Gi({}), {
1678
+ return t = new Ui({}), {
1679
1679
  c() {
1680
- e = W("div"), Le(t.$$.fragment), i = te(), r = W("div"), o = Ee(
1680
+ e = W("div"), Le(t.$$.fragment), i = ie(), r = W("div"), o = Ee(
1681
1681
  /*noResultsMessage*/
1682
1682
  n[7]
1683
- ), p(r, "class", "svelte-1uvos7g"), p(e, "class", "no-results svelte-1uvos7g");
1683
+ ), p(r, "class", "svelte-bz0zu3"), p(e, "class", "no-results svelte-bz0zu3");
1684
1684
  },
1685
1685
  m(s, c) {
1686
- j(s, e, c), ge(t, e, null), R(e, i), R(e, r), R(r, o), l = !0;
1686
+ U(s, e, c), ge(t, e, null), T(e, i), T(e, r), T(r, o), l = !0;
1687
1687
  },
1688
1688
  p(s, c) {
1689
1689
  (!l || c[0] & /*noResultsMessage*/
1690
- 128) && Ze(
1690
+ 128) && Qe(
1691
1691
  o,
1692
1692
  /*noResultsMessage*/
1693
1693
  s[7]
1694
1694
  );
1695
1695
  },
1696
1696
  i(s) {
1697
- l || (q(t.$$.fragment, s), l = !0);
1697
+ l || (G(t.$$.fragment, s), l = !0);
1698
1698
  },
1699
1699
  o(s) {
1700
- H(t.$$.fragment, s), l = !1;
1700
+ Y(t.$$.fragment, s), l = !1;
1701
1701
  },
1702
1702
  d(s) {
1703
- s && B(e), me(t);
1703
+ s && F(e), me(t);
1704
1704
  }
1705
1705
  };
1706
1706
  }
@@ -1711,27 +1711,27 @@ function xr(n) {
1711
1711
  t = Ee(e);
1712
1712
  },
1713
1713
  m(i, r) {
1714
- j(i, t, r);
1714
+ U(i, t, r);
1715
1715
  },
1716
- p: z,
1717
- i: z,
1718
- o: z,
1716
+ p: D,
1717
+ i: D,
1718
+ o: D,
1719
1719
  d(i) {
1720
- i && B(t);
1720
+ i && F(t);
1721
1721
  }
1722
1722
  };
1723
1723
  }
1724
1724
  function Mr(n) {
1725
1725
  let e, t, i, r, o, l, s, c, u, d, a;
1726
- return t = new Gi({}), c = new Ui({}), {
1726
+ return t = new Ui({}), c = new Di({}), {
1727
1727
  c() {
1728
- e = W("div"), Le(t.$$.fragment), i = te(), r = W("div"), o = Ee(
1728
+ e = W("div"), Le(t.$$.fragment), i = ie(), r = W("div"), o = Ee(
1729
1729
  /*errorMessage*/
1730
1730
  n[6]
1731
- ), l = te(), s = W("button"), Le(c.$$.fragment), p(r, "class", "svelte-1uvos7g"), p(s, "class", "svelte-1uvos7g"), p(e, "class", "error svelte-1uvos7g");
1731
+ ), l = ie(), s = W("button"), Le(c.$$.fragment), p(r, "class", "svelte-bz0zu3"), p(s, "class", "svelte-bz0zu3"), p(e, "class", "error svelte-bz0zu3");
1732
1732
  },
1733
1733
  m(f, h) {
1734
- j(f, e, h), ge(t, e, null), R(e, i), R(e, r), R(r, o), R(e, l), R(e, s), ge(c, s, null), u = !0, d || (a = J(
1734
+ U(f, e, h), ge(t, e, null), T(e, i), T(e, r), T(r, o), T(e, l), T(e, s), ge(c, s, null), u = !0, d || (a = ee(
1735
1735
  s,
1736
1736
  "click",
1737
1737
  /*click_handler_3*/
@@ -1740,24 +1740,24 @@ function Mr(n) {
1740
1740
  },
1741
1741
  p(f, h) {
1742
1742
  (!u || h[0] & /*errorMessage*/
1743
- 64) && Ze(
1743
+ 64) && Qe(
1744
1744
  o,
1745
1745
  /*errorMessage*/
1746
1746
  f[6]
1747
1747
  );
1748
1748
  },
1749
1749
  i(f) {
1750
- u || (q(t.$$.fragment, f), q(c.$$.fragment, f), u = !0);
1750
+ u || (G(t.$$.fragment, f), G(c.$$.fragment, f), u = !0);
1751
1751
  },
1752
1752
  o(f) {
1753
- H(t.$$.fragment, f), H(c.$$.fragment, f), u = !1;
1753
+ Y(t.$$.fragment, f), Y(c.$$.fragment, f), u = !1;
1754
1754
  },
1755
1755
  d(f) {
1756
- f && B(e), me(t), me(c), d = !1, a();
1756
+ f && F(e), me(t), me(c), d = !1, a();
1757
1757
  }
1758
1758
  };
1759
1759
  }
1760
- function pi(n, e) {
1760
+ function vi(n, e) {
1761
1761
  let t, i, r;
1762
1762
  function o() {
1763
1763
  return (
@@ -1805,10 +1805,10 @@ function pi(n, e) {
1805
1805
  key: n,
1806
1806
  first: null,
1807
1807
  c() {
1808
- t = Tn(), Le(i.$$.fragment), this.first = t;
1808
+ t = Rn(), Le(i.$$.fragment), this.first = t;
1809
1809
  },
1810
1810
  m(s, c) {
1811
- j(s, t, c), ge(i, s, c), r = !0;
1811
+ U(s, t, c), ge(i, s, c), r = !0;
1812
1812
  },
1813
1813
  p(s, c) {
1814
1814
  e = s;
@@ -1825,25 +1825,25 @@ function pi(n, e) {
1825
1825
  e[12]), i.$set(u);
1826
1826
  },
1827
1827
  i(s) {
1828
- r || (q(i.$$.fragment, s), r = !0);
1828
+ r || (G(i.$$.fragment, s), r = !0);
1829
1829
  },
1830
1830
  o(s) {
1831
- H(i.$$.fragment, s), r = !1;
1831
+ Y(i.$$.fragment, s), r = !1;
1832
1832
  },
1833
1833
  d(s) {
1834
- s && B(t), me(i, s);
1834
+ s && F(t), me(i, s);
1835
1835
  }
1836
1836
  };
1837
1837
  }
1838
1838
  function kr(n) {
1839
- let e, t, i, r, o, l, s, c, u, d, a, f, h, m, y, b, v, E, _, x, C, S = !1;
1840
- o = new ar({}), a = new Ui({});
1841
- let L = (
1839
+ let e, t, i, r, o, l, s, c, u, d, a, f, h, m, y, b, w, L, S, E, M, C = !1;
1840
+ o = new ar({}), a = new Di({});
1841
+ let v = (
1842
1842
  /*abortController*/
1843
1843
  n[19] && yi()
1844
- ), w = (
1844
+ ), _ = (
1845
1845
  /*enableReverse*/
1846
- n[5] === !0 && vi(n)
1846
+ n[5] === "button" && pi(n)
1847
1847
  );
1848
1848
  const k = (
1849
1849
  /*#slots*/
@@ -1854,27 +1854,27 @@ function kr(n) {
1854
1854
  /*$$scope*/
1855
1855
  n[60],
1856
1856
  null
1857
- ), A = [Mr, xr, Sr, Lr], D = [];
1858
- function O(M, U) {
1859
- var $, oe;
1857
+ ), H = [Mr, xr, Sr, Lr], O = [];
1858
+ function J(x, A) {
1859
+ var oe, ce;
1860
1860
  return (
1861
1861
  /*error*/
1862
- M[18] ? 0 : (
1862
+ x[18] ? 0 : (
1863
1863
  /*focusedDelayed*/
1864
- M[16] ? (
1864
+ x[16] ? (
1865
1865
  /*listFeatures*/
1866
- (($ = M[14]) == null ? void 0 : $.length) === 0 ? 2 : (
1866
+ ((oe = x[14]) == null ? void 0 : oe.length) === 0 ? 2 : (
1867
1867
  /*focusedDelayed*/
1868
- M[16] && /*listFeatures*/
1869
- ((oe = M[14]) != null && oe.length) ? 3 : -1
1868
+ x[16] && /*listFeatures*/
1869
+ ((ce = x[14]) != null && ce.length) ? 3 : -1
1870
1870
  )
1871
1871
  ) : 1
1872
1872
  )
1873
1873
  );
1874
1874
  }
1875
- return ~(b = O(n)) && (v = D[b] = A[b](n)), {
1875
+ return ~(b = J(n)) && (w = O[b] = H[b](n)), {
1876
1876
  c() {
1877
- e = te(), t = W("form"), i = W("div"), r = W("button"), Le(o.$$.fragment), l = te(), s = W("input"), c = te(), u = W("div"), d = W("button"), Le(a.$$.fragment), f = te(), L && L.c(), h = te(), w && w.c(), m = te(), I && I.c(), y = te(), v && v.c(), p(r, "class", "search-button svelte-1uvos7g"), p(r, "type", "button"), p(
1877
+ e = ie(), t = W("form"), i = W("div"), r = W("button"), Le(o.$$.fragment), l = ie(), s = W("input"), c = ie(), u = W("div"), d = W("button"), Le(a.$$.fragment), f = ie(), v && v.c(), h = ie(), _ && _.c(), m = ie(), I && I.c(), y = ie(), w && w.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1878
1878
  s,
1879
1879
  "placeholder",
1880
1880
  /*placeholder*/
@@ -1884,20 +1884,20 @@ function kr(n) {
1884
1884
  "aria-label",
1885
1885
  /*placeholder*/
1886
1886
  n[8]
1887
- ), p(s, "class", "svelte-1uvos7g"), p(d, "type", "button"), p(
1887
+ ), p(s, "class", "svelte-bz0zu3"), p(d, "type", "button"), p(
1888
1888
  d,
1889
1889
  "title",
1890
1890
  /*clearButtonTitle*/
1891
1891
  n[3]
1892
- ), p(d, "class", "svelte-1uvos7g"), p(u, "class", "clear-button-container svelte-1uvos7g"), be(
1892
+ ), p(d, "class", "svelte-bz0zu3"), p(u, "class", "clear-button-container svelte-bz0zu3"), be(
1893
1893
  u,
1894
1894
  "displayable",
1895
1895
  /*searchValue*/
1896
1896
  n[1] !== ""
1897
- ), p(i, "class", "input-group svelte-1uvos7g"), p(t, "tabindex", "0"), p(t, "class", E = ii(
1897
+ ), p(i, "class", "input-group svelte-bz0zu3"), p(t, "tabindex", "0"), p(t, "class", L = ii(
1898
1898
  /*className*/
1899
1899
  n[2]
1900
- ) + " svelte-1uvos7g"), be(
1900
+ ) + " svelte-bz0zu3"), be(
1901
1901
  t,
1902
1902
  "can-collapse",
1903
1903
  /*collapsed*/
@@ -1905,148 +1905,148 @@ function kr(n) {
1905
1905
  n[1] === ""
1906
1906
  );
1907
1907
  },
1908
- m(M, U) {
1909
- j(M, e, U), j(M, t, U), R(t, i), R(i, r), ge(o, r, null), R(i, l), R(i, s), n[63](s), ni(
1908
+ m(x, A) {
1909
+ U(x, e, A), U(x, t, A), T(t, i), T(i, r), ge(o, r, null), T(i, l), T(i, s), n[63](s), ni(
1910
1910
  s,
1911
1911
  /*searchValue*/
1912
1912
  n[1]
1913
- ), R(i, c), R(i, u), R(u, d), ge(a, d, null), R(u, f), L && L.m(u, null), R(i, h), w && w.m(i, null), R(i, m), I && I.m(i, null), R(t, y), ~b && D[b].m(t, null), _ = !0, x || (C = [
1914
- J(
1913
+ ), T(i, c), T(i, u), T(u, d), ge(a, d, null), T(u, f), v && v.m(u, null), T(i, h), _ && _.m(i, null), T(i, m), I && I.m(i, null), T(t, y), ~b && O[b].m(t, null), S = !0, E || (M = [
1914
+ ee(
1915
1915
  r,
1916
1916
  "click",
1917
1917
  /*click_handler*/
1918
1918
  n[62]
1919
1919
  ),
1920
- J(
1920
+ ee(
1921
1921
  s,
1922
1922
  "input",
1923
1923
  /*input_1_input_handler*/
1924
1924
  n[64]
1925
1925
  ),
1926
- J(
1926
+ ee(
1927
1927
  s,
1928
1928
  "focus",
1929
1929
  /*focus_handler*/
1930
1930
  n[65]
1931
1931
  ),
1932
- J(
1932
+ ee(
1933
1933
  s,
1934
1934
  "blur",
1935
1935
  /*blur_handler*/
1936
1936
  n[66]
1937
1937
  ),
1938
- J(
1938
+ ee(
1939
1939
  s,
1940
1940
  "keydown",
1941
1941
  /*handleKeyDown*/
1942
1942
  n[22]
1943
1943
  ),
1944
- J(
1944
+ ee(
1945
1945
  s,
1946
1946
  "input",
1947
1947
  /*input_handler*/
1948
1948
  n[67]
1949
1949
  ),
1950
- J(
1950
+ ee(
1951
1951
  d,
1952
1952
  "click",
1953
1953
  /*click_handler_1*/
1954
1954
  n[68]
1955
1955
  ),
1956
- J(t, "submit", Rn(
1956
+ ee(t, "submit", Tn(
1957
1957
  /*handleOnSubmit*/
1958
1958
  n[21]
1959
1959
  ))
1960
- ], x = !0);
1960
+ ], E = !0);
1961
1961
  },
1962
- p(M, U) {
1963
- (!_ || U[0] & /*placeholder*/
1962
+ p(x, A) {
1963
+ (!S || A[0] & /*placeholder*/
1964
1964
  256) && p(
1965
1965
  s,
1966
1966
  "placeholder",
1967
1967
  /*placeholder*/
1968
- M[8]
1969
- ), (!_ || U[0] & /*placeholder*/
1968
+ x[8]
1969
+ ), (!S || A[0] & /*placeholder*/
1970
1970
  256) && p(
1971
1971
  s,
1972
1972
  "aria-label",
1973
1973
  /*placeholder*/
1974
- M[8]
1975
- ), U[0] & /*searchValue*/
1974
+ x[8]
1975
+ ), A[0] & /*searchValue*/
1976
1976
  2 && s.value !== /*searchValue*/
1977
- M[1] && ni(
1977
+ x[1] && ni(
1978
1978
  s,
1979
1979
  /*searchValue*/
1980
- M[1]
1981
- ), (!_ || U[0] & /*clearButtonTitle*/
1980
+ x[1]
1981
+ ), (!S || A[0] & /*clearButtonTitle*/
1982
1982
  8) && p(
1983
1983
  d,
1984
1984
  "title",
1985
1985
  /*clearButtonTitle*/
1986
- M[3]
1986
+ x[3]
1987
1987
  ), /*abortController*/
1988
- M[19] ? L ? U[0] & /*abortController*/
1989
- 524288 && q(L, 1) : (L = yi(), L.c(), q(L, 1), L.m(u, null)) : L && (ot(), H(L, 1, 1, () => {
1990
- L = null;
1991
- }), st()), (!_ || U[0] & /*searchValue*/
1988
+ x[19] ? v ? A[0] & /*abortController*/
1989
+ 524288 && G(v, 1) : (v = yi(), v.c(), G(v, 1), v.m(u, null)) : v && (rt(), Y(v, 1, 1, () => {
1990
+ v = null;
1991
+ }), ot()), (!S || A[0] & /*searchValue*/
1992
1992
  2) && be(
1993
1993
  u,
1994
1994
  "displayable",
1995
1995
  /*searchValue*/
1996
- M[1] !== ""
1996
+ x[1] !== ""
1997
1997
  ), /*enableReverse*/
1998
- M[5] === !0 ? w ? (w.p(M, U), U[0] & /*enableReverse*/
1999
- 32 && q(w, 1)) : (w = vi(M), w.c(), q(w, 1), w.m(i, m)) : w && (ot(), H(w, 1, 1, () => {
2000
- w = null;
2001
- }), st()), I && I.p && (!_ || U[1] & /*$$scope*/
1998
+ x[5] === "button" ? _ ? (_.p(x, A), A[0] & /*enableReverse*/
1999
+ 32 && G(_, 1)) : (_ = pi(x), _.c(), G(_, 1), _.m(i, m)) : _ && (rt(), Y(_, 1, 1, () => {
2000
+ _ = null;
2001
+ }), ot()), I && I.p && (!S || A[1] & /*$$scope*/
2002
2002
  536870912) && Nn(
2003
2003
  I,
2004
2004
  k,
2005
- M,
2005
+ x,
2006
2006
  /*$$scope*/
2007
- M[60],
2008
- _ ? Cn(
2007
+ x[60],
2008
+ S ? Cn(
2009
2009
  k,
2010
2010
  /*$$scope*/
2011
- M[60],
2012
- U,
2011
+ x[60],
2012
+ A,
2013
2013
  null
2014
2014
  ) : Pn(
2015
2015
  /*$$scope*/
2016
- M[60]
2016
+ x[60]
2017
2017
  ),
2018
2018
  null
2019
2019
  );
2020
- let $ = b;
2021
- b = O(M), b === $ ? ~b && D[b].p(M, U) : (v && (ot(), H(D[$], 1, 1, () => {
2022
- D[$] = null;
2023
- }), st()), ~b ? (v = D[b], v ? v.p(M, U) : (v = D[b] = A[b](M), v.c()), q(v, 1), v.m(t, null)) : v = null), (!_ || U[0] & /*className*/
2024
- 4 && E !== (E = ii(
2020
+ let oe = b;
2021
+ b = J(x), b === oe ? ~b && O[b].p(x, A) : (w && (rt(), Y(O[oe], 1, 1, () => {
2022
+ O[oe] = null;
2023
+ }), ot()), ~b ? (w = O[b], w ? w.p(x, A) : (w = O[b] = H[b](x), w.c()), G(w, 1), w.m(t, null)) : w = null), (!S || A[0] & /*className*/
2024
+ 4 && L !== (L = ii(
2025
2025
  /*className*/
2026
- M[2]
2027
- ) + " svelte-1uvos7g")) && p(t, "class", E), (!_ || U[0] & /*className, collapsed, searchValue*/
2026
+ x[2]
2027
+ ) + " svelte-bz0zu3")) && p(t, "class", L), (!S || A[0] & /*className, collapsed, searchValue*/
2028
2028
  22) && be(
2029
2029
  t,
2030
2030
  "can-collapse",
2031
2031
  /*collapsed*/
2032
- M[4] && /*searchValue*/
2033
- M[1] === ""
2032
+ x[4] && /*searchValue*/
2033
+ x[1] === ""
2034
2034
  );
2035
2035
  },
2036
- i(M) {
2037
- _ || (q(S), q(o.$$.fragment, M), q(a.$$.fragment, M), q(L), q(w), q(I, M), q(v), _ = !0);
2036
+ i(x) {
2037
+ S || (G(C), G(o.$$.fragment, x), G(a.$$.fragment, x), G(v), G(_), G(I, x), G(w), S = !0);
2038
2038
  },
2039
- o(M) {
2040
- H(S), H(o.$$.fragment, M), H(a.$$.fragment, M), H(L), H(w), H(I, M), H(v), _ = !1;
2039
+ o(x) {
2040
+ Y(C), Y(o.$$.fragment, x), Y(a.$$.fragment, x), Y(v), Y(_), Y(I, x), Y(w), S = !1;
2041
2041
  },
2042
- d(M) {
2043
- M && (B(e), B(t)), me(o), n[63](null), me(a), L && L.d(), w && w.d(), I && I.d(M), ~b && D[b].d(), x = !1, ye(C);
2042
+ d(x) {
2043
+ x && (F(e), F(t)), me(o), n[63](null), me(a), v && v.d(), _ && _.d(), I && I.d(x), ~b && O[b].d(), E = !1, ye(M);
2044
2044
  }
2045
2045
  };
2046
2046
  }
2047
2047
  function Cr(n, e, t) {
2048
- let i, { $$slots: r = {}, $$scope: o } = e;
2049
- const l = {
2048
+ let i, r, { $$slots: o = {}, $$scope: l } = e;
2049
+ const s = {
2050
2050
  continental_marine: 4,
2051
2051
  country: 4,
2052
2052
  major_landform: 8,
@@ -2070,38 +2070,38 @@ function Cr(n, e, t) {
2070
2070
  "poi.restaurant": 18,
2071
2071
  "poi.aerodrome": 13
2072
2072
  };
2073
- let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: u = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: h = void 0 } = e, { debounceSearch: m = 200 } = e, { enableReverse: y = !1 } = e, { errorMessage: b = "Something went wrong…" } = e, { filter: v = () => !0 } = e, { flyTo: E = !0 } = e, { fuzzyMatch: _ = !0 } = e, { language: x = void 0 } = e, { limit: C = void 0 } = e, { mapController: S = void 0 } = e, { minLength: L = 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: A = y === "always" } = e, { reverseButtonTitle: D = "toggle reverse geocoding" } = e, { searchValue: O = "" } = e, { showFullGeometry: M = !0 } = e, { showPlaceType: U = "ifNeeded" } = e, { showResultsWhileTyping: $ = !0 } = e, { selectFirst: oe = !0 } = e, { flyToSelected: dt = !1 } = e, { markerOnSelected: Ye = !0 } = e, { types: Me = void 0 } = e, { exhaustiveReverseGeocoding: ht = !1 } = e, { excludeTypes: Xe = !1 } = e, { zoom: Ie = l } = e, { maxZoom: Ke = void 0 } = e, { apiUrl: gt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: mt = {} } = e, { iconsBaseUrl: zt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0/icons/" } = e, { adjustUrlQuery: yt = () => {
2073
+ let { class: c = void 0 } = e, { apiKey: u } = e, { bbox: d = void 0 } = e, { clearButtonTitle: a = "clear" } = e, { clearOnBlur: f = !1 } = e, { collapsed: h = !1 } = e, { country: m = void 0 } = e, { debounceSearch: y = 200 } = e, { enableReverse: b = "never" } = e, { errorMessage: w = "Something went wrong…" } = e, { filter: L = () => !0 } = e, { flyTo: S = !0 } = e, { fuzzyMatch: E = !0 } = e, { language: M = void 0 } = e, { limit: C = void 0 } = e, { mapController: v = void 0 } = e, { minLength: _ = 2 } = e, { noResultsMessage: k = "Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!" } = e, { placeholder: I = "Search" } = e, { proximity: H = [{ type: "server-geolocation" }] } = e, { reverseActive: O = b === "always" } = e, { reverseButtonTitle: J = "toggle reverse geocoding" } = e, { searchValue: x = "" } = e, { pickedResultStyle: A = "full-geometry" } = e, { showPlaceType: oe = "if-needed" } = e, { showResultsWhileTyping: ce = !0 } = e, { selectFirst: Ie = !0 } = e, { flyToSelected: ft = !1 } = e, { markerOnSelected: Ye = !0 } = e, { types: Me = void 0 } = e, { exhaustiveReverseGeocoding: dt = !1 } = e, { excludeTypes: Xe = !1 } = e, { zoom: Ke = s } = e, { apiUrl: ht = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: gt = {} } = e, { iconsBaseUrl: Gt = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.1/icons/" } = e, { adjustUrlQuery: mt = () => {
2074
2074
  } } = e;
2075
- function Qi() {
2076
- ue.focus();
2077
- }
2078
2075
  function Vi() {
2079
- ue.blur();
2076
+ le.focus();
2077
+ }
2078
+ function Zi() {
2079
+ le.blur();
2080
2080
  }
2081
- function jt(g, G = !0, V = !1) {
2082
- t(1, O = g), G ? (t(15, F = -1), Zt()) : (wt(!V, V), setTimeout(() => {
2083
- ue.focus(), ue.select();
2081
+ function jt(g, B = !0, Q = !1) {
2082
+ t(1, x = g), B ? (t(15, z = -1), Qt()) : (bt(!Q, Q), setTimeout(() => {
2083
+ le.focus(), le.select();
2084
2084
  }));
2085
2085
  }
2086
2086
  function Hi() {
2087
- t(14, T = void 0), t(57, N = void 0), t(15, F = -1);
2087
+ t(14, R = void 0), t(56, N = void 0), t(15, z = -1);
2088
2088
  }
2089
2089
  function Yi() {
2090
- t(56, Z = []), t(57, N = void 0);
2090
+ t(55, j = []), t(56, N = void 0);
2091
2091
  }
2092
- let Oe = !1, T, Z, N, qt = "", ue, F = -1, ae, Je = [], ke, We, $e, vt;
2093
- const Xi = /* @__PURE__ */ new Set(), ve = An();
2092
+ let Oe = !1, R, j, N, qt = "", le, z = -1, ue, Je = [], ke, We, $e, yt;
2093
+ const Xi = /* @__PURE__ */ new Set(), pe = An();
2094
2094
  Wn(() => {
2095
- S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
2095
+ v && (v.setEventHandler(void 0), v.indicateReverse(!1), v.setSelectedMarker(-1), v.setFeatures(void 0, void 0, !1));
2096
2096
  });
2097
- function Zt(g) {
2098
- if (We && (clearTimeout(We), We = void 0), F > -1 && T)
2099
- t(57, N = T[F]), t(1, O = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ae = void 0), t(56, Z = void 0), t(15, F = -1);
2100
- else if (O) {
2101
- const G = g || !pt(O);
2102
- bt(O, { exact: !0 }).then(() => {
2103
- t(56, Z = T), t(57, N = void 0), G && Ki();
2104
- }).catch((V) => t(18, ae = V));
2097
+ function Qt(g) {
2098
+ if (We && (clearTimeout(We), We = void 0), z > -1 && R)
2099
+ t(56, N = R[z]), t(1, x = N.place_type[0] === "reverse" ? N.place_name : N.place_name.replace(/,.*/, "")), t(18, ue = void 0), t(55, j = void 0), t(15, z = -1);
2100
+ else if (x) {
2101
+ const B = g || !pt(x);
2102
+ vt(x, { exact: !0 }).then(() => {
2103
+ t(55, j = R), t(56, N = void 0), B && Ki();
2104
+ }).catch((Q) => t(18, ue = Q));
2105
2105
  }
2106
2106
  }
2107
2107
  function pt(g) {
@@ -2111,28 +2111,28 @@ function Cr(n, e, t) {
2111
2111
  return !1;
2112
2112
  }
2113
2113
  }
2114
- async function bt(g, { byId: G = !1, exact: V = !1 } = {}) {
2115
- t(18, ae = void 0), ke == null || ke.abort();
2116
- const ee = new AbortController();
2117
- t(19, ke = ee);
2114
+ async function vt(g, { byId: B = !1, exact: Q = !1 } = {}) {
2115
+ t(18, ue = void 0), ke == null || ke.abort();
2116
+ const te = new AbortController();
2117
+ t(19, ke = te);
2118
2118
  try {
2119
- const P = pt(g), Q = new URLSearchParams();
2120
- if (x !== void 0 && Q.set("language", Array.isArray(x) ? x.join(",") : x ?? ""), Me && Q.set("types", Me.join(",")), Xe && Q.set("excludeTypes", String(Xe)), u && Q.set("bbox", u.map((et) => et.toFixed(6)).join(",")), h && Q.set("country", Array.isArray(h) ? h.join(",") : h), !G && !P) {
2121
- const et = await fr(S, I, ee);
2122
- et && Q.set("proximity", et), (V || !$) && Q.set("autocomplete", "false"), Q.set("fuzzyMatch", String(_));
2119
+ const P = pt(g), q = new URLSearchParams();
2120
+ if (M !== void 0 && q.set("language", Array.isArray(M) ? M.join(",") : M ?? ""), Me && q.set("types", Me.join(",")), Xe && q.set("excludeTypes", String(Xe)), d && q.set("bbox", d.map((et) => et.toFixed(6)).join(",")), m && q.set("country", Array.isArray(m) ? m.join(",") : m), !B && !P) {
2121
+ const et = await fr(v, H, te);
2122
+ et && q.set("proximity", et), (Q || !ce) && q.set("autocomplete", "false"), q.set("fuzzyMatch", String(E));
2123
2123
  }
2124
- C !== void 0 && (ht || !P || (Me == null ? void 0 : Me.length) === 1) && Q.set("limit", String(C)), Q.set("key", c), yt(Q);
2125
- const ce = gt + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : g) + ".json?" + Q.toString();
2126
- if (ce === qt) {
2127
- G ? (t(14, T = void 0), t(57, N = Je[0])) : t(14, T = Je);
2124
+ C !== void 0 && (dt || !P || (Me == null ? void 0 : Me.length) === 1) && q.set("limit", String(C)), q.set("key", u), mt(q);
2125
+ const ae = ht + "/" + encodeURIComponent(P ? P.decimalLongitude + "," + P.decimalLatitude : g) + ".json?" + q.toString();
2126
+ if (ae === qt) {
2127
+ B ? (t(14, R = void 0), t(56, N = Je[0])) : t(14, R = Je);
2128
2128
  return;
2129
2129
  }
2130
- qt = ce;
2131
- const Et = await fetch(ce, { signal: ee.signal, ...mt });
2132
- if (!Et.ok)
2133
- throw new Error(await Et.text());
2134
- const Lt = await Et.json();
2135
- ve("response", { url: ce, featureCollection: Lt }), G ? (t(14, T = void 0), t(57, N = Lt.features[0]), Je = [N]) : (t(14, T = Lt.features.filter(v)), P && T.unshift({
2130
+ qt = ae;
2131
+ const _t = await fetch(ae, { signal: te.signal, ...gt });
2132
+ if (!_t.ok)
2133
+ throw new Error(await _t.text());
2134
+ const Et = await _t.json();
2135
+ pe("response", { url: ae, featureCollection: Et }), B ? (t(14, R = void 0), t(56, N = Et.features[0]), Je = [N]) : (t(14, R = Et.features.filter(L)), P && R.unshift({
2136
2136
  type: "Feature",
2137
2137
  properties: {},
2138
2138
  id: "reverse_" + P.decimalLongitude + "_" + P.decimalLatitude,
@@ -2150,206 +2150,207 @@ function Cr(n, e, t) {
2150
2150
  type: "Point",
2151
2151
  coordinates: [P.decimalLongitude, P.decimalLatitude]
2152
2152
  }
2153
- }), Je = T, P && ue.focus());
2153
+ }), Je = R, P && le.focus());
2154
2154
  } catch (P) {
2155
2155
  if (P && typeof P == "object" && "name" in P && P.name === "AbortError")
2156
2156
  return;
2157
2157
  throw P;
2158
2158
  } finally {
2159
- ee === ke && t(19, ke = void 0);
2159
+ te === ke && t(19, ke = void 0);
2160
2160
  }
2161
2161
  }
2162
2162
  function Ki() {
2163
- var ee;
2164
- if (!(Z != null && Z.length) || !E)
2163
+ var te;
2164
+ if (!(j != null && j.length) || !S)
2165
2165
  return;
2166
- const g = [180, 90, -180, -90], G = !Z.some((P) => !P.matching_text);
2167
- let V;
2168
- for (const P of Z) {
2169
- const Q = Ue(P);
2170
- if (V = Ke ?? (V === void 0 ? Q : Q === void 0 ? V : Math.max(V, Q)), G || !P.matching_text)
2171
- for (const ce of [0, 1, 2, 3])
2172
- g[ce] = Math[ce < 2 ? "min" : "max"](g[ce], ((ee = P.bbox) == null ? void 0 : ee[ce]) ?? P.center[ce % 2]);
2166
+ const g = [180, 90, -180, -90], B = !j.some((P) => !P.matching_text);
2167
+ let Q;
2168
+ for (const P of j) {
2169
+ const q = De(P);
2170
+ if (Q = Q === void 0 ? q : q === void 0 ? Q : Math.max(Q, q), B || !P.matching_text)
2171
+ for (const ae of [0, 1, 2, 3])
2172
+ g[ae] = Math[ae < 2 ? "min" : "max"](g[ae], ((te = P.bbox) == null ? void 0 : te[ae]) ?? P.center[ae % 2]);
2173
2173
  }
2174
- S && Z.length > 0 && (N && g[0] === g[2] && g[1] === g[3] ? S.flyTo(N.center, Ue(N)) : S.fitBounds(ut(g), 50, V));
2174
+ v && j.length > 0 && (N && g[0] === g[2] && g[1] === g[3] ? v.flyTo(N.center, De(N)) : v.fitBounds(lt(g), 50, Q));
2175
2175
  }
2176
- function Ue(g) {
2177
- var V;
2176
+ function De(g) {
2177
+ var Q;
2178
2178
  if (!g.bbox || g.bbox[0] !== g.bbox[2] && g.bbox[1] !== g.bbox[3])
2179
2179
  return;
2180
- if (typeof Ie == "number")
2181
- return g.id.startsWith("poi.") || g.id.startsWith("address.") ? Ke : Ie;
2182
- const G = g.id.replace(/\..*/, "");
2183
- return (Array.isArray((V = g.properties) == null ? void 0 : V.categories) ? g.properties.categories.reduce(
2184
- (ee, P) => {
2185
- const Q = Ie[G + "." + P];
2186
- return ee === void 0 ? Q : Q === void 0 ? ee : Math.max(ee, Q);
2180
+ const B = g.id.replace(/\..*/, "");
2181
+ return (Array.isArray((Q = g.properties) == null ? void 0 : Q.categories) ? g.properties.categories.reduce(
2182
+ (te, P) => {
2183
+ const q = Ke[B + "." + P];
2184
+ return te === void 0 ? q : q === void 0 ? te : Math.max(te, q);
2187
2185
  },
2188
2186
  void 0
2189
- ) : void 0) ?? Ie[G];
2187
+ ) : void 0) ?? Ke[B];
2190
2188
  }
2191
2189
  function Ji(g) {
2192
- t(0, A = y === "always"), t(14, T = void 0), t(57, N = void 0), t(15, F = -1), jt(g[1].toFixed(6) + ", " + cr(g[0], [-180, 180], !0).toFixed(6), !1, !0);
2190
+ t(0, O = b === "always"), t(14, R = void 0), t(56, N = void 0), t(15, z = -1), jt(g[1].toFixed(6) + ", " + cr(g[0], [-180, 180], !0).toFixed(6), !1, !0);
2193
2191
  }
2194
2192
  function $i(g) {
2195
- if (!T)
2193
+ if (!R)
2196
2194
  return;
2197
- let G = g.key === "ArrowDown" ? 1 : g.key === "ArrowUp" ? -1 : 0;
2198
- G && (F === (oe ? 0 : -1) && G === -1 && t(15, F = T.length), t(15, F += G), F >= T.length && t(15, F = -1), F < 0 && oe && t(15, F = 0), g.preventDefault());
2195
+ let B = g.key === "ArrowDown" ? 1 : g.key === "ArrowUp" ? -1 : 0;
2196
+ B && (z === (Ie ? 0 : -1) && B === -1 && t(15, z = R.length), t(15, z += B), z >= R.length && t(15, z = -1), z < 0 && Ie && t(15, z = 0), g.preventDefault());
2199
2197
  }
2200
- function wt(g = !0, G = !1) {
2201
- if (t(18, ae = void 0), $ || G) {
2202
- if (We && clearTimeout(We), O.length < L)
2198
+ function bt(g = !0, B = !1) {
2199
+ if (t(18, ue = void 0), ce || B) {
2200
+ if (We && clearTimeout(We), x.length < _)
2203
2201
  return;
2204
- const V = O;
2202
+ const Q = x;
2205
2203
  We = window.setTimeout(
2206
2204
  () => {
2207
- bt(V).catch((ee) => t(18, ae = ee));
2205
+ vt(Q).catch((te) => t(18, ue = te));
2208
2206
  },
2209
- g ? m : 0
2207
+ g ? y : 0
2210
2208
  );
2211
2209
  } else
2212
- t(14, T = void 0), t(18, ae = void 0);
2210
+ t(14, R = void 0), t(18, ue = void 0);
2213
2211
  }
2214
- function _t(g) {
2215
- t(57, N = g), t(1, O = g.place_name), t(15, F = -1);
2212
+ function wt(g) {
2213
+ t(56, N = g), t(1, x = g.place_name), t(15, z = -1);
2216
2214
  }
2217
- const en = () => ue.focus();
2215
+ const en = () => le.focus();
2218
2216
  function tn(g) {
2219
2217
  Nt[g ? "unshift" : "push"](() => {
2220
- ue = g, t(17, ue);
2218
+ le = g, t(17, le);
2221
2219
  });
2222
2220
  }
2223
2221
  function nn() {
2224
- O = this.value, t(1, O), t(13, Oe), t(28, a);
2222
+ x = this.value, t(1, x), t(13, Oe), t(28, f);
2225
2223
  }
2226
- const rn = () => t(13, Oe = !0), on = () => t(13, Oe = !1), sn = () => wt(), ln = () => {
2227
- t(1, O = ""), ue.focus();
2228
- }, un = () => t(0, A = !A), an = () => t(18, ae = void 0), cn = (g) => t(15, F = g), fn = (g) => _t(g), dn = () => {
2229
- oe || t(15, F = -1);
2224
+ const rn = () => t(13, Oe = !0), on = () => t(13, Oe = !1), sn = () => bt(), ln = () => {
2225
+ t(1, x = ""), le.focus();
2226
+ }, un = () => t(0, O = !O), an = () => t(18, ue = void 0), cn = (g) => t(15, z = g), fn = (g) => wt(g), dn = () => {
2227
+ Ie || t(15, z = -1);
2230
2228
  }, hn = () => {
2231
2229
  };
2232
2230
  return n.$$set = (g) => {
2233
- "class" in g && t(2, s = g.class), "apiKey" in g && t(26, c = g.apiKey), "bbox" in g && t(27, u = g.bbox), "clearButtonTitle" in g && t(3, d = g.clearButtonTitle), "clearOnBlur" in g && t(28, a = g.clearOnBlur), "collapsed" in g && t(4, f = g.collapsed), "country" in g && t(29, h = g.country), "debounceSearch" in g && t(30, m = g.debounceSearch), "enableReverse" in g && t(5, y = g.enableReverse), "errorMessage" in g && t(6, b = g.errorMessage), "filter" in g && t(31, v = g.filter), "flyTo" in g && t(32, E = g.flyTo), "fuzzyMatch" in g && t(33, _ = g.fuzzyMatch), "language" in g && t(34, x = g.language), "limit" in g && t(35, C = g.limit), "mapController" in g && t(36, S = g.mapController), "minLength" in g && t(37, L = g.minLength), "noResultsMessage" in g && t(7, w = g.noResultsMessage), "placeholder" in g && t(8, k = g.placeholder), "proximity" in g && t(38, I = g.proximity), "reverseActive" in g && t(0, A = g.reverseActive), "reverseButtonTitle" in g && t(9, D = g.reverseButtonTitle), "searchValue" in g && t(1, O = g.searchValue), "showFullGeometry" in g && t(39, M = g.showFullGeometry), "showPlaceType" in g && t(10, U = g.showPlaceType), "showResultsWhileTyping" in g && t(40, $ = g.showResultsWhileTyping), "selectFirst" in g && t(11, oe = g.selectFirst), "flyToSelected" in g && t(41, dt = g.flyToSelected), "markerOnSelected" in g && t(42, Ye = g.markerOnSelected), "types" in g && t(43, Me = g.types), "exhaustiveReverseGeocoding" in g && t(44, ht = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(45, Xe = g.excludeTypes), "zoom" in g && t(46, Ie = g.zoom), "maxZoom" in g && t(47, Ke = g.maxZoom), "apiUrl" in g && t(48, gt = g.apiUrl), "fetchParameters" in g && t(49, mt = g.fetchParameters), "iconsBaseUrl" in g && t(12, zt = g.iconsBaseUrl), "adjustUrlQuery" in g && t(50, yt = g.adjustUrlQuery), "$$scope" in g && t(60, o = g.$$scope);
2231
+ "class" in g && t(2, c = g.class), "apiKey" in g && t(26, u = g.apiKey), "bbox" in g && t(27, d = g.bbox), "clearButtonTitle" in g && t(3, a = g.clearButtonTitle), "clearOnBlur" in g && t(28, f = g.clearOnBlur), "collapsed" in g && t(4, h = g.collapsed), "country" in g && t(29, m = g.country), "debounceSearch" in g && t(30, y = g.debounceSearch), "enableReverse" in g && t(5, b = g.enableReverse), "errorMessage" in g && t(6, w = g.errorMessage), "filter" in g && t(31, L = g.filter), "flyTo" in g && t(32, S = g.flyTo), "fuzzyMatch" in g && t(33, E = g.fuzzyMatch), "language" in g && t(34, M = g.language), "limit" in g && t(35, C = g.limit), "mapController" in g && t(36, v = g.mapController), "minLength" in g && t(37, _ = g.minLength), "noResultsMessage" in g && t(7, k = g.noResultsMessage), "placeholder" in g && t(8, I = g.placeholder), "proximity" in g && t(38, H = g.proximity), "reverseActive" in g && t(0, O = g.reverseActive), "reverseButtonTitle" in g && t(9, J = g.reverseButtonTitle), "searchValue" in g && t(1, x = g.searchValue), "pickedResultStyle" in g && t(39, A = g.pickedResultStyle), "showPlaceType" in g && t(10, oe = g.showPlaceType), "showResultsWhileTyping" in g && t(40, ce = g.showResultsWhileTyping), "selectFirst" in g && t(11, Ie = g.selectFirst), "flyToSelected" in g && t(41, ft = g.flyToSelected), "markerOnSelected" in g && t(42, Ye = g.markerOnSelected), "types" in g && t(43, Me = g.types), "exhaustiveReverseGeocoding" in g && t(44, dt = g.exhaustiveReverseGeocoding), "excludeTypes" in g && t(45, Xe = g.excludeTypes), "zoom" in g && t(46, Ke = g.zoom), "apiUrl" in g && t(47, ht = g.apiUrl), "fetchParameters" in g && t(48, gt = g.fetchParameters), "iconsBaseUrl" in g && t(12, Gt = g.iconsBaseUrl), "adjustUrlQuery" in g && t(49, mt = g.adjustUrlQuery), "$$scope" in g && t(60, l = g.$$scope);
2234
2232
  }, n.$$.update = () => {
2235
2233
  if (n.$$.dirty[0] & /*enableReverse*/
2236
- 32 && t(0, A = y === "always"), n.$$.dirty[0] & /*focused, clearOnBlur*/
2234
+ 32 && t(0, O = b === "always"), n.$$.dirty[0] & /*focused, clearOnBlur*/
2237
2235
  268443648 && setTimeout(() => {
2238
- t(16, $e = Oe), a && !Oe && t(1, O = "");
2236
+ t(16, $e = Oe), f && !Oe && t(1, x = "");
2239
2237
  }), n.$$.dirty[0] & /*searchValue, listFeatures*/
2240
2238
  16386 | n.$$.dirty[1] & /*minLength*/
2241
- 64 && O.length < L && (t(57, N = void 0), t(14, T = void 0), t(18, ae = void 0), t(56, Z = T)), n.$$.dirty[1] & /*showFullGeometry, picked*/
2242
- 67109120 && M && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && bt(N.id, { byId: !0 }).catch((g) => t(18, ae = g)), n.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2243
- 201326626 && (S && N && N.id !== vt && E && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? S.flyTo(N.center, Ue(N)) : S.fitBounds(ut(N.bbox), 50, Ue(N)), t(14, T = void 0), t(56, Z = void 0), t(15, F = -1)), t(58, vt = N == null ? void 0 : N.id)), n.$$.dirty[0] & /*selectFirst, listFeatures*/
2244
- 18432 && oe && T != null && T.length && t(15, F = 0), n.$$.dirty[0] & /*searchValue*/
2245
- 2 && t(15, F = -1), n.$$.dirty[0] & /*listFeatures*/
2239
+ 64 && x.length < _ && (t(56, N = void 0), t(14, R = void 0), t(18, ue = void 0), t(55, j = R)), n.$$.dirty[1] & /*pickedResultStyle, picked*/
2240
+ 33554688 && A !== "marker-only" && N && !N.address && N.geometry.type === "Point" && N.place_type[0] !== "reverse" && vt(N.id, { byId: !0 }).catch((g) => t(18, ue = g)), n.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2241
+ 100663330 && (v && N && N.id !== yt && S && (!N.bbox || N.bbox[0] === N.bbox[2] && N.bbox[1] === N.bbox[3] ? v.flyTo(N.center, De(N)) : v.fitBounds(lt(N.bbox), 50, De(N)), t(14, R = void 0), t(55, j = void 0), t(15, z = -1)), t(57, yt = N == null ? void 0 : N.id)), n.$$.dirty[0] & /*selectFirst, listFeatures*/
2242
+ 18432 && Ie && R != null && R.length && t(15, z = 0), n.$$.dirty[0] & /*searchValue*/
2243
+ 2 && t(15, z = -1), n.$$.dirty[0] & /*listFeatures*/
2246
2244
  16384 | n.$$.dirty[1] & /*markedFeatures*/
2247
- 33554432 && Z !== T && t(56, Z = void 0), n.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2245
+ 16777216 && j !== R && t(55, j = void 0), n.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2248
2246
  81921 | n.$$.dirty[1] & /*mapController, markedFeatures*/
2249
- 33554464 && S && S.setEventHandler((g) => {
2247
+ 16777248 && v && v.setEventHandler((g) => {
2250
2248
  switch (g.type) {
2251
2249
  case "mapClick":
2252
- A && Ji(g.coordinates);
2250
+ O && Ji(g.coordinates);
2253
2251
  break;
2254
2252
  case "markerClick":
2255
2253
  {
2256
- const G = T == null ? void 0 : T.find((V) => V.id === g.id);
2257
- G && _t(G);
2254
+ const B = R == null ? void 0 : R.find((Q) => Q.id === g.id);
2255
+ B && wt(B);
2258
2256
  }
2259
2257
  break;
2260
2258
  case "markerMouseEnter":
2261
- Z && t(15, F = $e ? (T == null ? void 0 : T.findIndex((G) => G.id === g.id)) ?? -1 : -1);
2259
+ j && t(15, z = $e ? (R == null ? void 0 : R.findIndex((B) => B.id === g.id)) ?? -1 : -1);
2262
2260
  break;
2263
2261
  case "markerMouseLeave":
2264
- Z && t(15, F = -1);
2262
+ j && t(15, z = -1);
2265
2263
  break;
2266
2264
  }
2267
2265
  }), n.$$.dirty[0] & /*listFeatures, selectedItemIndex*/
2268
- 49152 && t(59, i = T == null ? void 0 : T[F]), n.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2269
- 268436514 && S && i && E && dt && S.flyTo(i.center, Ue(i)), n.$$.dirty[1] & /*markerOnSelected, mapController*/
2270
- 2080 && (Ye || S == null || S.setMarkers(void 0, void 0)), n.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected*/
2271
- 301991968 && S && Ye && !Z && (S.setMarkers(i ? [i] : void 0, void 0), S.setSelectedMarker(i ? 0 : -1)), n.$$.dirty[1] & /*mapController, markedFeatures, picked*/
2272
- 100663328 && S && S.setMarkers(Z, N), n.$$.dirty[0] & /*selectedItemIndex*/
2266
+ 49152 && t(58, r = R == null ? void 0 : R[z]), n.$$.dirty[1] & /*mapController, selected, flyTo, flyToSelected*/
2267
+ 134218786 && v && r && S && ft && v.flyTo(r.center, De(r)), n.$$.dirty[1] & /*pickedResultStyle*/
2268
+ 256 && t(59, i = A === "full-geometry-including-polygon-center-marker"), n.$$.dirty[1] & /*markerOnSelected, mapController, showPolygonMarker*/
2269
+ 268437536 && (Ye || v == null || v.setFeatures(void 0, void 0, i)), n.$$.dirty[1] & /*mapController, markerOnSelected, markedFeatures, selected, showPolygonMarker*/
2270
+ 419432480 && v && Ye && !j && (v.setFeatures(r ? [r] : void 0, void 0, i), v.setSelectedMarker(r ? 0 : -1)), n.$$.dirty[1] & /*mapController, markedFeatures, picked, showPolygonMarker*/
2271
+ 318767136 && v && v.setFeatures(j, N, i), n.$$.dirty[0] & /*selectedItemIndex*/
2273
2272
  32768 | n.$$.dirty[1] & /*markedFeatures, mapController*/
2274
- 33554464 && Z && S && S.setSelectedMarker(F), n.$$.dirty[0] & /*searchValue*/
2273
+ 16777248 && j && v && v.setSelectedMarker(z), n.$$.dirty[0] & /*searchValue*/
2275
2274
  2 | n.$$.dirty[1] & /*mapController*/
2276
- 32 && S) {
2277
- const g = pt(O);
2278
- S.setReverseMarker(g ? [g.decimalLongitude, g.decimalLatitude] : void 0);
2275
+ 32 && v) {
2276
+ const g = pt(x);
2277
+ v.setReverseMarker(g ? [g.decimalLongitude, g.decimalLatitude] : void 0);
2279
2278
  }
2280
2279
  n.$$.dirty[1] & /*selected*/
2281
- 268435456 && ve("select", i), n.$$.dirty[1] & /*picked*/
2282
- 67108864 && ve("pick", N), n.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2283
- 81920 && ve("optionsVisibilityChange", $e && !!T), n.$$.dirty[0] & /*listFeatures*/
2284
- 16384 && ve("featuresListed", T), n.$$.dirty[1] & /*markedFeatures*/
2285
- 33554432 && ve("featuresMarked", Z), n.$$.dirty[0] & /*reverseActive*/
2286
- 1 && ve("reverseToggle", A), n.$$.dirty[0] & /*searchValue*/
2287
- 2 && ve("queryChange", O), n.$$.dirty[0] & /*reverseActive*/
2280
+ 134217728 && pe("select", { feature: r }), n.$$.dirty[1] & /*picked*/
2281
+ 33554432 && pe("pick", { feature: N }), n.$$.dirty[0] & /*focusedDelayed, listFeatures*/
2282
+ 81920 && pe("optionsvisibilitychange", {
2283
+ optionsVisible: $e && !!R
2284
+ }), n.$$.dirty[0] & /*listFeatures*/
2285
+ 16384 && pe("featureslisted", { features: R }), n.$$.dirty[1] & /*markedFeatures*/
2286
+ 16777216 && pe("featuresmarked", { features: j }), n.$$.dirty[0] & /*reverseActive*/
2287
+ 1 && pe("reversetoggle", { reverse: O }), n.$$.dirty[0] & /*searchValue*/
2288
+ 2 && pe("querychange", { query: x }), n.$$.dirty[0] & /*reverseActive*/
2288
2289
  1 | n.$$.dirty[1] & /*mapController*/
2289
- 32 && S && S.indicateReverse(A);
2290
+ 32 && v && v.indicateReverse(O);
2290
2291
  }, [
2291
- A,
2292
2292
  O,
2293
- s,
2294
- d,
2295
- f,
2296
- y,
2293
+ x,
2294
+ c,
2295
+ a,
2296
+ h,
2297
2297
  b,
2298
2298
  w,
2299
2299
  k,
2300
- D,
2301
- U,
2300
+ I,
2301
+ J,
2302
2302
  oe,
2303
- zt,
2303
+ Ie,
2304
+ Gt,
2304
2305
  Oe,
2305
- T,
2306
- F,
2306
+ R,
2307
+ z,
2307
2308
  $e,
2309
+ le,
2308
2310
  ue,
2309
- ae,
2310
2311
  ke,
2311
2312
  Xi,
2312
- Zt,
2313
+ Qt,
2313
2314
  $i,
2315
+ bt,
2314
2316
  wt,
2315
- _t,
2316
- l,
2317
- c,
2317
+ s,
2318
2318
  u,
2319
- a,
2320
- h,
2319
+ d,
2320
+ f,
2321
2321
  m,
2322
- v,
2323
- E,
2324
- _,
2325
- x,
2326
- C,
2327
- S,
2322
+ y,
2328
2323
  L,
2329
- I,
2324
+ S,
2325
+ E,
2330
2326
  M,
2331
- $,
2332
- dt,
2327
+ C,
2328
+ v,
2329
+ _,
2330
+ H,
2331
+ A,
2332
+ ce,
2333
+ ft,
2333
2334
  Ye,
2334
2335
  Me,
2335
- ht,
2336
+ dt,
2336
2337
  Xe,
2337
- Ie,
2338
2338
  Ke,
2339
+ ht,
2339
2340
  gt,
2340
2341
  mt,
2341
- yt,
2342
- Qi,
2343
2342
  Vi,
2343
+ Zi,
2344
2344
  jt,
2345
2345
  Hi,
2346
2346
  Yi,
2347
- Z,
2347
+ j,
2348
2348
  N,
2349
- vt,
2349
+ yt,
2350
+ r,
2350
2351
  i,
2352
+ l,
2351
2353
  o,
2352
- r,
2353
2354
  en,
2354
2355
  tn,
2355
2356
  nn,
@@ -2365,9 +2366,9 @@ function Cr(n, e, t) {
2365
2366
  hn
2366
2367
  ];
2367
2368
  }
2368
- let Nr = class extends Re {
2369
+ let Nr = class extends Te {
2369
2370
  constructor(e) {
2370
- super(), Te(
2371
+ super(), Re(
2371
2372
  this,
2372
2373
  e,
2373
2374
  Cr,
@@ -2398,7 +2399,7 @@ let Nr = class extends Re {
2398
2399
  reverseActive: 0,
2399
2400
  reverseButtonTitle: 9,
2400
2401
  searchValue: 1,
2401
- showFullGeometry: 39,
2402
+ pickedResultStyle: 39,
2402
2403
  showPlaceType: 10,
2403
2404
  showResultsWhileTyping: 40,
2404
2405
  selectFirst: 11,
@@ -2408,16 +2409,15 @@ let Nr = class extends Re {
2408
2409
  exhaustiveReverseGeocoding: 44,
2409
2410
  excludeTypes: 45,
2410
2411
  zoom: 46,
2411
- maxZoom: 47,
2412
- apiUrl: 48,
2413
- fetchParameters: 49,
2412
+ apiUrl: 47,
2413
+ fetchParameters: 48,
2414
2414
  iconsBaseUrl: 12,
2415
- adjustUrlQuery: 50,
2416
- focus: 51,
2417
- blur: 52,
2418
- setQuery: 53,
2419
- clearList: 54,
2420
- clearMap: 55
2415
+ adjustUrlQuery: 49,
2416
+ focus: 50,
2417
+ blur: 51,
2418
+ setQuery: 52,
2419
+ clearList: 53,
2420
+ clearMap: 54
2421
2421
  },
2422
2422
  null,
2423
2423
  [-1, -1, -1]
@@ -2427,26 +2427,26 @@ let Nr = class extends Re {
2427
2427
  return this.$$.ctx[25];
2428
2428
  }
2429
2429
  get focus() {
2430
- return this.$$.ctx[51];
2430
+ return this.$$.ctx[50];
2431
2431
  }
2432
2432
  get blur() {
2433
- return this.$$.ctx[52];
2433
+ return this.$$.ctx[51];
2434
2434
  }
2435
2435
  get setQuery() {
2436
- return this.$$.ctx[53];
2436
+ return this.$$.ctx[52];
2437
2437
  }
2438
2438
  get clearList() {
2439
- return this.$$.ctx[54];
2439
+ return this.$$.ctx[53];
2440
2440
  }
2441
2441
  get clearMap() {
2442
- return this.$$.ctx[55];
2442
+ return this.$$.ctx[54];
2443
2443
  }
2444
2444
  };
2445
- function at(n, e, t = {}) {
2445
+ function ut(n, e, t = {}) {
2446
2446
  const i = { type: "Feature" };
2447
2447
  return (t.id === 0 || t.id) && (i.id = t.id), t.bbox && (i.bbox = t.bbox), i.properties = e || {}, i.geometry = n, i;
2448
2448
  }
2449
- function Dt(n, e, t = {}) {
2449
+ function Bt(n, e, t = {}) {
2450
2450
  for (const r of n) {
2451
2451
  if (r.length < 4)
2452
2452
  throw new Error(
@@ -2458,43 +2458,43 @@ function Dt(n, e, t = {}) {
2458
2458
  if (r[r.length - 1][o] !== r[0][o])
2459
2459
  throw new Error("First and last Position are not equivalent.");
2460
2460
  }
2461
- return at({
2461
+ return ut({
2462
2462
  type: "Polygon",
2463
2463
  coordinates: n
2464
2464
  }, e, t);
2465
2465
  }
2466
- function Rt(n, e = {}) {
2466
+ function Tt(n, e = {}) {
2467
2467
  const t = { type: "FeatureCollection" };
2468
2468
  return e.id && (t.id = e.id), e.bbox && (t.bbox = e.bbox), t.features = n, t;
2469
2469
  }
2470
- function zi(n, e, t = {}) {
2471
- return at({
2470
+ function Gi(n, e, t = {}) {
2471
+ return ut({
2472
2472
  type: "MultiPolygon",
2473
2473
  coordinates: n
2474
2474
  }, e, t);
2475
2475
  }
2476
2476
  function ji(n, e, t) {
2477
2477
  if (n !== null)
2478
- for (var i, r, o, l, s, c, u, d = 0, a = 0, f, h = n.type, m = h === "FeatureCollection", y = h === "Feature", b = m ? n.features.length : 1, v = 0; v < b; v++) {
2479
- u = m ? n.features[v].geometry : y ? n.geometry : n, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2480
- for (var E = 0; E < s; E++) {
2481
- var _ = 0, x = 0;
2482
- if (l = f ? u.geometries[E] : u, l !== null) {
2478
+ for (var i, r, o, l, s, c, u, d = 0, a = 0, f, h = n.type, m = h === "FeatureCollection", y = h === "Feature", b = m ? n.features.length : 1, w = 0; w < b; w++) {
2479
+ u = m ? n.features[w].geometry : y ? n.geometry : n, f = u ? u.type === "GeometryCollection" : !1, s = f ? u.geometries.length : 1;
2480
+ for (var L = 0; L < s; L++) {
2481
+ var S = 0, E = 0;
2482
+ if (l = f ? u.geometries[L] : u, l !== null) {
2483
2483
  c = l.coordinates;
2484
- var C = l.type;
2485
- switch (d = 0, C) {
2484
+ var M = l.type;
2485
+ switch (d = 0, M) {
2486
2486
  case null:
2487
2487
  break;
2488
2488
  case "Point":
2489
2489
  if (e(
2490
2490
  c,
2491
2491
  a,
2492
- v,
2493
- _,
2494
- x
2492
+ w,
2493
+ S,
2494
+ E
2495
2495
  ) === !1)
2496
2496
  return !1;
2497
- a++, _++;
2497
+ a++, S++;
2498
2498
  break;
2499
2499
  case "LineString":
2500
2500
  case "MultiPoint":
@@ -2502,14 +2502,14 @@ function ji(n, e, t) {
2502
2502
  if (e(
2503
2503
  c[i],
2504
2504
  a,
2505
- v,
2506
- _,
2507
- x
2505
+ w,
2506
+ S,
2507
+ E
2508
2508
  ) === !1)
2509
2509
  return !1;
2510
- a++, C === "MultiPoint" && _++;
2510
+ a++, M === "MultiPoint" && S++;
2511
2511
  }
2512
- C === "LineString" && _++;
2512
+ M === "LineString" && S++;
2513
2513
  break;
2514
2514
  case "Polygon":
2515
2515
  case "MultiLineString":
@@ -2518,34 +2518,34 @@ function ji(n, e, t) {
2518
2518
  if (e(
2519
2519
  c[i][r],
2520
2520
  a,
2521
- v,
2522
- _,
2523
- x
2521
+ w,
2522
+ S,
2523
+ E
2524
2524
  ) === !1)
2525
2525
  return !1;
2526
2526
  a++;
2527
2527
  }
2528
- C === "MultiLineString" && _++, C === "Polygon" && x++;
2528
+ M === "MultiLineString" && S++, M === "Polygon" && E++;
2529
2529
  }
2530
- C === "Polygon" && _++;
2530
+ M === "Polygon" && S++;
2531
2531
  break;
2532
2532
  case "MultiPolygon":
2533
2533
  for (i = 0; i < c.length; i++) {
2534
- for (x = 0, r = 0; r < c[i].length; r++) {
2534
+ for (E = 0, r = 0; r < c[i].length; r++) {
2535
2535
  for (o = 0; o < c[i][r].length - d; o++) {
2536
2536
  if (e(
2537
2537
  c[i][r][o],
2538
2538
  a,
2539
- v,
2540
- _,
2541
- x
2539
+ w,
2540
+ S,
2541
+ E
2542
2542
  ) === !1)
2543
2543
  return !1;
2544
2544
  a++;
2545
2545
  }
2546
- x++;
2546
+ E++;
2547
2547
  }
2548
- _++;
2548
+ S++;
2549
2549
  }
2550
2550
  break;
2551
2551
  case "GeometryCollection":
@@ -2560,7 +2560,7 @@ function ji(n, e, t) {
2560
2560
  }
2561
2561
  }
2562
2562
  }
2563
- function Ut(n, e) {
2563
+ function Dt(n, e) {
2564
2564
  var t, i, r, o, l, s, c, u, d, a, f = 0, h = n.type === "FeatureCollection", m = n.type === "Feature", y = h ? n.features.length : 1;
2565
2565
  for (t = 0; t < y; t++) {
2566
2566
  for (s = h ? n.features[t].geometry : m ? n.geometry : n, u = h ? n.features[t].properties : m ? n.properties : {}, d = h ? n.features[t].bbox : m ? n.bbox : void 0, a = h ? n.features[t].id : m ? n.id : void 0, c = s ? s.type === "GeometryCollection" : !1, l = c ? s.geometries.length : 1, r = 0; r < l; r++) {
@@ -2612,7 +2612,7 @@ function Ut(n, e) {
2612
2612
  }
2613
2613
  }
2614
2614
  function Pr(n, e) {
2615
- Ut(n, function(t, i, r, o, l) {
2615
+ Dt(n, function(t, i, r, o, l) {
2616
2616
  var s = t === null ? null : t.type;
2617
2617
  switch (s) {
2618
2618
  case null:
@@ -2620,7 +2620,7 @@ function Pr(n, e) {
2620
2620
  case "LineString":
2621
2621
  case "Polygon":
2622
2622
  return e(
2623
- at(t, r, { bbox: o, id: l }),
2623
+ ut(t, r, { bbox: o, id: l }),
2624
2624
  i,
2625
2625
  0
2626
2626
  ) === !1 ? !1 : void 0;
@@ -2642,12 +2642,12 @@ function Pr(n, e) {
2642
2642
  type: c,
2643
2643
  coordinates: d
2644
2644
  };
2645
- if (e(at(a, r), i, u) === !1)
2645
+ if (e(ut(a, r), i, u) === !1)
2646
2646
  return !1;
2647
2647
  }
2648
2648
  });
2649
2649
  }
2650
- function Tr(n, e = {}) {
2650
+ function Rr(n, e = {}) {
2651
2651
  if (n.bbox != null && e.recompute !== !0)
2652
2652
  return n.bbox;
2653
2653
  const t = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
@@ -2655,7 +2655,7 @@ function Tr(n, e = {}) {
2655
2655
  t[0] > i[0] && (t[0] = i[0]), t[1] > i[1] && (t[1] = i[1]), t[2] < i[0] && (t[2] = i[0]), t[3] < i[1] && (t[3] = i[1]);
2656
2656
  }), t;
2657
2657
  }
2658
- var bi = Tr;
2658
+ var bi = Rr;
2659
2659
  /**
2660
2660
  * splaytree v3.1.2
2661
2661
  * Fast Splay tree for Node and browser
@@ -2678,7 +2678,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
2678
2678
  See the Apache Version 2.0 License for specific language governing permissions
2679
2679
  and limitations under the License.
2680
2680
  ***************************************************************************** */
2681
- function Rr(n, e) {
2681
+ function Tr(n, e) {
2682
2682
  var t = { label: 0, sent: function() {
2683
2683
  if (o[0] & 1) throw o[1];
2684
2684
  return o[1];
@@ -2750,7 +2750,7 @@ var Se = (
2750
2750
  function Ir(n, e) {
2751
2751
  return n > e ? 1 : n < e ? -1 : 0;
2752
2752
  }
2753
- function pe(n, e, t) {
2753
+ function ve(n, e, t) {
2754
2754
  for (var i = new Se(null, null), r = i, o = i; ; ) {
2755
2755
  var l = t(n, e.key);
2756
2756
  if (l < 0) {
@@ -2780,21 +2780,21 @@ function kt(n, e, t, i) {
2780
2780
  var r = new Se(n, e);
2781
2781
  if (t === null)
2782
2782
  return r.left = r.right = null, r;
2783
- t = pe(n, t, i);
2783
+ t = ve(n, t, i);
2784
2784
  var o = i(n, t.key);
2785
2785
  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;
2786
2786
  }
2787
2787
  function wi(n, e, t) {
2788
2788
  var i = null, r = null;
2789
2789
  if (e) {
2790
- e = pe(n, e, t);
2790
+ e = ve(n, e, t);
2791
2791
  var o = t(e.key, n);
2792
2792
  o === 0 ? (i = e.left, r = e.right) : o < 0 ? (r = e.right, e.right = null, i = e) : (i = e.left, e.left = null, r = e);
2793
2793
  }
2794
2794
  return { left: i, right: r };
2795
2795
  }
2796
2796
  function Or(n, e, t) {
2797
- return e === null ? n : (n === null || (e = pe(n.key, e, t), e.left = n), e);
2797
+ return e === null ? n : (n === null || (e = ve(n.key, e, t), e.left = n), e);
2798
2798
  }
2799
2799
  function It(n, e, t, i, r) {
2800
2800
  if (n) {
@@ -2804,7 +2804,7 @@ function It(n, e, t, i, r) {
2804
2804
  n.left && It(n.left, o, !1, i, r), n.right && It(n.right, o, !0, i, r);
2805
2805
  }
2806
2806
  }
2807
- var Gt = (
2807
+ var Ut = (
2808
2808
  /** @class */
2809
2809
  function() {
2810
2810
  function n(e) {
@@ -2815,7 +2815,7 @@ var Gt = (
2815
2815
  }, n.prototype.add = function(e, t) {
2816
2816
  var i = new Se(e, t);
2817
2817
  this._root === null && (i.left = i.right = null, this._size++, this._root = i);
2818
- var r = this._comparator, o = pe(e, this._root, r), l = r(e, o.key);
2818
+ var r = this._comparator, o = ve(e, this._root, r), l = r(e, o.key);
2819
2819
  return l === 0 ? this._root = o : (l < 0 ? (i.left = o.left, i.right = o, o.left = null) : l > 0 && (i.right = o.right, i.left = o, o.right = null), this._size++, this._root = i), this._root;
2820
2820
  }, n.prototype.remove = function(e) {
2821
2821
  this._root = this._remove(e, this._root, this._comparator);
@@ -2823,15 +2823,15 @@ var Gt = (
2823
2823
  var r;
2824
2824
  if (t === null)
2825
2825
  return null;
2826
- t = pe(e, t, i);
2826
+ t = ve(e, t, i);
2827
2827
  var o = i(e, t.key);
2828
- return o === 0 ? (t.left === null ? r = t.right : (r = pe(e, t.left, i), r.right = t.right), this._size--, r) : t;
2828
+ return o === 0 ? (t.left === null ? r = t.right : (r = ve(e, t.left, i), r.right = t.right), this._size--, r) : t;
2829
2829
  }, n.prototype.pop = function() {
2830
2830
  var e = this._root;
2831
2831
  if (e) {
2832
2832
  for (; e.left; )
2833
2833
  e = e.left;
2834
- return this._root = pe(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
2834
+ return this._root = ve(e.key, this._root, this._comparator), this._root = this._remove(e.key, this._root, this._comparator), { key: e.key, data: e.data };
2835
2835
  }
2836
2836
  return null;
2837
2837
  }, n.prototype.findStatic = function(e) {
@@ -2843,7 +2843,7 @@ var Gt = (
2843
2843
  }
2844
2844
  return null;
2845
2845
  }, n.prototype.find = function(e) {
2846
- return this._root && (this._root = pe(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
2846
+ return this._root && (this._root = ve(e, this._root, this._comparator), this._comparator(e, this._root.key) !== 0) ? null : this._root;
2847
2847
  }, n.prototype.contains = function(e) {
2848
2848
  for (var t = this._root, i = this._comparator; t; ) {
2849
2849
  var r = i(e, t.key);
@@ -2943,7 +2943,7 @@ var Gt = (
2943
2943
  if (i && At(e, t, 0, r - 1, o), this._root === null)
2944
2944
  this._root = Ot(e, t, 0, r), this._size = r;
2945
2945
  else {
2946
- var l = Fr(this.toList(), Wr(e, t), o);
2946
+ var l = zr(this.toList(), Wr(e, t), o);
2947
2947
  r = this._size + r, this._root = Wt({ head: l }, 0, r);
2948
2948
  }
2949
2949
  return this;
@@ -2976,7 +2976,7 @@ var Gt = (
2976
2976
  return wi(e, this._root, this._comparator);
2977
2977
  }, n.prototype[Symbol.iterator] = function() {
2978
2978
  var e, t, i;
2979
- return Rr(this, function(r) {
2979
+ return Tr(this, function(r) {
2980
2980
  switch (r.label) {
2981
2981
  case 0:
2982
2982
  e = this._root, t = [], i = !1, r.label = 1;
@@ -3026,7 +3026,7 @@ function Wt(n, e, t) {
3026
3026
  }
3027
3027
  return null;
3028
3028
  }
3029
- function Fr(n, e, t) {
3029
+ function zr(n, e, t) {
3030
3030
  for (var i = new Se(null, null), r = i, o = n, l = e; o !== null && l !== null; )
3031
3031
  t(o.key, l.key) < 0 ? (r.next = o, o = o.next) : (r.next = l, l = l.next), r = r.next;
3032
3032
  return o !== null ? r.next = o : l !== null && (r.next = l), i.next;
@@ -3048,7 +3048,7 @@ function At(n, e, t, i, r) {
3048
3048
  At(n, e, t, s, r), At(n, e, s + 1, i, r);
3049
3049
  }
3050
3050
  }
3051
- const he = 11102230246251565e-32, Y = 134217729, Br = (3 + 8 * he) * he;
3051
+ const he = 11102230246251565e-32, X = 134217729, Fr = (3 + 8 * he) * he;
3052
3052
  function Ct(n, e, t, i, r) {
3053
3053
  let o, l, s, c, u = e[0], d = i[0], a = 0, f = 0;
3054
3054
  d > u == d > -u ? (o = u, u = e[++a]) : (o = d, d = i[++f]);
@@ -3062,7 +3062,7 @@ function Ct(n, e, t, i, r) {
3062
3062
  l = o + d, c = l - o, s = o - (l - c) + (d - c), d = i[++f], o = l, s !== 0 && (r[h++] = s);
3063
3063
  return (o !== 0 || h === 0) && (r[h++] = o), h;
3064
3064
  }
3065
- function Dr(n, e) {
3065
+ function Br(n, e) {
3066
3066
  let t = e[0];
3067
3067
  for (let i = 1; i < n; i++) t += e[i];
3068
3068
  return t;
@@ -3070,26 +3070,26 @@ function Dr(n, e) {
3070
3070
  function He(n) {
3071
3071
  return new Float64Array(n);
3072
3072
  }
3073
- const Ur = (3 + 16 * he) * he, Gr = (2 + 12 * he) * he, zr = (9 + 64 * he) * he * he, Fe = He(4), _i = He(8), Ei = He(12), Li = He(16), K = He(4);
3073
+ const Dr = (3 + 16 * he) * he, Ur = (2 + 12 * he) * he, Gr = (9 + 64 * he) * he * he, ze = He(4), _i = He(8), Ei = He(12), Li = He(16), $ = He(4);
3074
3074
  function jr(n, e, t, i, r, o, l) {
3075
- let s, c, u, d, a, f, h, m, y, b, v, E, _, x, C, S, L, w;
3076
- const k = n - r, I = t - r, A = e - o, D = i - o;
3077
- x = k * D, f = Y * k, h = f - (f - k), m = k - h, f = Y * D, y = f - (f - D), b = D - y, C = m * b - (x - h * y - m * y - h * b), S = A * I, f = Y * A, h = f - (f - A), m = A - h, f = Y * I, y = f - (f - I), b = I - y, L = m * b - (S - h * y - m * y - h * b), v = C - L, a = C - v, Fe[0] = C - (v + a) + (a - L), E = x + v, a = E - x, _ = x - (E - a) + (v - a), v = _ - S, a = _ - v, Fe[1] = _ - (v + a) + (a - S), w = E + v, a = w - E, Fe[2] = E - (w - a) + (v - a), Fe[3] = w;
3078
- let O = Dr(4, Fe), M = Gr * l;
3079
- if (O >= M || -O >= M || (a = n - k, s = n - (k + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - A, c = e - (A + a) + (a - o), a = i - D, d = i - (D + a) + (a - o), s === 0 && c === 0 && u === 0 && d === 0) || (M = zr * l + Br * Math.abs(O), O += k * d + D * s - (A * u + I * c), O >= M || -O >= M)) return O;
3080
- x = s * D, f = Y * s, h = f - (f - s), m = s - h, f = Y * D, y = f - (f - D), b = D - y, C = m * b - (x - h * y - m * y - h * b), S = c * I, f = Y * c, h = f - (f - c), m = c - h, f = Y * I, y = f - (f - I), b = I - y, L = m * b - (S - h * y - m * y - h * b), v = C - L, a = C - v, K[0] = C - (v + a) + (a - L), E = x + v, a = E - x, _ = x - (E - a) + (v - a), v = _ - S, a = _ - v, K[1] = _ - (v + a) + (a - S), w = E + v, a = w - E, K[2] = E - (w - a) + (v - a), K[3] = w;
3081
- const U = Ct(4, Fe, 4, K, _i);
3082
- x = k * d, f = Y * k, h = f - (f - k), m = k - h, f = Y * d, y = f - (f - d), b = d - y, C = m * b - (x - h * y - m * y - h * b), S = A * u, f = Y * A, h = f - (f - A), m = A - h, f = Y * u, y = f - (f - u), b = u - y, L = m * b - (S - h * y - m * y - h * b), v = C - L, a = C - v, K[0] = C - (v + a) + (a - L), E = x + v, a = E - x, _ = x - (E - a) + (v - a), v = _ - S, a = _ - v, K[1] = _ - (v + a) + (a - S), w = E + v, a = w - E, K[2] = E - (w - a) + (v - a), K[3] = w;
3083
- const $ = Ct(U, _i, 4, K, Ei);
3084
- x = s * d, f = Y * s, h = f - (f - s), m = s - h, f = Y * d, y = f - (f - d), b = d - y, C = m * b - (x - h * y - m * y - h * b), S = c * u, f = Y * c, h = f - (f - c), m = c - h, f = Y * u, y = f - (f - u), b = u - y, L = m * b - (S - h * y - m * y - h * b), v = C - L, a = C - v, K[0] = C - (v + a) + (a - L), E = x + v, a = E - x, _ = x - (E - a) + (v - a), v = _ - S, a = _ - v, K[1] = _ - (v + a) + (a - S), w = E + v, a = w - E, K[2] = E - (w - a) + (v - a), K[3] = w;
3085
- const oe = Ct($, Ei, 4, K, Li);
3086
- return Li[oe - 1];
3075
+ let s, c, u, d, a, f, h, m, y, b, w, L, S, E, M, C, v, _;
3076
+ const k = n - r, I = t - r, H = e - o, O = i - o;
3077
+ E = k * O, f = X * k, h = f - (f - k), m = k - h, f = X * O, y = f - (f - O), b = O - y, M = m * b - (E - h * y - m * y - h * b), C = H * I, f = X * H, h = f - (f - H), m = H - h, f = X * I, y = f - (f - I), b = I - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, ze[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, ze[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, ze[2] = L - (_ - a) + (w - a), ze[3] = _;
3078
+ let J = Br(4, ze), x = Ur * l;
3079
+ if (J >= x || -J >= x || (a = n - k, s = n - (k + a) + (a - r), a = t - I, u = t - (I + a) + (a - r), a = e - H, c = e - (H + a) + (a - o), a = i - O, d = i - (O + a) + (a - o), s === 0 && c === 0 && u === 0 && d === 0) || (x = Gr * l + Fr * Math.abs(J), J += k * d + O * s - (H * u + I * c), J >= x || -J >= x)) return J;
3080
+ E = s * O, f = X * s, h = f - (f - s), m = s - h, f = X * O, y = f - (f - O), b = O - y, M = m * b - (E - h * y - m * y - h * b), C = c * I, f = X * c, h = f - (f - c), m = c - h, f = X * I, y = f - (f - I), b = I - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3081
+ const A = Ct(4, ze, 4, $, _i);
3082
+ E = k * d, f = X * k, h = f - (f - k), m = k - h, f = X * d, y = f - (f - d), b = d - y, M = m * b - (E - h * y - m * y - h * b), C = H * u, f = X * H, h = f - (f - H), m = H - h, f = X * u, y = f - (f - u), b = u - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3083
+ const oe = Ct(A, _i, 4, $, Ei);
3084
+ E = s * d, f = X * s, h = f - (f - s), m = s - h, f = X * d, y = f - (f - d), b = d - y, M = m * b - (E - h * y - m * y - h * b), C = c * u, f = X * c, h = f - (f - c), m = c - h, f = X * u, y = f - (f - u), b = u - y, v = m * b - (C - h * y - m * y - h * b), w = M - v, a = M - w, $[0] = M - (w + a) + (a - v), L = E + w, a = L - E, S = E - (L - a) + (w - a), w = S - C, a = S - w, $[1] = S - (w + a) + (a - C), _ = L + w, a = _ - L, $[2] = L - (_ - a) + (w - a), $[3] = _;
3085
+ const ce = Ct(oe, Ei, 4, $, Li);
3086
+ return Li[ce - 1];
3087
3087
  }
3088
3088
  function qr(n, e, t, i, r, o) {
3089
3089
  const l = (e - o) * (t - r), s = (n - r) * (i - o), c = l - s, u = Math.abs(l + s);
3090
- return Math.abs(c) >= Ur * u ? c : -jr(n, e, t, i, r, o, u);
3090
+ return Math.abs(c) >= Dr * u ? c : -jr(n, e, t, i, r, o, u);
3091
3091
  }
3092
- const je = (n, e) => n.ll.x <= e.x && e.x <= n.ur.x && n.ll.y <= e.y && e.y <= n.ur.y, Ft = (n, e) => {
3092
+ const je = (n, e) => n.ll.x <= e.x && e.x <= n.ur.x && n.ll.y <= e.y && e.y <= n.ur.y, zt = (n, e) => {
3093
3093
  if (e.ur.x < n.ll.x || n.ur.x < e.ll.x || e.ur.y < n.ll.y || n.ur.y < e.ll.y) return null;
3094
3094
  const t = n.ll.x < e.ll.x ? e.ll.x : n.ll.x, i = n.ur.x < e.ur.x ? n.ur.x : e.ur.x, r = n.ll.y < e.ll.y ? e.ll.y : n.ll.y, o = n.ur.y < e.ur.y ? n.ur.y : e.ur.y;
3095
3095
  return {
@@ -3105,13 +3105,13 @@ const je = (n, e) => n.ll.x <= e.x && e.x <= n.ur.x && n.ll.y <= e.y && e.y <= n
3105
3105
  };
3106
3106
  let we = Number.EPSILON;
3107
3107
  we === void 0 && (we = Math.pow(2, -52));
3108
- const Zr = we * we, Si = (n, e) => {
3108
+ const Qr = we * we, Si = (n, e) => {
3109
3109
  if (-we < n && n < we && -we < e && e < we)
3110
3110
  return 0;
3111
3111
  const t = n - e;
3112
- return t * t < Zr * n * e ? 0 : n < e ? -1 : 1;
3112
+ return t * t < Qr * n * e ? 0 : n < e ? -1 : 1;
3113
3113
  };
3114
- class Qr {
3114
+ class Vr {
3115
3115
  constructor() {
3116
3116
  this.reset();
3117
3117
  }
@@ -3127,7 +3127,7 @@ class Qr {
3127
3127
  }
3128
3128
  class xi {
3129
3129
  constructor() {
3130
- this.tree = new Gt(), this.round(0);
3130
+ this.tree = new Ut(), this.round(0);
3131
3131
  }
3132
3132
  // Note: this can rounds input values backwards or forwards.
3133
3133
  // You might ask, why not restrict this to just rounding
@@ -3144,10 +3144,10 @@ class xi {
3144
3144
  return r !== null && Si(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3145
3145
  }
3146
3146
  }
3147
- const Ve = new Qr(), lt = (n, e) => n.x * e.y - n.y * e.x, qi = (n, e) => n.x * e.x + n.y * e.y, Mi = (n, e, t) => {
3147
+ const Ze = new Vr(), st = (n, e) => n.x * e.y - n.y * e.x, qi = (n, e) => n.x * e.x + n.y * e.y, Mi = (n, e, t) => {
3148
3148
  const i = qr(n.x, n.y, e.x, e.y, t.x, t.y);
3149
3149
  return i > 0 ? -1 : i < 0 ? 1 : 0;
3150
- }, ct = (n) => Math.sqrt(qi(n, n)), Vr = (n, e, t) => {
3150
+ }, at = (n) => Math.sqrt(qi(n, n)), Zr = (n, e, t) => {
3151
3151
  const i = {
3152
3152
  x: e.x - n.x,
3153
3153
  y: e.y - n.y
@@ -3155,7 +3155,7 @@ const Ve = new Qr(), lt = (n, e) => n.x * e.y - n.y * e.x, qi = (n, e) => n.x *
3155
3155
  x: t.x - n.x,
3156
3156
  y: t.y - n.y
3157
3157
  };
3158
- return lt(r, i) / ct(r) / ct(i);
3158
+ return st(r, i) / at(r) / at(i);
3159
3159
  }, Hr = (n, e, t) => {
3160
3160
  const i = {
3161
3161
  x: e.x - n.x,
@@ -3164,7 +3164,7 @@ const Ve = new Qr(), lt = (n, e) => n.x * e.y - n.y * e.x, qi = (n, e) => n.x *
3164
3164
  x: t.x - n.x,
3165
3165
  y: t.y - n.y
3166
3166
  };
3167
- return qi(r, i) / ct(r) / ct(i);
3167
+ return qi(r, i) / at(r) / at(i);
3168
3168
  }, ki = (n, e, t) => e.y === 0 ? null : {
3169
3169
  x: n.x + e.x / e.y * (t - n.y),
3170
3170
  y: t
@@ -3176,12 +3176,12 @@ const Ve = new Qr(), lt = (n, e) => n.x * e.y - n.y * e.x, qi = (n, e) => n.x *
3176
3176
  if (i.x === 0) return Ci(n, e, t.x);
3177
3177
  if (e.y === 0) return ki(t, i, n.y);
3178
3178
  if (i.y === 0) return ki(n, e, t.y);
3179
- const r = lt(e, i);
3179
+ const r = st(e, i);
3180
3180
  if (r == 0) return null;
3181
3181
  const o = {
3182
3182
  x: t.x - n.x,
3183
3183
  y: t.y - n.y
3184
- }, l = lt(o, e) / r, s = lt(o, i) / r, c = n.x + s * e.x, u = t.x + l * i.x, d = n.y + s * e.y, a = t.y + l * i.y, f = (c + u) / 2, h = (d + a) / 2;
3184
+ }, l = st(o, e) / r, s = st(o, i) / r, c = n.x + s * e.x, u = t.x + l * i.x, d = n.y + s * e.y, a = t.y + l * i.y, f = (c + u) / 2, h = (d + a) / 2;
3185
3185
  return {
3186
3186
  x: f,
3187
3187
  y: h
@@ -3246,7 +3246,7 @@ class re {
3246
3246
  const t = /* @__PURE__ */ new Map(), i = (r) => {
3247
3247
  const o = r.otherSE;
3248
3248
  t.set(r, {
3249
- sine: Vr(this.point, e.point, o.point),
3249
+ sine: Zr(this.point, e.point, o.point),
3250
3250
  cosine: Hr(this.point, e.point, o.point)
3251
3251
  });
3252
3252
  };
@@ -3400,7 +3400,7 @@ class _e {
3400
3400
  * Else, return null.
3401
3401
  */
3402
3402
  getIntersection(e) {
3403
- const t = this.bbox(), i = e.bbox(), r = Ft(t, i);
3403
+ const t = this.bbox(), i = e.bbox(), r = zt(t, i);
3404
3404
  if (r === null) return null;
3405
3405
  const o = this.leftSE.point, l = this.rightSE.point, s = e.leftSE.point, c = e.rightSE.point, u = je(t, s) && this.comparePoint(s) === 0, d = je(i, o) && e.comparePoint(o) === 0, a = je(t, c) && this.comparePoint(c) === 0, f = je(i, l) && e.comparePoint(l) === 0;
3406
3406
  if (d && u)
@@ -3413,7 +3413,7 @@ class _e {
3413
3413
  if (f) return l;
3414
3414
  if (a) return c;
3415
3415
  const h = Yr(o, this.vector(), s, e.vector());
3416
- return h === null || !je(r, h) ? null : Ve.round(h.x, h.y);
3416
+ return h === null || !je(r, h) ? null : Ze.round(h.x, h.y);
3417
3417
  }
3418
3418
  /**
3419
3419
  * Split the given segment into multiple segments on the given points.
@@ -3516,7 +3516,7 @@ class _e {
3516
3516
  if (this.consumedBy) return !1;
3517
3517
  if (this._isInResult !== void 0) return this._isInResult;
3518
3518
  const e = this.beforeState().multiPolys, t = this.afterState().multiPolys;
3519
- switch (le.type) {
3519
+ switch (se.type) {
3520
3520
  case "union": {
3521
3521
  const i = e.length === 0, r = t.length === 0;
3522
3522
  this._isInResult = i !== r;
@@ -3524,7 +3524,7 @@ class _e {
3524
3524
  }
3525
3525
  case "intersection": {
3526
3526
  let i, r;
3527
- e.length < t.length ? (i = e.length, r = t.length) : (i = t.length, r = e.length), this._isInResult = r === le.numMultiPolys && i < r;
3527
+ e.length < t.length ? (i = e.length, r = t.length) : (i = t.length, r = e.length), this._isInResult = r === se.numMultiPolys && i < r;
3528
3528
  break;
3529
3529
  }
3530
3530
  case "xor": {
@@ -3538,7 +3538,7 @@ class _e {
3538
3538
  break;
3539
3539
  }
3540
3540
  default:
3541
- throw new Error(`Unrecognized operation type found ${le.type}`);
3541
+ throw new Error(`Unrecognized operation type found ${se.type}`);
3542
3542
  }
3543
3543
  return this._isInResult;
3544
3544
  }
@@ -3549,7 +3549,7 @@ class Ni {
3549
3549
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3550
3550
  if (this.poly = t, this.isExterior = i, this.segments = [], typeof e[0][0] != "number" || typeof e[0][1] != "number")
3551
3551
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3552
- const r = Ve.round(e[0][0], e[0][1]);
3552
+ const r = Ze.round(e[0][0], e[0][1]);
3553
3553
  this.bbox = {
3554
3554
  ll: {
3555
3555
  x: r.x,
@@ -3564,7 +3564,7 @@ class Ni {
3564
3564
  for (let l = 1, s = e.length; l < s; l++) {
3565
3565
  if (typeof e[l][0] != "number" || typeof e[l][1] != "number")
3566
3566
  throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
3567
- let c = Ve.round(e[l][0], e[l][1]);
3567
+ let c = Ze.round(e[l][0], e[l][1]);
3568
3568
  c.x === o.x && c.y === o.y || (this.segments.push(_e.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);
3569
3569
  }
3570
3570
  (r.x !== o.x || r.y !== o.y) && this.segments.push(_e.fromRing(o, r, this));
@@ -3642,7 +3642,7 @@ class Pi {
3642
3642
  return e;
3643
3643
  }
3644
3644
  }
3645
- class ft {
3645
+ class ct {
3646
3646
  /* Given the segments from the sweep line pass, compute & return a series
3647
3647
  * of closed rings from all the segments marked to be part of the result */
3648
3648
  static factory(e) {
@@ -3671,7 +3671,7 @@ class ft {
3671
3671
  }
3672
3672
  if (h !== null) {
3673
3673
  const y = a.splice(h)[0], b = u.splice(y.index);
3674
- b.unshift(b[0].otherSE), t.push(new ft(b.reverse()));
3674
+ b.unshift(b[0].otherSE), t.push(new ct(b.reverse()));
3675
3675
  continue;
3676
3676
  }
3677
3677
  a.push({
@@ -3682,7 +3682,7 @@ class ft {
3682
3682
  c = f.sort(m)[0].otherSE;
3683
3683
  break;
3684
3684
  }
3685
- t.push(new ft(u));
3685
+ t.push(new ct(u));
3686
3686
  }
3687
3687
  return t;
3688
3688
  }
@@ -3733,7 +3733,7 @@ class ft {
3733
3733
  }
3734
3734
  }
3735
3735
  }
3736
- class Ti {
3736
+ class Ri {
3737
3737
  constructor(e) {
3738
3738
  this.exteriorRing = e, e.poly = this, this.interiorRings = [];
3739
3739
  }
@@ -3767,10 +3767,10 @@ class Jr {
3767
3767
  for (let i = 0, r = e.length; i < r; i++) {
3768
3768
  const o = e[i];
3769
3769
  if (!o.poly)
3770
- if (o.isExteriorRing()) t.push(new Ti(o));
3770
+ if (o.isExteriorRing()) t.push(new Ri(o));
3771
3771
  else {
3772
3772
  const l = o.enclosingRing();
3773
- l.poly || t.push(new Ti(l)), l.poly.addInterior(o);
3773
+ l.poly || t.push(new Ri(l)), l.poly.addInterior(o);
3774
3774
  }
3775
3775
  }
3776
3776
  return t;
@@ -3779,7 +3779,7 @@ class Jr {
3779
3779
  class $r {
3780
3780
  constructor(e) {
3781
3781
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _e.compare;
3782
- this.queue = e, this.tree = new Gt(t), this.segments = [];
3782
+ this.queue = e, this.tree = new Ut(t), this.segments = [];
3783
3783
  }
3784
3784
  process(e) {
3785
3785
  const t = e.segment, i = [];
@@ -3849,30 +3849,30 @@ class $r {
3849
3849
  return r.push(i), e.consumedBy === void 0 && this.tree.add(e), r;
3850
3850
  }
3851
3851
  }
3852
- const Ri = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, eo = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3852
+ const Ti = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_QUEUE_SIZE || 1e6, eo = typeof process < "u" && process.env.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS || 1e6;
3853
3853
  class to {
3854
3854
  run(e, t, i) {
3855
- le.type = e, Ve.reset();
3855
+ se.type = e, Ze.reset();
3856
3856
  const r = [new Pi(t, !0)];
3857
3857
  for (let a = 0, f = i.length; a < f; a++)
3858
3858
  r.push(new Pi(i[a], !1));
3859
- if (le.numMultiPolys = r.length, le.type === "difference") {
3859
+ if (se.numMultiPolys = r.length, se.type === "difference") {
3860
3860
  const a = r[0];
3861
3861
  let f = 1;
3862
3862
  for (; f < r.length; )
3863
- Ft(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3863
+ zt(r[f].bbox, a.bbox) !== null ? f++ : r.splice(f, 1);
3864
3864
  }
3865
- if (le.type === "intersection")
3865
+ if (se.type === "intersection")
3866
3866
  for (let a = 0, f = r.length; a < f; a++) {
3867
3867
  const h = r[a];
3868
3868
  for (let m = a + 1, y = r.length; m < y; m++)
3869
- if (Ft(h.bbox, r[m].bbox) === null) return [];
3869
+ if (zt(h.bbox, r[m].bbox) === null) return [];
3870
3870
  }
3871
- const o = new Gt(re.compare);
3871
+ const o = new Ut(re.compare);
3872
3872
  for (let a = 0, f = r.length; a < f; a++) {
3873
3873
  const h = r[a].getSweepEvents();
3874
3874
  for (let m = 0, y = h.length; m < y; m++)
3875
- if (o.insert(h[m]), o.size > Ri)
3875
+ if (o.insert(h[m]), o.size > Ti)
3876
3876
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
3877
3877
  }
3878
3878
  const l = new $r(o);
@@ -3883,7 +3883,7 @@ class to {
3883
3883
  const h = a.segment;
3884
3884
  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.`);
3885
3885
  }
3886
- if (o.size > Ri)
3886
+ if (o.size > Ti)
3887
3887
  throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");
3888
3888
  if (l.segments.length > eo)
3889
3889
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
@@ -3894,29 +3894,29 @@ class to {
3894
3894
  }
3895
3895
  s = o.size, c = o.pop();
3896
3896
  }
3897
- Ve.reset();
3898
- const u = ft.factory(l.segments);
3897
+ Ze.reset();
3898
+ const u = ct.factory(l.segments);
3899
3899
  return new Jr(u).getGeom();
3900
3900
  }
3901
3901
  }
3902
- const le = new to(), io = function(n) {
3902
+ const se = new to(), io = function(n) {
3903
3903
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3904
3904
  t[i - 1] = arguments[i];
3905
- return le.run("union", n, t);
3905
+ return se.run("union", n, t);
3906
3906
  }, no = function(n) {
3907
3907
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3908
3908
  t[i - 1] = arguments[i];
3909
- return le.run("intersection", n, t);
3909
+ return se.run("intersection", n, t);
3910
3910
  }, ro = function(n) {
3911
3911
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3912
3912
  t[i - 1] = arguments[i];
3913
- return le.run("xor", n, t);
3913
+ return se.run("xor", n, t);
3914
3914
  }, oo = function(n) {
3915
3915
  for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
3916
3916
  t[i - 1] = arguments[i];
3917
- return le.run("difference", n, t);
3917
+ return se.run("difference", n, t);
3918
3918
  };
3919
- var Zi = {
3919
+ var Qi = {
3920
3920
  union: io,
3921
3921
  intersection: no,
3922
3922
  xor: ro,
@@ -3924,12 +3924,12 @@ var Zi = {
3924
3924
  };
3925
3925
  function so(n) {
3926
3926
  const e = [];
3927
- if (Ut(n, (r) => {
3927
+ if (Dt(n, (r) => {
3928
3928
  e.push(r.coordinates);
3929
3929
  }), e.length < 2)
3930
3930
  throw new Error("Must have at least two features");
3931
- const t = n.features[0].properties || {}, i = Zi.difference(e[0], ...e.slice(1));
3932
- return i.length === 0 ? null : i.length === 1 ? Dt(i[0], t) : zi(i, t);
3931
+ const t = n.features[0].properties || {}, i = Qi.difference(e[0], ...e.slice(1));
3932
+ return i.length === 0 ? null : i.length === 1 ? Bt(i[0], t) : Gi(i, t);
3933
3933
  }
3934
3934
  var lo = so;
3935
3935
  function uo(n) {
@@ -3938,23 +3938,23 @@ function uo(n) {
3938
3938
  var e = [];
3939
3939
  return Pr(n, function(t) {
3940
3940
  e.push(t);
3941
- }), Rt(e);
3941
+ }), Tt(e);
3942
3942
  }
3943
3943
  var ao = uo;
3944
3944
  function co(n, e = {}) {
3945
3945
  const t = [];
3946
- if (Ut(n, (r) => {
3946
+ if (Dt(n, (r) => {
3947
3947
  t.push(r.coordinates);
3948
3948
  }), t.length < 2)
3949
3949
  throw new Error("Must have at least 2 geometries");
3950
- const i = Zi.union(t[0], ...t.slice(1));
3951
- return i.length === 0 ? null : i.length === 1 ? Dt(i[0], e.properties) : zi(i, e.properties);
3950
+ const i = Qi.union(t[0], ...t.slice(1));
3951
+ return i.length === 0 ? null : i.length === 1 ? Bt(i[0], e.properties) : Gi(i, e.properties);
3952
3952
  }
3953
3953
  var fo = co;
3954
3954
  function Ii(n, e) {
3955
3955
  const t = lo(
3956
- Rt([
3957
- Dt([
3956
+ Tt([
3957
+ Bt([
3958
3958
  [
3959
3959
  [180, 90],
3960
3960
  [-180, 90],
@@ -3969,10 +3969,10 @@ function Ii(n, e) {
3969
3969
  if (!t)
3970
3970
  return;
3971
3971
  t.properties = { isMask: !0 };
3972
- const i = ut(bi(n)), r = (i[2] - i[0]) / 360 / 1e3, o = i[0] < -180, l = i[2] > 180, s = ao(n);
3972
+ const i = lt(bi(n)), r = (i[2] - i[0]) / 360 / 1e3, o = i[0] < -180, l = i[2] > 180, s = ao(n);
3973
3973
  if (s.features.length > 1 && (o || l))
3974
3974
  for (const c of s.features) {
3975
- const u = ut(bi(c));
3975
+ const u = lt(bi(c));
3976
3976
  if (l && u[0] < -180 + r)
3977
3977
  for (const d of c.geometry.coordinates)
3978
3978
  for (const a of d)
@@ -3983,7 +3983,7 @@ function Ii(n, e) {
3983
3983
  a[0] -= 360 - r;
3984
3984
  }
3985
3985
  e(
3986
- Rt([
3986
+ Tt([
3987
3987
  s.features.length < 2 ? n : fo(s) ?? n,
3988
3988
  t
3989
3989
  ])
@@ -4023,7 +4023,7 @@ function ho(n) {
4023
4023
  }
4024
4024
  function go(n, e = {}, t = {}, i = ho) {
4025
4025
  let r = -1, o, l, s, c = !1;
4026
- const u = new pn({
4026
+ const u = new vn({
4027
4027
  updateWhileAnimating: !0
4028
4028
  });
4029
4029
  n.addLayer(u);
@@ -4062,7 +4062,7 @@ function go(n, e = {}, t = {}, i = ho) {
4062
4062
  },
4063
4063
  flyTo(m, y) {
4064
4064
  n.getView().animate({
4065
- center: it(m, a()),
4065
+ center: tt(m, a()),
4066
4066
  ...y ? { zoom: y } : {},
4067
4067
  duration: 2e3,
4068
4068
  ...e
@@ -4081,52 +4081,52 @@ function go(n, e = {}, t = {}, i = ho) {
4081
4081
  },
4082
4082
  setReverseMarker(m) {
4083
4083
  s ? m ? s.getGeometry().setCoordinates(
4084
- it(m, a())
4084
+ tt(m, a())
4085
4085
  ) : (d.removeFeature(s), s.dispose(), s = void 0) : m && (s = new fe(
4086
- new xt(it(m, a()))
4086
+ new xt(tt(m, a()))
4087
4087
  ), s.setProperties({ isReverse: !0 }), d.addFeature(s));
4088
4088
  },
4089
- setMarkers(m, y) {
4090
- function b(v) {
4091
- var E;
4092
- if (v)
4093
- for (const _ of v.features) {
4094
- const x = _.geometry.type === "Polygon" ? new Ht(_.geometry.coordinates) : _.geometry.type === "MultiPolygon" ? new Yt(_.geometry.coordinates) : null;
4095
- x && d.addFeature(
4089
+ setFeatures(m, y, b) {
4090
+ function w(L) {
4091
+ var S;
4092
+ if (L)
4093
+ for (const E of L.features) {
4094
+ const M = E.geometry.type === "Polygon" ? new Ht(E.geometry.coordinates) : E.geometry.type === "MultiPolygon" ? new Yt(E.geometry.coordinates) : null;
4095
+ M && d.addFeature(
4096
4096
  new fe({
4097
- isMask: !!((E = _.properties) != null && E.isMask),
4098
- geometry: f(x)
4097
+ isMask: !!((S = E.properties) != null && S.isMask),
4098
+ geometry: f(M)
4099
4099
  })
4100
4100
  );
4101
4101
  }
4102
4102
  }
4103
4103
  if (d.clear(), s && d.addFeature(s), y) {
4104
- let v = !1;
4104
+ let L = !1;
4105
4105
  if (y.geometry.type === "GeometryCollection") {
4106
- const E = y.geometry.geometries.map(
4107
- (_) => _.type === "Polygon" ? new Ht(_.coordinates) : _.type === "MultiPolygon" ? new Yt(_.coordinates) : null
4108
- ).filter((_) => !!_);
4109
- if (E.length > 0)
4106
+ const S = y.geometry.geometries.map(
4107
+ (E) => E.type === "Polygon" ? new Ht(E.coordinates) : E.type === "MultiPolygon" ? new Yt(E.coordinates) : null
4108
+ ).filter((E) => !!E);
4109
+ if (S.length > 0)
4110
4110
  d.addFeature(
4111
- new fe(f(new vn(E)))
4112
- ), v = !0;
4111
+ new fe(f(new pn(S)))
4112
+ ), L = !0;
4113
4113
  else
4114
- for (const _ of y.geometry.geometries)
4115
- _.type === "LineString" ? (d.addFeature(
4114
+ for (const E of y.geometry.geometries)
4115
+ E.type === "LineString" ? (d.addFeature(
4116
4116
  new fe(
4117
- f(new Xt(_.coordinates))
4117
+ f(new Xt(E.coordinates))
4118
4118
  )
4119
- ), v = !0) : _.type === "MultiLineString" && d.addFeature(
4119
+ ), L = !0) : E.type === "MultiLineString" && d.addFeature(
4120
4120
  new fe(
4121
- f(new Kt(_.coordinates))
4121
+ f(new Kt(E.coordinates))
4122
4122
  )
4123
- ), v = !0;
4123
+ ), L = !0;
4124
4124
  }
4125
- if (!v) {
4125
+ if (!L) {
4126
4126
  if (y.geometry.type === "Polygon")
4127
- Ii(y, b);
4127
+ Ii(y, w);
4128
4128
  else if (y.geometry.type === "MultiPolygon")
4129
- Ii(y, b);
4129
+ Ii(y, w);
4130
4130
  else if (y.geometry.type === "LineString") {
4131
4131
  d.addFeature(
4132
4132
  new fe(
@@ -4143,26 +4143,28 @@ function go(n, e = {}, t = {}, i = ho) {
4143
4143
  return;
4144
4144
  }
4145
4145
  }
4146
+ if (!b && y.geometry.type !== "Point")
4147
+ return;
4146
4148
  d.addFeature(new fe(f(new xt(y.center))));
4147
4149
  }
4148
- for (const v of m ?? []) {
4149
- if (v === y)
4150
+ for (const L of m ?? []) {
4151
+ if (L === y)
4150
4152
  continue;
4151
- const E = new fe(
4152
- new xt(it(v.center, a()))
4153
+ const S = new fe(
4154
+ new xt(tt(L.center, a()))
4153
4155
  );
4154
- E.setId(v.id), E.setProperties({
4155
- fuzzy: !!v.matching_text,
4156
- tooltip: v.place_type[0] === "reverse" ? v.place_name : v.place_name.replace(/,.*/, "")
4157
- }), d.addFeature(E);
4156
+ S.setId(L.id), S.setProperties({
4157
+ fuzzy: !!L.matching_text,
4158
+ tooltip: L.place_type[0] === "reverse" ? L.place_name : L.place_name.replace(/,.*/, "")
4159
+ }), d.addFeature(S);
4158
4160
  }
4159
4161
  },
4160
4162
  setSelectedMarker(m) {
4161
- var v, E, _;
4162
- const y = d.getFeatures(), b = (v = y[0]) != null && v.getProperties().isReverse ? 1 : 0;
4163
- r > -1 && ((E = y[r + b]) == null || E.setProperties({
4163
+ var w, L, S;
4164
+ const y = d.getFeatures(), b = (w = y[0]) != null && w.getProperties().isReverse ? 1 : 0;
4165
+ r > -1 && ((L = y[r + b]) == null || L.setProperties({
4164
4166
  isSelected: !1
4165
- })), m > -1 && ((_ = y[m + b]) == null || _.setProperties({
4167
+ })), m > -1 && ((S = y[m + b]) == null || S.setProperties({
4166
4168
  isSelected: !0
4167
4169
  })), r = m;
4168
4170
  },
@@ -4173,8 +4175,8 @@ function go(n, e = {}, t = {}, i = ho) {
4173
4175
  }
4174
4176
  };
4175
4177
  }
4176
- var ne, Ne;
4177
- class Fo extends yn {
4178
+ var Z, Ne;
4179
+ class zo extends yn {
4178
4180
  constructor(t) {
4179
4181
  const i = document.createElement("div");
4180
4182
  i.className = "ol-search";
@@ -4182,70 +4184,36 @@ class Fo extends yn {
4182
4184
  element: i,
4183
4185
  target: t.target
4184
4186
  });
4185
- St(this, ne);
4186
- St(this, Ne);
4187
+ Lt(this, Z);
4188
+ Lt(this, Ne);
4187
4189
  const { flyTo: r, fullGeometryStyle: o, ...l } = t;
4188
- tt(this, ne, new Nr({
4190
+ St(this, Z, new Nr({
4189
4191
  target: i,
4190
4192
  props: {
4191
4193
  flyTo: r === void 0 ? !0 : !!r,
4192
4194
  ...l
4193
4195
  }
4194
- }));
4195
- for (const s of [
4196
- "select",
4197
- "pick",
4198
- "featuresListed",
4199
- "featuresMarked",
4200
- "response",
4201
- "optionsVisibilityChange",
4202
- "reverseToggle",
4203
- "queryChange"
4204
- ])
4205
- se(this, ne).$on(s, (c) => {
4206
- switch (s) {
4207
- case "select":
4208
- this.dispatchEvent(
4209
- new mo(c.detail)
4210
- );
4211
- break;
4212
- case "featuresListed":
4213
- this.dispatchEvent(
4214
- new yo(c.detail)
4215
- );
4216
- break;
4217
- case "featuresMarked":
4218
- this.dispatchEvent(
4219
- new vo(c.detail)
4220
- );
4221
- break;
4222
- case "optionsVisibilityChange":
4223
- this.dispatchEvent(
4224
- new po(c.detail)
4225
- );
4226
- break;
4227
- case "pick":
4228
- this.dispatchEvent(
4229
- new bo(c.detail)
4230
- );
4231
- break;
4232
- case "queryChange":
4233
- this.dispatchEvent(new wo(c.detail));
4234
- break;
4235
- case "response":
4236
- this.dispatchEvent(
4237
- new _o(
4238
- c.detail.url,
4239
- c.detail.featureCollection
4240
- )
4241
- );
4242
- break;
4243
- case "reverseToggle":
4244
- this.dispatchEvent(new Eo(c.detail));
4245
- break;
4246
- }
4247
- });
4248
- tt(this, Ne, t);
4196
+ })), V(this, Z).$on("select", (s) => {
4197
+ this.dispatchEvent(new mo(s.detail.feature));
4198
+ }), V(this, Z).$on("pick", (s) => {
4199
+ this.dispatchEvent(new bo(s.detail.feature));
4200
+ }), V(this, Z).$on("featureslisted", (s) => {
4201
+ this.dispatchEvent(new yo(s.detail.features));
4202
+ }), V(this, Z).$on("featuresmarked", (s) => {
4203
+ this.dispatchEvent(new po(s.detail.features));
4204
+ }), V(this, Z).$on("response", (s) => {
4205
+ this.dispatchEvent(
4206
+ new _o(s.detail.url, s.detail.featureCollection)
4207
+ );
4208
+ }), V(this, Z).$on("optionsvisibilitychange", (s) => {
4209
+ this.dispatchEvent(
4210
+ new vo(s.detail.optionsVisible)
4211
+ );
4212
+ }), V(this, Z).$on("reversetoggle", (s) => {
4213
+ this.dispatchEvent(new Eo(s.detail.reverse));
4214
+ }), V(this, Z).$on("querychange", (s) => {
4215
+ this.dispatchEvent(new wo(s.detail.query));
4216
+ }), St(this, Ne, t);
4249
4217
  }
4250
4218
  setMap(t) {
4251
4219
  var i;
@@ -4255,7 +4223,7 @@ class Fo extends yn {
4255
4223
  // showResultMarkers,
4256
4224
  flyTo: r,
4257
4225
  fullGeometryStyle: o
4258
- } = se(this, Ne), l = go(
4226
+ } = V(this, Ne), l = go(
4259
4227
  t,
4260
4228
  typeof r == "boolean" ? void 0 : r,
4261
4229
  typeof r == "boolean" ? void 0 : r,
@@ -4263,105 +4231,105 @@ class Fo extends yn {
4263
4231
  // showResultMarkers,
4264
4232
  o
4265
4233
  );
4266
- (i = se(this, ne)) == null || i.$set({ mapController: l });
4234
+ (i = V(this, Z)) == null || i.$set({ mapController: l });
4267
4235
  }
4268
4236
  }
4269
4237
  setOptions(t) {
4270
4238
  var l;
4271
- tt(this, Ne, t);
4272
- const { flyTo: i, fullGeometryStyle: r, ...o } = se(this, Ne);
4273
- (l = se(this, ne)) == null || l.$set({
4239
+ Object.assign(V(this, Ne), t);
4240
+ const { flyTo: i, fullGeometryStyle: r, ...o } = V(this, Ne);
4241
+ (l = V(this, Z)) == null || l.$set({
4274
4242
  ...o,
4275
4243
  flyTo: i === void 0 ? !0 : !!i
4276
4244
  });
4277
4245
  }
4278
4246
  setQuery(t, i = !0) {
4279
4247
  var r;
4280
- (r = se(this, ne)) == null || r.setQuery(t, i);
4248
+ (r = V(this, Z)) == null || r.setQuery(t, i);
4281
4249
  }
4282
4250
  clearMap() {
4283
4251
  var t;
4284
- (t = se(this, ne)) == null || t.clearMap();
4252
+ (t = V(this, Z)) == null || t.clearMap();
4285
4253
  }
4286
4254
  clearList() {
4287
4255
  var t;
4288
- (t = se(this, ne)) == null || t.clearList();
4256
+ (t = V(this, Z)) == null || t.clearList();
4289
4257
  }
4290
4258
  focus() {
4291
4259
  var t;
4292
- (t = se(this, ne)) == null || t.focus();
4260
+ (t = V(this, Z)) == null || t.focus();
4293
4261
  }
4294
4262
  blur() {
4295
4263
  var t;
4296
- (t = se(this, ne)) == null || t.blur();
4264
+ (t = V(this, Z)) == null || t.blur();
4297
4265
  }
4298
4266
  // onRemove() {
4299
4267
  // this.#gc?.$destroy();
4300
4268
  // }
4301
4269
  }
4302
- ne = new WeakMap(), Ne = new WeakMap();
4270
+ Z = new WeakMap(), Ne = new WeakMap();
4303
4271
  class mo extends xe {
4304
4272
  constructor(t) {
4305
4273
  super("select");
4306
- ie(this, "feature");
4274
+ ne(this, "feature");
4307
4275
  this.feature = t;
4308
4276
  }
4309
4277
  }
4310
4278
  class yo extends xe {
4311
4279
  constructor(t) {
4312
- super("featuresListed");
4313
- ie(this, "features");
4280
+ super("featureslisted");
4281
+ ne(this, "features");
4314
4282
  this.features = t;
4315
4283
  }
4316
4284
  }
4317
- class vo extends xe {
4285
+ class po extends xe {
4318
4286
  constructor(t) {
4319
- super("featuresMarked");
4320
- ie(this, "features");
4287
+ super("featuresmarked");
4288
+ ne(this, "features");
4321
4289
  this.features = t;
4322
4290
  }
4323
4291
  }
4324
- class po extends xe {
4292
+ class vo extends xe {
4325
4293
  constructor(t) {
4326
- super("optionsVisibilityChange");
4327
- ie(this, "optionsVisible");
4294
+ super("optionsvisibilitychange");
4295
+ ne(this, "optionsVisible");
4328
4296
  this.optionsVisible = t;
4329
4297
  }
4330
4298
  }
4331
4299
  class bo extends xe {
4332
4300
  constructor(t) {
4333
4301
  super("pick");
4334
- ie(this, "feature");
4302
+ ne(this, "feature");
4335
4303
  this.feature = t;
4336
4304
  }
4337
4305
  }
4338
4306
  class wo extends xe {
4339
4307
  constructor(t) {
4340
- super("queryChange");
4341
- ie(this, "query");
4308
+ super("querychange");
4309
+ ne(this, "query");
4342
4310
  this.query = t;
4343
4311
  }
4344
4312
  }
4345
4313
  class _o extends xe {
4346
4314
  constructor(t, i) {
4347
4315
  super("response");
4348
- ie(this, "url");
4349
- ie(this, "featureCollection");
4316
+ ne(this, "url");
4317
+ ne(this, "featureCollection");
4350
4318
  this.url = t, this.featureCollection = i;
4351
4319
  }
4352
4320
  }
4353
4321
  class Eo extends xe {
4354
4322
  constructor(t) {
4355
- super("reverseToggle");
4356
- ie(this, "reverse");
4323
+ super("reversetoggle");
4324
+ ne(this, "reverse");
4357
4325
  this.reverse = t;
4358
4326
  }
4359
4327
  }
4360
4328
  export {
4361
4329
  yo as FeaturesListedEvent,
4362
- vo as FeaturesMarkedEvent,
4363
- Fo as GeocodingControl,
4364
- po as OptionsVisibilityChangeEvent,
4330
+ po as FeaturesMarkedEvent,
4331
+ zo as GeocodingControl,
4332
+ vo as OptionsVisibilityChangeEvent,
4365
4333
  bo as PickEvent,
4366
4334
  wo as QueryChangeEvent,
4367
4335
  _o as ResponseEvent,