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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/maptilersdk.js CHANGED
@@ -61,13 +61,13 @@ function mn(n, e, t, i) {
61
61
  }
62
62
  return e.dirty;
63
63
  }
64
- function yn(n, e, t, i, r, o) {
64
+ function vn(n, e, t, i, r, o) {
65
65
  if (r) {
66
66
  const u = Ri(e, t, i, o);
67
67
  n.p(u, r);
68
68
  }
69
69
  }
70
- function vn(n) {
70
+ function yn(n) {
71
71
  if (n.ctx.length > 32) {
72
72
  const e = [], t = n.ctx.length / 32;
73
73
  for (let i = 0; i < t; i++)
@@ -243,14 +243,14 @@ function Cn(n, e) {
243
243
  });
244
244
  }
245
245
  function Nn(n, e, t, i, r, o, u, s, c, l, d, a) {
246
- let f = n.length, g = o.length, v = f;
246
+ let f = n.length, g = o.length, y = f;
247
247
  const w = {};
248
- for (; v--; ) w[n[v].key] = v;
248
+ for (; y--; ) w[n[y].key] = y;
249
249
  const E = [], h = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), b = [];
250
- for (v = g; v--; ) {
251
- const x = a(r, o, v), _ = t(x);
250
+ for (y = g; y--; ) {
251
+ const x = a(r, o, y), _ = t(x);
252
252
  let C = u.get(_);
253
- C ? b.push(() => C.p(x, e)) : (C = l(_, x), C.c()), h.set(_, E[v] = C), _ in w && m.set(_, Math.abs(v - w[_]));
253
+ C ? b.push(() => C.p(x, e)) : (C = l(_, x), C.c()), h.set(_, E[y] = C), _ in w && m.set(_, Math.abs(y - w[_]));
254
254
  }
255
255
  const L = /* @__PURE__ */ new Set(), M = /* @__PURE__ */ new Set();
256
256
  function S(x) {
@@ -311,8 +311,8 @@ function Me(n, e, t, i, r, o, u = null, s = [-1]) {
311
311
  u && u(l.root);
312
312
  let d = !1;
313
313
  if (l.ctx = t ? t(n, e.props || {}, (a, f, ...g) => {
314
- const v = g.length ? g[0] : f;
315
- return l.ctx && r(l.ctx[a], l.ctx[a] = v) && (!l.skip_bound && l.bound[a] && l.bound[a](v), d && Tn(n, a)), f;
314
+ const y = g.length ? g[0] : f;
315
+ return l.ctx && r(l.ctx[a], l.ctx[a] = y) && (!l.skip_bound && l.bound[a] && l.bound[a](y), d && Tn(n, a)), f;
316
316
  }) : [], l.update(), d = !0, me(l.before_update), l.fragment = i ? i(l.ctx) : !1, e.target) {
317
317
  if (e.hydrate) {
318
318
  const a = wn(e.target);
@@ -714,7 +714,7 @@ function Gn(n) {
714
714
  n[0].id.startsWith("poi.") || !/*imageUrl*/
715
715
  n[5]) && !/*isReverse*/
716
716
  n[7]
717
- ), v, w, E = (
717
+ ), y, w, E = (
718
718
  /*isReverse*/
719
719
  (n[7] ? "" : (
720
720
  /*feature*/
@@ -742,7 +742,7 @@ function Gn(n) {
742
742
  let M = L(n, -1), S = M(n), x = g && $t(n);
743
743
  return {
744
744
  c() {
745
- e = W("li"), S.c(), u = ne(), s = W("span"), c = W("span"), l = W("span"), a = _e(d), f = ne(), x && x.c(), v = ne(), w = W("span"), h = _e(E), p(l, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(w, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
745
+ e = W("li"), S.c(), u = ne(), s = W("span"), c = W("span"), l = W("span"), a = _e(d), f = ne(), x && x.c(), y = ne(), w = W("span"), h = _e(E), p(l, "class", "primary svelte-ltkwvy"), p(c, "class", "svelte-ltkwvy"), p(w, "class", "line2 svelte-ltkwvy"), p(s, "class", "texts svelte-ltkwvy"), p(e, "tabindex", "0"), p(
746
746
  e,
747
747
  "data-selected",
748
748
  /*selected*/
@@ -755,7 +755,7 @@ function Gn(n) {
755
755
  );
756
756
  },
757
757
  m(_, C) {
758
- F(_, e, C), S.m(e, null), P(e, u), P(e, s), P(s, c), P(c, l), P(l, a), P(c, f), x && x.m(c, null), P(s, v), P(s, w), P(w, h), m || (b = [
758
+ F(_, e, C), S.m(e, null), P(e, u), P(e, s), P(s, c), P(c, l), P(l, a), P(c, f), x && x.m(c, null), P(s, y), P(s, w), P(w, h), m || (b = [
759
759
  $(
760
760
  e,
761
761
  "mouseenter",
@@ -819,7 +819,7 @@ function jn(n, e, t) {
819
819
  var b;
820
820
  let i, r, { feature: o } = e, { selected: u = !1 } = e, { showPlaceType: s } = e, { missingIconsCache: c } = e, { iconsBaseUrl: l } = e;
821
821
  const d = (b = o.properties) == null ? void 0 : b.categories;
822
- let a, f, g = 0, v = o.place_type[0] === "reverse";
822
+ let a, f, g = 0, y = o.place_type[0] === "reverse";
823
823
  function w() {
824
824
  f && c.add(f), t(10, g++, g);
825
825
  }
@@ -849,7 +849,7 @@ function jn(n, e, t) {
849
849
  a,
850
850
  f,
851
851
  r,
852
- v,
852
+ y,
853
853
  w,
854
854
  c,
855
855
  g,
@@ -1055,13 +1055,13 @@ function nr(n) {
1055
1055
  n == "DD" && (c = `${r}° ${u}, ${o}° ${s}`);
1056
1056
  const l = Math.floor(r), d = Math.floor(o), a = (r - l) * 60, f = (o - d) * 60;
1057
1057
  if (n == "DM") {
1058
- let g = oi(a, 3).toFixed(3).padStart(6, "0"), v = oi(f, 3).toFixed(3).padStart(6, "0");
1059
- g.endsWith(".000") && v.endsWith(".000") && (g = g.replace(/\.000$/, ""), v = v.replace(/\.000$/, "")), c = `${l}° ${g}' ${u}, ${d}° ${v}' ${s}`;
1058
+ let g = oi(a, 3).toFixed(3).padStart(6, "0"), y = oi(f, 3).toFixed(3).padStart(6, "0");
1059
+ g.endsWith(".000") && y.endsWith(".000") && (g = g.replace(/\.000$/, ""), y = y.replace(/\.000$/, "")), c = `${l}° ${g}' ${u}, ${d}° ${y}' ${s}`;
1060
1060
  }
1061
1061
  if (n == "DMS") {
1062
- const g = Math.floor(a), v = Math.floor(f);
1063
- let w = ((a - g) * 60).toFixed(1).padStart(4, "0"), E = ((f - v) * 60).toFixed(1).padStart(4, "0");
1064
- const h = g.toString().padStart(2, "0"), m = v.toString().padStart(2, "0");
1062
+ const g = Math.floor(a), y = Math.floor(f);
1063
+ let w = ((a - g) * 60).toFixed(1).padStart(4, "0"), E = ((f - y) * 60).toFixed(1).padStart(4, "0");
1064
+ const h = g.toString().padStart(2, "0"), m = y.toString().padStart(2, "0");
1065
1065
  w.endsWith(".0") && E.endsWith(".0") && (w = w.replace(/\.0$/, ""), E = E.replace(/\.0$/, "")), c = `${l}° ${h}' ${w}" ${u}, ${d}° ${m}' ${E}" ${s}`;
1066
1066
  }
1067
1067
  return c;
@@ -1123,20 +1123,20 @@ function Wt(n, e) {
1123
1123
  l.test(r) && t > 0 && (t = -1 * t), l = /W|WEST/i, l.test(o) && i > 0 && (i = -1 * i);
1124
1124
  const d = s[0].trim();
1125
1125
  let a, f;
1126
- const g = /[,/;\u0020]/g, v = d.match(g);
1127
- if (v == null) {
1126
+ const g = /[,/;\u0020]/g, y = d.match(g);
1127
+ if (y == null) {
1128
1128
  const h = Math.floor(n.length / 2);
1129
1129
  a = d.substring(0, h).trim(), f = d.substring(h).trim();
1130
1130
  } else {
1131
1131
  let h;
1132
- v.length % 2 == 1 ? h = Math.floor(v.length / 2) : h = v.length / 2 - 1;
1132
+ y.length % 2 == 1 ? h = Math.floor(y.length / 2) : h = y.length / 2 - 1;
1133
1133
  let m = 0;
1134
1134
  if (h == 0)
1135
- m = d.indexOf(v[0]), a = d.substring(0, m).trim(), f = d.substring(m + 1).trim();
1135
+ m = d.indexOf(y[0]), a = d.substring(0, m).trim(), f = d.substring(m + 1).trim();
1136
1136
  else {
1137
1137
  let b = 0, L = 0;
1138
1138
  for (; b <= h; )
1139
- m = d.indexOf(v[b], L), L = m + 1, b++;
1139
+ m = d.indexOf(y[b], L), L = m + 1, b++;
1140
1140
  a = d.substring(0, m).trim(), f = d.substring(m + 1).trim();
1141
1141
  }
1142
1142
  }
@@ -1765,7 +1765,7 @@ function mr(n) {
1765
1765
  }
1766
1766
  };
1767
1767
  }
1768
- function yr(n) {
1768
+ function vr(n) {
1769
1769
  let e, t, i, r, o, u, s, c, l, d, a;
1770
1770
  return t = new Ai({}), c = new Oi({}), {
1771
1771
  c() {
@@ -1879,15 +1879,15 @@ function ci(n, e) {
1879
1879
  }
1880
1880
  };
1881
1881
  }
1882
- function vr(n) {
1883
- let e, t, i, r, o, u, s, c, l, d, a, f, g, v, w, E, h, m, b, L, M, S = !1;
1882
+ function yr(n) {
1883
+ let e, t, i, r, o, u, s, c, l, d, a, f, g, y, w, E, h, m, b, L, M, S = !1;
1884
1884
  o = new $n({}), a = new Oi({});
1885
1885
  let x = (
1886
1886
  /*abortController*/
1887
1887
  n[19] && ui()
1888
1888
  ), _ = (
1889
- /*enableReverse*/
1890
- n[5] === !0 && ai(n)
1889
+ /*reverse*/
1890
+ n[5] !== "never" && ai(n)
1891
1891
  );
1892
1892
  const C = (
1893
1893
  /*#slots*/
@@ -1898,9 +1898,9 @@ function vr(n) {
1898
1898
  /*$$scope*/
1899
1899
  n[61],
1900
1900
  null
1901
- ), z = [yr, mr, gr, hr], N = [];
1901
+ ), z = [vr, mr, gr, hr], N = [];
1902
1902
  function A(k, G) {
1903
- var te, ye;
1903
+ var te, ve;
1904
1904
  return (
1905
1905
  /*error*/
1906
1906
  k[18] ? 0 : (
@@ -1910,7 +1910,7 @@ function vr(n) {
1910
1910
  ((te = k[14]) == null ? void 0 : te.length) === 0 ? 2 : (
1911
1911
  /*focusedDelayed*/
1912
1912
  k[16] && /*listFeatures*/
1913
- ((ye = k[14]) != null && ye.length) ? 3 : -1
1913
+ ((ve = k[14]) != null && ve.length) ? 3 : -1
1914
1914
  )
1915
1915
  ) : 1
1916
1916
  )
@@ -1918,7 +1918,7 @@ function vr(n) {
1918
1918
  }
1919
1919
  return ~(E = A(n)) && (h = N[E] = z[E](n)), {
1920
1920
  c() {
1921
- e = ne(), t = W("form"), i = W("div"), r = W("button"), Le(o.$$.fragment), u = ne(), s = W("input"), c = ne(), l = W("div"), d = W("button"), Le(a.$$.fragment), f = ne(), x && x.c(), g = ne(), _ && _.c(), v = ne(), O && O.c(), w = ne(), h && h.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1921
+ e = ne(), t = W("form"), i = W("div"), r = W("button"), Le(o.$$.fragment), u = ne(), s = W("input"), c = ne(), l = W("div"), d = W("button"), Le(a.$$.fragment), f = ne(), x && x.c(), g = ne(), _ && _.c(), y = ne(), O && O.c(), w = ne(), h && h.c(), p(r, "class", "search-button svelte-bz0zu3"), p(r, "type", "button"), p(
1922
1922
  s,
1923
1923
  "placeholder",
1924
1924
  /*placeholder*/
@@ -1954,7 +1954,7 @@ function vr(n) {
1954
1954
  s,
1955
1955
  /*searchValue*/
1956
1956
  n[1]
1957
- ), P(i, c), P(i, l), P(l, d), he(a, d, null), P(l, f), x && x.m(l, null), P(i, g), _ && _.m(i, null), P(i, v), O && O.m(i, null), P(t, w), ~E && N[E].m(t, null), b = !0, L || (M = [
1957
+ ), P(i, c), P(i, l), P(l, d), he(a, d, null), P(l, f), x && x.m(l, null), P(i, g), _ && _.m(i, null), P(i, y), O && O.m(i, null), P(t, w), ~E && N[E].m(t, null), b = !0, L || (M = [
1958
1958
  $(
1959
1959
  r,
1960
1960
  "click",
@@ -2038,12 +2038,12 @@ function vr(n) {
2038
2038
  "displayable",
2039
2039
  /*searchValue*/
2040
2040
  k[1] !== ""
2041
- ), /*enableReverse*/
2042
- k[5] === !0 ? _ ? (_.p(k, G), G[0] & /*enableReverse*/
2043
- 32 && q(_, 1)) : (_ = ai(k), _.c(), q(_, 1), _.m(i, v)) : _ && (lt(), Y(_, 1, 1, () => {
2041
+ ), /*reverse*/
2042
+ k[5] !== "never" ? _ ? (_.p(k, G), G[0] & /*reverse*/
2043
+ 32 && q(_, 1)) : (_ = ai(k), _.c(), q(_, 1), _.m(i, y)) : _ && (lt(), Y(_, 1, 1, () => {
2044
2044
  _ = null;
2045
2045
  }), ut()), O && O.p && (!b || G[1] & /*$$scope*/
2046
- 1073741824) && yn(
2046
+ 1073741824) && vn(
2047
2047
  O,
2048
2048
  C,
2049
2049
  k,
@@ -2055,7 +2055,7 @@ function vr(n) {
2055
2055
  k[61],
2056
2056
  G,
2057
2057
  null
2058
- ) : vn(
2058
+ ) : yn(
2059
2059
  /*$$scope*/
2060
2060
  k[61]
2061
2061
  ),
@@ -2114,7 +2114,7 @@ function pr(n, e, t) {
2114
2114
  "poi.restaurant": 18,
2115
2115
  "poi.aerodrome": 13
2116
2116
  };
2117
- let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: l = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: g = void 0 } = e, { debounceSearch: v = 200 } = e, { enableReverse: w = !1 } = e, { errorMessage: E = "Something went wrong…" } = e, { filter: h = () => !0 } = e, { flyTo: m = !0 } = e, { fuzzyMatch: b = !0 } = e, { language: L = void 0 } = e, { limit: M = void 0 } = e, { mapController: S = void 0 } = e, { minLength: x = 2 } = e, { noResultsMessage: _ = "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: C = "Search" } = e, { proximity: O = [{ type: "server-geolocation" }] } = e, { reverseActive: z = w === "always" } = e, { reverseButtonTitle: N = "toggle reverse geocoding" } = e, { searchValue: A = "" } = e, { pickedResultStyle: k = "full-geometry" } = e, { showPlaceType: G = "if-needed" } = e, { showResultsWhileTyping: te = !0 } = e, { autocompleteTimeout: ye = void 0 } = e, { selectFirst: Pe = !0 } = e, { flyToSelected: ht = !1 } = e, { markerOnSelected: Ke = !0 } = e, { types: Ne = void 0 } = e, { exhaustiveReverseGeocoding: gt = !1 } = e, { excludeTypes: Xe = !1 } = e, { zoom: Je = u } = e, { apiUrl: mt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: yt = {} } = e, { iconsBaseUrl: Ut = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/" } = e, { adjustUrlQuery: vt = () => {
2117
+ let { class: s = void 0 } = e, { apiKey: c } = e, { bbox: l = void 0 } = e, { clearButtonTitle: d = "clear" } = e, { clearOnBlur: a = !1 } = e, { collapsed: f = !1 } = e, { country: g = void 0 } = e, { debounceSearch: y = 200 } = e, { reverse: w = "never" } = e, { errorMessage: E = "Something went wrong…" } = e, { filter: h = () => !0 } = e, { flyTo: m = !0 } = e, { fuzzyMatch: b = !0 } = e, { language: L = void 0 } = e, { limit: M = void 0 } = e, { mapController: S = void 0 } = e, { minLength: x = 2 } = e, { noResultsMessage: _ = "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: C = "Search" } = e, { proximity: O = [{ type: "server-geolocation" }] } = e, { reverseActive: z = w === "always" } = e, { reverseButtonTitle: N = "toggle reverse geocoding" } = e, { searchValue: A = "" } = e, { pickedResultStyle: k = "full-geometry" } = e, { showPlaceType: G = "if-needed" } = e, { showResultsWhileTyping: te = !0 } = e, { autocompleteTimeout: ve = void 0 } = e, { selectFirst: Pe = !0 } = e, { flyToSelected: ht = !1 } = e, { markerOnSelected: Ke = !0 } = e, { types: Ne = void 0 } = e, { exhaustiveReverseGeocoding: gt = !1 } = e, { excludeTypes: Xe = !1 } = e, { zoom: Je = u } = e, { apiUrl: mt = "https://api.maptiler.com/geocoding" } = e, { fetchParameters: vt = {} } = e, { iconsBaseUrl: Ut = "https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.3/icons/" } = e, { adjustUrlQuery: yt = () => {
2118
2118
  } } = e;
2119
2119
  function Fi() {
2120
2120
  ce.focus();
@@ -2122,8 +2122,8 @@ function pr(n, e, t) {
2122
2122
  function Gi() {
2123
2123
  ce.blur();
2124
2124
  }
2125
- function Ft(y, j = !0, Z = !1) {
2126
- t(1, A = y), j ? (t(15, U = -1), jt()) : (wt(!Z, Z), setTimeout(() => {
2125
+ function Ft(v, j = !0, Z = !1) {
2126
+ t(1, A = v), j ? (t(15, U = -1), jt()) : (wt(!Z, Z), setTimeout(() => {
2127
2127
  ce.focus(), ce.select();
2128
2128
  }));
2129
2129
  }
@@ -2133,7 +2133,7 @@ function pr(n, e, t) {
2133
2133
  function qi() {
2134
2134
  t(56, Q = []), t(57, T = void 0);
2135
2135
  }
2136
- let Ie = !1, I, Q, T, Gt = "", ce, U = -1, fe, $e = [], Te, ve, re, et, pt;
2136
+ let Ie = !1, I, Q, T, Gt = "", ce, U = -1, fe, $e = [], Te, ye, re, et, pt;
2137
2137
  const Qi = /* @__PURE__ */ new Set(), pe = Ln();
2138
2138
  function Zi() {
2139
2139
  return !!re;
@@ -2141,45 +2141,45 @@ function pr(n, e, t) {
2141
2141
  _n(() => {
2142
2142
  S && (S.setEventHandler(void 0), S.indicateReverse(!1), S.setSelectedMarker(-1), S.setMarkers(void 0, void 0));
2143
2143
  });
2144
- function jt(y) {
2145
- if (ve && (window.clearTimeout(ve), ve = void 0), re) {
2144
+ function jt(v) {
2145
+ if (ye && (window.clearTimeout(ye), ye = void 0), re) {
2146
2146
  window.clearTimeout(re), t(58, re = void 0), Be(A, { exact: !0 });
2147
2147
  return;
2148
2148
  }
2149
2149
  if (U > -1 && I)
2150
2150
  t(57, T = I[U]), t(1, A = T.place_type[0] === "reverse" ? T.place_name : T.place_name.replace(/,.*/, "")), t(18, fe = void 0), t(56, Q = void 0), t(15, U = -1);
2151
2151
  else if (A) {
2152
- const j = y || !bt(A);
2152
+ const j = v || !bt(A);
2153
2153
  Be(A, { exact: !0 }).then(() => {
2154
2154
  t(56, Q = I), t(57, T = void 0), j && Hi();
2155
2155
  }).catch((Z) => t(18, fe = Z));
2156
2156
  }
2157
2157
  }
2158
- function bt(y) {
2158
+ function bt(v) {
2159
2159
  try {
2160
- return dr(y, 6);
2160
+ return dr(v, 6);
2161
2161
  } catch {
2162
2162
  return !1;
2163
2163
  }
2164
2164
  }
2165
- async function Be(y, { byId: j = !1, exact: Z = !1, appendSpace: oe = !1 } = {}) {
2165
+ async function Be(v, { byId: j = !1, exact: Z = !1, appendSpace: oe = !1 } = {}) {
2166
2166
  t(18, fe = void 0), Te == null || Te.abort();
2167
2167
  const ie = new AbortController();
2168
2168
  t(19, Te = ie);
2169
2169
  try {
2170
- const R = bt(y), V = new URLSearchParams();
2170
+ const R = bt(v), V = new URLSearchParams();
2171
2171
  if (L !== void 0 && V.set("language", Array.isArray(L) ? L.join(",") : L ?? ""), Ne && V.set("types", Ne.join(",")), Xe && V.set("excludeTypes", String(Xe)), l && V.set("bbox", l.map((it) => it.toFixed(6)).join(",")), g && V.set("country", Array.isArray(g) ? g.join(",") : g), !j && !R) {
2172
2172
  const it = await tr(S, O, ie);
2173
2173
  it && V.set("proximity", it), (Z || !te) && V.set("autocomplete", "false"), V.set("fuzzyMatch", String(b));
2174
2174
  }
2175
- M !== void 0 && (gt || !R || (Ne == null ? void 0 : Ne.length) === 1) && V.set("limit", String(M)), V.set("key", c), vt(V);
2176
- const tt = mt + "/" + encodeURIComponent(R ? R.decimalLongitude + "," + R.decimalLatitude : y + (oe ? " " : "")) + ".json?" + V.toString();
2175
+ M !== void 0 && (gt || !R || (Ne == null ? void 0 : Ne.length) === 1) && V.set("limit", String(M)), V.set("key", c), yt(V);
2176
+ const tt = mt + "/" + encodeURIComponent(R ? R.decimalLongitude + "," + R.decimalLatitude : v + (oe ? " " : "")) + ".json?" + V.toString();
2177
2177
  if (tt === Gt) {
2178
2178
  j ? (t(14, I = void 0), t(57, T = $e[0])) : t(14, I = $e);
2179
2179
  return;
2180
2180
  }
2181
2181
  Gt = tt;
2182
- const _t = await fetch(tt, { signal: ie.signal, ...yt });
2182
+ const _t = await fetch(tt, { signal: ie.signal, ...vt });
2183
2183
  if (!_t.ok)
2184
2184
  throw new Error(await _t.text());
2185
2185
  const Lt = await _t.json();
@@ -2214,22 +2214,22 @@ function pr(n, e, t) {
2214
2214
  var oe;
2215
2215
  if (!(Q != null && Q.length) || !m)
2216
2216
  return;
2217
- const y = [180, 90, -180, -90], j = !Q.some((ie) => !ie.matching_text);
2217
+ const v = [180, 90, -180, -90], j = !Q.some((ie) => !ie.matching_text);
2218
2218
  let Z;
2219
2219
  for (const ie of Q) {
2220
2220
  const R = De(ie);
2221
2221
  if (Z = Z === void 0 ? R : R === void 0 ? Z : Math.max(Z, R), j || !ie.matching_text)
2222
2222
  for (const V of [0, 1, 2, 3])
2223
- y[V] = Math[V < 2 ? "min" : "max"](y[V], ((oe = ie.bbox) == null ? void 0 : oe[V]) ?? ie.center[V % 2]);
2223
+ v[V] = Math[V < 2 ? "min" : "max"](v[V], ((oe = ie.bbox) == null ? void 0 : oe[V]) ?? ie.center[V % 2]);
2224
2224
  }
2225
- S && Q.length > 0 && (T && y[0] === y[2] && y[1] === y[3] ? S.flyTo(T.center, De(T)) : S.fitBounds(ct(y), 50, Z));
2225
+ S && Q.length > 0 && (T && v[0] === v[2] && v[1] === v[3] ? S.flyTo(T.center, De(T)) : S.fitBounds(ct(v), 50, Z));
2226
2226
  }
2227
- function De(y) {
2227
+ function De(v) {
2228
2228
  var Z;
2229
- if (!y.bbox || y.bbox[0] !== y.bbox[2] && y.bbox[1] !== y.bbox[3])
2229
+ if (!v.bbox || v.bbox[0] !== v.bbox[2] && v.bbox[1] !== v.bbox[3])
2230
2230
  return;
2231
- const j = y.id.replace(/\..*/, "");
2232
- return (Array.isArray((Z = y.properties) == null ? void 0 : Z.categories) ? y.properties.categories.reduce(
2231
+ const j = v.id.replace(/\..*/, "");
2232
+ return (Array.isArray((Z = v.properties) == null ? void 0 : Z.categories) ? v.properties.categories.reduce(
2233
2233
  (oe, ie) => {
2234
2234
  const R = Je[j + "." + ie];
2235
2235
  return oe === void 0 ? R : R === void 0 ? oe : Math.max(oe, R);
@@ -2237,40 +2237,40 @@ function pr(n, e, t) {
2237
2237
  void 0
2238
2238
  ) : void 0) ?? Je[j];
2239
2239
  }
2240
- function Vi(y) {
2241
- t(0, z = w === "always"), t(14, I = void 0), t(57, T = void 0), t(15, U = -1), Ft(y[1].toFixed(6) + ", " + er(y[0], [-180, 180], !0).toFixed(6), !1, !0);
2240
+ function Vi(v) {
2241
+ t(0, z = w === "always"), t(14, I = void 0), t(57, T = void 0), t(15, U = -1), Ft(v[1].toFixed(6) + ", " + er(v[0], [-180, 180], !0).toFixed(6), !1, !0);
2242
2242
  }
2243
- function Yi(y) {
2243
+ function Yi(v) {
2244
2244
  if (!I)
2245
2245
  return;
2246
- let j = y.key === "ArrowDown" ? 1 : y.key === "ArrowUp" ? -1 : 0;
2247
- j && (U === (Pe ? 0 : -1) && j === -1 && t(15, U = I.length), t(15, U += j), U >= I.length && t(15, U = -1), U < 0 && Pe && t(15, U = 0), y.preventDefault());
2246
+ let j = v.key === "ArrowDown" ? 1 : v.key === "ArrowUp" ? -1 : 0;
2247
+ j && (U === (Pe ? 0 : -1) && j === -1 && t(15, U = I.length), t(15, U += j), U >= I.length && t(15, U = -1), U < 0 && Pe && t(15, U = 0), v.preventDefault());
2248
2248
  }
2249
- function wt(y = !0, j = !1) {
2250
- if (t(18, fe = void 0), ve && (window.clearTimeout(ve), ve = void 0), re && (window.clearTimeout(re), t(58, re = void 0)), !te && !j || A.length < x) {
2249
+ function wt(v = !0, j = !1) {
2250
+ if (t(18, fe = void 0), ye && (window.clearTimeout(ye), ye = void 0), re && (window.clearTimeout(re), t(58, re = void 0)), !te && !j || A.length < x) {
2251
2251
  t(14, I = void 0);
2252
2252
  return;
2253
2253
  }
2254
2254
  const Z = A;
2255
- ve = window.setTimeout(
2255
+ ye = window.setTimeout(
2256
2256
  () => {
2257
- ve = void 0, Be(Z).catch((oe) => t(18, fe = oe));
2257
+ ye = void 0, Be(Z).catch((oe) => t(18, fe = oe));
2258
2258
  },
2259
- y ? v : 0
2259
+ v ? y : 0
2260
2260
  ), A.endsWith(" ") || t(58, re = window.setTimeout(
2261
2261
  () => {
2262
2262
  t(58, re = void 0), Be(Z, { appendSpace: !0 }).catch((oe) => t(18, fe = oe));
2263
2263
  },
2264
- ye
2264
+ ve
2265
2265
  ));
2266
2266
  }
2267
- function Et(y) {
2268
- t(57, T = y), t(1, A = y.place_name), t(15, U = -1);
2267
+ function Et(v) {
2268
+ t(57, T = v), t(1, A = v.place_name), t(15, U = -1);
2269
2269
  }
2270
2270
  const Ki = () => ce.focus();
2271
- function Xi(y) {
2272
- Ct[y ? "unshift" : "push"](() => {
2273
- ce = y, t(17, ce);
2271
+ function Xi(v) {
2272
+ Ct[v ? "unshift" : "push"](() => {
2273
+ ce = v, t(17, ce);
2274
2274
  });
2275
2275
  }
2276
2276
  function Ji() {
@@ -2278,40 +2278,40 @@ function pr(n, e, t) {
2278
2278
  }
2279
2279
  const $i = () => t(13, Ie = !0), en = () => t(13, Ie = !1), tn = () => wt(), nn = () => {
2280
2280
  t(1, A = ""), ce.focus();
2281
- }, rn = () => t(0, z = !z), on = () => t(18, fe = void 0), sn = (y) => t(15, U = y), ln = (y) => Et(y), un = () => {
2281
+ }, rn = () => t(0, z = !z), on = () => t(18, fe = void 0), sn = (v) => t(15, U = v), ln = (v) => Et(v), un = () => {
2282
2282
  Pe || t(15, U = -1);
2283
2283
  }, an = () => {
2284
2284
  };
2285
- return n.$$set = (y) => {
2286
- "class" in y && t(2, s = y.class), "apiKey" in y && t(26, c = y.apiKey), "bbox" in y && t(27, l = y.bbox), "clearButtonTitle" in y && t(3, d = y.clearButtonTitle), "clearOnBlur" in y && t(28, a = y.clearOnBlur), "collapsed" in y && t(4, f = y.collapsed), "country" in y && t(29, g = y.country), "debounceSearch" in y && t(30, v = y.debounceSearch), "enableReverse" in y && t(5, w = y.enableReverse), "errorMessage" in y && t(6, E = y.errorMessage), "filter" in y && t(31, h = y.filter), "flyTo" in y && t(32, m = y.flyTo), "fuzzyMatch" in y && t(33, b = y.fuzzyMatch), "language" in y && t(34, L = y.language), "limit" in y && t(35, M = y.limit), "mapController" in y && t(36, S = y.mapController), "minLength" in y && t(37, x = y.minLength), "noResultsMessage" in y && t(7, _ = y.noResultsMessage), "placeholder" in y && t(8, C = y.placeholder), "proximity" in y && t(38, O = y.proximity), "reverseActive" in y && t(0, z = y.reverseActive), "reverseButtonTitle" in y && t(9, N = y.reverseButtonTitle), "searchValue" in y && t(1, A = y.searchValue), "pickedResultStyle" in y && t(39, k = y.pickedResultStyle), "showPlaceType" in y && t(10, G = y.showPlaceType), "showResultsWhileTyping" in y && t(40, te = y.showResultsWhileTyping), "autocompleteTimeout" in y && t(41, ye = y.autocompleteTimeout), "selectFirst" in y && t(11, Pe = y.selectFirst), "flyToSelected" in y && t(42, ht = y.flyToSelected), "markerOnSelected" in y && t(43, Ke = y.markerOnSelected), "types" in y && t(44, Ne = y.types), "exhaustiveReverseGeocoding" in y && t(45, gt = y.exhaustiveReverseGeocoding), "excludeTypes" in y && t(46, Xe = y.excludeTypes), "zoom" in y && t(47, Je = y.zoom), "apiUrl" in y && t(48, mt = y.apiUrl), "fetchParameters" in y && t(49, yt = y.fetchParameters), "iconsBaseUrl" in y && t(12, Ut = y.iconsBaseUrl), "adjustUrlQuery" in y && t(50, vt = y.adjustUrlQuery), "$$scope" in y && t(61, o = y.$$scope);
2285
+ return n.$$set = (v) => {
2286
+ "class" in v && t(2, s = v.class), "apiKey" in v && t(26, c = v.apiKey), "bbox" in v && t(27, l = v.bbox), "clearButtonTitle" in v && t(3, d = v.clearButtonTitle), "clearOnBlur" in v && t(28, a = v.clearOnBlur), "collapsed" in v && t(4, f = v.collapsed), "country" in v && t(29, g = v.country), "debounceSearch" in v && t(30, y = v.debounceSearch), "reverse" in v && t(5, w = v.reverse), "errorMessage" in v && t(6, E = v.errorMessage), "filter" in v && t(31, h = v.filter), "flyTo" in v && t(32, m = v.flyTo), "fuzzyMatch" in v && t(33, b = v.fuzzyMatch), "language" in v && t(34, L = v.language), "limit" in v && t(35, M = v.limit), "mapController" in v && t(36, S = v.mapController), "minLength" in v && t(37, x = v.minLength), "noResultsMessage" in v && t(7, _ = v.noResultsMessage), "placeholder" in v && t(8, C = v.placeholder), "proximity" in v && t(38, O = v.proximity), "reverseActive" in v && t(0, z = v.reverseActive), "reverseButtonTitle" in v && t(9, N = v.reverseButtonTitle), "searchValue" in v && t(1, A = v.searchValue), "pickedResultStyle" in v && t(39, k = v.pickedResultStyle), "showPlaceType" in v && t(10, G = v.showPlaceType), "showResultsWhileTyping" in v && t(40, te = v.showResultsWhileTyping), "autocompleteTimeout" in v && t(41, ve = v.autocompleteTimeout), "selectFirst" in v && t(11, Pe = v.selectFirst), "flyToSelected" in v && t(42, ht = v.flyToSelected), "markerOnSelected" in v && t(43, Ke = v.markerOnSelected), "types" in v && t(44, Ne = v.types), "exhaustiveReverseGeocoding" in v && t(45, gt = v.exhaustiveReverseGeocoding), "excludeTypes" in v && t(46, Xe = v.excludeTypes), "zoom" in v && t(47, Je = v.zoom), "apiUrl" in v && t(48, mt = v.apiUrl), "fetchParameters" in v && t(49, vt = v.fetchParameters), "iconsBaseUrl" in v && t(12, Ut = v.iconsBaseUrl), "adjustUrlQuery" in v && t(50, yt = v.adjustUrlQuery), "$$scope" in v && t(61, o = v.$$scope);
2287
2287
  }, n.$$.update = () => {
2288
- if (n.$$.dirty[0] & /*enableReverse*/
2288
+ if (n.$$.dirty[0] & /*reverse*/
2289
2289
  32 && t(0, z = w === "always"), n.$$.dirty[0] & /*focused, clearOnBlur*/
2290
2290
  268443648 && setTimeout(() => {
2291
2291
  t(16, et = Ie), a && !Ie && t(1, A = "");
2292
2292
  }), n.$$.dirty[0] & /*searchValue, listFeatures*/
2293
2293
  16386 | n.$$.dirty[1] & /*minLength*/
2294
2294
  64 && A.length < x && (t(57, T = void 0), t(14, I = void 0), t(18, fe = void 0), t(56, Q = I)), n.$$.dirty[1] & /*pickedResultStyle, picked*/
2295
- 67109120 && k !== "marker-only" && T && !T.address && T.geometry.type === "Point" && T.place_type[0] !== "reverse" && Be(T.id, { byId: !0 }).catch((y) => t(18, fe = y)), n.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2295
+ 67109120 && k !== "marker-only" && T && !T.address && T.geometry.type === "Point" && T.place_type[0] !== "reverse" && Be(T.id, { byId: !0 }).catch((v) => t(18, fe = v)), n.$$.dirty[1] & /*mapController, picked, prevIdToFly, flyTo*/
2296
2296
  335544354 && (S && T && T.id !== pt && m && (!T.bbox || T.bbox[0] === T.bbox[2] && T.bbox[1] === T.bbox[3] ? S.flyTo(T.center, De(T)) : S.fitBounds(ct(T.bbox), 50, De(T)), t(14, I = void 0), t(56, Q = void 0), t(15, U = -1)), t(59, pt = T == null ? void 0 : T.id)), n.$$.dirty[0] & /*selectFirst, listFeatures*/
2297
2297
  18432 && Pe && I != null && I.length && (Zi() || t(15, U = 0)), n.$$.dirty[0] & /*searchValue*/
2298
2298
  2 && t(15, U = -1), n.$$.dirty[0] & /*listFeatures*/
2299
2299
  16384 | n.$$.dirty[1] & /*markedFeatures*/
2300
2300
  33554432 && Q !== I && t(56, Q = void 0), n.$$.dirty[0] & /*reverseActive, listFeatures, focusedDelayed*/
2301
2301
  81921 | n.$$.dirty[1] & /*mapController, markedFeatures*/
2302
- 33554464 && S && S.setEventHandler((y) => {
2303
- switch (y.type) {
2302
+ 33554464 && S && S.setEventHandler((v) => {
2303
+ switch (v.type) {
2304
2304
  case "mapClick":
2305
- z && Vi(y.coordinates);
2305
+ z && Vi(v.coordinates);
2306
2306
  break;
2307
2307
  case "markerClick":
2308
2308
  {
2309
- const j = I == null ? void 0 : I.find((Z) => Z.id === y.id);
2309
+ const j = I == null ? void 0 : I.find((Z) => Z.id === v.id);
2310
2310
  j && Et(j);
2311
2311
  }
2312
2312
  break;
2313
2313
  case "markerMouseEnter":
2314
- Q && t(15, U = et ? (I == null ? void 0 : I.findIndex((j) => j.id === y.id)) ?? -1 : -1);
2314
+ Q && t(15, U = et ? (I == null ? void 0 : I.findIndex((j) => j.id === v.id)) ?? -1 : -1);
2315
2315
  break;
2316
2316
  case "markerMouseLeave":
2317
2317
  Q && t(15, U = -1);
@@ -2328,8 +2328,8 @@ function pr(n, e, t) {
2328
2328
  671088640 && i && (window.clearTimeout(re), t(58, re = void 0)), n.$$.dirty[0] & /*searchValue*/
2329
2329
  2 | n.$$.dirty[1] & /*mapController*/
2330
2330
  32 && S) {
2331
- const y = bt(A);
2332
- S.setReverseMarker(y ? [y.decimalLongitude, y.decimalLatitude] : void 0);
2331
+ const v = bt(A);
2332
+ S.setReverseMarker(v ? [v.decimalLongitude, v.decimalLatitude] : void 0);
2333
2333
  }
2334
2334
  n.$$.dirty[1] & /*selected*/
2335
2335
  536870912 && pe("select", { feature: i }), n.$$.dirty[1] & /*picked*/
@@ -2374,7 +2374,7 @@ function pr(n, e, t) {
2374
2374
  l,
2375
2375
  a,
2376
2376
  g,
2377
- v,
2377
+ y,
2378
2378
  h,
2379
2379
  m,
2380
2380
  b,
@@ -2385,7 +2385,7 @@ function pr(n, e, t) {
2385
2385
  O,
2386
2386
  k,
2387
2387
  te,
2388
- ye,
2388
+ ve,
2389
2389
  ht,
2390
2390
  Ke,
2391
2391
  Ne,
@@ -2393,8 +2393,8 @@ function pr(n, e, t) {
2393
2393
  Xe,
2394
2394
  Je,
2395
2395
  mt,
2396
- yt,
2397
2396
  vt,
2397
+ yt,
2398
2398
  Fi,
2399
2399
  Gi,
2400
2400
  Ft,
@@ -2428,7 +2428,7 @@ let br = class extends ke {
2428
2428
  this,
2429
2429
  e,
2430
2430
  pr,
2431
- vr,
2431
+ yr,
2432
2432
  xe,
2433
2433
  {
2434
2434
  ZOOM_DEFAULTS: 25,
@@ -2440,7 +2440,7 @@ let br = class extends ke {
2440
2440
  collapsed: 4,
2441
2441
  country: 29,
2442
2442
  debounceSearch: 30,
2443
- enableReverse: 5,
2443
+ reverse: 5,
2444
2444
  errorMessage: 6,
2445
2445
  filter: 31,
2446
2446
  flyTo: 32,
@@ -2946,18 +2946,18 @@ function Ye(n) {
2946
2946
  }
2947
2947
  const Cr = (3 + 16 * de) * de, Nr = (2 + 12 * de) * de, Tr = (9 + 64 * de) * de * de, Ae = Ye(4), di = Ye(8), hi = Ye(12), gi = Ye(16), J = Ye(4);
2948
2948
  function Rr(n, e, t, i, r, o, u) {
2949
- let s, c, l, d, a, f, g, v, w, E, h, m, b, L, M, S, x, _;
2949
+ let s, c, l, d, a, f, g, y, w, E, h, m, b, L, M, S, x, _;
2950
2950
  const C = n - r, O = t - r, z = e - o, N = i - o;
2951
- L = C * N, f = K * C, g = f - (f - C), v = C - g, f = K * N, w = f - (f - N), E = N - w, M = v * E - (L - g * w - v * w - g * E), S = z * O, f = K * z, g = f - (f - z), v = z - g, f = K * O, w = f - (f - O), E = O - w, x = v * E - (S - g * w - v * w - g * E), h = M - x, a = M - h, Ae[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, Ae[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, Ae[2] = m - (_ - a) + (h - a), Ae[3] = _;
2951
+ L = C * N, f = K * C, g = f - (f - C), y = C - g, f = K * N, w = f - (f - N), E = N - w, M = y * E - (L - g * w - y * w - g * E), S = z * O, f = K * z, g = f - (f - z), y = z - g, f = K * O, w = f - (f - O), E = O - w, x = y * E - (S - g * w - y * w - g * E), h = M - x, a = M - h, Ae[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, Ae[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, Ae[2] = m - (_ - a) + (h - a), Ae[3] = _;
2952
2952
  let A = kr(4, Ae), k = Nr * u;
2953
2953
  if (A >= k || -A >= k || (a = n - C, s = n - (C + a) + (a - r), a = t - O, l = t - (O + a) + (a - r), a = e - z, c = e - (z + a) + (a - o), a = i - N, d = i - (N + a) + (a - o), s === 0 && c === 0 && l === 0 && d === 0) || (k = Tr * u + Mr * Math.abs(A), A += C * d + N * s - (z * l + O * c), A >= k || -A >= k)) return A;
2954
- L = s * N, f = K * s, g = f - (f - s), v = s - g, f = K * N, w = f - (f - N), E = N - w, M = v * E - (L - g * w - v * w - g * E), S = c * O, f = K * c, g = f - (f - c), v = c - g, f = K * O, w = f - (f - O), E = O - w, x = v * E - (S - g * w - v * w - g * E), h = M - x, a = M - h, J[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, J[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, J[2] = m - (_ - a) + (h - a), J[3] = _;
2954
+ L = s * N, f = K * s, g = f - (f - s), y = s - g, f = K * N, w = f - (f - N), E = N - w, M = y * E - (L - g * w - y * w - g * E), S = c * O, f = K * c, g = f - (f - c), y = c - g, f = K * O, w = f - (f - O), E = O - w, x = y * E - (S - g * w - y * w - g * E), h = M - x, a = M - h, J[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, J[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, J[2] = m - (_ - a) + (h - a), J[3] = _;
2955
2955
  const G = kt(4, Ae, 4, J, di);
2956
- L = C * d, f = K * C, g = f - (f - C), v = C - g, f = K * d, w = f - (f - d), E = d - w, M = v * E - (L - g * w - v * w - g * E), S = z * l, f = K * z, g = f - (f - z), v = z - g, f = K * l, w = f - (f - l), E = l - w, x = v * E - (S - g * w - v * w - g * E), h = M - x, a = M - h, J[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, J[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, J[2] = m - (_ - a) + (h - a), J[3] = _;
2956
+ L = C * d, f = K * C, g = f - (f - C), y = C - g, f = K * d, w = f - (f - d), E = d - w, M = y * E - (L - g * w - y * w - g * E), S = z * l, f = K * z, g = f - (f - z), y = z - g, f = K * l, w = f - (f - l), E = l - w, x = y * E - (S - g * w - y * w - g * E), h = M - x, a = M - h, J[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, J[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, J[2] = m - (_ - a) + (h - a), J[3] = _;
2957
2957
  const te = kt(G, di, 4, J, hi);
2958
- L = s * d, f = K * s, g = f - (f - s), v = s - g, f = K * d, w = f - (f - d), E = d - w, M = v * E - (L - g * w - v * w - g * E), S = c * l, f = K * c, g = f - (f - c), v = c - g, f = K * l, w = f - (f - l), E = l - w, x = v * E - (S - g * w - v * w - g * E), h = M - x, a = M - h, J[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, J[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, J[2] = m - (_ - a) + (h - a), J[3] = _;
2959
- const ye = kt(te, hi, 4, J, gi);
2960
- return gi[ye - 1];
2958
+ L = s * d, f = K * s, g = f - (f - s), y = s - g, f = K * d, w = f - (f - d), E = d - w, M = y * E - (L - g * w - y * w - g * E), S = c * l, f = K * c, g = f - (f - c), y = c - g, f = K * l, w = f - (f - l), E = l - w, x = y * E - (S - g * w - y * w - g * E), h = M - x, a = M - h, J[0] = M - (h + a) + (a - x), m = L + h, a = m - L, b = L - (m - a) + (h - a), h = b - S, a = b - h, J[1] = b - (h + a) + (a - S), _ = m + h, a = _ - m, J[2] = m - (_ - a) + (h - a), J[3] = _;
2959
+ const ve = kt(te, hi, 4, J, gi);
2960
+ return gi[ve - 1];
2961
2961
  }
2962
2962
  function Pr(n, e, t, i, r, o) {
2963
2963
  const u = (e - o) * (t - r), s = (n - r) * (i - o), c = u - s, l = Math.abs(u + s);
@@ -2990,7 +2990,7 @@ class Or {
2990
2990
  this.reset();
2991
2991
  }
2992
2992
  reset() {
2993
- this.xRounder = new yi(), this.yRounder = new yi();
2993
+ this.xRounder = new vi(), this.yRounder = new vi();
2994
2994
  }
2995
2995
  round(e, t) {
2996
2996
  return {
@@ -2999,7 +2999,7 @@ class Or {
2999
2999
  };
3000
3000
  }
3001
3001
  }
3002
- class yi {
3002
+ class vi {
3003
3003
  constructor() {
3004
3004
  this.tree = new Bt(), this.round(0);
3005
3005
  }
@@ -3018,7 +3018,7 @@ class yi {
3018
3018
  return r !== null && mi(t.key, r.key) === 0 ? (this.tree.remove(e), r.key) : e;
3019
3019
  }
3020
3020
  }
3021
- const Ve = new Or(), at = (n, e) => n.x * e.y - n.y * e.x, zi = (n, e) => n.x * e.x + n.y * e.y, vi = (n, e, t) => {
3021
+ const Ve = new Or(), at = (n, e) => n.x * e.y - n.y * e.x, zi = (n, e) => n.x * e.x + n.y * e.y, yi = (n, e, t) => {
3022
3022
  const i = Pr(n.x, n.y, e.x, e.y, t.x, t.y);
3023
3023
  return i > 0 ? -1 : i < 0 ? 1 : 0;
3024
3024
  }, ft = (n) => Math.sqrt(zi(n, n)), Ar = (n, e, t) => {
@@ -3186,9 +3186,9 @@ class Ee {
3186
3186
  if (a > 0) return -1;
3187
3187
  }
3188
3188
  if (o !== u) {
3189
- const a = l - s, f = o - i, g = d - c, v = u - r;
3190
- if (a > f && g < v) return 1;
3191
- if (a < f && g > v) return -1;
3189
+ const a = l - s, f = o - i, g = d - c, y = u - r;
3190
+ if (a > f && g < y) return 1;
3191
+ if (a < f && g > y) return -1;
3192
3192
  }
3193
3193
  return o > u ? 1 : o < u || l < d ? -1 : l > d ? 1 : e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
3194
3194
  }
@@ -3552,8 +3552,8 @@ class dt {
3552
3552
  index: l.length,
3553
3553
  point: s.point
3554
3554
  });
3555
- const v = s.getLeftmostComparator(u);
3556
- c = f.sort(v)[0].otherSE;
3555
+ const y = s.getLeftmostComparator(u);
3556
+ c = f.sort(y)[0].otherSE;
3557
3557
  break;
3558
3558
  }
3559
3559
  t.push(new dt(l));
@@ -3571,11 +3571,11 @@ class dt {
3571
3571
  const t = [e];
3572
3572
  for (let l = 1, d = this.events.length - 1; l < d; l++) {
3573
3573
  const a = this.events[l].point, f = this.events[l + 1].point;
3574
- vi(a, e, f) !== 0 && (t.push(a), e = a);
3574
+ yi(a, e, f) !== 0 && (t.push(a), e = a);
3575
3575
  }
3576
3576
  if (t.length === 1) return null;
3577
3577
  const i = t[0], r = t[1];
3578
- vi(i, e, r) === 0 && t.shift(), t.push(t[0]);
3578
+ yi(i, e, r) === 0 && t.shift(), t.push(t[0]);
3579
3579
  const o = this.isExteriorRing() ? 1 : -1, u = this.isExteriorRing() ? 0 : t.length - 1, s = this.isExteriorRing() ? t.length : -1, c = [];
3580
3580
  for (let l = u; l != s; l += o) c.push([t[l].x, t[l].y]);
3581
3581
  return c;
@@ -3672,7 +3672,7 @@ class Fr {
3672
3672
  const a = s.getIntersection(t);
3673
3673
  if (a !== null && (t.isAnEndpoint(a) || (l = a), !s.isAnEndpoint(a))) {
3674
3674
  const f = this._splitSafely(s, a);
3675
- for (let g = 0, v = f.length; g < v; g++)
3675
+ for (let g = 0, y = f.length; g < y; g++)
3676
3676
  i.push(f[g]);
3677
3677
  }
3678
3678
  }
@@ -3681,7 +3681,7 @@ class Fr {
3681
3681
  const a = c.getIntersection(t);
3682
3682
  if (a !== null && (t.isAnEndpoint(a) || (d = a), !c.isAnEndpoint(a))) {
3683
3683
  const f = this._splitSafely(c, a);
3684
- for (let g = 0, v = f.length; g < v; g++)
3684
+ for (let g = 0, y = f.length; g < y; g++)
3685
3685
  i.push(f[g]);
3686
3686
  }
3687
3687
  }
@@ -3689,7 +3689,7 @@ class Fr {
3689
3689
  let a = null;
3690
3690
  l === null ? a = d : d === null ? a = l : a = se.comparePoints(l, d) <= 0 ? l : d, this.queue.remove(t.rightSE), i.push(t.rightSE);
3691
3691
  const f = t.split(a);
3692
- for (let g = 0, v = f.length; g < v; g++)
3692
+ for (let g = 0, y = f.length; g < y; g++)
3693
3693
  i.push(f[g]);
3694
3694
  }
3695
3695
  i.length > 0 ? (this.tree.remove(t), i.push(e)) : (this.segments.push(t), t.prev = s);
@@ -3739,14 +3739,14 @@ class jr {
3739
3739
  if (ue.type === "intersection")
3740
3740
  for (let a = 0, f = r.length; a < f; a++) {
3741
3741
  const g = r[a];
3742
- for (let v = a + 1, w = r.length; v < w; v++)
3743
- if (At(g.bbox, r[v].bbox) === null) return [];
3742
+ for (let y = a + 1, w = r.length; y < w; y++)
3743
+ if (At(g.bbox, r[y].bbox) === null) return [];
3744
3744
  }
3745
3745
  const o = new Bt(se.compare);
3746
3746
  for (let a = 0, f = r.length; a < f; a++) {
3747
3747
  const g = r[a].getSweepEvents();
3748
- for (let v = 0, w = g.length; v < w; v++)
3749
- if (o.insert(g[v]), o.size > Li)
3748
+ for (let y = 0, w = g.length; y < w; y++)
3749
+ if (o.insert(g[y]), o.size > Li)
3750
3750
  throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).");
3751
3751
  }
3752
3752
  const u = new Fr(o);
@@ -3762,7 +3762,7 @@ class jr {
3762
3762
  if (u.segments.length > Gr)
3763
3763
  throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");
3764
3764
  const f = u.process(a);
3765
- for (let g = 0, v = f.length; g < v; g++) {
3765
+ for (let g = 0, y = f.length; g < y; g++) {
3766
3766
  const w = f[g];
3767
3767
  w.consumedBy === void 0 && o.insert(w);
3768
3768
  }
@@ -3798,8 +3798,8 @@ var Bi = {
3798
3798
  };
3799
3799
  function Di(n, e, t) {
3800
3800
  if (n !== null)
3801
- for (var i, r, o, u, s, c, l, d = 0, a = 0, f, g = n.type, v = g === "FeatureCollection", w = g === "Feature", E = v ? n.features.length : 1, h = 0; h < E; h++) {
3802
- l = v ? n.features[h].geometry : w ? n.geometry : n, f = l ? l.type === "GeometryCollection" : !1, s = f ? l.geometries.length : 1;
3801
+ for (var i, r, o, u, s, c, l, d = 0, a = 0, f, g = n.type, y = g === "FeatureCollection", w = g === "Feature", E = y ? n.features.length : 1, h = 0; h < E; h++) {
3802
+ l = y ? n.features[h].geometry : w ? n.geometry : n, f = l ? l.type === "GeometryCollection" : !1, s = f ? l.geometries.length : 1;
3803
3803
  for (var m = 0; m < s; m++) {
3804
3804
  var b = 0, L = 0;
3805
3805
  if (u = f ? l.geometries[m] : l, u !== null) {
@@ -3884,9 +3884,9 @@ function Di(n, e, t) {
3884
3884
  }
3885
3885
  }
3886
3886
  function Dt(n, e) {
3887
- var t, i, r, o, u, s, c, l, d, a, f = 0, g = n.type === "FeatureCollection", v = n.type === "Feature", w = g ? n.features.length : 1;
3887
+ var t, i, r, o, u, s, c, l, d, a, f = 0, g = n.type === "FeatureCollection", y = n.type === "Feature", w = g ? n.features.length : 1;
3888
3888
  for (t = 0; t < w; t++) {
3889
- for (s = g ? n.features[t].geometry : v ? n.geometry : n, l = g ? n.features[t].properties : v ? n.properties : {}, d = g ? n.features[t].bbox : v ? n.bbox : void 0, a = g ? n.features[t].id : v ? n.id : void 0, c = s ? s.type === "GeometryCollection" : !1, u = c ? s.geometries.length : 1, r = 0; r < u; r++) {
3889
+ for (s = g ? n.features[t].geometry : y ? n.geometry : n, l = g ? n.features[t].properties : y ? n.properties : {}, d = g ? n.features[t].bbox : y ? n.bbox : void 0, a = g ? n.features[t].id : y ? n.id : void 0, c = s ? s.type === "GeometryCollection" : !1, u = c ? s.geometries.length : 1, r = 0; r < u; r++) {
3890
3890
  if (o = c ? s.geometries[r] : s, o === null) {
3891
3891
  if (e(
3892
3892
  null,
@@ -4100,7 +4100,7 @@ function to(n, e, t = !0, i = !0, r = {}, o = {}, u = Mi, s = !1) {
4100
4100
  source: ot
4101
4101
  });
4102
4102
  }
4103
- function v(h) {
4103
+ function y(h) {
4104
4104
  f = h, g();
4105
4105
  }
4106
4106
  n.on("styledata", () => {
@@ -4148,7 +4148,7 @@ function to(n, e, t = !0, i = !0, r = {}, o = {}, u = Mi, s = !1) {
4148
4148
  setMarkers(h, m) {
4149
4149
  for (const b of l)
4150
4150
  b.remove();
4151
- if (l.length = 0, v(void 0), !!e) {
4151
+ if (l.length = 0, y(void 0), !!e) {
4152
4152
  if (m) {
4153
4153
  let b = !1;
4154
4154
  if (m.geometry.type === "GeometryCollection") {
@@ -4166,13 +4166,13 @@ function to(n, e, t = !0, i = !0, r = {}, o = {}, u = Mi, s = !1) {
4166
4166
  ...m,
4167
4167
  geometry: M.geometry
4168
4168
  },
4169
- v
4169
+ y
4170
4170
  ), b = !0;
4171
4171
  } else {
4172
4172
  const M = m.geometry.geometries.filter(
4173
4173
  (S) => S.type === "LineString" || S.type === "MultiLineString"
4174
4174
  );
4175
- M.length > 0 && (v({
4175
+ M.length > 0 && (y({
4176
4176
  ...m,
4177
4177
  geometry: { type: "GeometryCollection", geometries: M }
4178
4178
  }), b = !0);
@@ -4180,9 +4180,9 @@ function to(n, e, t = !0, i = !0, r = {}, o = {}, u = Mi, s = !1) {
4180
4180
  }
4181
4181
  if (!b) {
4182
4182
  if (m.geometry.type === "Polygon" || m.geometry.type === "MultiPolygon")
4183
- xi(m, v);
4183
+ xi(m, y);
4184
4184
  else if (m.geometry.type === "LineString" || m.geometry.type === "MultiLineString") {
4185
- v(m);
4185
+ y(m);
4186
4186
  return;
4187
4187
  }
4188
4188
  }
@@ -4235,7 +4235,7 @@ function to(n, e, t = !0, i = !0, r = {}, o = {}, u = Mi, s = !1) {
4235
4235
  };
4236
4236
  }
4237
4237
  function io(n, e, t) {
4238
- var v, w;
4238
+ var y, w;
4239
4239
  class i {
4240
4240
  constructor(h, m) {
4241
4241
  ee(this, "type");
@@ -4303,7 +4303,7 @@ function io(n, e, t) {
4303
4303
  class f extends n {
4304
4304
  constructor(m = {}) {
4305
4305
  super();
4306
- St(this, v);
4306
+ St(this, y);
4307
4307
  St(this, w);
4308
4308
  nt(this, w, m);
4309
4309
  }
@@ -4335,15 +4335,15 @@ function io(n, e, t) {
4335
4335
  };
4336
4336
  if (!z.apiKey)
4337
4337
  throw new Error("no apiKey provided");
4338
- return nt(this, v, new br({ target: b, props: z })), H(this, v).$on("select", (N) => {
4338
+ return nt(this, y, new br({ target: b, props: z })), H(this, y).$on("select", (N) => {
4339
4339
  this.fire(new r(this, N.detail));
4340
- }), H(this, v).$on("pick", (N) => {
4340
+ }), H(this, y).$on("pick", (N) => {
4341
4341
  this.fire(new c(this, N.detail.feature));
4342
- }), H(this, v).$on("featureslisted", (N) => {
4342
+ }), H(this, y).$on("featureslisted", (N) => {
4343
4343
  this.fire(new o(this, N.detail.features));
4344
- }), H(this, v).$on("featuresmarked", (N) => {
4344
+ }), H(this, y).$on("featuresmarked", (N) => {
4345
4345
  this.fire(new u(this, N.detail.features));
4346
- }), H(this, v).$on("response", (N) => {
4346
+ }), H(this, y).$on("response", (N) => {
4347
4347
  this.fire(
4348
4348
  new d(
4349
4349
  this,
@@ -4351,13 +4351,13 @@ function io(n, e, t) {
4351
4351
  N.detail.featureCollection
4352
4352
  )
4353
4353
  );
4354
- }), H(this, v).$on("optionsvisibilitychange", (N) => {
4354
+ }), H(this, y).$on("optionsvisibilitychange", (N) => {
4355
4355
  this.fire(
4356
4356
  new s(this, N.detail.optionsVisible)
4357
4357
  );
4358
- }), H(this, v).$on("reversetoggle", (N) => {
4358
+ }), H(this, y).$on("reversetoggle", (N) => {
4359
4359
  this.fire(new a(this, N.detail.reverse));
4360
- }), H(this, v).$on("querychange", (N) => {
4360
+ }), H(this, y).$on("querychange", (N) => {
4361
4361
  this.fire(new l(this, N.detail.query));
4362
4362
  }), b;
4363
4363
  }
@@ -4383,38 +4383,38 @@ function io(n, e, t) {
4383
4383
  fullGeometryStyle: S,
4384
4384
  ...x
4385
4385
  } = H(this, w);
4386
- (_ = H(this, v)) == null || _.$set(x);
4386
+ (_ = H(this, y)) == null || _.$set(x);
4387
4387
  }
4388
4388
  setQuery(m, b = !0) {
4389
4389
  var L;
4390
- (L = H(this, v)) == null || L.setQuery(m, b);
4390
+ (L = H(this, y)) == null || L.setQuery(m, b);
4391
4391
  }
4392
4392
  clearMap() {
4393
4393
  var m;
4394
- (m = H(this, v)) == null || m.clearMap();
4394
+ (m = H(this, y)) == null || m.clearMap();
4395
4395
  }
4396
4396
  clearList() {
4397
4397
  var m;
4398
- (m = H(this, v)) == null || m.clearList();
4398
+ (m = H(this, y)) == null || m.clearList();
4399
4399
  }
4400
4400
  setReverseMode(m) {
4401
4401
  var b;
4402
- (b = H(this, v)) == null || b.$set({ reverseActive: m });
4402
+ (b = H(this, y)) == null || b.$set({ reverseActive: m });
4403
4403
  }
4404
4404
  focus() {
4405
4405
  var m;
4406
- (m = H(this, v)) == null || m.focus();
4406
+ (m = H(this, y)) == null || m.focus();
4407
4407
  }
4408
4408
  blur() {
4409
4409
  var m;
4410
- (m = H(this, v)) == null || m.blur();
4410
+ (m = H(this, y)) == null || m.blur();
4411
4411
  }
4412
4412
  onRemove() {
4413
4413
  var m;
4414
- (m = H(this, v)) == null || m.$destroy();
4414
+ (m = H(this, y)) == null || m.$destroy();
4415
4415
  }
4416
4416
  }
4417
- return v = new WeakMap(), w = new WeakMap(), {
4417
+ return y = new WeakMap(), w = new WeakMap(), {
4418
4418
  MapLibreBasedGeocodingControl: f,
4419
4419
  events: {
4420
4420
  SelectEvent: r,