@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/leaflet.js +8 -8
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +2 -2
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +8 -8
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +1 -1
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +147 -147
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +1 -1
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +8 -8
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +1 -1
- package/react.js +8 -8
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/svelte/FeatureItem.svelte.d.ts +2 -2
- package/svelte/GeocodingControl.svelte +6 -6
- package/svelte/GeocodingControl.svelte.d.ts +4 -4
- package/svelte/types.d.ts +15 -7
- package/types.d.ts +15 -7
- package/vanilla.js +96 -96
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/maptilersdk.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(T,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("@maptiler/sdk")):typeof define=="function"&&define.amd?define(["exports","@maptiler/sdk"],D):(T=typeof globalThis<"u"?globalThis:T||self,D(T.maptilersdkMaptilerGeocoder={},T.maptilersdk))})(this,function(T,D){"use strict";var co=Object.defineProperty;var ji=T=>{throw TypeError(T)};var fo=(T,D,J)=>D in T?co(T,D,{enumerable:!0,configurable:!0,writable:!0,value:J}):T[D]=J;var ne=(T,D,J)=>fo(T,typeof D!="symbol"?D+"":D,J),qi=(T,D,J)=>D.has(T)||ji("Cannot "+J);var Y=(T,D,J)=>(qi(T,D,"read from private field"),J?J.call(T):D.get(T)),jt=(T,D,J)=>D.has(T)?ji("Cannot add the same private member more than once"):D instanceof WeakSet?D.add(T):D.set(T,J),vt=(T,D,J,Fe)=>(qi(T,D,"write to private field"),Fe?Fe.call(T,J):D.set(T,J),J);function J(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Fe=J(D);function U(){}function Qi(n,e){for(const t in e)n[t]=e[t];return n}function qt(n){return n()}function Qt(){return Object.create(null)}function me(n){n.forEach(qt)}function Zt(n){return typeof n=="function"}function be(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let et;function $(n,e){return n===e?!0:(et||(et=document.createElement("a")),et.href=e,n===et.href)}function Zi(n){return Object.keys(n).length===0}function Hi(n,e,t,i){if(n){const r=Ht(n,e,t,i);return n[0](r)}}function Ht(n,e,t,i){return n[1]&&i?Qi(t.ctx.slice(),n[1](i(e))):t.ctx}function Vi(n,e,t,i){if(n[2]&&i){const r=n[2](i(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const o=[],u=Math.max(e.dirty.length,r.length);for(let s=0;s<u;s+=1)o[s]=e.dirty[s]|r[s];return o}return e.dirty|r}return e.dirty}function Yi(n,e,t,i,r,o){if(r){const u=Ht(e,t,i,o);n.p(u,r)}}function Ki(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function Vt(n){return n??""}function P(n,e){n.appendChild(e)}function G(n,e,t){n.insertBefore(e,t||null)}function F(n){n.parentNode&&n.parentNode.removeChild(n)}function z(n){return document.createElement(n)}function fe(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function we(n){return document.createTextNode(n)}function re(){return we(" ")}function Xi(){return we("")}function te(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function Ji(n){return function(e){return e.preventDefault(),n.call(this,e)}}function p(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function $i(n){return Array.from(n.childNodes)}function Ge(n,e){e=""+e,n.data!==e&&(n.data=e)}function Yt(n,e){n.value=e??""}function le(n,e,t){n.classList.toggle(e,!!t)}function en(n,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(n,{detail:e,bubbles:t,cancelable:i})}let je;function qe(n){je=n}function Kt(){if(!je)throw new Error("Function called outside component initialization");return je}function tn(n){Kt().$$.on_destroy.push(n)}function nn(){const n=Kt();return(e,t,{cancelable:i=!1}={})=>{const r=n.$$.callbacks[e];if(r){const o=en(e,t,{cancelable:i});return r.slice().forEach(u=>{u.call(n,o)}),!o.defaultPrevented}return!0}}function Xt(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const Ae=[],yt=[];let We=[];const Jt=[],rn=Promise.resolve();let pt=!1;function on(){pt||(pt=!0,rn.then($t))}function bt(n){We.push(n)}const wt=new Set;let ze=0;function $t(){if(ze!==0)return;const n=je;do{try{for(;ze<Ae.length;){const e=Ae[ze];ze++,qe(e),sn(e.$$)}}catch(e){throw Ae.length=0,ze=0,e}for(qe(null),Ae.length=0,ze=0;yt.length;)yt.pop()();for(let e=0;e<We.length;e+=1){const t=We[e];wt.has(t)||(wt.add(t),t())}We.length=0}while(Ae.length);for(;Jt.length;)Jt.pop()();pt=!1,wt.clear(),qe(n)}function sn(n){if(n.fragment!==null){n.update(),me(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(bt)}}function ln(n){const e=[],t=[];We.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),We=e}const tt=new Set;let Pe;function it(){Pe={r:0,c:[],p:Pe}}function nt(){Pe.r||me(Pe.c),Pe=Pe.p}function Z(n,e){n&&n.i&&(tt.delete(n),n.i(e))}function K(n,e,t,i){if(n&&n.o){if(tt.has(n))return;tt.add(n),Pe.c.push(()=>{tt.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}function ei(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function un(n,e){K(n,1,1,()=>{e.delete(n.key)})}function an(n,e,t,i,r,o,u,s,c,l,d,a){let f=n.length,g=o.length,y=f;const w={};for(;y--;)w[n[y].key]=y;const E=[],h=new Map,m=new Map,b=[];for(y=g;y--;){const x=a(r,o,y),_=t(x);let C=u.get(_);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[_]))}const L=new Set,M=new Set;function S(x){Z(x,1),x.m(s,d),u.set(x.key,x),d=x.first,g--}for(;f&&g;){const x=E[g-1],_=n[f-1],C=x.key,A=_.key;x===_?(d=x.first,f--,g--):h.has(A)?!u.has(C)||L.has(C)?S(x):M.has(A)?f--:m.get(C)>m.get(A)?(M.add(C),S(x)):(L.add(A),f--):(c(_,u),f--)}for(;f--;){const x=n[f];h.has(x.key)||c(x,u)}for(;g;)S(E[g-1]);return me(b),E}function Ee(n){n&&n.c()}function ve(n,e,t){const{fragment:i,after_update:r}=n.$$;i&&i.m(e,t),bt(()=>{const o=n.$$.on_mount.map(qt).filter(Zt);n.$$.on_destroy?n.$$.on_destroy.push(...o):me(o),n.$$.on_mount=[]}),r.forEach(bt)}function ye(n,e){const t=n.$$;t.fragment!==null&&(ln(t.after_update),me(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function cn(n,e){n.$$.dirty[0]===-1&&(Ae.push(n),on(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function _e(n,e,t,i,r,o,u=null,s=[-1]){const c=je;qe(n);const l=n.$$={fragment:null,ctx:[],props:o,update:U,not_equal:r,bound:Qt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Qt(),dirty:s,skip_bound:!1,root:e.target||c.$$.root};u&&u(l.root);let d=!1;if(l.ctx=t?t(n,e.props||{},(a,f,...g)=>{const y=g.length?g[0]:f;return l.ctx&&r(l.ctx[a],l.ctx[a]=y)&&(!l.skip_bound&&l.bound[a]&&l.bound[a](y),d&&cn(n,a)),f}):[],l.update(),d=!0,me(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){const a=$i(e.target);l.fragment&&l.fragment.l(a),a.forEach(F)}else l.fragment&&l.fragment.c();e.intro&&Z(n.$$.fragment),ve(n,e.target,e.anchor),$t()}qe(c)}class Le{constructor(){ne(this,"$$");ne(this,"$$set")}$destroy(){ye(this,1),this.$destroy=U}$on(e,t){if(!Zt(t))return U;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Zi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const fn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fn);function dn(n){let e,t;return{c(){e=fe("svg"),t=fe("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")},m(i,r){G(i,e,r),P(e,t)},p:U,i:U,o:U,d(i){i&&F(e)}}}class ti extends Le{constructor(e){super(),_e(this,e,null,dn,be,{})}}function hn(n){let e,t;return{c(){e=fe("svg"),t=fe("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")},m(i,r){G(i,e,r),P(e,t)},p:U,i:U,o:U,d(i){i&&F(e)}}}class ii extends Le{constructor(e){super(),_e(this,e,null,hn,be,{})}}function gn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"area.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"area.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function mn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"reverse.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"reverse.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function vn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"poi.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"poi.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function yn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"postal_code.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"postal_code.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function pn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"street.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"street.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function bn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"road.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"road.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function wn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"housenumber.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"housenumber.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function En(n){let e,t,i,r;return{c(){e=z("img"),$(e.src,t=n[5])||p(e,"src",t),p(e,"alt",n[4]),p(e,"class","svelte-ltkwvy")},m(o,u){G(o,e,u),i||(r=te(e,"error",n[14]),i=!0)},p(o,u){u&32&&!$(e.src,t=o[5])&&p(e,"src",t),u&16&&p(e,"alt",o[4])},d(o){o&&F(e),i=!1,r()}}}function ni(n){let e,t;return{c(){e=z("span"),t=we(n[6]),p(e,"class","secondary svelte-ltkwvy")},m(i,r){G(i,e,r),P(e,t)},p(i,r){r&64&&Ge(t,i[6])},d(i){i&&F(e)}}}function _n(n){let e,t,i,r,o,u,s,c,l,d=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",a,f,g=n[2]==="always"||n[2]!=="never"&&!n[0].address&&!n[0].id.startsWith("road.")&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5])&&!n[7],y,w,E=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",h,m,b;function L(_,C){return C&1&&(t=null),C&1&&(i=null),C&1&&(r=null),C&1&&(o=null),_[5]?En:_[0].address?wn:(t==null&&(t=!!_[0].id.startsWith("road.")),t?bn:(i==null&&(i=!!_[0].id.startsWith("address.")),i?pn:(r==null&&(r=!!_[0].id.startsWith("postal_code.")),r?yn:(o==null&&(o=!!_[0].id.startsWith("poi.")),o?vn:_[7]?mn:gn))))}let M=L(n,-1),S=M(n),x=g&&ni(n);return{c(){e=z("li"),S.c(),u=re(),s=z("span"),c=z("span"),l=z("span"),a=we(d),f=re(),x&&x.c(),y=re(),w=z("span"),h=we(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(e,"data-selected",n[1]),p(e,"class","svelte-ltkwvy"),le(e,"selected",n[1])},m(_,C){G(_,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=[te(e,"mouseenter",n[12]),te(e,"focus",n[13])],m=!0)},p(_,[C]){M===(M=L(_,C))&&S?S.p(_,C):(S.d(1),S=M(_),S&&(S.c(),S.m(e,u))),C&1&&d!==(d=(_[7]?_[0].place_name:_[0].place_name.replace(/,.*/,""))+"")&&Ge(a,d),C&37&&(g=_[2]==="always"||_[2]!=="never"&&!_[0].address&&!_[0].id.startsWith("road.")&&!_[0].id.startsWith("address.")&&!_[0].id.startsWith("postal_code.")&&(!_[0].id.startsWith("poi.")||!_[5])&&!_[7]),g?x?x.p(_,C):(x=ni(_),x.c(),x.m(c,null)):x&&(x.d(1),x=null),C&1&&E!==(E=(_[7]?"":_[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ge(h,E),C&2&&p(e,"data-selected",_[1]),C&2&&le(e,"selected",_[1])},i:U,o:U,d(_){_&&F(e),S.d(),x&&x.d(),m=!1,me(b)}}}function Ln(n,e,t){var b;let i,r,{feature:o}=e,{selected:u=!1}=e,{showPlaceType:s}=e,{missingIconsCache:c}=e,{iconsBaseUrl:l}=e;const d=(b=o.properties)==null?void 0:b.categories;let a,f,g=0,y=o.place_type[0]==="reverse";function w(){f&&c.add(f),t(10,g++,g)}function E(L){Xt.call(this,n,L)}function h(L){Xt.call(this,n,L)}const m=()=>w();return n.$$set=L=>{"feature"in L&&t(0,o=L.feature),"selected"in L&&t(1,u=L.selected),"showPlaceType"in L&&t(2,s=L.showPlaceType),"missingIconsCache"in L&&t(9,c=L.missingIconsCache),"iconsBaseUrl"in L&&t(3,l=L.iconsBaseUrl)},n.$$.update=()=>{var L,M,S,x;if(n.$$.dirty&3640)do t(11,i--,i),t(4,a=d==null?void 0:d[i]),t(5,f=a?l+a.replace(/ /g,"_")+".svg":void 0);while(i>-1&&(!f||c.has(f)));n.$$.dirty&1&&t(6,r=((M=(L=o.properties)==null?void 0:L.categories)==null?void 0:M.join(", "))??((x=(S=o.properties)==null?void 0:S.place_type_name)==null?void 0:x[0])??o.place_type[0])},t(11,i=(d==null?void 0:d.length)??0),[o,u,s,l,a,f,r,y,w,c,g,i,E,h,m]}class Sn extends Le{constructor(e){super(),_e(this,e,Ln,_n,be,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function xn(n){let e;return{c(){e=z("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")},m(t,i){G(t,e,i)},p:U,i:U,o:U,d(t){t&&F(e)}}}class Mn extends Le{constructor(e){super(),_e(this,e,null,xn,be,{})}}function kn(n){let e,t,i;return{c(){e=fe("svg"),t=fe("path"),p(t,"stroke-width","4"),p(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"),p(t,"class","svelte-gzo3ar"),p(e,"width",i=n[0]==="list"?20:void 0),p(e,"viewBox","0 0 70 85"),p(e,"fill","none"),p(e,"class","svelte-gzo3ar"),le(e,"in-map",n[0]!=="list"),le(e,"list-icon",n[0]==="list")},m(r,o){G(r,e,o),P(e,t)},p(r,[o]){o&1&&i!==(i=r[0]==="list"?20:void 0)&&p(e,"width",i),o&1&&le(e,"in-map",r[0]!=="list"),o&1&&le(e,"list-icon",r[0]==="list")},i:U,o:U,d(r){r&&F(e)}}}function Cn(n,e,t){let{displayIn:i}=e;return n.$$set=r=>{"displayIn"in r&&t(0,i=r.displayIn)},[i]}class Nn extends Le{constructor(e){super(),_e(this,e,Cn,kn,be,{displayIn:0})}}function Tn(n){let e,t;return{c(){e=fe("svg"),t=fe("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")},m(i,r){G(i,e,r),P(e,t)},p:U,i:U,o:U,d(i){i&&F(e)}}}class Rn extends Le{constructor(e){super(),_e(this,e,null,Tn,be,{})}}function Pn(n){let e,t,i;return{c(){e=fe("svg"),t=fe("circle"),i=fe("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")},m(r,o){G(r,e,o),P(e,t),P(e,i)},p:U,i:U,o:U,d(r){r&&F(e)}}}class In extends Le{constructor(e){super(),_e(this,e,null,Pn,be,{})}}function On(n,e,t){const i=e[1],r=e[0],o=i-r;return n===i&&t?n:((n-r)%o+o)%o+r}function rt(n){const e=[...n];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 Qe;async function An(n,e,t){const i=n==null?void 0:n.getCenterAndZoom();for(const r of e??[])if(!(i&&(r.minZoom!=null&&r.minZoom>i[0]||r.maxZoom!=null&&r.maxZoom<i[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Qe&&r.cachedLocationExpiry&&Qe.time+r.cachedLocationExpiry>Date.now()){if(!Qe.coords)break e;return Qe.coords}let o;try{return o=await new Promise((u,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(c=>{u([c.coords.longitude,c.coords.latitude].map(l=>l.toFixed(6)).join(","))},c=>{s(c)},r)}),o}catch{}finally{r.cachedLocationExpiry&&(Qe={time:Date.now(),coords:o})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(i&&r.type==="map-center")return i[1].toFixed(6)+","+i[2].toFixed(6)}}const Wn=/^(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,ri=/^([+-]?[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,si=/^(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,li=/^(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,ui=/^(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 zn(n){if(!["DMS","DM","DD"].includes(n))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(g=>Number(g.trim())),t=Number(e[0]),i=Number(e[1]),r=Math.abs(t),o=Math.abs(i),u=t>0?"N":"S",s=i>0?"E":"W";let c;n=="DD"&&(c=`${r}° ${u}, ${o}° ${s}`);const l=Math.floor(r),d=Math.floor(o),a=(r-l)*60,f=(o-d)*60;if(n=="DM"){let g=ai(a,3).toFixed(3).padStart(6,"0"),y=ai(f,3).toFixed(3).padStart(6,"0");g.endsWith(".000")&&y.endsWith(".000")&&(g=g.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),c=`${l}° ${g}' ${u}, ${d}° ${y}' ${s}`}if(n=="DMS"){const g=Math.floor(a),y=Math.floor(f);let w=((a-g)*60).toFixed(1).padStart(4,"0"),E=((f-y)*60).toFixed(1).padStart(4,"0");const h=g.toString().padStart(2,"0"),m=y.toString().padStart(2,"0");w.endsWith(".0")&&E.endsWith(".0")&&(w=w.replace(/\.0$/,""),E=E.replace(/\.0$/,"")),c=`${l}° ${h}' ${w}" ${u}, ${d}° ${m}' ${E}" ${s}`}return c}else throw new Error("no decimal coordinates to convert")}function ai(n,e){const t=Math.pow(10,e);return Math.round((n+Number.EPSILON)*t)/t}function Et(n,e){e||(e=5),n=n.replace(/\s+/g," ").trim();let t=null,i=null,r="",o="",u=null,s=[],c=!1;if(Wn.test(n))throw new Error("invalid coordinate value");if(ri.test(n))if(s=ri.exec(n),c=Ze(s),c)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),u="DM";else throw new Error("invalid coordinate format");else if(oi.test(n))if(s=oi.exec(n),c=Ze(s),c){if(t=s[2],i=s[6],t.includes(",")&&(t=t.replace(",",".")),i.includes(",")&&(i=i.replace(",",".")),u="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(i))==Number(i))throw new Error("integer only coordinate provided");s[1]?(r=s[1],o=s[5]):s[4]&&(r=s[4],o=s[8])}else throw new Error("invalid decimal coordinate format");else if(si.test(n))if(s=si.exec(n),c=Ze(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,u="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,u="DMS"),parseInt(s[2])<0&&(t=-1*t),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]);else throw new Error("invalid DMS coordinates format");else if(li.test(n))if(s=li.exec(n),c=Ze(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,u="DM"),s[6]&&(t+=s[6]/3600,u="DMS"),parseInt(s[2])<0&&(t=-1*t),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]);else throw new Error("invalid DMS coordinates format");else if(ui.test(n)){if(s=ui.exec(n),c=Ze(s),s.filter(l=>l).length<=5)throw new Error("invalid coordinates format");if(c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,u="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,u="DMS"),parseInt(s[2])<0&&(t=-1*t),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]);else throw new Error("invalid coordinates format")}if(c){if(Math.abs(i)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!o||!r&&o)throw new Error("invalid coordinates value");if(r&&r==o)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),i.toString().includes(",")&&(i=i.replace(",","."));let l=/S|SOUTH/i;l.test(r)&&t>0&&(t=-1*t),l=/W|WEST/i,l.test(o)&&i>0&&(i=-1*i);const d=s[0].trim();let a,f;const g=/[,/;\u0020]/g,y=d.match(g);if(y==null){const h=Math.floor(n.length/2);a=d.substring(0,h).trim(),f=d.substring(h).trim()}else{let h;y.length%2==1?h=Math.floor(y.length/2):h=y.length/2-1;let m=0;if(h==0)m=d.indexOf(y[0]),a=d.substring(0,m).trim(),f=d.substring(m+1).trim();else{let b=0,L=0;for(;b<=h;)m=d.indexOf(y[b],L),L=m+1,b++;a=d.substring(0,m).trim(),f=d.substring(m+1).trim()}}const w=a.split(".");if(w.length==2&&w[1]==0&&w[1].length!=2)throw new Error("invalid coordinates format");const E=f.split(".");if(E.length==2&&E[1]==0&&E[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(a)||/^\d+$/.test(f))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),i=Number(Number(i).toFixed(e)),Object.freeze({verbatimCoordinates:d,verbatimLatitude:a,verbatimLongitude:f,decimalLatitude:t,decimalLongitude:i,decimalCoordinates:`${t},${i}`,originalFormat:u,closeEnough:Bn,toCoordinateFormat:zn})}else throw new Error("coordinates pattern match failed")}function Ze(n){if(!isNaN(n[0]))return!1;const e=[...n];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,i=/[eastsouthnorthwest]+/i,r=e.length/2;for(let o=0;o<r;o++){const u=e[o],s=e[o+r],c=t.test(u)&&t.test(s),l=i.test(u)&&i.test(s),d=u==s;if(!(u==null&&s==null)){if(u==null||s==null)return!1;if(c||l||d)continue;return!1}}return!0}function ci(n,e){const t=Math.abs(n-e);return Number(t.toFixed(6))<=1e-5}function Bn(n){if(!n)throw new Error("coords must be provided");if(n.includes(",")){const e=n.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return ci(this.decimalLatitude,Number(e[0]))&&ci(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Dn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Et.to=Dn;const Un=[{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"}],Fn={decimalLatitude:40.123,decimalLongitude:-74.123},Gn=[{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}],jn=[{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 qn(){const n=[];return Un.forEach(e=>{e.decimalLatitude?n.push(e):n.push({...e,...Fn})}),[...n,...Gn,...jn]}const Qn=qn();Et.formats=Qn.map(n=>n.verbatimCoordinates);const Zn=Et;function fi(n,e,t){const i=n.slice();return i[86]=e[t],i[88]=t,i}function di(n){let e,t;return e=new Mn({}),{c(){Ee(e.$$.fragment)},m(i,r){ve(e,i,r),t=!0},i(i){t||(Z(e.$$.fragment,i),t=!0)},o(i){K(e.$$.fragment,i),t=!1},d(i){ye(e,i)}}}function hi(n){let e,t,i,r,o;return t=new Rn({}),{c(){e=z("button"),Ee(t.$$.fragment),p(e,"type","button"),p(e,"title",n[9]),p(e,"class","svelte-bz0zu3"),le(e,"active",n[0])},m(u,s){G(u,e,s),ve(t,e,null),i=!0,r||(o=te(e,"click",n[70]),r=!0)},p(u,s){(!i||s[0]&512)&&p(e,"title",u[9]),(!i||s[0]&1)&&le(e,"active",u[0])},i(u){i||(Z(t.$$.fragment,u),i=!0)},o(u){K(t.$$.fragment,u),i=!1},d(u){u&&F(e),ye(t),r=!1,o()}}}function Hn(n){let e,t=[],i=new Map,r,o,u,s=ei(n[14]);const c=l=>l[86].id+(l[86].address?","+l[86].address:"");for(let l=0;l<s.length;l+=1){let d=fi(n,s,l),a=c(d);i.set(a,t[l]=gi(a,d))}return{c(){e=z("ul");for(let l=0;l<t.length;l+=1)t[l].c();p(e,"class","options svelte-bz0zu3")},m(l,d){G(l,e,d);for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(e,null);r=!0,o||(u=[te(e,"mouseleave",n[74]),te(e,"blur",n[75])],o=!0)},p(l,d){d[0]&17880064&&(s=ei(l[14]),it(),t=an(t,d,c,1,l,s,i,e,un,gi,null,fi),nt())},i(l){if(!r){for(let d=0;d<s.length;d+=1)Z(t[d]);r=!0}},o(l){for(let d=0;d<t.length;d+=1)K(t[d]);r=!1},d(l){l&&F(e);for(let d=0;d<t.length;d+=1)t[d].d();o=!1,me(u)}}}function Vn(n){let e,t,i,r,o,u;return t=new ii({}),{c(){e=z("div"),Ee(t.$$.fragment),i=re(),r=z("div"),o=we(n[7]),p(r,"class","svelte-bz0zu3"),p(e,"class","no-results svelte-bz0zu3")},m(s,c){G(s,e,c),ve(t,e,null),P(e,i),P(e,r),P(r,o),u=!0},p(s,c){(!u||c[0]&128)&&Ge(o,s[7])},i(s){u||(Z(t.$$.fragment,s),u=!0)},o(s){K(t.$$.fragment,s),u=!1},d(s){s&&F(e),ye(t)}}}function Yn(n){let e="",t;return{c(){t=we(e)},m(i,r){G(i,t,r)},p:U,i:U,o:U,d(i){i&&F(t)}}}function Kn(n){let e,t,i,r,o,u,s,c,l,d,a;return t=new ii({}),c=new ti({}),{c(){e=z("div"),Ee(t.$$.fragment),i=re(),r=z("div"),o=we(n[6]),u=re(),s=z("button"),Ee(c.$$.fragment),p(r,"class","svelte-bz0zu3"),p(s,"class","svelte-bz0zu3"),p(e,"class","error svelte-bz0zu3")},m(f,g){G(f,e,g),ve(t,e,null),P(e,i),P(e,r),P(r,o),P(e,u),P(e,s),ve(c,s,null),l=!0,d||(a=te(s,"click",n[71]),d=!0)},p(f,g){(!l||g[0]&64)&&Ge(o,f[6])},i(f){l||(Z(t.$$.fragment,f),Z(c.$$.fragment,f),l=!0)},o(f){K(t.$$.fragment,f),K(c.$$.fragment,f),l=!1},d(f){f&&F(e),ye(t),ye(c),d=!1,a()}}}function gi(n,e){let t,i,r;function o(){return e[72](e[88])}function u(){return e[73](e[86])}return i=new Sn({props:{feature:e[86],showPlaceType:e[10],selected:e[15]===e[88],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),i.$on("mouseenter",o),i.$on("focus",u),{key:n,first:null,c(){t=Xi(),Ee(i.$$.fragment),this.first=t},m(s,c){G(s,t,c),ve(i,s,c),r=!0},p(s,c){e=s;const l={};c[0]&16384&&(l.feature=e[86]),c[0]&1024&&(l.showPlaceType=e[10]),c[0]&49152&&(l.selected=e[15]===e[88]),c[0]&4096&&(l.iconsBaseUrl=e[12]),i.$set(l)},i(s){r||(Z(i.$$.fragment,s),r=!0)},o(s){K(i.$$.fragment,s),r=!1},d(s){s&&F(t),ye(i,s)}}}function Xn(n){let e,t,i,r,o,u,s,c,l,d,a,f,g,y,w,E,h,m,b,L,M,S=!1;o=new In({}),a=new ti({});let x=n[19]&&di(),_=n[5]===!0&&hi(n);const C=n[62].default,A=Hi(C,n,n[61],null),B=[Kn,Yn,Vn,Hn],N=[];function W(k,q){var oe,Ne;return k[18]?0:k[16]?((oe=k[14])==null?void 0:oe.length)===0?2:k[16]&&((Ne=k[14])!=null&&Ne.length)?3:-1:1}return~(E=W(n))&&(h=N[E]=B[E](n)),{c(){e=re(),t=z("form"),i=z("div"),r=z("button"),Ee(o.$$.fragment),u=re(),s=z("input"),c=re(),l=z("div"),d=z("button"),Ee(a.$$.fragment),f=re(),x&&x.c(),g=re(),_&&_.c(),y=re(),A&&A.c(),w=re(),h&&h.c(),p(r,"class","search-button svelte-bz0zu3"),p(r,"type","button"),p(s,"placeholder",n[8]),p(s,"aria-label",n[8]),p(s,"class","svelte-bz0zu3"),p(d,"type","button"),p(d,"title",n[3]),p(d,"class","svelte-bz0zu3"),p(l,"class","clear-button-container svelte-bz0zu3"),le(l,"displayable",n[1]!==""),p(i,"class","input-group svelte-bz0zu3"),p(t,"tabindex","0"),p(t,"class",m=Vt(n[2])+" svelte-bz0zu3"),le(t,"can-collapse",n[4]&&n[1]==="")},m(k,q){G(k,e,q),G(k,t,q),P(t,i),P(i,r),ve(o,r,null),P(i,u),P(i,s),n[64](s),Yt(s,n[1]),P(i,c),P(i,l),P(l,d),ve(a,d,null),P(l,f),x&&x.m(l,null),P(i,g),_&&_.m(i,null),P(i,y),A&&A.m(i,null),P(t,w),~E&&N[E].m(t,null),b=!0,L||(M=[te(r,"click",n[63]),te(s,"input",n[65]),te(s,"focus",n[66]),te(s,"blur",n[67]),te(s,"keydown",n[22]),te(s,"input",n[68]),te(d,"click",n[69]),te(t,"submit",Ji(n[21]))],L=!0)},p(k,q){(!b||q[0]&256)&&p(s,"placeholder",k[8]),(!b||q[0]&256)&&p(s,"aria-label",k[8]),q[0]&2&&s.value!==k[1]&&Yt(s,k[1]),(!b||q[0]&8)&&p(d,"title",k[3]),k[19]?x?q[0]&524288&&Z(x,1):(x=di(),x.c(),Z(x,1),x.m(l,null)):x&&(it(),K(x,1,1,()=>{x=null}),nt()),(!b||q[0]&2)&&le(l,"displayable",k[1]!==""),k[5]===!0?_?(_.p(k,q),q[0]&32&&Z(_,1)):(_=hi(k),_.c(),Z(_,1),_.m(i,y)):_&&(it(),K(_,1,1,()=>{_=null}),nt()),A&&A.p&&(!b||q[1]&1073741824)&&Yi(A,C,k,k[61],b?Vi(C,k[61],q,null):Ki(k[61]),null);let oe=E;E=W(k),E===oe?~E&&N[E].p(k,q):(h&&(it(),K(N[oe],1,1,()=>{N[oe]=null}),nt()),~E?(h=N[E],h?h.p(k,q):(h=N[E]=B[E](k),h.c()),Z(h,1),h.m(t,null)):h=null),(!b||q[0]&4&&m!==(m=Vt(k[2])+" svelte-bz0zu3"))&&p(t,"class",m),(!b||q[0]&22)&&le(t,"can-collapse",k[4]&&k[1]==="")},i(k){b||(Z(S),Z(o.$$.fragment,k),Z(a.$$.fragment,k),Z(x),Z(_),Z(A,k),Z(h),b=!0)},o(k){K(S),K(o.$$.fragment,k),K(a.$$.fragment,k),K(x),K(_),K(A,k),K(h),b=!1},d(k){k&&(F(e),F(t)),ye(o),n[64](null),ye(a),x&&x.d(),_&&_.d(),A&&A.d(k),~E&&N[E].d(),L=!1,me(M)}}}function Jn(n,e,t){let i,{$$slots:r={},$$scope:o}=e;const u={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};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,{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:A=[{type:"server-geolocation"}]}=e,{reverseActive:B=w==="always"}=e,{reverseButtonTitle:N="toggle reverse geocoding"}=e,{searchValue:W=""}=e,{pickedResultStyle:k="full-geometry"}=e,{showPlaceType:q="if-needed"}=e,{showResultsWhileTyping:oe=!0}=e,{autocompleteTimeout:Ne=void 0}=e,{selectFirst:De=!0}=e,{flyToSelected:Pt=!1}=e,{markerOnSelected:at=!0}=e,{types:Ie=void 0}=e,{exhaustiveReverseGeocoding:It=!1}=e,{excludeTypes:ct=!1}=e,{zoom:ft=u}=e,{apiUrl:Ot="https://api.maptiler.com/geocoding"}=e,{fetchParameters:At={}}=e,{iconsBaseUrl:Di="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/"}=e,{adjustUrlQuery:Wt=()=>{}}=e;function Gr(){he.focus()}function jr(){he.blur()}function Ui(v,Q=!0,V=!1){t(1,W=v),Q?(t(15,j=-1),Gi()):(Dt(!V,V),setTimeout(()=>{he.focus(),he.select()}))}function qr(){t(14,O=void 0),t(57,R=void 0),t(15,j=-1)}function Qr(){t(56,H=[]),t(57,R=void 0)}let Ue=!1,O,H,R,Fi="",he,j=-1,ge,dt=[],Oe,Te,ae,ht,zt;const Zr=new Set,Re=nn();function Hr(){return!!ae}tn(()=>{S&&(S.setEventHandler(void 0),S.indicateReverse(!1),S.setSelectedMarker(-1),S.setMarkers(void 0,void 0))});function Gi(v){if(Te&&(window.clearTimeout(Te),Te=void 0),ae){window.clearTimeout(ae),t(58,ae=void 0),Je(W,{exact:!0});return}if(j>-1&&O)t(57,R=O[j]),t(1,W=R.place_type[0]==="reverse"?R.place_name:R.place_name.replace(/,.*/,"")),t(18,ge=void 0),t(56,H=void 0),t(15,j=-1);else if(W){const Q=v||!Bt(W);Je(W,{exact:!0}).then(()=>{t(56,H=O),t(57,R=void 0),Q&&Vr()}).catch(V=>t(18,ge=V))}}function Bt(v){try{return Zn(v,6)}catch{return!1}}async function Je(v,{byId:Q=!1,exact:V=!1,appendSpace:ce=!1}={}){t(18,ge=void 0),Oe==null||Oe.abort();const se=new AbortController;t(19,Oe=se);try{const I=Bt(v),X=new URLSearchParams;if(L!==void 0&&X.set("language",Array.isArray(L)?L.join(","):L??""),Ie&&X.set("types",Ie.join(",")),ct&&X.set("excludeTypes",String(ct)),l&&X.set("bbox",l.map(mt=>mt.toFixed(6)).join(",")),g&&X.set("country",Array.isArray(g)?g.join(","):g),!Q&&!I){const mt=await An(S,A,se);mt&&X.set("proximity",mt),(V||!oe)&&X.set("autocomplete","false"),X.set("fuzzyMatch",String(b))}M!==void 0&&(It||!I||(Ie==null?void 0:Ie.length)===1)&&X.set("limit",String(M)),X.set("key",c),Wt(X);const gt=Ot+"/"+encodeURIComponent(I?I.decimalLongitude+","+I.decimalLatitude:v+(ce?" ":""))+".json?"+X.toString();if(gt===Fi){Q?(t(14,O=void 0),t(57,R=dt[0])):t(14,O=dt);return}Fi=gt;const Ft=await fetch(gt,{signal:se.signal,...At});if(!Ft.ok)throw new Error(await Ft.text());const Gt=await Ft.json();Re("response",{url:gt,featureCollection:Gt}),Q?(t(14,O=void 0),t(57,R=Gt.features[0]),dt=[R]):(t(14,O=Gt.features.filter(h)),I&&O.unshift({type:"Feature",properties:{},id:"reverse_"+I.decimalLongitude+"_"+I.decimalLatitude,text:I.decimalLatitude+", "+I.decimalLongitude,place_name:I.decimalLatitude+", "+I.decimalLongitude,place_type:["reverse"],center:[I.decimalLongitude,I.decimalLatitude],bbox:[I.decimalLongitude,I.decimalLatitude,I.decimalLongitude,I.decimalLatitude],geometry:{type:"Point",coordinates:[I.decimalLongitude,I.decimalLatitude]}}),dt=O,I&&he.focus())}catch(I){if(I&&typeof I=="object"&&"name"in I&&I.name==="AbortError")return;throw I}finally{se===Oe&&t(19,Oe=void 0)}}function Vr(){var ce;if(!(H!=null&&H.length)||!m)return;const v=[180,90,-180,-90],Q=!H.some(se=>!se.matching_text);let V;for(const se of H){const I=$e(se);if(V=V===void 0?I:I===void 0?V:Math.max(V,I),Q||!se.matching_text)for(const X of[0,1,2,3])v[X]=Math[X<2?"min":"max"](v[X],((ce=se.bbox)==null?void 0:ce[X])??se.center[X%2])}S&&H.length>0&&(R&&v[0]===v[2]&&v[1]===v[3]?S.flyTo(R.center,$e(R)):S.fitBounds(rt(v),50,V))}function $e(v){var V;if(!v.bbox||v.bbox[0]!==v.bbox[2]&&v.bbox[1]!==v.bbox[3])return;const Q=v.id.replace(/\..*/,"");return(Array.isArray((V=v.properties)==null?void 0:V.categories)?v.properties.categories.reduce((ce,se)=>{const I=ft[Q+"."+se];return ce===void 0?I:I===void 0?ce:Math.max(ce,I)},void 0):void 0)??ft[Q]}function Yr(v){t(0,B=w==="always"),t(14,O=void 0),t(57,R=void 0),t(15,j=-1),Ui(v[1].toFixed(6)+", "+On(v[0],[-180,180],!0).toFixed(6),!1,!0)}function Kr(v){if(!O)return;let Q=v.key==="ArrowDown"?1:v.key==="ArrowUp"?-1:0;Q&&(j===(De?0:-1)&&Q===-1&&t(15,j=O.length),t(15,j+=Q),j>=O.length&&t(15,j=-1),j<0&&De&&t(15,j=0),v.preventDefault())}function Dt(v=!0,Q=!1){if(t(18,ge=void 0),Te&&(window.clearTimeout(Te),Te=void 0),ae&&(window.clearTimeout(ae),t(58,ae=void 0)),!oe&&!Q||W.length<x){t(14,O=void 0);return}const V=W;Te=window.setTimeout(()=>{Te=void 0,Je(V).catch(ce=>t(18,ge=ce))},v?y:0),W.endsWith(" ")||t(58,ae=window.setTimeout(()=>{t(58,ae=void 0),Je(V,{appendSpace:!0}).catch(ce=>t(18,ge=ce))},Ne))}function Ut(v){t(57,R=v),t(1,W=v.place_name),t(15,j=-1)}const Xr=()=>he.focus();function Jr(v){yt[v?"unshift":"push"](()=>{he=v,t(17,he)})}function $r(){W=this.value,t(1,W),t(13,Ue),t(28,a)}const eo=()=>t(13,Ue=!0),to=()=>t(13,Ue=!1),io=()=>Dt(),no=()=>{t(1,W=""),he.focus()},ro=()=>t(0,B=!B),oo=()=>t(18,ge=void 0),so=v=>t(15,j=v),lo=v=>Ut(v),uo=()=>{De||t(15,j=-1)},ao=()=>{};return n.$$set=v=>{"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),"enableReverse"in v&&t(5,w=v.enableReverse),"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,A=v.proximity),"reverseActive"in v&&t(0,B=v.reverseActive),"reverseButtonTitle"in v&&t(9,N=v.reverseButtonTitle),"searchValue"in v&&t(1,W=v.searchValue),"pickedResultStyle"in v&&t(39,k=v.pickedResultStyle),"showPlaceType"in v&&t(10,q=v.showPlaceType),"showResultsWhileTyping"in v&&t(40,oe=v.showResultsWhileTyping),"autocompleteTimeout"in v&&t(41,Ne=v.autocompleteTimeout),"selectFirst"in v&&t(11,De=v.selectFirst),"flyToSelected"in v&&t(42,Pt=v.flyToSelected),"markerOnSelected"in v&&t(43,at=v.markerOnSelected),"types"in v&&t(44,Ie=v.types),"exhaustiveReverseGeocoding"in v&&t(45,It=v.exhaustiveReverseGeocoding),"excludeTypes"in v&&t(46,ct=v.excludeTypes),"zoom"in v&&t(47,ft=v.zoom),"apiUrl"in v&&t(48,Ot=v.apiUrl),"fetchParameters"in v&&t(49,At=v.fetchParameters),"iconsBaseUrl"in v&&t(12,Di=v.iconsBaseUrl),"adjustUrlQuery"in v&&t(50,Wt=v.adjustUrlQuery),"$$scope"in v&&t(61,o=v.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&32&&t(0,B=w==="always"),n.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,ht=Ue),a&&!Ue&&t(1,W="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&64&&W.length<x&&(t(57,R=void 0),t(14,O=void 0),t(18,ge=void 0),t(56,H=O)),n.$$.dirty[1]&67109120&&k!=="marker-only"&&R&&!R.address&&R.geometry.type==="Point"&&R.place_type[0]!=="reverse"&&Je(R.id,{byId:!0}).catch(v=>t(18,ge=v)),n.$$.dirty[1]&335544354&&(S&&R&&R.id!==zt&&m&&(!R.bbox||R.bbox[0]===R.bbox[2]&&R.bbox[1]===R.bbox[3]?S.flyTo(R.center,$e(R)):S.fitBounds(rt(R.bbox),50,$e(R)),t(14,O=void 0),t(56,H=void 0),t(15,j=-1)),t(59,zt=R==null?void 0:R.id)),n.$$.dirty[0]&18432&&De&&O!=null&&O.length&&(Hr()||t(15,j=0)),n.$$.dirty[0]&2&&t(15,j=-1),n.$$.dirty[0]&16384|n.$$.dirty[1]&33554432&&H!==O&&t(56,H=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&33554464&&S&&S.setEventHandler(v=>{switch(v.type){case"mapClick":B&&Yr(v.coordinates);break;case"markerClick":{const Q=O==null?void 0:O.find(V=>V.id===v.id);Q&&Ut(Q)}break;case"markerMouseEnter":H&&t(15,j=ht?(O==null?void 0:O.findIndex(Q=>Q.id===v.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,j=-1);break}}),n.$$.dirty[0]&49152&&t(60,i=O==null?void 0:O[j]),n.$$.dirty[1]&536872994&&S&&i&&m&&Pt&&S.flyTo(i.center,$e(i)),n.$$.dirty[1]&4128&&(at||S==null||S.setMarkers(void 0,void 0)),n.$$.dirty[1]&570429472&&S&&at&&!H&&(S.setMarkers(i?[i]:void 0,void 0),S.setSelectedMarker(i?0:-1)),n.$$.dirty[1]&100663328&&S&&S.setMarkers(H,R),n.$$.dirty[0]&32768|n.$$.dirty[1]&33554464&&H&&S&&S.setSelectedMarker(j),n.$$.dirty[1]&671088640&&i&&(window.clearTimeout(ae),t(58,ae=void 0)),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&S){const v=Bt(W);S.setReverseMarker(v?[v.decimalLongitude,v.decimalLatitude]:void 0)}n.$$.dirty[1]&536870912&&Re("select",{feature:i}),n.$$.dirty[1]&67108864&&Re("pick",{feature:R}),n.$$.dirty[0]&81920&&Re("optionsvisibilitychange",{optionsVisible:ht&&!!O}),n.$$.dirty[0]&16384&&Re("featureslisted",{features:O}),n.$$.dirty[1]&33554432&&Re("featuresmarked",{features:H}),n.$$.dirty[0]&1&&Re("reversetoggle",{reverse:B}),n.$$.dirty[0]&2&&Re("querychange",{query:W}),n.$$.dirty[0]&1|n.$$.dirty[1]&32&&S&&S.indicateReverse(B)},[B,W,s,d,f,w,E,_,C,N,q,De,Di,Ue,O,j,ht,he,ge,Oe,Zr,Gi,Kr,Dt,Ut,u,c,l,a,g,y,h,m,b,L,M,S,x,A,k,oe,Ne,Pt,at,Ie,It,ct,ft,Ot,At,Wt,Gr,jr,Ui,qr,Qr,H,R,ae,zt,i,o,r,Xr,Jr,$r,eo,to,io,no,ro,oo,so,lo,uo,ao]}let $n=class extends Le{constructor(e){super(),_e(this,e,Jn,Xn,be,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,enableReverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,pickedResultStyle:39,showPlaceType:10,showResultsWhileTyping:40,autocompleteTimeout:41,selectFirst:11,flyToSelected:42,markerOnSelected:43,types:44,exhaustiveReverseGeocoding:45,excludeTypes:46,zoom:47,apiUrl:48,fetchParameters:49,iconsBaseUrl:12,adjustUrlQuery:50,focus:51,blur:52,setQuery:53,clearList:54,clearMap:55},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[51]}get blur(){return this.$$.ctx[52]}get setQuery(){return this.$$.ctx[53]}get clearList(){return this.$$.ctx[54]}get clearMap(){return this.$$.ctx[55]}};function He(n,e,t={}){const i={type:"Feature"};return(t.id===0||t.id)&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.properties=e||{},i.geometry=n,i}function _t(n,e,t={}){for(const r of n){if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(r[r.length-1].length!==r[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;o<r[r.length-1].length;o++)if(r[r.length-1][o]!==r[0][o])throw new Error("First and last Position are not equivalent.")}return He({type:"Polygon",coordinates:n},e,t)}function Ve(n,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=n,t}function mi(n,e,t={}){return He({type:"MultiPolygon",coordinates:n},e,t)}/**
|
|
1
|
+
(function(T,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("@maptiler/sdk")):typeof define=="function"&&define.amd?define(["exports","@maptiler/sdk"],D):(T=typeof globalThis<"u"?globalThis:T||self,D(T.maptilersdkMaptilerGeocoder={},T.maptilersdk))})(this,function(T,D){"use strict";var co=Object.defineProperty;var ji=T=>{throw TypeError(T)};var fo=(T,D,J)=>D in T?co(T,D,{enumerable:!0,configurable:!0,writable:!0,value:J}):T[D]=J;var ne=(T,D,J)=>fo(T,typeof D!="symbol"?D+"":D,J),qi=(T,D,J)=>D.has(T)||ji("Cannot "+J);var Y=(T,D,J)=>(qi(T,D,"read from private field"),J?J.call(T):D.get(T)),jt=(T,D,J)=>D.has(T)?ji("Cannot add the same private member more than once"):D instanceof WeakSet?D.add(T):D.set(T,J),vt=(T,D,J,Fe)=>(qi(T,D,"write to private field"),Fe?Fe.call(T,J):D.set(T,J),J);function J(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Fe=J(D);function U(){}function Qi(n,e){for(const t in e)n[t]=e[t];return n}function qt(n){return n()}function Qt(){return Object.create(null)}function me(n){n.forEach(qt)}function Zt(n){return typeof n=="function"}function be(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let et;function $(n,e){return n===e?!0:(et||(et=document.createElement("a")),et.href=e,n===et.href)}function Zi(n){return Object.keys(n).length===0}function Hi(n,e,t,i){if(n){const r=Ht(n,e,t,i);return n[0](r)}}function Ht(n,e,t,i){return n[1]&&i?Qi(t.ctx.slice(),n[1](i(e))):t.ctx}function Vi(n,e,t,i){if(n[2]&&i){const r=n[2](i(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const o=[],u=Math.max(e.dirty.length,r.length);for(let s=0;s<u;s+=1)o[s]=e.dirty[s]|r[s];return o}return e.dirty|r}return e.dirty}function Yi(n,e,t,i,r,o){if(r){const u=Ht(e,t,i,o);n.p(u,r)}}function Ki(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function Vt(n){return n??""}function P(n,e){n.appendChild(e)}function G(n,e,t){n.insertBefore(e,t||null)}function F(n){n.parentNode&&n.parentNode.removeChild(n)}function z(n){return document.createElement(n)}function fe(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function we(n){return document.createTextNode(n)}function re(){return we(" ")}function Xi(){return we("")}function te(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function Ji(n){return function(e){return e.preventDefault(),n.call(this,e)}}function p(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function $i(n){return Array.from(n.childNodes)}function Ge(n,e){e=""+e,n.data!==e&&(n.data=e)}function Yt(n,e){n.value=e??""}function le(n,e,t){n.classList.toggle(e,!!t)}function en(n,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(n,{detail:e,bubbles:t,cancelable:i})}let je;function qe(n){je=n}function Kt(){if(!je)throw new Error("Function called outside component initialization");return je}function tn(n){Kt().$$.on_destroy.push(n)}function nn(){const n=Kt();return(e,t,{cancelable:i=!1}={})=>{const r=n.$$.callbacks[e];if(r){const o=en(e,t,{cancelable:i});return r.slice().forEach(u=>{u.call(n,o)}),!o.defaultPrevented}return!0}}function Xt(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const Ae=[],yt=[];let We=[];const Jt=[],rn=Promise.resolve();let pt=!1;function on(){pt||(pt=!0,rn.then($t))}function bt(n){We.push(n)}const wt=new Set;let ze=0;function $t(){if(ze!==0)return;const n=je;do{try{for(;ze<Ae.length;){const e=Ae[ze];ze++,qe(e),sn(e.$$)}}catch(e){throw Ae.length=0,ze=0,e}for(qe(null),Ae.length=0,ze=0;yt.length;)yt.pop()();for(let e=0;e<We.length;e+=1){const t=We[e];wt.has(t)||(wt.add(t),t())}We.length=0}while(Ae.length);for(;Jt.length;)Jt.pop()();pt=!1,wt.clear(),qe(n)}function sn(n){if(n.fragment!==null){n.update(),me(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(bt)}}function ln(n){const e=[],t=[];We.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),We=e}const tt=new Set;let Pe;function it(){Pe={r:0,c:[],p:Pe}}function nt(){Pe.r||me(Pe.c),Pe=Pe.p}function Z(n,e){n&&n.i&&(tt.delete(n),n.i(e))}function K(n,e,t,i){if(n&&n.o){if(tt.has(n))return;tt.add(n),Pe.c.push(()=>{tt.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}function ei(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function un(n,e){K(n,1,1,()=>{e.delete(n.key)})}function an(n,e,t,i,r,o,u,s,c,l,d,a){let f=n.length,g=o.length,y=f;const w={};for(;y--;)w[n[y].key]=y;const E=[],h=new Map,m=new Map,b=[];for(y=g;y--;){const x=a(r,o,y),_=t(x);let C=u.get(_);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[_]))}const L=new Set,M=new Set;function S(x){Z(x,1),x.m(s,d),u.set(x.key,x),d=x.first,g--}for(;f&&g;){const x=E[g-1],_=n[f-1],C=x.key,A=_.key;x===_?(d=x.first,f--,g--):h.has(A)?!u.has(C)||L.has(C)?S(x):M.has(A)?f--:m.get(C)>m.get(A)?(M.add(C),S(x)):(L.add(A),f--):(c(_,u),f--)}for(;f--;){const x=n[f];h.has(x.key)||c(x,u)}for(;g;)S(E[g-1]);return me(b),E}function Ee(n){n&&n.c()}function ve(n,e,t){const{fragment:i,after_update:r}=n.$$;i&&i.m(e,t),bt(()=>{const o=n.$$.on_mount.map(qt).filter(Zt);n.$$.on_destroy?n.$$.on_destroy.push(...o):me(o),n.$$.on_mount=[]}),r.forEach(bt)}function ye(n,e){const t=n.$$;t.fragment!==null&&(ln(t.after_update),me(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function cn(n,e){n.$$.dirty[0]===-1&&(Ae.push(n),on(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function _e(n,e,t,i,r,o,u=null,s=[-1]){const c=je;qe(n);const l=n.$$={fragment:null,ctx:[],props:o,update:U,not_equal:r,bound:Qt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Qt(),dirty:s,skip_bound:!1,root:e.target||c.$$.root};u&&u(l.root);let d=!1;if(l.ctx=t?t(n,e.props||{},(a,f,...g)=>{const y=g.length?g[0]:f;return l.ctx&&r(l.ctx[a],l.ctx[a]=y)&&(!l.skip_bound&&l.bound[a]&&l.bound[a](y),d&&cn(n,a)),f}):[],l.update(),d=!0,me(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){const a=$i(e.target);l.fragment&&l.fragment.l(a),a.forEach(F)}else l.fragment&&l.fragment.c();e.intro&&Z(n.$$.fragment),ve(n,e.target,e.anchor),$t()}qe(c)}class Le{constructor(){ne(this,"$$");ne(this,"$$set")}$destroy(){ye(this,1),this.$destroy=U}$on(e,t){if(!Zt(t))return U;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!Zi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const fn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fn);function dn(n){let e,t;return{c(){e=fe("svg"),t=fe("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")},m(i,r){G(i,e,r),P(e,t)},p:U,i:U,o:U,d(i){i&&F(e)}}}class ti extends Le{constructor(e){super(),_e(this,e,null,dn,be,{})}}function hn(n){let e,t;return{c(){e=fe("svg"),t=fe("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")},m(i,r){G(i,e,r),P(e,t)},p:U,i:U,o:U,d(i){i&&F(e)}}}class ii extends Le{constructor(e){super(),_e(this,e,null,hn,be,{})}}function gn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"area.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"area.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function mn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"reverse.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"reverse.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function vn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"poi.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"poi.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function yn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"postal_code.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"postal_code.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function pn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"street.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"street.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function bn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"road.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"road.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function wn(n){let e,t;return{c(){e=z("img"),$(e.src,t=n[3]+"housenumber.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){G(i,e,r)},p(i,r){r&8&&!$(e.src,t=i[3]+"housenumber.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&F(e)}}}function En(n){let e,t,i,r;return{c(){e=z("img"),$(e.src,t=n[5])||p(e,"src",t),p(e,"alt",n[4]),p(e,"class","svelte-ltkwvy")},m(o,u){G(o,e,u),i||(r=te(e,"error",n[14]),i=!0)},p(o,u){u&32&&!$(e.src,t=o[5])&&p(e,"src",t),u&16&&p(e,"alt",o[4])},d(o){o&&F(e),i=!1,r()}}}function ni(n){let e,t;return{c(){e=z("span"),t=we(n[6]),p(e,"class","secondary svelte-ltkwvy")},m(i,r){G(i,e,r),P(e,t)},p(i,r){r&64&&Ge(t,i[6])},d(i){i&&F(e)}}}function _n(n){let e,t,i,r,o,u,s,c,l,d=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",a,f,g=n[2]==="always"||n[2]!=="never"&&!n[0].address&&!n[0].id.startsWith("road.")&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5])&&!n[7],y,w,E=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",h,m,b;function L(_,C){return C&1&&(t=null),C&1&&(i=null),C&1&&(r=null),C&1&&(o=null),_[5]?En:_[0].address?wn:(t==null&&(t=!!_[0].id.startsWith("road.")),t?bn:(i==null&&(i=!!_[0].id.startsWith("address.")),i?pn:(r==null&&(r=!!_[0].id.startsWith("postal_code.")),r?yn:(o==null&&(o=!!_[0].id.startsWith("poi.")),o?vn:_[7]?mn:gn))))}let M=L(n,-1),S=M(n),x=g&&ni(n);return{c(){e=z("li"),S.c(),u=re(),s=z("span"),c=z("span"),l=z("span"),a=we(d),f=re(),x&&x.c(),y=re(),w=z("span"),h=we(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(e,"data-selected",n[1]),p(e,"class","svelte-ltkwvy"),le(e,"selected",n[1])},m(_,C){G(_,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=[te(e,"mouseenter",n[12]),te(e,"focus",n[13])],m=!0)},p(_,[C]){M===(M=L(_,C))&&S?S.p(_,C):(S.d(1),S=M(_),S&&(S.c(),S.m(e,u))),C&1&&d!==(d=(_[7]?_[0].place_name:_[0].place_name.replace(/,.*/,""))+"")&&Ge(a,d),C&37&&(g=_[2]==="always"||_[2]!=="never"&&!_[0].address&&!_[0].id.startsWith("road.")&&!_[0].id.startsWith("address.")&&!_[0].id.startsWith("postal_code.")&&(!_[0].id.startsWith("poi.")||!_[5])&&!_[7]),g?x?x.p(_,C):(x=ni(_),x.c(),x.m(c,null)):x&&(x.d(1),x=null),C&1&&E!==(E=(_[7]?"":_[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ge(h,E),C&2&&p(e,"data-selected",_[1]),C&2&&le(e,"selected",_[1])},i:U,o:U,d(_){_&&F(e),S.d(),x&&x.d(),m=!1,me(b)}}}function Ln(n,e,t){var b;let i,r,{feature:o}=e,{selected:u=!1}=e,{showPlaceType:s}=e,{missingIconsCache:c}=e,{iconsBaseUrl:l}=e;const d=(b=o.properties)==null?void 0:b.categories;let a,f,g=0,y=o.place_type[0]==="reverse";function w(){f&&c.add(f),t(10,g++,g)}function E(L){Xt.call(this,n,L)}function h(L){Xt.call(this,n,L)}const m=()=>w();return n.$$set=L=>{"feature"in L&&t(0,o=L.feature),"selected"in L&&t(1,u=L.selected),"showPlaceType"in L&&t(2,s=L.showPlaceType),"missingIconsCache"in L&&t(9,c=L.missingIconsCache),"iconsBaseUrl"in L&&t(3,l=L.iconsBaseUrl)},n.$$.update=()=>{var L,M,S,x;if(n.$$.dirty&3640)do t(11,i--,i),t(4,a=d==null?void 0:d[i]),t(5,f=a?l+a.replace(/ /g,"_")+".svg":void 0);while(i>-1&&(!f||c.has(f)));n.$$.dirty&1&&t(6,r=((M=(L=o.properties)==null?void 0:L.categories)==null?void 0:M.join(", "))??((x=(S=o.properties)==null?void 0:S.place_type_name)==null?void 0:x[0])??o.place_type[0])},t(11,i=(d==null?void 0:d.length)??0),[o,u,s,l,a,f,r,y,w,c,g,i,E,h,m]}class Sn extends Le{constructor(e){super(),_e(this,e,Ln,_n,be,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function xn(n){let e;return{c(){e=z("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")},m(t,i){G(t,e,i)},p:U,i:U,o:U,d(t){t&&F(e)}}}class Mn extends Le{constructor(e){super(),_e(this,e,null,xn,be,{})}}function kn(n){let e,t,i;return{c(){e=fe("svg"),t=fe("path"),p(t,"stroke-width","4"),p(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"),p(t,"class","svelte-gzo3ar"),p(e,"width",i=n[0]==="list"?20:void 0),p(e,"viewBox","0 0 70 85"),p(e,"fill","none"),p(e,"class","svelte-gzo3ar"),le(e,"in-map",n[0]!=="list"),le(e,"list-icon",n[0]==="list")},m(r,o){G(r,e,o),P(e,t)},p(r,[o]){o&1&&i!==(i=r[0]==="list"?20:void 0)&&p(e,"width",i),o&1&&le(e,"in-map",r[0]!=="list"),o&1&&le(e,"list-icon",r[0]==="list")},i:U,o:U,d(r){r&&F(e)}}}function Cn(n,e,t){let{displayIn:i}=e;return n.$$set=r=>{"displayIn"in r&&t(0,i=r.displayIn)},[i]}class Nn extends Le{constructor(e){super(),_e(this,e,Cn,kn,be,{displayIn:0})}}function Tn(n){let e,t;return{c(){e=fe("svg"),t=fe("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")},m(i,r){G(i,e,r),P(e,t)},p:U,i:U,o:U,d(i){i&&F(e)}}}class Rn extends Le{constructor(e){super(),_e(this,e,null,Tn,be,{})}}function Pn(n){let e,t,i;return{c(){e=fe("svg"),t=fe("circle"),i=fe("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")},m(r,o){G(r,e,o),P(e,t),P(e,i)},p:U,i:U,o:U,d(r){r&&F(e)}}}class In extends Le{constructor(e){super(),_e(this,e,null,Pn,be,{})}}function On(n,e,t){const i=e[1],r=e[0],o=i-r;return n===i&&t?n:((n-r)%o+o)%o+r}function rt(n){const e=[...n];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 Qe;async function An(n,e,t){const i=n==null?void 0:n.getCenterAndZoom();for(const r of e??[])if(!(i&&(r.minZoom!=null&&r.minZoom>i[0]||r.maxZoom!=null&&r.maxZoom<i[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Qe&&r.cachedLocationExpiry&&Qe.time+r.cachedLocationExpiry>Date.now()){if(!Qe.coords)break e;return Qe.coords}let o;try{return o=await new Promise((u,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(c=>{u([c.coords.longitude,c.coords.latitude].map(l=>l.toFixed(6)).join(","))},c=>{s(c)},r)}),o}catch{}finally{r.cachedLocationExpiry&&(Qe={time:Date.now(),coords:o})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(i&&r.type==="map-center")return i[1].toFixed(6)+","+i[2].toFixed(6)}}const Wn=/^(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,ri=/^([+-]?[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,si=/^(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,li=/^(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,ui=/^(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 zn(n){if(!["DMS","DM","DD"].includes(n))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(g=>Number(g.trim())),t=Number(e[0]),i=Number(e[1]),r=Math.abs(t),o=Math.abs(i),u=t>0?"N":"S",s=i>0?"E":"W";let c;n=="DD"&&(c=`${r}° ${u}, ${o}° ${s}`);const l=Math.floor(r),d=Math.floor(o),a=(r-l)*60,f=(o-d)*60;if(n=="DM"){let g=ai(a,3).toFixed(3).padStart(6,"0"),y=ai(f,3).toFixed(3).padStart(6,"0");g.endsWith(".000")&&y.endsWith(".000")&&(g=g.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),c=`${l}° ${g}' ${u}, ${d}° ${y}' ${s}`}if(n=="DMS"){const g=Math.floor(a),y=Math.floor(f);let w=((a-g)*60).toFixed(1).padStart(4,"0"),E=((f-y)*60).toFixed(1).padStart(4,"0");const h=g.toString().padStart(2,"0"),m=y.toString().padStart(2,"0");w.endsWith(".0")&&E.endsWith(".0")&&(w=w.replace(/\.0$/,""),E=E.replace(/\.0$/,"")),c=`${l}° ${h}' ${w}" ${u}, ${d}° ${m}' ${E}" ${s}`}return c}else throw new Error("no decimal coordinates to convert")}function ai(n,e){const t=Math.pow(10,e);return Math.round((n+Number.EPSILON)*t)/t}function Et(n,e){e||(e=5),n=n.replace(/\s+/g," ").trim();let t=null,i=null,r="",o="",u=null,s=[],c=!1;if(Wn.test(n))throw new Error("invalid coordinate value");if(ri.test(n))if(s=ri.exec(n),c=Ze(s),c)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),u="DM";else throw new Error("invalid coordinate format");else if(oi.test(n))if(s=oi.exec(n),c=Ze(s),c){if(t=s[2],i=s[6],t.includes(",")&&(t=t.replace(",",".")),i.includes(",")&&(i=i.replace(",",".")),u="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(i))==Number(i))throw new Error("integer only coordinate provided");s[1]?(r=s[1],o=s[5]):s[4]&&(r=s[4],o=s[8])}else throw new Error("invalid decimal coordinate format");else if(si.test(n))if(s=si.exec(n),c=Ze(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,u="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,u="DMS"),parseInt(s[2])<0&&(t=-1*t),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]);else throw new Error("invalid DMS coordinates format");else if(li.test(n))if(s=li.exec(n),c=Ze(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,u="DM"),s[6]&&(t+=s[6]/3600,u="DMS"),parseInt(s[2])<0&&(t=-1*t),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]);else throw new Error("invalid DMS coordinates format");else if(ui.test(n)){if(s=ui.exec(n),c=Ze(s),s.filter(l=>l).length<=5)throw new Error("invalid coordinates format");if(c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,u="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,u="DMS"),parseInt(s[2])<0&&(t=-1*t),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]);else throw new Error("invalid coordinates format")}if(c){if(Math.abs(i)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!o||!r&&o)throw new Error("invalid coordinates value");if(r&&r==o)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),i.toString().includes(",")&&(i=i.replace(",","."));let l=/S|SOUTH/i;l.test(r)&&t>0&&(t=-1*t),l=/W|WEST/i,l.test(o)&&i>0&&(i=-1*i);const d=s[0].trim();let a,f;const g=/[,/;\u0020]/g,y=d.match(g);if(y==null){const h=Math.floor(n.length/2);a=d.substring(0,h).trim(),f=d.substring(h).trim()}else{let h;y.length%2==1?h=Math.floor(y.length/2):h=y.length/2-1;let m=0;if(h==0)m=d.indexOf(y[0]),a=d.substring(0,m).trim(),f=d.substring(m+1).trim();else{let b=0,L=0;for(;b<=h;)m=d.indexOf(y[b],L),L=m+1,b++;a=d.substring(0,m).trim(),f=d.substring(m+1).trim()}}const w=a.split(".");if(w.length==2&&w[1]==0&&w[1].length!=2)throw new Error("invalid coordinates format");const E=f.split(".");if(E.length==2&&E[1]==0&&E[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(a)||/^\d+$/.test(f))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),i=Number(Number(i).toFixed(e)),Object.freeze({verbatimCoordinates:d,verbatimLatitude:a,verbatimLongitude:f,decimalLatitude:t,decimalLongitude:i,decimalCoordinates:`${t},${i}`,originalFormat:u,closeEnough:Bn,toCoordinateFormat:zn})}else throw new Error("coordinates pattern match failed")}function Ze(n){if(!isNaN(n[0]))return!1;const e=[...n];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,i=/[eastsouthnorthwest]+/i,r=e.length/2;for(let o=0;o<r;o++){const u=e[o],s=e[o+r],c=t.test(u)&&t.test(s),l=i.test(u)&&i.test(s),d=u==s;if(!(u==null&&s==null)){if(u==null||s==null)return!1;if(c||l||d)continue;return!1}}return!0}function ci(n,e){const t=Math.abs(n-e);return Number(t.toFixed(6))<=1e-5}function Bn(n){if(!n)throw new Error("coords must be provided");if(n.includes(",")){const e=n.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return ci(this.decimalLatitude,Number(e[0]))&&ci(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Dn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Et.to=Dn;const Un=[{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"}],Fn={decimalLatitude:40.123,decimalLongitude:-74.123},Gn=[{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}],jn=[{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 qn(){const n=[];return Un.forEach(e=>{e.decimalLatitude?n.push(e):n.push({...e,...Fn})}),[...n,...Gn,...jn]}const Qn=qn();Et.formats=Qn.map(n=>n.verbatimCoordinates);const Zn=Et;function fi(n,e,t){const i=n.slice();return i[86]=e[t],i[88]=t,i}function di(n){let e,t;return e=new Mn({}),{c(){Ee(e.$$.fragment)},m(i,r){ve(e,i,r),t=!0},i(i){t||(Z(e.$$.fragment,i),t=!0)},o(i){K(e.$$.fragment,i),t=!1},d(i){ye(e,i)}}}function hi(n){let e,t,i,r,o;return t=new Rn({}),{c(){e=z("button"),Ee(t.$$.fragment),p(e,"type","button"),p(e,"title",n[9]),p(e,"class","svelte-bz0zu3"),le(e,"active",n[0])},m(u,s){G(u,e,s),ve(t,e,null),i=!0,r||(o=te(e,"click",n[70]),r=!0)},p(u,s){(!i||s[0]&512)&&p(e,"title",u[9]),(!i||s[0]&1)&&le(e,"active",u[0])},i(u){i||(Z(t.$$.fragment,u),i=!0)},o(u){K(t.$$.fragment,u),i=!1},d(u){u&&F(e),ye(t),r=!1,o()}}}function Hn(n){let e,t=[],i=new Map,r,o,u,s=ei(n[14]);const c=l=>l[86].id+(l[86].address?","+l[86].address:"");for(let l=0;l<s.length;l+=1){let d=fi(n,s,l),a=c(d);i.set(a,t[l]=gi(a,d))}return{c(){e=z("ul");for(let l=0;l<t.length;l+=1)t[l].c();p(e,"class","options svelte-bz0zu3")},m(l,d){G(l,e,d);for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(e,null);r=!0,o||(u=[te(e,"mouseleave",n[74]),te(e,"blur",n[75])],o=!0)},p(l,d){d[0]&17880064&&(s=ei(l[14]),it(),t=an(t,d,c,1,l,s,i,e,un,gi,null,fi),nt())},i(l){if(!r){for(let d=0;d<s.length;d+=1)Z(t[d]);r=!0}},o(l){for(let d=0;d<t.length;d+=1)K(t[d]);r=!1},d(l){l&&F(e);for(let d=0;d<t.length;d+=1)t[d].d();o=!1,me(u)}}}function Vn(n){let e,t,i,r,o,u;return t=new ii({}),{c(){e=z("div"),Ee(t.$$.fragment),i=re(),r=z("div"),o=we(n[7]),p(r,"class","svelte-bz0zu3"),p(e,"class","no-results svelte-bz0zu3")},m(s,c){G(s,e,c),ve(t,e,null),P(e,i),P(e,r),P(r,o),u=!0},p(s,c){(!u||c[0]&128)&&Ge(o,s[7])},i(s){u||(Z(t.$$.fragment,s),u=!0)},o(s){K(t.$$.fragment,s),u=!1},d(s){s&&F(e),ye(t)}}}function Yn(n){let e="",t;return{c(){t=we(e)},m(i,r){G(i,t,r)},p:U,i:U,o:U,d(i){i&&F(t)}}}function Kn(n){let e,t,i,r,o,u,s,c,l,d,a;return t=new ii({}),c=new ti({}),{c(){e=z("div"),Ee(t.$$.fragment),i=re(),r=z("div"),o=we(n[6]),u=re(),s=z("button"),Ee(c.$$.fragment),p(r,"class","svelte-bz0zu3"),p(s,"class","svelte-bz0zu3"),p(e,"class","error svelte-bz0zu3")},m(f,g){G(f,e,g),ve(t,e,null),P(e,i),P(e,r),P(r,o),P(e,u),P(e,s),ve(c,s,null),l=!0,d||(a=te(s,"click",n[71]),d=!0)},p(f,g){(!l||g[0]&64)&&Ge(o,f[6])},i(f){l||(Z(t.$$.fragment,f),Z(c.$$.fragment,f),l=!0)},o(f){K(t.$$.fragment,f),K(c.$$.fragment,f),l=!1},d(f){f&&F(e),ye(t),ye(c),d=!1,a()}}}function gi(n,e){let t,i,r;function o(){return e[72](e[88])}function u(){return e[73](e[86])}return i=new Sn({props:{feature:e[86],showPlaceType:e[10],selected:e[15]===e[88],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),i.$on("mouseenter",o),i.$on("focus",u),{key:n,first:null,c(){t=Xi(),Ee(i.$$.fragment),this.first=t},m(s,c){G(s,t,c),ve(i,s,c),r=!0},p(s,c){e=s;const l={};c[0]&16384&&(l.feature=e[86]),c[0]&1024&&(l.showPlaceType=e[10]),c[0]&49152&&(l.selected=e[15]===e[88]),c[0]&4096&&(l.iconsBaseUrl=e[12]),i.$set(l)},i(s){r||(Z(i.$$.fragment,s),r=!0)},o(s){K(i.$$.fragment,s),r=!1},d(s){s&&F(t),ye(i,s)}}}function Xn(n){let e,t,i,r,o,u,s,c,l,d,a,f,g,y,w,E,h,m,b,L,M,S=!1;o=new In({}),a=new ti({});let x=n[19]&&di(),_=n[5]!=="never"&&hi(n);const C=n[62].default,A=Hi(C,n,n[61],null),B=[Kn,Yn,Vn,Hn],N=[];function W(k,q){var oe,Ne;return k[18]?0:k[16]?((oe=k[14])==null?void 0:oe.length)===0?2:k[16]&&((Ne=k[14])!=null&&Ne.length)?3:-1:1}return~(E=W(n))&&(h=N[E]=B[E](n)),{c(){e=re(),t=z("form"),i=z("div"),r=z("button"),Ee(o.$$.fragment),u=re(),s=z("input"),c=re(),l=z("div"),d=z("button"),Ee(a.$$.fragment),f=re(),x&&x.c(),g=re(),_&&_.c(),y=re(),A&&A.c(),w=re(),h&&h.c(),p(r,"class","search-button svelte-bz0zu3"),p(r,"type","button"),p(s,"placeholder",n[8]),p(s,"aria-label",n[8]),p(s,"class","svelte-bz0zu3"),p(d,"type","button"),p(d,"title",n[3]),p(d,"class","svelte-bz0zu3"),p(l,"class","clear-button-container svelte-bz0zu3"),le(l,"displayable",n[1]!==""),p(i,"class","input-group svelte-bz0zu3"),p(t,"tabindex","0"),p(t,"class",m=Vt(n[2])+" svelte-bz0zu3"),le(t,"can-collapse",n[4]&&n[1]==="")},m(k,q){G(k,e,q),G(k,t,q),P(t,i),P(i,r),ve(o,r,null),P(i,u),P(i,s),n[64](s),Yt(s,n[1]),P(i,c),P(i,l),P(l,d),ve(a,d,null),P(l,f),x&&x.m(l,null),P(i,g),_&&_.m(i,null),P(i,y),A&&A.m(i,null),P(t,w),~E&&N[E].m(t,null),b=!0,L||(M=[te(r,"click",n[63]),te(s,"input",n[65]),te(s,"focus",n[66]),te(s,"blur",n[67]),te(s,"keydown",n[22]),te(s,"input",n[68]),te(d,"click",n[69]),te(t,"submit",Ji(n[21]))],L=!0)},p(k,q){(!b||q[0]&256)&&p(s,"placeholder",k[8]),(!b||q[0]&256)&&p(s,"aria-label",k[8]),q[0]&2&&s.value!==k[1]&&Yt(s,k[1]),(!b||q[0]&8)&&p(d,"title",k[3]),k[19]?x?q[0]&524288&&Z(x,1):(x=di(),x.c(),Z(x,1),x.m(l,null)):x&&(it(),K(x,1,1,()=>{x=null}),nt()),(!b||q[0]&2)&&le(l,"displayable",k[1]!==""),k[5]!=="never"?_?(_.p(k,q),q[0]&32&&Z(_,1)):(_=hi(k),_.c(),Z(_,1),_.m(i,y)):_&&(it(),K(_,1,1,()=>{_=null}),nt()),A&&A.p&&(!b||q[1]&1073741824)&&Yi(A,C,k,k[61],b?Vi(C,k[61],q,null):Ki(k[61]),null);let oe=E;E=W(k),E===oe?~E&&N[E].p(k,q):(h&&(it(),K(N[oe],1,1,()=>{N[oe]=null}),nt()),~E?(h=N[E],h?h.p(k,q):(h=N[E]=B[E](k),h.c()),Z(h,1),h.m(t,null)):h=null),(!b||q[0]&4&&m!==(m=Vt(k[2])+" svelte-bz0zu3"))&&p(t,"class",m),(!b||q[0]&22)&&le(t,"can-collapse",k[4]&&k[1]==="")},i(k){b||(Z(S),Z(o.$$.fragment,k),Z(a.$$.fragment,k),Z(x),Z(_),Z(A,k),Z(h),b=!0)},o(k){K(S),K(o.$$.fragment,k),K(a.$$.fragment,k),K(x),K(_),K(A,k),K(h),b=!1},d(k){k&&(F(e),F(t)),ye(o),n[64](null),ye(a),x&&x.d(),_&&_.d(),A&&A.d(k),~E&&N[E].d(),L=!1,me(M)}}}function Jn(n,e,t){let i,{$$slots:r={},$$scope:o}=e;const u={continental_marine:4,country:4,major_landform:8,region:5,subregion:6,county:7,joint_municipality:8,joint_submunicipality:9,municipality:10,municipal_district:11,locality:12,neighbourhood:13,place:14,postal_code:14,road:16,poi:17,address:18,"poi.peak":15,"poi.shop":18,"poi.cafe":18,"poi.restaurant":18,"poi.aerodrome":13};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:A=[{type:"server-geolocation"}]}=e,{reverseActive:B=w==="always"}=e,{reverseButtonTitle:N="toggle reverse geocoding"}=e,{searchValue:W=""}=e,{pickedResultStyle:k="full-geometry"}=e,{showPlaceType:q="if-needed"}=e,{showResultsWhileTyping:oe=!0}=e,{autocompleteTimeout:Ne=void 0}=e,{selectFirst:De=!0}=e,{flyToSelected:Pt=!1}=e,{markerOnSelected:at=!0}=e,{types:Ie=void 0}=e,{exhaustiveReverseGeocoding:It=!1}=e,{excludeTypes:ct=!1}=e,{zoom:ft=u}=e,{apiUrl:Ot="https://api.maptiler.com/geocoding"}=e,{fetchParameters:At={}}=e,{iconsBaseUrl:Di="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.3/icons/"}=e,{adjustUrlQuery:Wt=()=>{}}=e;function Gr(){he.focus()}function jr(){he.blur()}function Ui(v,Q=!0,V=!1){t(1,W=v),Q?(t(15,j=-1),Gi()):(Dt(!V,V),setTimeout(()=>{he.focus(),he.select()}))}function qr(){t(14,O=void 0),t(57,R=void 0),t(15,j=-1)}function Qr(){t(56,H=[]),t(57,R=void 0)}let Ue=!1,O,H,R,Fi="",he,j=-1,ge,dt=[],Oe,Te,ae,ht,zt;const Zr=new Set,Re=nn();function Hr(){return!!ae}tn(()=>{S&&(S.setEventHandler(void 0),S.indicateReverse(!1),S.setSelectedMarker(-1),S.setMarkers(void 0,void 0))});function Gi(v){if(Te&&(window.clearTimeout(Te),Te=void 0),ae){window.clearTimeout(ae),t(58,ae=void 0),Je(W,{exact:!0});return}if(j>-1&&O)t(57,R=O[j]),t(1,W=R.place_type[0]==="reverse"?R.place_name:R.place_name.replace(/,.*/,"")),t(18,ge=void 0),t(56,H=void 0),t(15,j=-1);else if(W){const Q=v||!Bt(W);Je(W,{exact:!0}).then(()=>{t(56,H=O),t(57,R=void 0),Q&&Vr()}).catch(V=>t(18,ge=V))}}function Bt(v){try{return Zn(v,6)}catch{return!1}}async function Je(v,{byId:Q=!1,exact:V=!1,appendSpace:ce=!1}={}){t(18,ge=void 0),Oe==null||Oe.abort();const se=new AbortController;t(19,Oe=se);try{const I=Bt(v),X=new URLSearchParams;if(L!==void 0&&X.set("language",Array.isArray(L)?L.join(","):L??""),Ie&&X.set("types",Ie.join(",")),ct&&X.set("excludeTypes",String(ct)),l&&X.set("bbox",l.map(mt=>mt.toFixed(6)).join(",")),g&&X.set("country",Array.isArray(g)?g.join(","):g),!Q&&!I){const mt=await An(S,A,se);mt&&X.set("proximity",mt),(V||!oe)&&X.set("autocomplete","false"),X.set("fuzzyMatch",String(b))}M!==void 0&&(It||!I||(Ie==null?void 0:Ie.length)===1)&&X.set("limit",String(M)),X.set("key",c),Wt(X);const gt=Ot+"/"+encodeURIComponent(I?I.decimalLongitude+","+I.decimalLatitude:v+(ce?" ":""))+".json?"+X.toString();if(gt===Fi){Q?(t(14,O=void 0),t(57,R=dt[0])):t(14,O=dt);return}Fi=gt;const Ft=await fetch(gt,{signal:se.signal,...At});if(!Ft.ok)throw new Error(await Ft.text());const Gt=await Ft.json();Re("response",{url:gt,featureCollection:Gt}),Q?(t(14,O=void 0),t(57,R=Gt.features[0]),dt=[R]):(t(14,O=Gt.features.filter(h)),I&&O.unshift({type:"Feature",properties:{},id:"reverse_"+I.decimalLongitude+"_"+I.decimalLatitude,text:I.decimalLatitude+", "+I.decimalLongitude,place_name:I.decimalLatitude+", "+I.decimalLongitude,place_type:["reverse"],center:[I.decimalLongitude,I.decimalLatitude],bbox:[I.decimalLongitude,I.decimalLatitude,I.decimalLongitude,I.decimalLatitude],geometry:{type:"Point",coordinates:[I.decimalLongitude,I.decimalLatitude]}}),dt=O,I&&he.focus())}catch(I){if(I&&typeof I=="object"&&"name"in I&&I.name==="AbortError")return;throw I}finally{se===Oe&&t(19,Oe=void 0)}}function Vr(){var ce;if(!(H!=null&&H.length)||!m)return;const v=[180,90,-180,-90],Q=!H.some(se=>!se.matching_text);let V;for(const se of H){const I=$e(se);if(V=V===void 0?I:I===void 0?V:Math.max(V,I),Q||!se.matching_text)for(const X of[0,1,2,3])v[X]=Math[X<2?"min":"max"](v[X],((ce=se.bbox)==null?void 0:ce[X])??se.center[X%2])}S&&H.length>0&&(R&&v[0]===v[2]&&v[1]===v[3]?S.flyTo(R.center,$e(R)):S.fitBounds(rt(v),50,V))}function $e(v){var V;if(!v.bbox||v.bbox[0]!==v.bbox[2]&&v.bbox[1]!==v.bbox[3])return;const Q=v.id.replace(/\..*/,"");return(Array.isArray((V=v.properties)==null?void 0:V.categories)?v.properties.categories.reduce((ce,se)=>{const I=ft[Q+"."+se];return ce===void 0?I:I===void 0?ce:Math.max(ce,I)},void 0):void 0)??ft[Q]}function Yr(v){t(0,B=w==="always"),t(14,O=void 0),t(57,R=void 0),t(15,j=-1),Ui(v[1].toFixed(6)+", "+On(v[0],[-180,180],!0).toFixed(6),!1,!0)}function Kr(v){if(!O)return;let Q=v.key==="ArrowDown"?1:v.key==="ArrowUp"?-1:0;Q&&(j===(De?0:-1)&&Q===-1&&t(15,j=O.length),t(15,j+=Q),j>=O.length&&t(15,j=-1),j<0&&De&&t(15,j=0),v.preventDefault())}function Dt(v=!0,Q=!1){if(t(18,ge=void 0),Te&&(window.clearTimeout(Te),Te=void 0),ae&&(window.clearTimeout(ae),t(58,ae=void 0)),!oe&&!Q||W.length<x){t(14,O=void 0);return}const V=W;Te=window.setTimeout(()=>{Te=void 0,Je(V).catch(ce=>t(18,ge=ce))},v?y:0),W.endsWith(" ")||t(58,ae=window.setTimeout(()=>{t(58,ae=void 0),Je(V,{appendSpace:!0}).catch(ce=>t(18,ge=ce))},Ne))}function Ut(v){t(57,R=v),t(1,W=v.place_name),t(15,j=-1)}const Xr=()=>he.focus();function Jr(v){yt[v?"unshift":"push"](()=>{he=v,t(17,he)})}function $r(){W=this.value,t(1,W),t(13,Ue),t(28,a)}const eo=()=>t(13,Ue=!0),to=()=>t(13,Ue=!1),io=()=>Dt(),no=()=>{t(1,W=""),he.focus()},ro=()=>t(0,B=!B),oo=()=>t(18,ge=void 0),so=v=>t(15,j=v),lo=v=>Ut(v),uo=()=>{De||t(15,j=-1)},ao=()=>{};return n.$$set=v=>{"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,A=v.proximity),"reverseActive"in v&&t(0,B=v.reverseActive),"reverseButtonTitle"in v&&t(9,N=v.reverseButtonTitle),"searchValue"in v&&t(1,W=v.searchValue),"pickedResultStyle"in v&&t(39,k=v.pickedResultStyle),"showPlaceType"in v&&t(10,q=v.showPlaceType),"showResultsWhileTyping"in v&&t(40,oe=v.showResultsWhileTyping),"autocompleteTimeout"in v&&t(41,Ne=v.autocompleteTimeout),"selectFirst"in v&&t(11,De=v.selectFirst),"flyToSelected"in v&&t(42,Pt=v.flyToSelected),"markerOnSelected"in v&&t(43,at=v.markerOnSelected),"types"in v&&t(44,Ie=v.types),"exhaustiveReverseGeocoding"in v&&t(45,It=v.exhaustiveReverseGeocoding),"excludeTypes"in v&&t(46,ct=v.excludeTypes),"zoom"in v&&t(47,ft=v.zoom),"apiUrl"in v&&t(48,Ot=v.apiUrl),"fetchParameters"in v&&t(49,At=v.fetchParameters),"iconsBaseUrl"in v&&t(12,Di=v.iconsBaseUrl),"adjustUrlQuery"in v&&t(50,Wt=v.adjustUrlQuery),"$$scope"in v&&t(61,o=v.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&32&&t(0,B=w==="always"),n.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,ht=Ue),a&&!Ue&&t(1,W="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&64&&W.length<x&&(t(57,R=void 0),t(14,O=void 0),t(18,ge=void 0),t(56,H=O)),n.$$.dirty[1]&67109120&&k!=="marker-only"&&R&&!R.address&&R.geometry.type==="Point"&&R.place_type[0]!=="reverse"&&Je(R.id,{byId:!0}).catch(v=>t(18,ge=v)),n.$$.dirty[1]&335544354&&(S&&R&&R.id!==zt&&m&&(!R.bbox||R.bbox[0]===R.bbox[2]&&R.bbox[1]===R.bbox[3]?S.flyTo(R.center,$e(R)):S.fitBounds(rt(R.bbox),50,$e(R)),t(14,O=void 0),t(56,H=void 0),t(15,j=-1)),t(59,zt=R==null?void 0:R.id)),n.$$.dirty[0]&18432&&De&&O!=null&&O.length&&(Hr()||t(15,j=0)),n.$$.dirty[0]&2&&t(15,j=-1),n.$$.dirty[0]&16384|n.$$.dirty[1]&33554432&&H!==O&&t(56,H=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&33554464&&S&&S.setEventHandler(v=>{switch(v.type){case"mapClick":B&&Yr(v.coordinates);break;case"markerClick":{const Q=O==null?void 0:O.find(V=>V.id===v.id);Q&&Ut(Q)}break;case"markerMouseEnter":H&&t(15,j=ht?(O==null?void 0:O.findIndex(Q=>Q.id===v.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,j=-1);break}}),n.$$.dirty[0]&49152&&t(60,i=O==null?void 0:O[j]),n.$$.dirty[1]&536872994&&S&&i&&m&&Pt&&S.flyTo(i.center,$e(i)),n.$$.dirty[1]&4128&&(at||S==null||S.setMarkers(void 0,void 0)),n.$$.dirty[1]&570429472&&S&&at&&!H&&(S.setMarkers(i?[i]:void 0,void 0),S.setSelectedMarker(i?0:-1)),n.$$.dirty[1]&100663328&&S&&S.setMarkers(H,R),n.$$.dirty[0]&32768|n.$$.dirty[1]&33554464&&H&&S&&S.setSelectedMarker(j),n.$$.dirty[1]&671088640&&i&&(window.clearTimeout(ae),t(58,ae=void 0)),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&S){const v=Bt(W);S.setReverseMarker(v?[v.decimalLongitude,v.decimalLatitude]:void 0)}n.$$.dirty[1]&536870912&&Re("select",{feature:i}),n.$$.dirty[1]&67108864&&Re("pick",{feature:R}),n.$$.dirty[0]&81920&&Re("optionsvisibilitychange",{optionsVisible:ht&&!!O}),n.$$.dirty[0]&16384&&Re("featureslisted",{features:O}),n.$$.dirty[1]&33554432&&Re("featuresmarked",{features:H}),n.$$.dirty[0]&1&&Re("reversetoggle",{reverse:B}),n.$$.dirty[0]&2&&Re("querychange",{query:W}),n.$$.dirty[0]&1|n.$$.dirty[1]&32&&S&&S.indicateReverse(B)},[B,W,s,d,f,w,E,_,C,N,q,De,Di,Ue,O,j,ht,he,ge,Oe,Zr,Gi,Kr,Dt,Ut,u,c,l,a,g,y,h,m,b,L,M,S,x,A,k,oe,Ne,Pt,at,Ie,It,ct,ft,Ot,At,Wt,Gr,jr,Ui,qr,Qr,H,R,ae,zt,i,o,r,Xr,Jr,$r,eo,to,io,no,ro,oo,so,lo,uo,ao]}let $n=class extends Le{constructor(e){super(),_e(this,e,Jn,Xn,be,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,reverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,pickedResultStyle:39,showPlaceType:10,showResultsWhileTyping:40,autocompleteTimeout:41,selectFirst:11,flyToSelected:42,markerOnSelected:43,types:44,exhaustiveReverseGeocoding:45,excludeTypes:46,zoom:47,apiUrl:48,fetchParameters:49,iconsBaseUrl:12,adjustUrlQuery:50,focus:51,blur:52,setQuery:53,clearList:54,clearMap:55},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[51]}get blur(){return this.$$.ctx[52]}get setQuery(){return this.$$.ctx[53]}get clearList(){return this.$$.ctx[54]}get clearMap(){return this.$$.ctx[55]}};function He(n,e,t={}){const i={type:"Feature"};return(t.id===0||t.id)&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.properties=e||{},i.geometry=n,i}function _t(n,e,t={}){for(const r of n){if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(r[r.length-1].length!==r[0].length)throw new Error("First and last Position are not equivalent.");for(let o=0;o<r[r.length-1].length;o++)if(r[r.length-1][o]!==r[0][o])throw new Error("First and last Position are not equivalent.")}return He({type:"Polygon",coordinates:n},e,t)}function Ve(n,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=n,t}function mi(n,e,t={}){return He({type:"MultiPolygon",coordinates:n},e,t)}/**
|
|
2
2
|
* splaytree v3.1.2
|
|
3
3
|
* Fast Splay tree for Node and browser
|
|
4
4
|
*
|