UNPKG

@maptiler/geocoding-control

Version:

The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.

1,727 lines 167 kB
var Hn = Object.defineProperty; var _i = (i) => { throw TypeError(i); }; var Vn = (i, e, t) => e in i ? Hn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t; var P = (i, e, t) => Vn(i, typeof e != "symbol" ? e + "" : e, t), Si = (i, e, t) => e.has(i) || _i("Cannot " + t); var ve = (i, e, t) => (Si(i, e, "read from private field"), t ? t.call(i) : e.get(i)), Jt = (i, e, t) => e.has(i) ? _i("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, t), $t = (i, e, t, n) => (Si(i, e, "write to private field"), n ? n.call(i, t) : e.set(i, t), t); import * as ke from "leaflet"; function te() { } function Kn(i, e) { for (const t in e) i[t] = e[t]; return ( /** @type {T & S} */ i ); } function tn(i) { return i(); } function xi() { return /* @__PURE__ */ Object.create(null); } function He(i) { i.forEach(tn); } function nn(i) { return typeof i == "function"; } function Je(i, e) { return i != i ? e == e : i !== e || i && typeof i == "object" || typeof i == "function"; } let Rt; function ge(i, e) { return i === e ? !0 : (Rt || (Rt = document.createElement("a")), Rt.href = e, i === Rt.href); } function Yn(i) { return Object.keys(i).length === 0; } function Xn(i, e, t, n) { if (i) { const r = rn(i, e, t, n); return i[0](r); } } function rn(i, e, t, n) { return i[1] && n ? Kn(t.ctx.slice(), i[1](n(e))) : t.ctx; } function Qn(i, e, t, n) { return i[2], e.dirty; } function Jn(i, e, t, n, r, u) { if (r) { const a = rn(e, t, n, u); i.p(a, r); } } function $n(i) { if (i.ctx.length > 32) { const e = [], t = i.ctx.length / 32; for (let n = 0; n < t; n++) e[n] = -1; return e; } return -1; } function Dt(i) { return i ?? ""; } function H(i, e) { i.appendChild(e); } function ee(i, e, t) { i.insertBefore(e, t || null); } function J(i) { i.parentNode && i.parentNode.removeChild(i); } function Q(i) { return document.createElement(i); } function Re(i) { return document.createElementNS("http://www.w3.org/2000/svg", i); } function Xe(i) { return document.createTextNode(i); } function Le() { return Xe(" "); } function er() { return Xe(""); } function ce(i, e, t, n) { return i.addEventListener(e, t, n), () => i.removeEventListener(e, t, n); } function tr(i) { return function(e) { return e.preventDefault(), i.call(this, e); }; } function S(i, e, t) { t == null ? i.removeAttribute(e) : i.getAttribute(e) !== t && i.setAttribute(e, t); } function ir(i) { return Array.from(i.childNodes); } function xt(i, e) { e = "" + e, i.data !== e && (i.data = /** @type {string} */ e); } function Ti(i, e) { i.value = e ?? ""; } function We(i, e, t) { i.classList.toggle(e, !!t); } function nr(i, e, { bubbles: t = !1, cancelable: n = !1 } = {}) { return new CustomEvent(i, { detail: e, bubbles: t, cancelable: n }); } let Tt; function St(i) { Tt = i; } function sn() { if (!Tt) throw new Error("Function called outside component initialization"); return Tt; } function rr(i) { sn().$$.on_destroy.push(i); } function on() { const i = sn(); return (e, t, { cancelable: n = !1 } = {}) => { const r = i.$$.callbacks[e]; if (r) { const u = nr( /** @type {string} */ e, t, { cancelable: n } ); return r.slice().forEach((a) => { a.call(i, u); }), !u.defaultPrevented; } return !0; }; } function sr(i, e) { const t = i.$$.callbacks[e.type]; t && t.slice().forEach((n) => n.call(this, e)); } const ft = [], ni = []; let ct = []; const Mi = [], or = /* @__PURE__ */ Promise.resolve(); let ri = !1; function lr() { ri || (ri = !0, or.then(ln)); } function si(i) { ct.push(i); } const ei = /* @__PURE__ */ new Set(); let at = 0; function ln() { if (at !== 0) return; const i = Tt; do { try { for (; at < ft.length; ) { const e = ft[at]; at++, St(e), ur(e.$$); } } catch (e) { throw ft.length = 0, at = 0, e; } for (St(null), ft.length = 0, at = 0; ni.length; ) ni.pop()(); for (let e = 0; e < ct.length; e += 1) { const t = ct[e]; ei.has(t) || (ei.add(t), t()); } ct.length = 0; } while (ft.length); for (; Mi.length; ) Mi.pop()(); ri = !1, ei.clear(), St(i); } function ur(i) { if (i.fragment !== null) { i.update(), He(i.before_update); const e = i.dirty; i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, e), i.after_update.forEach(si); } } function ar(i) { const e = [], t = []; ct.forEach((n) => i.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), ct = e; } const Bt = /* @__PURE__ */ new Set(); let st; function wt() { st = { r: 0, c: [], p: st // parent group }; } function Et() { st.r || He(st.c), st = st.p; } function ne(i, e) { i && i.i && (Bt.delete(i), i.i(e)); } function ue(i, e, t, n) { if (i && i.o) { if (Bt.has(i)) return; Bt.add(i), st.c.push(() => { Bt.delete(i), n && (t && i.d(1), n()); }), i.o(e); } else n && n(); } function Ci(i) { return (i == null ? void 0 : i.length) !== void 0 ? i : Array.from(i); } function fr(i, e) { ue(i, 1, 1, () => { e.delete(i.key); }); } function cr(i, e, t, n, r, u, a, o, g, f, L, x) { let C = i.length, N = u.length, M = C; const k = {}; for (; M--; ) k[i[M].key] = M; const W = [], O = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), A = []; for (M = N; M--; ) { const I = x(r, u, M), s = t(I); let l = a.get(s); l ? A.push(() => l.p(I, e)) : (l = f(s, I), l.c()), O.set(s, W[M] = l), s in k && _.set(s, Math.abs(M - k[s])); } const z = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Set(); function U(I) { ne(I, 1), I.m(o, L), a.set(I.key, I), L = I.first, N--; } for (; C && N; ) { const I = W[N - 1], s = i[C - 1], l = I.key, c = s.key; I === s ? (L = I.first, C--, N--) : O.has(c) ? !a.has(l) || z.has(l) ? U(I) : D.has(c) ? C-- : _.get(l) > _.get(c) ? (D.add(l), U(I)) : (z.add(c), C--) : (g(s, a), C--); } for (; C--; ) { const I = i[C]; O.has(I.key) || g(I, a); } for (; N; ) U(W[N - 1]); return He(A), W; } function Qe(i) { i && i.c(); } function qe(i, e, t) { const { fragment: n, after_update: r } = i.$$; n && n.m(e, t), si(() => { const u = i.$$.on_mount.map(tn).filter(nn); i.$$.on_destroy ? i.$$.on_destroy.push(...u) : He(u), i.$$.on_mount = []; }), r.forEach(si); } function Ze(i, e) { const t = i.$$; t.fragment !== null && (ar(t.after_update), He(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []); } function hr(i, e) { i.$$.dirty[0] === -1 && (ft.push(i), lr(), i.$$.dirty.fill(0)), i.$$.dirty[e / 31 | 0] |= 1 << e % 31; } function $e(i, e, t, n, r, u, a = null, o = [-1]) { const g = Tt; St(i); const f = i.$$ = { fragment: null, ctx: [], // state props: u, update: te, not_equal: r, bound: xi(), // lifecycle on_mount: [], on_destroy: [], on_disconnect: [], before_update: [], after_update: [], context: new Map(e.context || (g ? g.$$.context : [])), // everything else callbacks: xi(), dirty: o, skip_bound: !1, root: e.target || g.$$.root }; a && a(f.root); let L = !1; if (f.ctx = t ? t(i, e.props || {}, (x, C, ...N) => { const M = N.length ? N[0] : C; return f.ctx && r(f.ctx[x], f.ctx[x] = M) && (!f.skip_bound && f.bound[x] && f.bound[x](M), L && hr(i, x)), C; }) : [], f.update(), L = !0, He(f.before_update), f.fragment = n ? n(f.ctx) : !1, e.target) { if (e.hydrate) { const x = ir(e.target); f.fragment && f.fragment.l(x), x.forEach(J); } else f.fragment && f.fragment.c(); e.intro && ne(i.$$.fragment), qe(i, e.target, e.anchor), ln(); } St(g); } class et { constructor() { /** * ### PRIVATE API * * Do not use, may change at any time * * @type {any} */ P(this, "$$"); /** * ### PRIVATE API * * Do not use, may change at any time * * @type {any} */ P(this, "$$set"); } /** @returns {void} */ $destroy() { Ze(this, 1), this.$destroy = te; } /** * @template {Extract<keyof Events, string>} K * @param {K} type * @param {((e: Events[K]) => void) | null | undefined} callback * @returns {() => void} */ $on(e, t) { if (!nn(t)) return te; const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []); return n.push(t), () => { const r = n.indexOf(t); r !== -1 && n.splice(r, 1); }; } /** * @param {Partial<Props>} props * @returns {void} */ $set(e) { this.$$set && !Yn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1); } } const dr = "4"; typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(dr); function gr(i) { let e, t; return { c() { e = Re("svg"), t = Re("path"), S(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"), S(e, "viewBox", "0 0 14 14"), S(e, "width", "13"), S(e, "height", "13"), S(e, "class", "svelte-en2qvf"); }, m(n, r) { ee(n, e, r), H(e, t); }, p: te, i: te, o: te, d(n) { n && J(e); } }; } class un extends et { constructor(e) { super(), $e(this, e, null, gr, Je, {}); } } function mr(i) { let e, t; return { c() { e = Re("svg"), t = Re("path"), S(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"), S(e, "viewBox", "0 0 30 30"), S(e, "fill", "none"), S(e, "xmlns", "http://www.w3.org/2000/svg"), S(e, "class", "svelte-d2loi5"); }, m(n, r) { ee(n, e, r), H(e, t); }, p: te, i: te, o: te, d(n) { n && J(e); } }; } class an extends et { constructor(e) { super(), $e(this, e, null, mr, Je, {}); } } function pr(i) { let e, t; return { c() { e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/ i[3] + "area.svg") || S(e, "src", t), S( e, "alt", /*placeType*/ i[7] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*iconsBaseUrl*/ 8 && !ge(e.src, t = /*iconsBaseUrl*/ n[3] + "area.svg") && S(e, "src", t), r & /*placeType*/ 128 && S( e, "alt", /*placeType*/ n[7] ), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function yr(i) { let e, t; return { c() { e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/ i[3] + "reverse.svg") || S(e, "src", t), S( e, "alt", /*placeType*/ i[7] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*iconsBaseUrl*/ 8 && !ge(e.src, t = /*iconsBaseUrl*/ n[3] + "reverse.svg") && S(e, "src", t), r & /*placeType*/ 128 && S( e, "alt", /*placeType*/ n[7] ), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function br(i) { let e, t; return { c() { e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/ i[3] + "poi.svg") || S(e, "src", t), S( e, "alt", /*placeType*/ i[7] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*iconsBaseUrl*/ 8 && !ge(e.src, t = /*iconsBaseUrl*/ n[3] + "poi.svg") && S(e, "src", t), r & /*placeType*/ 128 && S( e, "alt", /*placeType*/ n[7] ), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function vr(i) { let e, t; return { c() { e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/ i[3] + "postal_code.svg") || S(e, "src", t), S( e, "alt", /*placeType*/ i[7] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*iconsBaseUrl*/ 8 && !ge(e.src, t = /*iconsBaseUrl*/ n[3] + "postal_code.svg") && S(e, "src", t), r & /*placeType*/ 128 && S( e, "alt", /*placeType*/ n[7] ), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function wr(i) { let e, t; return { c() { e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/ i[3] + "street.svg") || S(e, "src", t), S( e, "alt", /*placeType*/ i[7] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*iconsBaseUrl*/ 8 && !ge(e.src, t = /*iconsBaseUrl*/ n[3] + "street.svg") && S(e, "src", t), r & /*placeType*/ 128 && S( e, "alt", /*placeType*/ n[7] ), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function Er(i) { let e, t; return { c() { e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/ i[3] + "road.svg") || S(e, "src", t), S( e, "alt", /*placeType*/ i[7] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*iconsBaseUrl*/ 8 && !ge(e.src, t = /*iconsBaseUrl*/ n[3] + "road.svg") && S(e, "src", t), r & /*placeType*/ 128 && S( e, "alt", /*placeType*/ n[7] ), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function Lr(i) { let e, t; return { c() { e = Q("img"), ge(e.src, t = /*iconsBaseUrl*/ i[3] + "housenumber.svg") || S(e, "src", t), S( e, "alt", /*placeType*/ i[7] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*iconsBaseUrl*/ 8 && !ge(e.src, t = /*iconsBaseUrl*/ n[3] + "housenumber.svg") && S(e, "src", t), r & /*placeType*/ 128 && S( e, "alt", /*placeType*/ n[7] ), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function _r(i) { let e, t, n, r; return { c() { e = Q("img"), ge(e.src, t = /*imageUrl*/ i[5]) || S(e, "src", t), S( e, "alt", /*category*/ i[4] ), S( e, "title", /*placeType*/ i[7] ), S(e, "class", "svelte-w9y5n9"); }, m(u, a) { ee(u, e, a), n || (r = ce( e, "error", /*error_handler*/ i[14] ), n = !0); }, p(u, a) { a & /*imageUrl*/ 32 && !ge(e.src, t = /*imageUrl*/ u[5]) && S(e, "src", t), a & /*category*/ 16 && S( e, "alt", /*category*/ u[4] ), a & /*placeType*/ 128 && S( e, "title", /*placeType*/ u[7] ); }, d(u) { u && J(e), n = !1, r(); } }; } function Sr(i) { let e, t; return { c() { e = Q("div"), S(e, "class", "sprite-icon svelte-w9y5n9"), S(e, "style", t = ` width: ${/*spriteIcon*/ i[6].width / Se}px; height: ${/*spriteIcon*/ i[6].height / Se}px; background-image: url(${/*iconsBaseUrl*/ i[3]}sprite${oi}.png); background-position: -${/*spriteIcon*/ i[6].x / Se}px -${/*spriteIcon*/ i[6].y / Se}px; background-size: ${Oe.width / Se}px ${Oe.height / Se}px; `), S( e, "title", /*placeType*/ i[7] ); }, m(n, r) { ee(n, e, r); }, p(n, r) { r & /*spriteIcon, iconsBaseUrl*/ 72 && t !== (t = ` width: ${/*spriteIcon*/ n[6].width / Se}px; height: ${/*spriteIcon*/ n[6].height / Se}px; background-image: url(${/*iconsBaseUrl*/ n[3]}sprite${oi}.png); background-position: -${/*spriteIcon*/ n[6].x / Se}px -${/*spriteIcon*/ n[6].y / Se}px; background-size: ${Oe.width / Se}px ${Oe.height / Se}px; `) && S(e, "style", t), r & /*placeType*/ 128 && S( e, "title", /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function Ni(i) { let e, t; return { c() { e = Q("span"), t = Xe( /*placeType*/ i[7] ), S(e, "class", "secondary svelte-w9y5n9"); }, m(n, r) { ee(n, e, r), H(e, t); }, p(n, r) { r & /*placeType*/ 128 && xt( t, /*placeType*/ n[7] ); }, d(n) { n && J(e); } }; } function xr(i) { let e, t, n, r, u, a, o, g, f, L = ( /*isReverse*/ (i[8] ? ( /*feature*/ i[0].place_name ) : ( /*feature*/ i[0].place_name.replace(/,.*/, "") )) + "" ), x, C, N = ( /*showPlaceType*/ i[2] === "always" || /*showPlaceType*/ i[2] !== "never" && !/*feature*/ i[0].address && !/*feature*/ i[0].id.startsWith("road.") && !/*feature*/ i[0].id.startsWith("address.") && !/*feature*/ i[0].id.startsWith("postal_code.") && (!/*feature*/ i[0].id.startsWith("poi.") || !/*imageUrl*/ i[5]) && !/*isReverse*/ i[8] ), M, k, W = ( /*isReverse*/ (i[8] ? "" : ( /*feature*/ i[0].place_name.replace(/[^,]*,?\s*/, "") )) + "" ), O, _, A, z, D, U; function I(m, h) { return h & /*feature*/ 1 && (t = null), h & /*feature*/ 1 && (n = null), h & /*feature*/ 1 && (r = null), h & /*feature*/ 1 && (u = null), Oe && /*spriteIcon*/ m[6] ? Sr : ( /*imageUrl*/ m[5] ? _r : ( /*feature*/ m[0].address ? Lr : (t == null && (t = !!/*feature*/ m[0].id.startsWith("road.")), t ? Er : (n == null && (n = !!/*feature*/ m[0].id.startsWith("address.")), n ? wr : (r == null && (r = !!/*feature*/ m[0].id.startsWith("postal_code.")), r ? vr : (u == null && (u = !!/*feature*/ m[0].id.startsWith("poi.")), u ? br : ( /*isReverse*/ m[8] ? yr : pr ))))) ) ); } let s = I(i, -1), l = s(i), c = N && Ni(i); return { c() { e = Q("li"), l.c(), a = Le(), o = Q("span"), g = Q("span"), f = Q("span"), x = Xe(L), C = Le(), c && c.c(), M = Le(), k = Q("span"), O = Xe(W), S(f, "class", "primary svelte-w9y5n9"), S(g, "class", "svelte-w9y5n9"), S(k, "class", "line2 svelte-w9y5n9"), S(o, "class", "texts svelte-w9y5n9"), S(e, "tabindex", "-1"), S(e, "role", "option"), S(e, "aria-selected", _ = /*style*/ i[1] === "selected"), S(e, "aria-checked", A = /*style*/ i[1] === "picked"), S(e, "class", z = Dt( /*style*/ i[1] ) + " svelte-w9y5n9"); }, m(m, h) { ee(m, e, h), l.m(e, null), H(e, a), H(e, o), H(o, g), H(g, f), H(f, x), H(g, C), c && c.m(g, null), H(o, M), H(o, k), H(k, O), D || (U = [ ce( e, "mouseenter", /*mouseenter_handler*/ i[13] ), ce( e, "focus", /*focus_handler*/ i[15] ), ce( e, "click", /*click_handler*/ i[16] ) ], D = !0); }, p(m, [h]) { s === (s = I(m, h)) && l ? l.p(m, h) : (l.d(1), l = s(m), l && (l.c(), l.m(e, a))), h & /*isReverse, feature*/ 257 && L !== (L = /*isReverse*/ (m[8] ? ( /*feature*/ m[0].place_name ) : ( /*feature*/ m[0].place_name.replace(/,.*/, "") )) + "") && xt(x, L), h & /*showPlaceType, feature, imageUrl, isReverse*/ 293 && (N = /*showPlaceType*/ m[2] === "always" || /*showPlaceType*/ m[2] !== "never" && !/*feature*/ m[0].address && !/*feature*/ m[0].id.startsWith("road.") && !/*feature*/ m[0].id.startsWith("address.") && !/*feature*/ m[0].id.startsWith("postal_code.") && (!/*feature*/ m[0].id.startsWith("poi.") || !/*imageUrl*/ m[5]) && !/*isReverse*/ m[8]), N ? c ? c.p(m, h) : (c = Ni(m), c.c(), c.m(g, null)) : c && (c.d(1), c = null), h & /*isReverse, feature*/ 257 && W !== (W = /*isReverse*/ (m[8] ? "" : ( /*feature*/ m[0].place_name.replace(/[^,]*,?\s*/, "") )) + "") && xt(O, W), h & /*style*/ 2 && _ !== (_ = /*style*/ m[1] === "selected") && S(e, "aria-selected", _), h & /*style*/ 2 && A !== (A = /*style*/ m[1] === "picked") && S(e, "aria-checked", A), h & /*style*/ 2 && z !== (z = Dt( /*style*/ m[1] ) + " svelte-w9y5n9") && S(e, "class", z); }, i: te, o: te, d(m) { m && J(e), l.d(), c && c.d(), D = !1, He(U); } }; } const fn = typeof devicePixelRatio > "u" ? 1 : devicePixelRatio > 1.25, oi = fn ? "@2x" : "", Se = fn ? 2 : 1; let Oe, Pt; function Tr(i, e, t) { let n, r, u, { feature: a } = e, { style: o = "default" } = e, { showPlaceType: g } = e, { missingIconsCache: f } = e, { iconsBaseUrl: L } = e; const x = on(); let C, N, M, k; function W() { Pt ?? (Pt = fetch(`${L}sprite${oi}.json`).then((s) => s.json()).then((s) => { Oe = s; }).catch(() => { Oe = null; })); } function O() { N && f.add(N), _(); } function _() { Oe !== void 0 ? A() : (W(), Pt == null || Pt.then(A)); } function A() { do { if (k--, t(4, C = n == null ? void 0 : n[k]), t(6, M = C ? Oe == null ? void 0 : Oe.icons[C] : void 0), M) break; t(5, N = C ? L + C.replace(/ /g, "_") + ".svg" : void 0); } while (k > -1 && (!N || f.has(N))); } function z(s) { sr.call(this, i, s); } const D = () => O(), U = () => x("select", void 0), I = (s) => { document.activeElement !== s.target && x("select", void 0); }; return i.$$set = (s) => { "feature" in s && t(0, a = s.feature), "style" in s && t(1, o = s.style), "showPlaceType" in s && t(2, g = s.showPlaceType), "missingIconsCache" in s && t(11, f = s.missingIconsCache), "iconsBaseUrl" in s && t(3, L = s.iconsBaseUrl); }, i.$$.update = () => { var s, l, c, m, h; i.$$.dirty & /*feature*/ 1 && t(12, n = (s = a.properties) == null ? void 0 : s.categories), i.$$.dirty & /*feature*/ 1 && t(8, r = a.place_type[0] === "reverse"), i.$$.dirty & /*feature*/ 1 && t(7, u = ((c = (l = a.properties) == null ? void 0 : l.categories) == null ? void 0 : c.join(", ")) ?? ((h = (m = a.properties) == null ? void 0 : m.place_type_name) == null ? void 0 : h[0]) ?? a.place_type[0]), i.$$.dirty & /*categories*/ 4096 && (k = (n == null ? void 0 : n.length) ?? 0, _()); }, [ a, o, g, L, C, N, M, u, r, x, O, f, n, z, D, U, I ]; } class Mr extends et { constructor(e) { super(), $e(this, e, Tr, xr, Je, { feature: 0, style: 1, showPlaceType: 2, missingIconsCache: 11, iconsBaseUrl: 3 }); } } function Cr(i) { let e; return { c() { e = Q("div"), e.innerHTML = '<svg viewBox="0 0 18 18" width="24" height="24" class="loading-icon svelte-1ocfouu"><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>', S(e, "class", "svelte-1ocfouu"); }, m(t, n) { ee(t, e, n); }, p: te, i: te, o: te, d(t) { t && J(e); } }; } class Nr extends et { constructor(e) { super(), $e(this, e, null, Cr, Je, {}); } } function kr(i) { let e, t, n; return { c() { e = Re("svg"), t = Re("path"), S(t, "stroke-width", "4"), S(t, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), S(t, "class", "svelte-gzo3ar"), S(e, "width", n = /*displayIn*/ i[0] === "list" ? 20 : void 0), S(e, "viewBox", "0 0 70 85"), S(e, "fill", "none"), S(e, "class", "svelte-gzo3ar"), We( e, "in-map", /*displayIn*/ i[0] !== "list" ), We( e, "list-icon", /*displayIn*/ i[0] === "list" ); }, m(r, u) { ee(r, e, u), H(e, t); }, p(r, [u]) { u & /*displayIn*/ 1 && n !== (n = /*displayIn*/ r[0] === "list" ? 20 : void 0) && S(e, "width", n), u & /*displayIn*/ 1 && We( e, "in-map", /*displayIn*/ r[0] !== "list" ), u & /*displayIn*/ 1 && We( e, "list-icon", /*displayIn*/ r[0] === "list" ); }, i: te, o: te, d(r) { r && J(e); } }; } function Or(i, e, t) { let { displayIn: n } = e; return i.$$set = (r) => { "displayIn" in r && t(0, n = r.displayIn); }, [n]; } class Rr extends et { constructor(e) { super(), $e(this, e, Or, kr, Je, { displayIn: 0 }); } } function Pr(i) { let e, t; return { c() { e = Re("svg"), t = Re("path"), S(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"), S(e, "viewBox", "0 0 60.006 21.412"), S(e, "width", "14"), S(e, "height", "20"), S(e, "class", "svelte-en2qvf"); }, m(n, r) { ee(n, e, r), H(e, t); }, p: te, i: te, o: te, d(n) { n && J(e); } }; } class Ar extends et { constructor(e) { super(), $e(this, e, null, Pr, Je, {}); } } function Ir(i) { let e, t, n; return { c() { e = Re("svg"), t = Re("circle"), n = Re("path"), S(t, "cx", "4.789"), S(t, "cy", "4.787"), S(t, "r", "3.85"), S(t, "class", "svelte-1aq105l"), S(n, "d", "M12.063 12.063 7.635 7.635"), S(n, "class", "svelte-1aq105l"), S(e, "xmlns", "http://www.w3.org/2000/svg"), S(e, "width", "13"), S(e, "height", "13"), S(e, "viewBox", "0 0 13 13"), S(e, "class", "svelte-1aq105l"); }, m(r, u) { ee(r, e, u), H(e, t), H(e, n); }, p: te, i: te, o: te, d(r) { r && J(e); } }; } class Br extends et { constructor(e) { super(), $e(this, e, null, Ir, Je, {}); } } function Gr(i, e, t) { const n = e[1], r = e[0], u = n - r; return i === n && t ? i : ((i - r) % u + u) % u + r; } function Mt(i) { const e = [...i]; 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; } let pt; async function Wr(i, e, t) { const n = i == null ? void 0 : i.getCenterAndZoom(); for (const r of e ?? []) if (!(n && (r.minZoom != null && r.minZoom > n[0] || r.maxZoom != null && r.maxZoom < n[0]))) { if (r.type === "fixed") return r.coordinates.join(","); e: if (r.type === "client-geolocation") { if (pt && r.cachedLocationExpiry && pt.time + r.cachedLocationExpiry > Date.now()) { if (!pt.coords) break e; return pt.coords; } let u; try { return u = await new Promise((a, o) => { t.signal.addEventListener("abort", () => { o(Error("aborted")); }), navigator.geolocation.getCurrentPosition( (g) => { a( [g.coords.longitude, g.coords.latitude].map((f) => f.toFixed(6)).join(",") ); }, (g) => { o(g); }, r ); }), u; } catch { } finally { r.cachedLocationExpiry && (pt = { time: Date.now(), coords: u }); } if (t.signal.aborted) return; } if (r.type === "server-geolocation") return "ip"; if (n && r.type === "map-center") return n[1].toFixed(6) + "," + n[2].toFixed(6); } } const Dr = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([6-9][0-9])\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*(EAST|WEST|[EW])?$/i, ki = /^([+-]?[0-8]?[0-9])\s+([0-5]?[0-9]\.\d{3,})[\s,]{1,}([+-]?[0-1]?[0-9]?[0-9])\s+([0-5]?[0-9]\.\d{3,})$/, Oi = /^(NORTH|SOUTH|[NS])?[\s]*([+-]?[0-8]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(NORTH|SOUTH|[NS])?[\s]*[,/;]?[\s]*(EAST|WEST|[EW])?[\s]*([+-]?[0-1]?[0-9]?[0-9](?:[\.,]\d{3,}))[\s]*([•º°]?)[\s]*(EAST|WEST|[EW])?$/i, Ri = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i, Pi = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i, Ai = /^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|’’|´´|["″”\.])?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*([•º°\.:]|D(?:EG)?(?:REES)?)?\s*,?([0-5]?[0-9](?:[\.,]\d{1,})?)?\s*(['′´’\.:]|M(?:IN)?(?:UTES)?)?\s*,?((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(''|′′|´´|’’|["″”\.])?\s*(EAST|WEST|[EW])?$/i; function zr(i) { if (!["DMS", "DM", "DD"].includes(i)) throw new Error("invalid format specified"); if (this.decimalCoordinates && this.decimalCoordinates.trim()) { const e = this.decimalCoordinates.split(",").map((N) => Number(N.trim())), t = Number(e[0]), n = Number(e[1]), r = Math.abs(t), u = Math.abs(n), a = t > 0 ? "N" : "S", o = n > 0 ? "E" : "W"; let g; i == "DD" && (g = `${r}° ${a}, ${u}° ${o}`); const f = Math.floor(r), L = Math.floor(u), x = (r - f) * 60, C = (u - L) * 60; if (i == "DM") { let N = Ii(x, 3).toFixed(3).padStart(6, "0"), M = Ii(C, 3).toFixed(3).padStart(6, "0"); N.endsWith(".000") && M.endsWith(".000") && (N = N.replace(/\.000$/, ""), M = M.replace(/\.000$/, "")), g = `${f}° ${N}' ${a}, ${L}° ${M}' ${o}`; } if (i == "DMS") { const N = Math.floor(x), M = Math.floor(C); let k = ((x - N) * 60).toFixed(1).padStart(4, "0"), W = ((C - M) * 60).toFixed(1).padStart(4, "0"); const O = N.toString().padStart(2, "0"), _ = M.toString().padStart(2, "0"); k.endsWith(".0") && W.endsWith(".0") && (k = k.replace(/\.0$/, ""), W = W.replace(/\.0$/, "")), g = `${f}° ${O}' ${k}" ${a}, ${L}° ${_}' ${W}" ${o}`; } return g; } else throw new Error("no decimal coordinates to convert"); } function Ii(i, e) { const t = Math.pow(10, e); return Math.round((i + Number.EPSILON) * t) / t; } function hi(i, e) { e || (e = 5), i = i.replace(/\s+/g, " ").trim(); let t = null, n = null, r = "", u = "", a = null, o = [], g = !1; if (Dr.test(i)) throw new Error("invalid coordinate value"); if (ki.test(i)) if (o = ki.exec(i), g = yt(o), g) t = Math.abs(o[1]) + o[2] / 60, Number(o[1]) < 0 && (t *= -1), n = Math.abs(o[3]) + o[4] / 60, Number(o[3]) < 0 && (n *= -1), a = "DM"; else throw new Error("invalid coordinate format"); else if (Oi.test(i)) if (o = Oi.exec(i), g = yt(o), g) { if (t = o[2], n = o[6], t.includes(",") && (t = t.replace(",", ".")), n.includes(",") && (n = n.replace(",", ".")), a = "DD", Number(Math.round(t)) == Number(t)) throw new Error("integer only coordinate provided"); if (Number(Math.round(n)) == Number(n)) throw new Error("integer only coordinate provided"); o[1] ? (r = o[1], u = o[5]) : o[4] && (r = o[4], u = o[8]); } else throw new Error("invalid decimal coordinate format"); else if (Ri.test(i)) if (o = Ri.exec(i), g = yt(o), g) t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, a = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[9])), o[11] && (n += o[11] / 60), o[13] && (n += o[13].replace(",", ".") / 3600), parseInt(o[9]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[8]) : o[7] && (r = o[7], u = o[14]); else throw new Error("invalid DMS coordinates format"); else if (Pi.test(i)) if (o = Pi.exec(i), g = yt(o), g) t = Math.abs(parseInt(o[2])), o[4] && (t += o[4] / 60, a = "DM"), o[6] && (t += o[6] / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12] / 60), o[14] && (n += o[14] / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]); else throw new Error("invalid DMS coordinates format"); else if (Ai.test(i)) { if (o = Ai.exec(i), g = yt(o), o.filter((f) => f).length <= 5) throw new Error("invalid coordinates format"); if (g) t = Math.abs(parseInt(o[2])), o[4] && (t += o[4].replace(",", ".") / 60, a = "DM"), o[6] && (t += o[6].replace(",", ".") / 3600, a = "DMS"), parseInt(o[2]) < 0 && (t = -1 * t), n = Math.abs(parseInt(o[10])), o[12] && (n += o[12].replace(",", ".") / 60), o[14] && (n += o[14].replace(",", ".") / 3600), parseInt(o[10]) < 0 && (n = -1 * n), o[1] ? (r = o[1], u = o[9]) : o[8] && (r = o[8], u = o[16]); else throw new Error("invalid coordinates format"); } if (g) { if (Math.abs(n) >= 180) throw new Error("invalid longitude value"); if (Math.abs(t) >= 90) throw new Error("invalid latitude value"); if (r && !u || !r && u) throw new Error("invalid coordinates value"); if (r && r == u) throw new Error("invalid coordinates format"); t.toString().includes(",") && (t = t.replace(",", ".")), n.toString().includes(",") && (n = n.replace(",", ".")); let f = /S|SOUTH/i; f.test(r) && t > 0 && (t = -1 * t), f = /W|WEST/i, f.test(u) && n > 0 && (n = -1 * n); const L = o[0].trim(); let x, C; const N = /[,/;\u0020]/g, M = L.match(N); if (M == null) { const O = Math.floor(i.length / 2); x = L.substring(0, O).trim(), C = L.substring(O).trim(); } else { let O; M.length % 2 == 1 ? O = Math.floor(M.length / 2) : O = M.length / 2 - 1; let _ = 0; if (O == 0) _ = L.indexOf(M[0]), x = L.substring(0, _).trim(), C = L.substring(_ + 1).trim(); else { let A = 0, z = 0; for (; A <= O; ) _ = L.indexOf(M[A], z), z = _ + 1, A++; x = L.substring(0, _).trim(), C = L.substring(_ + 1).trim(); } } const k = x.split("."); if (k.length == 2 && k[1] == 0 && k[1].length != 2) throw new Error("invalid coordinates format"); const W = C.split("."); if (W.length == 2 && W[1] == 0 && W[1].length != 2) throw new Error("invalid coordinates format"); if (/^\d+$/.test(x) || /^\d+$/.test(C)) throw new Error("degree only coordinate/s provided"); return t = Number(Number(t).toFixed(e)), n = Number(Number(n).toFixed(e)), Object.freeze({ verbatimCoordinates: L, verbatimLatitude: x, verbatimLongitude: C, decimalLatitude: t, decimalLongitude: n, decimalCoordinates: `${t},${n}`, originalFormat: a, closeEnough: Ur, toCoordinateFormat: zr }); } else throw new Error("coordinates pattern match failed"); } function yt(i) { if (!isNaN(i[0])) return !1; const e = [...i]; if (e.shift(), e.length % 2 > 0) return !1; const t = /^[-+]?\d+([\.,]\d+)?$/, n = /[eastsouthnorthwest]+/i, r = e.length / 2; for (let u = 0; u < r; u++) { const a = e[u], o = e[u + r], g = t.test(a) && t.test(o), f = n.test(a) && n.test(o), L = a == o; if (!(a == null && o == null)) { if (a == null || o == null) return !1; if (g || f || L) continue; return !1; } } return !0; } function Bi(i, e) { const t = Math.abs(i - e); return Number(t.toFixed(6)) <= 1e-5; } function Ur(i) { if (!i) throw new Error("coords must be provided"); if (i.includes(",")) { const e = i.split(","); if (Number(e[0]) == NaN || Number(e[1]) == NaN) throw new Error("coords are not valid decimals"); return Bi(this.decimalLatitude, Number(e[0])) && Bi(this.decimalLongitude, e[1]); } else throw new Error("coords being tested must be separated by a comma"); } const Fr = Object.freeze({ DMS: "DMS", DM: "DM", DD: "DD" }); hi.to = Fr; const qr = [ { verbatimCoordinates: "40.123, -74.123", verbatimLatitude: "40.123", verbatimLongitude: "-74.123" }, { verbatimCoordinates: "40.123° N 74.123° W", verbatimLatitude: "40.123° N", verbatimLongitude: "74.123° W" }, { verbatimCoordinates: "40.123° N 74.123° W", verbatimLatitude: "40.123° N", verbatimLongitude: "74.123° W" }, { verbatimCoordinates: '40° 7´ 22.8" N 74° 7´ 22.8" W', verbatimLatitude: '40° 7´ 22.8" N', verbatimLongitude: '74° 7´ 22.8" W' }, { verbatimCoordinates: "40° 7.38’ , -74° 7.38’", verbatimLatitude: "40° 7.38’", verbatimLongitude: "-74° 7.38’" }, { verbatimCoordinates: "N40°7’22.8’’, W74°7’22.8’’", verbatimLatitude: "N40°7’22.8’’", verbatimLongitude: "W74°7’22.8’’" }, { verbatimCoordinates: '40°7’22.8"N, 74°7’22.8"W', verbatimLatitude: '40°7’22.8"N', verbatimLongitude: '74°7’22.8"W' }, { verbatimCoordinates: `40°7'22.8"N, 74°7'22.8"W`, verbatimLatitude: `40°7'22.8"N`, verbatimLongitude: `74°7'22.8"W` }, { verbatimCoordinates: "40 7 22.8, -74 7 22.8", verbatimLatitude: "40 7 22.8", verbatimLongitude: "-74 7 22.8" }, { verbatimCoordinates: "40.123 -74.123", verbatimLatitude: "40.123", verbatimLongitude: "-74.123" }, { verbatimCoordinates: "40.123°,-74.123°", verbatimLatitude: "40.123°", verbatimLongitude: "-74.123°" }, { verbatimCoordinates: "40.123N74.123W", verbatimLatitude: "40.123N", verbatimLongitude: "74.123W" }, { verbatimCoordinates: "4007.38N7407.38W", verbatimLatitude: "4007.38N", verbatimLongitude: "7407.38W" }, { verbatimCoordinates: '40°7’22.8"N, 74°7’22.8"W', verbatimLatitude: '40°7’22.8"N', verbatimLongitude: '74°7’22.8"W' }, { verbatimCoordinates: "400722.8N740722.8W", verbatimLatitude: "400722.8N", verbatimLongitude: "740722.8W" }, { verbatimCoordinates: "N 40 7.38 W 74 7.38", verbatimLatitude: "N 40 7.38", verbatimLongitude: "W 74 7.38" }, { verbatimCoordinates: "40:7:22.8N 74:7:22.8W", verbatimLatitude: "40:7:22.8N", verbatimLongitude: "74:7:22.8W" }, { verbatimCoordinates: "40:7:23N,74:7:23W", verbatimLatitude: "40:7:23N", verbatimLongitude: "74:7:23W", decimalLatitude: 40.1230555555, decimalLongitude: -74.1230555555 }, { verbatimCoordinates: '40°7’23"N 74°7’23"W', verbatimLatitude: '40°7’23"N', verbatimLongitude: '74°7’23"W', decimalLatitude: 40.1230555555, decimalLongitude: -74.12305555555555 }, { verbatimCoordinates: '40°7’23"S 74°7’23"E', verbatimLatitude: '40°7’23"S', verbatimLongitude: '74°7’23"E', decimalLatitude: -40.1230555555, decimalLongitude: 74.12305555555555 }, { verbatimCoordinates: '40°7’23" -74°7’23"', verbatimLatitude: '40°7’23"', verbatimLongitude: '-74°7’23"', decimalLatitude: 40.1230555555, decimalLongitude: -74.123055555 }, { verbatimCoordinates: '40d 7’ 23" N 74d 7’ 23" W', verbatimLatitude: '40d 7’ 23" N', verbatimLongitude: '74d 7’ 23" W', decimalLatitude: 40.1230555555, decimalLongitude: -74.123055555 }, { verbatimCoordinates: "40.123N 74.123W", verbatimLatitude: "40.123N", verbatimLongitude: "74.123W" }, { verbatimCoordinates: "40° 7.38, -74° 7.38", verbatimLatitude: "40° 7.38", verbatimLongitude: "-74° 7.38" }, { verbatimCoordinates: "40° 7.38, -74° 7.38", verbatimLatitude: "40° 7.38", verbatimLongitude: "-74° 7.38" }, { verbatimCoordinates: "40 7 22.8; -74 7 22.8", verbatimLatitude: "40 7 22.8", verbatimLongitude: "-74 7 22.8" } ], Zr = { decimalLatitude: 40.123, decimalLongitude: -74.123 }, jr = [ { verbatimCoordinates: `50°4'17.698"south, 14°24'2.826"east`, verbatimLatitude: `50°4'17.698"south`, verbatimLongitude: `14°24'2.826"east`, decimalLatitude: -50.07158277777778, decimalLongitude: 14.400785 }, { verbatimCoordinates: "50d4m17.698S 14d24m2.826E", verbatimLatitude: "50d4m17.698S", verbatimLongitude: "14d24m2.826E", decimalLatitude: -50.07158277777778, decimalLongitude: 14.400785 }, { verbatimCoordinates: "40:26:46N,79:56:55W", verbatimLatitude: "40:26:46N", verbatimLongitude: "79:56:55W", decimalLatitude: 40.44611111111111, decimalLongitude: -79.9486111111111 }, { verbatimCoordinates: "40:26:46.302N 79:56:55.903W", verbatimLatitude: "40:26:46.302N", verbatimLongitude: "79:56:55.903W", decimalLatitude: 40.446195, decimalLongitude: -79.94886194444445 }, { verbatimCoordinates: "40°26′47″N 79°58′36″W", verbatimLatitude: "40°26′47″N", verbatimLongitude: "79°58′36″W", decimalLatitude: 40.44638888888889, decimalLongitude: -79.97666666666667 }, { verbatimCoordinates: "40d 26′ 47″ N 79d 58′ 36″ W", verbatimLatitude: "40d 26′ 47″ N", verbatimLongitude: "79d 58′ 36″ W", decimalLatitude: 40.44638888888889, decimalLongitude: -79.97666666666667 }, { verbatimCoordinates: "40.446195N 79.948862W", verbatimLatitude: "40.446195N", verbatimLongitude: "79.948862W", decimalLatitude: 40.446195, decimalLongitude: -79.948862 }, { verbatimCoordinates: "40,446195° 79,948862°", verbatimLatitude: "40,446195°", verbatimLongitude: "79,948862°", decimalLatitude: 40.446195, decimalLongitude: 79.948862 }, { verbatimCoordinates: "40° 26.7717, -79° 56.93172", verbatimLatitude: "40° 26.7717", verbatimLongitude: "-79° 56.93172", decimalLatitude: 40.446195, decimalLongitude: -79.948862 }, { verbatimCoordinates: "40.446195, -79.948862", verbatimLatitude: "40.446195", verbatimLongitude: "-79.948862", decimalLatitude: 40.446195, decimalLongitude: -79.948862 }, { verbatimCoordinates: "40.123256; -74.123256", verbatimLatitude: "40.123256", verbatimLongitude: "-74.123256", decimalLatitude: 40.123256, decimalLongitude: -74.123256 }, { verbatimCoordinates: "18°24S 22°45E", verbatimLatitude: "18°24S", verbatimLongitude: "22°45E", decimalLatitude: -18.4, decimalLongitude: 22.75 } ], Hr = [ { verbatimCoordinates: "10.432342S 10.6345345E", verbatimLatitude: "10.432342S", verbatimLongitude: "10.6345345E", decimalLatitude: -10.432342, decimalLongitude: 10.6345345 }, { verbatimCoordinates: "10.00S 10.00E", verbatimLatitude: "10.00S", verbatimLongitude: "10.00E", decimalLatitude: -10, decimalLongitude: 10 }, { verbatimCoordinates: "00.00S 01.00E", verbatimLatitude: "00.00S", verbatimLongitude: "01.00E", decimalLatitude: 0, decimalLongitude: 1 }, { verbatimCoordinates: "18.24S 22.45E", verbatimLatitude: "18.24S", verbatimLongitude: "22.45E", decimalLatitude: -18.4, decimalLongitude: 22.75 }, { verbatimCoordinates: "27deg 15min 45.2sec S 18deg 32min 53.7sec E", verbatimLatitude: "27deg 15min 45.2sec S", verbatimLongitude: "18deg 32min 53.7sec E", decimalLatitude: -27.262555555555554, decimalLongitude: 18.54825 }, { verbatimCoordinates: "-23.3245° S / 28.2344° E", verbatimLatitude: "-23.3245° S", verbatimLongitude: "28.2344° E", decimalLatitude: -23.3245, decimalLongitude: 28.2344 }, { verbatimCoordinates: "40° 26.7717 -79° 56.93172", verbatimLatitude: "40° 26.7717", verbatimLongitude: "-79° 56.93172", decimalLatitude: 40.446195, decimalLongitude: -79.948862 }, { verbatimCoordinates: "27.15.45S 18.32.53E", verbatimLatitude: "27.15.45S", verbatimLongitude: "18.32.53E", decimalLatitude: -27.2625, decimalLongitude: 18.548055 }, { verbatimCoordinates: "-27.15.45 18.32.53", verbatimLatitude: "-27.15.45", verbatimLongitude: "18.32.53", decimalLatitude: -27.2625, decimalLongitude: 18.548055 }, { verbatimCoordinates: "27.15.45.2S 18.32.53.4E", verbatimLatitude: "27.15.45.2S", verbatimLongitude: "18.32.53.4E", decimalLatitude: -27.262556, decimalLongitude: 18.548167 }, { verbatimCoordinates: "27.15.45,2S 18.32.53,4E", verbatimLatitude: "27.15.45,2S", verbatimLongitude: "18.32.53,4E", decimalLatitude: -27.262556, decimalLongitude: 18.548167 }, { verbatimCoordinates: "S23.43563 ° E22.45634 °", verbatimLatitude: "S23.43563 °", verbatimLongitude: "E22.45634 °", decimalLatitude: -23.43563, decimalLongitude: 22.45634 }, { verbatimCoordinates: "27,71372° S 23,07771° E", verbatimLatitude: "27,71372° S", verbatimLongitude: "23,07771° E", decimalLatitude: -27.71372, decimalLongitude: 23.07771 }, { verbatimCoordinates: "27.45.34 S 23.23.23 E", verbatimLatitude: "27.45.34 S", verbatimLongitude: "23.23.23 E", decimalLatitude: -27.759444, decimalLongitude: 23.38972222 }, { verbatimCoordinates: "S 27.45.34 E 23.23.23", verbatimLatitude: "S 27.45.34", verbatimLongitude: "E 23.23.23", decimalLatitude: -27.759444, decimalLongitude: 23.38972222 }, { verbatimCoordinates: "53 16.3863,4 52.8171", verbatimLatitude: "53 16.3863", verbatimLongitude: "4 52.8171", decimalLatitude: 53.273105, decimalLongitude: 4.88029 }, { verbatimCoordinates: "50 8.2914,-5 2.4447", verbatimLatitude: "50 8.2914", verbatimLongitude: "-5 2.4447", decimalLatitude: 50.13819, decimalLongitude: -5.040745 }, { verbatimCoordinates: "N 48° 30,6410', E 18° 57,4583'", verbatimLatitude: "N 48° 30,6410'", verbatimLongitude: "E 18° 57,4583'", decimalLatitude: 48.51068, decimalLongitude: 18.95764 }, { verbatimCoordinates: "1.23456, 18.33453", verbatimLatitude: "1.23456", verbatimLongitude: "18.33453", decimalLatitude: 1.23456, decimalLongitude: 18.33453 } ]; function Vr() { const i = []; return qr.forEach((e) => { e.decimalLatitude ? i.push(e) : i.push({ ...e, ...Zr }); }), [...i, ...jr, ...Hr]; } const Kr = Vr(); hi.formats = Kr.map((i) => i.verbatimCoordinates); const Yr = hi; function Gi(i, e, t) { const n = i.slice(); return n[97] = e[t], n[99] = t, n; } function Wi(i) { let e