@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/openlayers.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(k,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("ol/control"),require("ol/events/Event"),require("ol"),require("ol/geom"),require("ol/layer/Vector"),require("ol/proj"),require("ol/source/Vector"),require("ol/style/Fill"),require("ol/style/Icon"),require("ol/style/Stroke"),require("ol/style/Style"),require("ol/style/Text")):typeof define=="function"&&define.amd?define(["exports","ol/control","ol/events/Event","ol","ol/geom","ol/layer/Vector","ol/proj","ol/source/Vector","ol/style/Fill","ol/style/Icon","ol/style/Stroke","ol/style/Style","ol/style/Text"],z):(k=typeof globalThis<"u"?globalThis:k||self,z(k.openlayersMaptilerGeocoder={},k.ol.control,k.ol.events.Event,k.ol,k.ol.geom,k.ol.layer.Vector,k.ol.proj,k.ol.source.Vector,k.ol.style.Fill,k.ol.style.Icon,k.ol.style.Stroke,k.ol.style.Style,k.ol.style.Text))})(this,function(k,z,F,le,ue,en,_e,tn,Qt,nn,Zt,rn,on){"use strict";var go=Object.defineProperty;var Ji=k=>{throw TypeError(k)};var mo=(k,z,F)=>z in k?go(k,z,{enumerable:!0,configurable:!0,writable:!0,value:F}):k[z]=F;var de=(k,z,F)=>mo(k,typeof z!="symbol"?z+"":z,F),$i=(k,z,F)=>z.has(k)||Ji("Cannot "+F);var K=(k,z,F)=>($i(k,z,"read from private field"),F?F.call(k):z.get(k)),Vt=(k,z,F)=>z.has(k)?Ji("Cannot add the same private member more than once"):z instanceof WeakSet?z.add(k):z.set(k,F),vt=(k,z,F,le)=>($i(k,z,"write to private field"),le?le.call(k,F):z.set(k,F),F);var X,Pe;function G(){}function sn(n,e){for(const t in e)n[t]=e[t];return n}function Ht(n){return n()}function Yt(){return Object.create(null)}function ye(n){n.forEach(Ht)}function Xt(n){return typeof n=="function"}function Ie(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let tt;function ee(n,e){return n===e?!0:(tt||(tt=document.createElement("a")),tt.href=e,n===tt.href)}function ln(n){return Object.keys(n).length===0}function un(n,e,t,i){if(n){const r=Kt(n,e,t,i);return n[0](r)}}function Kt(n,e,t,i){return n[1]&&i?sn(t.ctx.slice(),n[1](i(e))):t.ctx}function an(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=[],l=Math.max(e.dirty.length,r.length);for(let s=0;s<l;s+=1)o[s]=e.dirty[s]|r[s];return o}return e.dirty|r}return e.dirty}function cn(n,e,t,i,r,o){if(r){const l=Kt(e,t,i,o);n.p(l,r)}}function fn(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 Jt(n){return n??""}function R(n,e){n.appendChild(e)}function q(n,e,t){n.insertBefore(e,t||null)}function D(n){n.parentNode&&n.parentNode.removeChild(n)}function A(n){return document.createElement(n)}function ve(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function Ee(n){return document.createTextNode(n)}function re(){return Ee(" ")}function dn(){return Ee("")}function ie(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function hn(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 gn(n){return Array.from(n.childNodes)}function Ve(n,e){e=""+e,n.data!==e&&(n.data=e)}function $t(n,e){n.value=e??""}function Le(n,e,t){n.classList.toggle(e,!!t)}function mn(n,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(n,{detail:e,bubbles:t,cancelable:i})}let Qe;function Ze(n){Qe=n}function ei(){if(!Qe)throw new Error("Function called outside component initialization");return Qe}function yn(n){ei().$$.on_destroy.push(n)}function vn(){const n=ei();return(e,t,{cancelable:i=!1}={})=>{const r=n.$$.callbacks[e];if(r){const o=mn(e,t,{cancelable:i});return r.slice().forEach(l=>{l.call(n,o)}),!o.defaultPrevented}return!0}}function ti(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const De=[],pt=[];let Be=[];const ii=[],pn=Promise.resolve();let bt=!1;function bn(){bt||(bt=!0,pn.then(ni))}function wt(n){Be.push(n)}const _t=new Set;let Ue=0;function ni(){if(Ue!==0)return;const n=Qe;do{try{for(;Ue<De.length;){const e=De[Ue];Ue++,Ze(e),wn(e.$$)}}catch(e){throw De.length=0,Ue=0,e}for(Ze(null),De.length=0,Ue=0;pt.length;)pt.pop()();for(let e=0;e<Be.length;e+=1){const t=Be[e];_t.has(t)||(_t.add(t),t())}Be.length=0}while(De.length);for(;ii.length;)ii.pop()();bt=!1,_t.clear(),Ze(n)}function wn(n){if(n.fragment!==null){n.update(),ye(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(wt)}}function _n(n){const e=[],t=[];Be.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Be=e}const it=new Set;let Oe;function nt(){Oe={r:0,c:[],p:Oe}}function rt(){Oe.r||ye(Oe.c),Oe=Oe.p}function Z(n,e){n&&n.i&&(it.delete(n),n.i(e))}function J(n,e,t,i){if(n&&n.o){if(it.has(n))return;it.add(n),Oe.c.push(()=>{it.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}function ri(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function En(n,e){J(n,1,1,()=>{e.delete(n.key)})}function Ln(n,e,t,i,r,o,l,s,c,a,d,u){let f=n.length,h=o.length,b=f;const m={};for(;b--;)m[n[b].key]=b;const y=[],v=new Map,E=new Map,S=[];for(b=h;b--;){const L=u(r,o,b),_=t(L);let P=l.get(_);P?S.push(()=>P.p(L,e)):(P=a(_,L),P.c()),v.set(_,y[b]=P),_ in m&&E.set(_,Math.abs(b-m[_]))}const w=new Set,C=new Set;function x(L){Z(L,1),L.m(s,d),l.set(L.key,L),d=L.first,h--}for(;f&&h;){const L=y[h-1],_=n[f-1],P=L.key,O=_.key;L===_?(d=L.first,f--,h--):v.has(O)?!l.has(P)||w.has(P)?x(L):C.has(O)?f--:E.get(P)>E.get(O)?(C.add(P),x(L)):(w.add(O),f--):(c(_,l),f--)}for(;f--;){const L=n[f];v.has(L.key)||c(L,l)}for(;h;)x(y[h-1]);return ye(S),y}function Se(n){n&&n.c()}function pe(n,e,t){const{fragment:i,after_update:r}=n.$$;i&&i.m(e,t),wt(()=>{const o=n.$$.on_mount.map(Ht).filter(Xt);n.$$.on_destroy?n.$$.on_destroy.push(...o):ye(o),n.$$.on_mount=[]}),r.forEach(wt)}function be(n,e){const t=n.$$;t.fragment!==null&&(_n(t.after_update),ye(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Sn(n,e){n.$$.dirty[0]===-1&&(De.push(n),bn(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function We(n,e,t,i,r,o,l=null,s=[-1]){const c=Qe;Ze(n);const a=n.$$={fragment:null,ctx:[],props:o,update:G,not_equal:r,bound:Yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Yt(),dirty:s,skip_bound:!1,root:e.target||c.$$.root};l&&l(a.root);let d=!1;if(a.ctx=t?t(n,e.props||{},(u,f,...h)=>{const b=h.length?h[0]:f;return a.ctx&&r(a.ctx[u],a.ctx[u]=b)&&(!a.skip_bound&&a.bound[u]&&a.bound[u](b),d&&Sn(n,u)),f}):[],a.update(),d=!0,ye(a.before_update),a.fragment=i?i(a.ctx):!1,e.target){if(e.hydrate){const u=gn(e.target);a.fragment&&a.fragment.l(u),u.forEach(D)}else a.fragment&&a.fragment.c();e.intro&&Z(n.$$.fragment),pe(n,e.target,e.anchor),ni()}Ze(c)}class Ae{constructor(){de(this,"$$");de(this,"$$set")}$destroy(){be(this,1),this.$destroy=G}$on(e,t){if(!Xt(t))return G;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&&!ln(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const xn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(xn);function Mn(n){let e,t;return{c(){e=ve("svg"),t=ve("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){q(i,e,r),R(e,t)},p:G,i:G,o:G,d(i){i&&D(e)}}}class oi extends Ae{constructor(e){super(),We(this,e,null,Mn,Ie,{})}}function kn(n){let e,t;return{c(){e=ve("svg"),t=ve("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){q(i,e,r),R(e,t)},p:G,i:G,o:G,d(i){i&&D(e)}}}class si extends Ae{constructor(e){super(),We(this,e,null,kn,Ie,{})}}function Cn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"area.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"area.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Pn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"reverse.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"reverse.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Nn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"poi.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"poi.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Tn(n){let e,t;return{c(){e=A("img"),ee(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){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"postal_code.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Rn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"street.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"street.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function In(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"road.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"road.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function On(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"housenumber.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"housenumber.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Wn(n){let e,t,i,r;return{c(){e=A("img"),ee(e.src,t=n[5])||p(e,"src",t),p(e,"alt",n[4]),p(e,"class","svelte-ltkwvy")},m(o,l){q(o,e,l),i||(r=ie(e,"error",n[14]),i=!0)},p(o,l){l&32&&!ee(e.src,t=o[5])&&p(e,"src",t),l&16&&p(e,"alt",o[4])},d(o){o&&D(e),i=!1,r()}}}function li(n){let e,t;return{c(){e=A("span"),t=Ee(n[6]),p(e,"class","secondary svelte-ltkwvy")},m(i,r){q(i,e,r),R(e,t)},p(i,r){r&64&&Ve(t,i[6])},d(i){i&&D(e)}}}function An(n){let e,t,i,r,o,l,s,c,a,d=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",u,f,h=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],b,m,y=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",v,E,S;function w(_,P){return P&1&&(t=null),P&1&&(i=null),P&1&&(r=null),P&1&&(o=null),_[5]?Wn:_[0].address?On:(t==null&&(t=!!_[0].id.startsWith("road.")),t?In:(i==null&&(i=!!_[0].id.startsWith("address.")),i?Rn:(r==null&&(r=!!_[0].id.startsWith("postal_code.")),r?Tn:(o==null&&(o=!!_[0].id.startsWith("poi.")),o?Nn:_[7]?Pn:Cn))))}let C=w(n,-1),x=C(n),L=h&&li(n);return{c(){e=A("li"),x.c(),l=re(),s=A("span"),c=A("span"),a=A("span"),u=Ee(d),f=re(),L&&L.c(),b=re(),m=A("span"),v=Ee(y),p(a,"class","primary svelte-ltkwvy"),p(c,"class","svelte-ltkwvy"),p(m,"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(_,P){q(_,e,P),x.m(e,null),R(e,l),R(e,s),R(s,c),R(c,a),R(a,u),R(c,f),L&&L.m(c,null),R(s,b),R(s,m),R(m,v),E||(S=[ie(e,"mouseenter",n[12]),ie(e,"focus",n[13])],E=!0)},p(_,[P]){C===(C=w(_,P))&&x?x.p(_,P):(x.d(1),x=C(_),x&&(x.c(),x.m(e,l))),P&1&&d!==(d=(_[7]?_[0].place_name:_[0].place_name.replace(/,.*/,""))+"")&&Ve(u,d),P&37&&(h=_[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]),h?L?L.p(_,P):(L=li(_),L.c(),L.m(c,null)):L&&(L.d(1),L=null),P&1&&y!==(y=(_[7]?"":_[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ve(v,y),P&2&&p(e,"data-selected",_[1]),P&2&&Le(e,"selected",_[1])},i:G,o:G,d(_){_&&D(e),x.d(),L&&L.d(),E=!1,ye(S)}}}function zn(n,e,t){var S;let i,r,{feature:o}=e,{selected:l=!1}=e,{showPlaceType:s}=e,{missingIconsCache:c}=e,{iconsBaseUrl:a}=e;const d=(S=o.properties)==null?void 0:S.categories;let u,f,h=0,b=o.place_type[0]==="reverse";function m(){f&&c.add(f),t(10,h++,h)}function y(w){ti.call(this,n,w)}function v(w){ti.call(this,n,w)}const E=()=>m();return n.$$set=w=>{"feature"in w&&t(0,o=w.feature),"selected"in w&&t(1,l=w.selected),"showPlaceType"in w&&t(2,s=w.showPlaceType),"missingIconsCache"in w&&t(9,c=w.missingIconsCache),"iconsBaseUrl"in w&&t(3,a=w.iconsBaseUrl)},n.$$.update=()=>{var w,C,x,L;if(n.$$.dirty&3640)do t(11,i--,i),t(4,u=d==null?void 0:d[i]),t(5,f=u?a+u.replace(/ /g,"_")+".svg":void 0);while(i>-1&&(!f||c.has(f)));n.$$.dirty&1&&t(6,r=((C=(w=o.properties)==null?void 0:w.categories)==null?void 0:C.join(", "))??((L=(x=o.properties)==null?void 0:x.place_type_name)==null?void 0:L[0])??o.place_type[0])},t(11,i=(d==null?void 0:d.length)??0),[o,l,s,a,u,f,r,b,m,c,h,i,y,v,E]}class Fn extends Ae{constructor(e){super(),We(this,e,zn,An,Ie,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function Dn(n){let e;return{c(){e=A("div"),e.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',p(e,"class","svelte-7cmwmc")},m(t,i){q(t,e,i)},p:G,i:G,o:G,d(t){t&&D(e)}}}class Bn extends Ae{constructor(e){super(),We(this,e,null,Dn,Ie,{})}}function Un(n){let e,t;return{c(){e=ve("svg"),t=ve("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){q(i,e,r),R(e,t)},p:G,i:G,o:G,d(i){i&&D(e)}}}class Gn extends Ae{constructor(e){super(),We(this,e,null,Un,Ie,{})}}function qn(n){let e,t,i;return{c(){e=ve("svg"),t=ve("circle"),i=ve("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){q(r,e,o),R(e,t),R(e,i)},p:G,i:G,o:G,d(r){r&&D(e)}}}class jn extends Ae{constructor(e){super(),We(this,e,null,qn,Ie,{})}}function Vn(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 ot(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 He;async function Qn(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(He&&r.cachedLocationExpiry&&He.time+r.cachedLocationExpiry>Date.now()){if(!He.coords)break e;return He.coords}let o;try{return o=await new Promise((l,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(c=>{l([c.coords.longitude,c.coords.latitude].map(a=>a.toFixed(6)).join(","))},c=>{s(c)},r)}),o}catch{}finally{r.cachedLocationExpiry&&(He={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 Zn=/^(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,ui=/^([+-]?[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,})$/,ai=/^(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,ci=/^(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,fi=/^(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,di=/^(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 Hn(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(h=>Number(h.trim())),t=Number(e[0]),i=Number(e[1]),r=Math.abs(t),o=Math.abs(i),l=t>0?"N":"S",s=i>0?"E":"W";let c;n=="DD"&&(c=`${r}° ${l}, ${o}° ${s}`);const a=Math.floor(r),d=Math.floor(o),u=(r-a)*60,f=(o-d)*60;if(n=="DM"){let h=hi(u,3).toFixed(3).padStart(6,"0"),b=hi(f,3).toFixed(3).padStart(6,"0");h.endsWith(".000")&&b.endsWith(".000")&&(h=h.replace(/\.000$/,""),b=b.replace(/\.000$/,"")),c=`${a}° ${h}' ${l}, ${d}° ${b}' ${s}`}if(n=="DMS"){const h=Math.floor(u),b=Math.floor(f);let m=((u-h)*60).toFixed(1).padStart(4,"0"),y=((f-b)*60).toFixed(1).padStart(4,"0");const v=h.toString().padStart(2,"0"),E=b.toString().padStart(2,"0");m.endsWith(".0")&&y.endsWith(".0")&&(m=m.replace(/\.0$/,""),y=y.replace(/\.0$/,"")),c=`${a}° ${v}' ${m}" ${l}, ${d}° ${E}' ${y}" ${s}`}return c}else throw new Error("no decimal coordinates to convert")}function hi(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="",l=null,s=[],c=!1;if(Zn.test(n))throw new Error("invalid coordinate value");if(ui.test(n))if(s=ui.exec(n),c=Ye(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),l="DM";else throw new Error("invalid coordinate format");else if(ai.test(n))if(s=ai.exec(n),c=Ye(s),c){if(t=s[2],i=s[6],t.includes(",")&&(t=t.replace(",",".")),i.includes(",")&&(i=i.replace(",",".")),l="DD",Number(Math.round(t))==Number(t))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(ci.test(n))if(s=ci.exec(n),c=Ye(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[9])),s[11]&&(i+=s[11]/60),s[13]&&(i+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(i=-1*i),s[1]?(r=s[1],o=s[8]):s[7]&&(r=s[7],o=s[14]);else throw new Error("invalid DMS coordinates format");else if(fi.test(n))if(s=fi.exec(n),c=Ye(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6]/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12]/60),s[14]&&(i+=s[14]/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);else throw new Error("invalid DMS coordinates format");else if(di.test(n)){if(s=di.exec(n),c=Ye(s),s.filter(a=>a).length<=5)throw new Error("invalid coordinates format");if(c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12].replace(",",".")/60),s[14]&&(i+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);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 a=/S|SOUTH/i;a.test(r)&&t>0&&(t=-1*t),a=/W|WEST/i,a.test(o)&&i>0&&(i=-1*i);const d=s[0].trim();let u,f;const h=/[,/;\u0020]/g,b=d.match(h);if(b==null){const v=Math.floor(n.length/2);u=d.substring(0,v).trim(),f=d.substring(v).trim()}else{let v;b.length%2==1?v=Math.floor(b.length/2):v=b.length/2-1;let E=0;if(v==0)E=d.indexOf(b[0]),u=d.substring(0,E).trim(),f=d.substring(E+1).trim();else{let S=0,w=0;for(;S<=v;)E=d.indexOf(b[S],w),w=E+1,S++;u=d.substring(0,E).trim(),f=d.substring(E+1).trim()}}const m=u.split(".");if(m.length==2&&m[1]==0&&m[1].length!=2)throw new Error("invalid coordinates format");const y=f.split(".");if(y.length==2&&y[1]==0&&y[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(u)||/^\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:u,verbatimLongitude:f,decimalLatitude:t,decimalLongitude:i,decimalCoordinates:`${t},${i}`,originalFormat:l,closeEnough:Yn,toCoordinateFormat:Hn})}else throw new Error("coordinates pattern match failed")}function Ye(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 l=e[o],s=e[o+r],c=t.test(l)&&t.test(s),a=i.test(l)&&i.test(s),d=l==s;if(!(l==null&&s==null)){if(l==null||s==null)return!1;if(c||a||d)continue;return!1}}return!0}function gi(n,e){const t=Math.abs(n-e);return Number(t.toFixed(6))<=1e-5}function Yn(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 gi(this.decimalLatitude,Number(e[0]))&&gi(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Xn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Et.to=Xn;const Kn=[{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"}],Jn={decimalLatitude:40.123,decimalLongitude:-74.123},$n=[{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}],er=[{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 tr(){const n=[];return Kn.forEach(e=>{e.decimalLatitude?n.push(e):n.push({...e,...Jn})}),[...n,...$n,...er]}const ir=tr();Et.formats=ir.map(n=>n.verbatimCoordinates);const nr=Et;function mi(n,e,t){const i=n.slice();return i[86]=e[t],i[88]=t,i}function yi(n){let e,t;return e=new Bn({}),{c(){Se(e.$$.fragment)},m(i,r){pe(e,i,r),t=!0},i(i){t||(Z(e.$$.fragment,i),t=!0)},o(i){J(e.$$.fragment,i),t=!1},d(i){be(e,i)}}}function vi(n){let e,t,i,r,o;return t=new Gn({}),{c(){e=A("button"),Se(t.$$.fragment),p(e,"type","button"),p(e,"title",n[9]),p(e,"class","svelte-bz0zu3"),Le(e,"active",n[0])},m(l,s){q(l,e,s),pe(t,e,null),i=!0,r||(o=ie(e,"click",n[70]),r=!0)},p(l,s){(!i||s[0]&512)&&p(e,"title",l[9]),(!i||s[0]&1)&&Le(e,"active",l[0])},i(l){i||(Z(t.$$.fragment,l),i=!0)},o(l){J(t.$$.fragment,l),i=!1},d(l){l&&D(e),be(t),r=!1,o()}}}function rr(n){let e,t=[],i=new Map,r,o,l,s=ri(n[14]);const c=a=>a[86].id+(a[86].address?","+a[86].address:"");for(let a=0;a<s.length;a+=1){let d=mi(n,s,a),u=c(d);i.set(u,t[a]=pi(u,d))}return{c(){e=A("ul");for(let a=0;a<t.length;a+=1)t[a].c();p(e,"class","options svelte-bz0zu3")},m(a,d){q(a,e,d);for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(e,null);r=!0,o||(l=[ie(e,"mouseleave",n[74]),ie(e,"blur",n[75])],o=!0)},p(a,d){d[0]&17880064&&(s=ri(a[14]),nt(),t=Ln(t,d,c,1,a,s,i,e,En,pi,null,mi),rt())},i(a){if(!r){for(let d=0;d<s.length;d+=1)Z(t[d]);r=!0}},o(a){for(let d=0;d<t.length;d+=1)J(t[d]);r=!1},d(a){a&&D(e);for(let d=0;d<t.length;d+=1)t[d].d();o=!1,ye(l)}}}function or(n){let e,t,i,r,o,l;return t=new si({}),{c(){e=A("div"),Se(t.$$.fragment),i=re(),r=A("div"),o=Ee(n[7]),p(r,"class","svelte-bz0zu3"),p(e,"class","no-results svelte-bz0zu3")},m(s,c){q(s,e,c),pe(t,e,null),R(e,i),R(e,r),R(r,o),l=!0},p(s,c){(!l||c[0]&128)&&Ve(o,s[7])},i(s){l||(Z(t.$$.fragment,s),l=!0)},o(s){J(t.$$.fragment,s),l=!1},d(s){s&&D(e),be(t)}}}function sr(n){let e="",t;return{c(){t=Ee(e)},m(i,r){q(i,t,r)},p:G,i:G,o:G,d(i){i&&D(t)}}}function lr(n){let e,t,i,r,o,l,s,c,a,d,u;return t=new si({}),c=new oi({}),{c(){e=A("div"),Se(t.$$.fragment),i=re(),r=A("div"),o=Ee(n[6]),l=re(),s=A("button"),Se(c.$$.fragment),p(r,"class","svelte-bz0zu3"),p(s,"class","svelte-bz0zu3"),p(e,"class","error svelte-bz0zu3")},m(f,h){q(f,e,h),pe(t,e,null),R(e,i),R(e,r),R(r,o),R(e,l),R(e,s),pe(c,s,null),a=!0,d||(u=ie(s,"click",n[71]),d=!0)},p(f,h){(!a||h[0]&64)&&Ve(o,f[6])},i(f){a||(Z(t.$$.fragment,f),Z(c.$$.fragment,f),a=!0)},o(f){J(t.$$.fragment,f),J(c.$$.fragment,f),a=!1},d(f){f&&D(e),be(t),be(c),d=!1,u()}}}function pi(n,e){let t,i,r;function o(){return e[72](e[88])}function l(){return e[73](e[86])}return i=new Fn({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",l),{key:n,first:null,c(){t=dn(),Se(i.$$.fragment),this.first=t},m(s,c){q(s,t,c),pe(i,s,c),r=!0},p(s,c){e=s;const a={};c[0]&16384&&(a.feature=e[86]),c[0]&1024&&(a.showPlaceType=e[10]),c[0]&49152&&(a.selected=e[15]===e[88]),c[0]&4096&&(a.iconsBaseUrl=e[12]),i.$set(a)},i(s){r||(Z(i.$$.fragment,s),r=!0)},o(s){J(i.$$.fragment,s),r=!1},d(s){s&&D(t),be(i,s)}}}function ur(n){let e,t,i,r,o,l,s,c,a,d,u,f,h,b,m,y,v,E,S,w,C,x=!1;o=new jn({}),u=new oi({});let L=n[19]&&yi(),_=n[5]===!0&&vi(n);const P=n[62].default,O=un(P,n,n[61],null),B=[lr,sr,or,rr],j=[];function W(M,V){var oe,Ne;return M[18]?0:M[16]?((oe=M[14])==null?void 0:oe.length)===0?2:M[16]&&((Ne=M[14])!=null&&Ne.length)?3:-1:1}return~(y=W(n))&&(v=j[y]=B[y](n)),{c(){e=re(),t=A("form"),i=A("div"),r=A("button"),Se(o.$$.fragment),l=re(),s=A("input"),c=re(),a=A("div"),d=A("button"),Se(u.$$.fragment),f=re(),L&&L.c(),h=re(),_&&_.c(),b=re(),O&&O.c(),m=re(),v&&v.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(a,"class","clear-button-container svelte-bz0zu3"),Le(a,"displayable",n[1]!==""),p(i,"class","input-group svelte-bz0zu3"),p(t,"tabindex","0"),p(t,"class",E=Jt(n[2])+" svelte-bz0zu3"),Le(t,"can-collapse",n[4]&&n[1]==="")},m(M,V){q(M,e,V),q(M,t,V),R(t,i),R(i,r),pe(o,r,null),R(i,l),R(i,s),n[64](s),$t(s,n[1]),R(i,c),R(i,a),R(a,d),pe(u,d,null),R(a,f),L&&L.m(a,null),R(i,h),_&&_.m(i,null),R(i,b),O&&O.m(i,null),R(t,m),~y&&j[y].m(t,null),S=!0,w||(C=[ie(r,"click",n[63]),ie(s,"input",n[65]),ie(s,"focus",n[66]),ie(s,"blur",n[67]),ie(s,"keydown",n[22]),ie(s,"input",n[68]),ie(d,"click",n[69]),ie(t,"submit",hn(n[21]))],w=!0)},p(M,V){(!S||V[0]&256)&&p(s,"placeholder",M[8]),(!S||V[0]&256)&&p(s,"aria-label",M[8]),V[0]&2&&s.value!==M[1]&&$t(s,M[1]),(!S||V[0]&8)&&p(d,"title",M[3]),M[19]?L?V[0]&524288&&Z(L,1):(L=yi(),L.c(),Z(L,1),L.m(a,null)):L&&(nt(),J(L,1,1,()=>{L=null}),rt()),(!S||V[0]&2)&&Le(a,"displayable",M[1]!==""),M[5]===!0?_?(_.p(M,V),V[0]&32&&Z(_,1)):(_=vi(M),_.c(),Z(_,1),_.m(i,b)):_&&(nt(),J(_,1,1,()=>{_=null}),rt()),O&&O.p&&(!S||V[1]&1073741824)&&cn(O,P,M,M[61],S?an(P,M[61],V,null):fn(M[61]),null);let oe=y;y=W(M),y===oe?~y&&j[y].p(M,V):(v&&(nt(),J(j[oe],1,1,()=>{j[oe]=null}),rt()),~y?(v=j[y],v?v.p(M,V):(v=j[y]=B[y](M),v.c()),Z(v,1),v.m(t,null)):v=null),(!S||V[0]&4&&E!==(E=Jt(M[2])+" svelte-bz0zu3"))&&p(t,"class",E),(!S||V[0]&22)&&Le(t,"can-collapse",M[4]&&M[1]==="")},i(M){S||(Z(x),Z(o.$$.fragment,M),Z(u.$$.fragment,M),Z(L),Z(_),Z(O,M),Z(v),S=!0)},o(M){J(x),J(o.$$.fragment,M),J(u.$$.fragment,M),J(L),J(_),J(O,M),J(v),S=!1},d(M){M&&(D(e),D(t)),be(o),n[64](null),be(u),L&&L.d(),_&&_.d(),O&&O.d(M),~y&&j[y].d(),w=!1,ye(C)}}}function ar(n,e,t){let i,{$$slots:r={},$$scope:o}=e;const l={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:a=void 0}=e,{clearButtonTitle:d="clear"}=e,{clearOnBlur:u=!1}=e,{collapsed:f=!1}=e,{country:h=void 0}=e,{debounceSearch:b=200}=e,{enableReverse:m=!1}=e,{errorMessage:y="Something went wrong…"}=e,{filter:v=()=>!0}=e,{flyTo:E=!0}=e,{fuzzyMatch:S=!0}=e,{language:w=void 0}=e,{limit:C=void 0}=e,{mapController:x=void 0}=e,{minLength:L=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:P="Search"}=e,{proximity:O=[{type:"server-geolocation"}]}=e,{reverseActive:B=m==="always"}=e,{reverseButtonTitle:j="toggle reverse geocoding"}=e,{searchValue:W=""}=e,{pickedResultStyle:M="full-geometry"}=e,{showPlaceType:V="if-needed"}=e,{showResultsWhileTyping:oe=!0}=e,{autocompleteTimeout:Ne=void 0}=e,{selectFirst:qe=!0}=e,{flyToSelected:Ot=!1}=e,{markerOnSelected:ct=!0}=e,{types:ze=void 0}=e,{exhaustiveReverseGeocoding:Wt=!1}=e,{excludeTypes:ft=!1}=e,{zoom:dt=l}=e,{apiUrl:At="https://api.maptiler.com/geocoding"}=e,{fetchParameters:zt={}}=e,{iconsBaseUrl:Hi="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.2/icons/"}=e,{adjustUrlQuery:Ft=()=>{}}=e;function Vr(){ge.focus()}function Qr(){ge.blur()}function Yi(g,Q=!0,Y=!1){t(1,W=g),Q?(t(15,U=-1),Ki()):(Ut(!Y,Y),setTimeout(()=>{ge.focus(),ge.select()}))}function Zr(){t(14,I=void 0),t(57,N=void 0),t(15,U=-1)}function Hr(){t(56,H=[]),t(57,N=void 0)}let je=!1,I,H,N,Xi="",ge,U=-1,me,ht=[],Fe,Te,ce,gt,Dt;const Yr=new Set,Re=vn();function Xr(){return!!ce}yn(()=>{x&&(x.setEventHandler(void 0),x.indicateReverse(!1),x.setSelectedMarker(-1),x.setMarkers(void 0,void 0))});function Ki(g){if(Te&&(window.clearTimeout(Te),Te=void 0),ce){window.clearTimeout(ce),t(58,ce=void 0),$e(W,{exact:!0});return}if(U>-1&&I)t(57,N=I[U]),t(1,W=N.place_type[0]==="reverse"?N.place_name:N.place_name.replace(/,.*/,"")),t(18,me=void 0),t(56,H=void 0),t(15,U=-1);else if(W){const Q=g||!Bt(W);$e(W,{exact:!0}).then(()=>{t(56,H=I),t(57,N=void 0),Q&&Kr()}).catch(Y=>t(18,me=Y))}}function Bt(g){try{return nr(g,6)}catch{return!1}}async function $e(g,{byId:Q=!1,exact:Y=!1,appendSpace:fe=!1}={}){t(18,me=void 0),Fe==null||Fe.abort();const se=new AbortController;t(19,Fe=se);try{const T=Bt(g),$=new URLSearchParams;if(w!==void 0&&$.set("language",Array.isArray(w)?w.join(","):w??""),ze&&$.set("types",ze.join(",")),ft&&$.set("excludeTypes",String(ft)),a&&$.set("bbox",a.map(yt=>yt.toFixed(6)).join(",")),h&&$.set("country",Array.isArray(h)?h.join(","):h),!Q&&!T){const yt=await Qn(x,O,se);yt&&$.set("proximity",yt),(Y||!oe)&&$.set("autocomplete","false"),$.set("fuzzyMatch",String(S))}C!==void 0&&(Wt||!T||(ze==null?void 0:ze.length)===1)&&$.set("limit",String(C)),$.set("key",c),Ft($);const mt=At+"/"+encodeURIComponent(T?T.decimalLongitude+","+T.decimalLatitude:g+(fe?" ":""))+".json?"+$.toString();if(mt===Xi){Q?(t(14,I=void 0),t(57,N=ht[0])):t(14,I=ht);return}Xi=mt;const qt=await fetch(mt,{signal:se.signal,...zt});if(!qt.ok)throw new Error(await qt.text());const jt=await qt.json();Re("response",{url:mt,featureCollection:jt}),Q?(t(14,I=void 0),t(57,N=jt.features[0]),ht=[N]):(t(14,I=jt.features.filter(v)),T&&I.unshift({type:"Feature",properties:{},id:"reverse_"+T.decimalLongitude+"_"+T.decimalLatitude,text:T.decimalLatitude+", "+T.decimalLongitude,place_name:T.decimalLatitude+", "+T.decimalLongitude,place_type:["reverse"],center:[T.decimalLongitude,T.decimalLatitude],bbox:[T.decimalLongitude,T.decimalLatitude,T.decimalLongitude,T.decimalLatitude],geometry:{type:"Point",coordinates:[T.decimalLongitude,T.decimalLatitude]}}),ht=I,T&&ge.focus())}catch(T){if(T&&typeof T=="object"&&"name"in T&&T.name==="AbortError")return;throw T}finally{se===Fe&&t(19,Fe=void 0)}}function Kr(){var fe;if(!(H!=null&&H.length)||!E)return;const g=[180,90,-180,-90],Q=!H.some(se=>!se.matching_text);let Y;for(const se of H){const T=et(se);if(Y=Y===void 0?T:T===void 0?Y:Math.max(Y,T),Q||!se.matching_text)for(const $ of[0,1,2,3])g[$]=Math[$<2?"min":"max"](g[$],((fe=se.bbox)==null?void 0:fe[$])??se.center[$%2])}x&&H.length>0&&(N&&g[0]===g[2]&&g[1]===g[3]?x.flyTo(N.center,et(N)):x.fitBounds(ot(g),50,Y))}function et(g){var Y;if(!g.bbox||g.bbox[0]!==g.bbox[2]&&g.bbox[1]!==g.bbox[3])return;const Q=g.id.replace(/\..*/,"");return(Array.isArray((Y=g.properties)==null?void 0:Y.categories)?g.properties.categories.reduce((fe,se)=>{const T=dt[Q+"."+se];return fe===void 0?T:T===void 0?fe:Math.max(fe,T)},void 0):void 0)??dt[Q]}function Jr(g){t(0,B=m==="always"),t(14,I=void 0),t(57,N=void 0),t(15,U=-1),Yi(g[1].toFixed(6)+", "+Vn(g[0],[-180,180],!0).toFixed(6),!1,!0)}function $r(g){if(!I)return;let Q=g.key==="ArrowDown"?1:g.key==="ArrowUp"?-1:0;Q&&(U===(qe?0:-1)&&Q===-1&&t(15,U=I.length),t(15,U+=Q),U>=I.length&&t(15,U=-1),U<0&&qe&&t(15,U=0),g.preventDefault())}function Ut(g=!0,Q=!1){if(t(18,me=void 0),Te&&(window.clearTimeout(Te),Te=void 0),ce&&(window.clearTimeout(ce),t(58,ce=void 0)),!oe&&!Q||W.length<L){t(14,I=void 0);return}const Y=W;Te=window.setTimeout(()=>{Te=void 0,$e(Y).catch(fe=>t(18,me=fe))},g?b:0),W.endsWith(" ")||t(58,ce=window.setTimeout(()=>{t(58,ce=void 0),$e(Y,{appendSpace:!0}).catch(fe=>t(18,me=fe))},Ne))}function Gt(g){t(57,N=g),t(1,W=g.place_name),t(15,U=-1)}const eo=()=>ge.focus();function to(g){pt[g?"unshift":"push"](()=>{ge=g,t(17,ge)})}function io(){W=this.value,t(1,W),t(13,je),t(28,u)}const no=()=>t(13,je=!0),ro=()=>t(13,je=!1),oo=()=>Ut(),so=()=>{t(1,W=""),ge.focus()},lo=()=>t(0,B=!B),uo=()=>t(18,me=void 0),ao=g=>t(15,U=g),co=g=>Gt(g),fo=()=>{qe||t(15,U=-1)},ho=()=>{};return n.$$set=g=>{"class"in g&&t(2,s=g.class),"apiKey"in g&&t(26,c=g.apiKey),"bbox"in g&&t(27,a=g.bbox),"clearButtonTitle"in g&&t(3,d=g.clearButtonTitle),"clearOnBlur"in g&&t(28,u=g.clearOnBlur),"collapsed"in g&&t(4,f=g.collapsed),"country"in g&&t(29,h=g.country),"debounceSearch"in g&&t(30,b=g.debounceSearch),"enableReverse"in g&&t(5,m=g.enableReverse),"errorMessage"in g&&t(6,y=g.errorMessage),"filter"in g&&t(31,v=g.filter),"flyTo"in g&&t(32,E=g.flyTo),"fuzzyMatch"in g&&t(33,S=g.fuzzyMatch),"language"in g&&t(34,w=g.language),"limit"in g&&t(35,C=g.limit),"mapController"in g&&t(36,x=g.mapController),"minLength"in g&&t(37,L=g.minLength),"noResultsMessage"in g&&t(7,_=g.noResultsMessage),"placeholder"in g&&t(8,P=g.placeholder),"proximity"in g&&t(38,O=g.proximity),"reverseActive"in g&&t(0,B=g.reverseActive),"reverseButtonTitle"in g&&t(9,j=g.reverseButtonTitle),"searchValue"in g&&t(1,W=g.searchValue),"pickedResultStyle"in g&&t(39,M=g.pickedResultStyle),"showPlaceType"in g&&t(10,V=g.showPlaceType),"showResultsWhileTyping"in g&&t(40,oe=g.showResultsWhileTyping),"autocompleteTimeout"in g&&t(41,Ne=g.autocompleteTimeout),"selectFirst"in g&&t(11,qe=g.selectFirst),"flyToSelected"in g&&t(42,Ot=g.flyToSelected),"markerOnSelected"in g&&t(43,ct=g.markerOnSelected),"types"in g&&t(44,ze=g.types),"exhaustiveReverseGeocoding"in g&&t(45,Wt=g.exhaustiveReverseGeocoding),"excludeTypes"in g&&t(46,ft=g.excludeTypes),"zoom"in g&&t(47,dt=g.zoom),"apiUrl"in g&&t(48,At=g.apiUrl),"fetchParameters"in g&&t(49,zt=g.fetchParameters),"iconsBaseUrl"in g&&t(12,Hi=g.iconsBaseUrl),"adjustUrlQuery"in g&&t(50,Ft=g.adjustUrlQuery),"$$scope"in g&&t(61,o=g.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&32&&t(0,B=m==="always"),n.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,gt=je),u&&!je&&t(1,W="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&64&&W.length<L&&(t(57,N=void 0),t(14,I=void 0),t(18,me=void 0),t(56,H=I)),n.$$.dirty[1]&67109120&&M!=="marker-only"&&N&&!N.address&&N.geometry.type==="Point"&&N.place_type[0]!=="reverse"&&$e(N.id,{byId:!0}).catch(g=>t(18,me=g)),n.$$.dirty[1]&335544354&&(x&&N&&N.id!==Dt&&E&&(!N.bbox||N.bbox[0]===N.bbox[2]&&N.bbox[1]===N.bbox[3]?x.flyTo(N.center,et(N)):x.fitBounds(ot(N.bbox),50,et(N)),t(14,I=void 0),t(56,H=void 0),t(15,U=-1)),t(59,Dt=N==null?void 0:N.id)),n.$$.dirty[0]&18432&&qe&&I!=null&&I.length&&(Xr()||t(15,U=0)),n.$$.dirty[0]&2&&t(15,U=-1),n.$$.dirty[0]&16384|n.$$.dirty[1]&33554432&&H!==I&&t(56,H=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&33554464&&x&&x.setEventHandler(g=>{switch(g.type){case"mapClick":B&&Jr(g.coordinates);break;case"markerClick":{const Q=I==null?void 0:I.find(Y=>Y.id===g.id);Q&&Gt(Q)}break;case"markerMouseEnter":H&&t(15,U=gt?(I==null?void 0:I.findIndex(Q=>Q.id===g.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,U=-1);break}}),n.$$.dirty[0]&49152&&t(60,i=I==null?void 0:I[U]),n.$$.dirty[1]&536872994&&x&&i&&E&&Ot&&x.flyTo(i.center,et(i)),n.$$.dirty[1]&4128&&(ct||x==null||x.setMarkers(void 0,void 0)),n.$$.dirty[1]&570429472&&x&&ct&&!H&&(x.setMarkers(i?[i]:void 0,void 0),x.setSelectedMarker(i?0:-1)),n.$$.dirty[1]&100663328&&x&&x.setMarkers(H,N),n.$$.dirty[0]&32768|n.$$.dirty[1]&33554464&&H&&x&&x.setSelectedMarker(U),n.$$.dirty[1]&671088640&&i&&(window.clearTimeout(ce),t(58,ce=void 0)),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&x){const g=Bt(W);x.setReverseMarker(g?[g.decimalLongitude,g.decimalLatitude]:void 0)}n.$$.dirty[1]&536870912&&Re("select",{feature:i}),n.$$.dirty[1]&67108864&&Re("pick",{feature:N}),n.$$.dirty[0]&81920&&Re("optionsvisibilitychange",{optionsVisible:gt&&!!I}),n.$$.dirty[0]&16384&&Re("featureslisted",{features:I}),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&&x&&x.indicateReverse(B)},[B,W,s,d,f,m,y,_,P,j,V,qe,Hi,je,I,U,gt,ge,me,Fe,Yr,Ki,$r,Ut,Gt,l,c,a,u,h,b,v,E,S,w,C,x,L,O,M,oe,Ne,Ot,ct,ze,Wt,ft,dt,At,zt,Ft,Vr,Qr,Yi,Zr,Hr,H,N,ce,Dt,i,o,r,eo,to,io,no,ro,oo,so,lo,uo,ao,co,fo,ho]}let cr=class extends Ae{constructor(e){super(),We(this,e,ar,ur,Ie,{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 st(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 Lt(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 st({type:"Polygon",coordinates:n},e,t)}function St(n,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=n,t}function bi(n,e,t={}){return st({type:"MultiPolygon",coordinates:n},e,t)}function wi(n,e,t){if(n!==null)for(var i,r,o,l,s,c,a,d=0,u=0,f,h=n.type,b=h==="FeatureCollection",m=h==="Feature",y=b?n.features.length:1,v=0;v<y;v++){a=b?n.features[v].geometry:m?n.geometry:n,f=a?a.type==="GeometryCollection":!1,s=f?a.geometries.length:1;for(var E=0;E<s;E++){var S=0,w=0;if(l=f?a.geometries[E]:a,l!==null){c=l.coordinates;var C=l.type;switch(d=0,C){case null:break;case"Point":if(e(c,u,v,S,w)===!1)return!1;u++,S++;break;case"LineString":case"MultiPoint":for(i=0;i<c.length;i++){if(e(c[i],u,v,S,w)===!1)return!1;u++,C==="MultiPoint"&&S++}C==="LineString"&&S++;break;case"Polygon":case"MultiLineString":for(i=0;i<c.length;i++){for(r=0;r<c[i].length-d;r++){if(e(c[i][r],u,v,S,w)===!1)return!1;u++}C==="MultiLineString"&&S++,C==="Polygon"&&w++}C==="Polygon"&&S++;break;case"MultiPolygon":for(i=0;i<c.length;i++){for(w=0,r=0;r<c[i].length;r++){for(o=0;o<c[i][r].length-d;o++){if(e(c[i][r][o],u,v,S,w)===!1)return!1;u++}w++}S++}break;case"GeometryCollection":for(i=0;i<l.geometries.length;i++)if(wi(l.geometries[i],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function xt(n,e){var t,i,r,o,l,s,c,a,d,u,f=0,h=n.type==="FeatureCollection",b=n.type==="Feature",m=h?n.features.length:1;for(t=0;t<m;t++){for(s=h?n.features[t].geometry:b?n.geometry:n,a=h?n.features[t].properties:b?n.properties:{},d=h?n.features[t].bbox:b?n.bbox:void 0,u=h?n.features[t].id:b?n.id:void 0,c=s?s.type==="GeometryCollection":!1,l=c?s.geometries.length:1,r=0;r<l;r++){if(o=c?s.geometries[r]:s,o===null){if(e(null,f,a,d,u)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(o,f,a,d,u)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<o.geometries.length;i++)if(e(o.geometries[i],f,a,d,u)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}f++}}function fr(n,e){xt(n,function(t,i,r,o,l){var s=t===null?null:t.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return e(st(t,r,{bbox:o,id:l}),i,0)===!1?!1:void 0}var c;switch(s){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var a=0;a<t.coordinates.length;a++){var d=t.coordinates[a],u={type:c,coordinates:d};if(e(st(u,r),i,a)===!1)return!1}})}function dr(n,e={}){if(n.bbox!=null&&e.recompute!==!0)return n.bbox;const t=[1/0,1/0,-1/0,-1/0];return wi(n,i=>{t[0]>i[0]&&(t[0]=i[0]),t[1]>i[1]&&(t[1]=i[1]),t[2]<i[0]&&(t[2]=i[0]),t[3]<i[1]&&(t[3]=i[1])}),t}var _i=dr;/**
1
+ (function(k,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("ol/control"),require("ol/events/Event"),require("ol"),require("ol/geom"),require("ol/layer/Vector"),require("ol/proj"),require("ol/source/Vector"),require("ol/style/Fill"),require("ol/style/Icon"),require("ol/style/Stroke"),require("ol/style/Style"),require("ol/style/Text")):typeof define=="function"&&define.amd?define(["exports","ol/control","ol/events/Event","ol","ol/geom","ol/layer/Vector","ol/proj","ol/source/Vector","ol/style/Fill","ol/style/Icon","ol/style/Stroke","ol/style/Style","ol/style/Text"],z):(k=typeof globalThis<"u"?globalThis:k||self,z(k.openlayersMaptilerGeocoder={},k.ol.control,k.ol.events.Event,k.ol,k.ol.geom,k.ol.layer.Vector,k.ol.proj,k.ol.source.Vector,k.ol.style.Fill,k.ol.style.Icon,k.ol.style.Stroke,k.ol.style.Style,k.ol.style.Text))})(this,function(k,z,F,le,ue,en,_e,tn,Qt,nn,Zt,rn,on){"use strict";var go=Object.defineProperty;var Ji=k=>{throw TypeError(k)};var mo=(k,z,F)=>z in k?go(k,z,{enumerable:!0,configurable:!0,writable:!0,value:F}):k[z]=F;var de=(k,z,F)=>mo(k,typeof z!="symbol"?z+"":z,F),$i=(k,z,F)=>z.has(k)||Ji("Cannot "+F);var K=(k,z,F)=>($i(k,z,"read from private field"),F?F.call(k):z.get(k)),Vt=(k,z,F)=>z.has(k)?Ji("Cannot add the same private member more than once"):z instanceof WeakSet?z.add(k):z.set(k,F),vt=(k,z,F,le)=>($i(k,z,"write to private field"),le?le.call(k,F):z.set(k,F),F);var X,Pe;function G(){}function sn(n,e){for(const t in e)n[t]=e[t];return n}function Ht(n){return n()}function Yt(){return Object.create(null)}function ye(n){n.forEach(Ht)}function Xt(n){return typeof n=="function"}function Ie(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}let tt;function ee(n,e){return n===e?!0:(tt||(tt=document.createElement("a")),tt.href=e,n===tt.href)}function ln(n){return Object.keys(n).length===0}function un(n,e,t,i){if(n){const r=Kt(n,e,t,i);return n[0](r)}}function Kt(n,e,t,i){return n[1]&&i?sn(t.ctx.slice(),n[1](i(e))):t.ctx}function an(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=[],l=Math.max(e.dirty.length,r.length);for(let s=0;s<l;s+=1)o[s]=e.dirty[s]|r[s];return o}return e.dirty|r}return e.dirty}function cn(n,e,t,i,r,o){if(r){const l=Kt(e,t,i,o);n.p(l,r)}}function fn(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 Jt(n){return n??""}function R(n,e){n.appendChild(e)}function q(n,e,t){n.insertBefore(e,t||null)}function D(n){n.parentNode&&n.parentNode.removeChild(n)}function A(n){return document.createElement(n)}function ve(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function Ee(n){return document.createTextNode(n)}function re(){return Ee(" ")}function dn(){return Ee("")}function ie(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function hn(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 gn(n){return Array.from(n.childNodes)}function Ve(n,e){e=""+e,n.data!==e&&(n.data=e)}function $t(n,e){n.value=e??""}function Le(n,e,t){n.classList.toggle(e,!!t)}function mn(n,e,{bubbles:t=!1,cancelable:i=!1}={}){return new CustomEvent(n,{detail:e,bubbles:t,cancelable:i})}let Qe;function Ze(n){Qe=n}function ei(){if(!Qe)throw new Error("Function called outside component initialization");return Qe}function yn(n){ei().$$.on_destroy.push(n)}function vn(){const n=ei();return(e,t,{cancelable:i=!1}={})=>{const r=n.$$.callbacks[e];if(r){const o=mn(e,t,{cancelable:i});return r.slice().forEach(l=>{l.call(n,o)}),!o.defaultPrevented}return!0}}function ti(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const De=[],pt=[];let Be=[];const ii=[],pn=Promise.resolve();let bt=!1;function bn(){bt||(bt=!0,pn.then(ni))}function wt(n){Be.push(n)}const _t=new Set;let Ue=0;function ni(){if(Ue!==0)return;const n=Qe;do{try{for(;Ue<De.length;){const e=De[Ue];Ue++,Ze(e),wn(e.$$)}}catch(e){throw De.length=0,Ue=0,e}for(Ze(null),De.length=0,Ue=0;pt.length;)pt.pop()();for(let e=0;e<Be.length;e+=1){const t=Be[e];_t.has(t)||(_t.add(t),t())}Be.length=0}while(De.length);for(;ii.length;)ii.pop()();bt=!1,_t.clear(),Ze(n)}function wn(n){if(n.fragment!==null){n.update(),ye(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(wt)}}function _n(n){const e=[],t=[];Be.forEach(i=>n.indexOf(i)===-1?e.push(i):t.push(i)),t.forEach(i=>i()),Be=e}const it=new Set;let Oe;function nt(){Oe={r:0,c:[],p:Oe}}function rt(){Oe.r||ye(Oe.c),Oe=Oe.p}function Z(n,e){n&&n.i&&(it.delete(n),n.i(e))}function J(n,e,t,i){if(n&&n.o){if(it.has(n))return;it.add(n),Oe.c.push(()=>{it.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}else i&&i()}function ri(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function En(n,e){J(n,1,1,()=>{e.delete(n.key)})}function Ln(n,e,t,i,r,o,l,s,c,a,d,u){let f=n.length,h=o.length,b=f;const m={};for(;b--;)m[n[b].key]=b;const y=[],v=new Map,E=new Map,S=[];for(b=h;b--;){const L=u(r,o,b),_=t(L);let P=l.get(_);P?S.push(()=>P.p(L,e)):(P=a(_,L),P.c()),v.set(_,y[b]=P),_ in m&&E.set(_,Math.abs(b-m[_]))}const w=new Set,C=new Set;function x(L){Z(L,1),L.m(s,d),l.set(L.key,L),d=L.first,h--}for(;f&&h;){const L=y[h-1],_=n[f-1],P=L.key,O=_.key;L===_?(d=L.first,f--,h--):v.has(O)?!l.has(P)||w.has(P)?x(L):C.has(O)?f--:E.get(P)>E.get(O)?(C.add(P),x(L)):(w.add(O),f--):(c(_,l),f--)}for(;f--;){const L=n[f];v.has(L.key)||c(L,l)}for(;h;)x(y[h-1]);return ye(S),y}function Se(n){n&&n.c()}function pe(n,e,t){const{fragment:i,after_update:r}=n.$$;i&&i.m(e,t),wt(()=>{const o=n.$$.on_mount.map(Ht).filter(Xt);n.$$.on_destroy?n.$$.on_destroy.push(...o):ye(o),n.$$.on_mount=[]}),r.forEach(wt)}function be(n,e){const t=n.$$;t.fragment!==null&&(_n(t.after_update),ye(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Sn(n,e){n.$$.dirty[0]===-1&&(De.push(n),bn(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function We(n,e,t,i,r,o,l=null,s=[-1]){const c=Qe;Ze(n);const a=n.$$={fragment:null,ctx:[],props:o,update:G,not_equal:r,bound:Yt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Yt(),dirty:s,skip_bound:!1,root:e.target||c.$$.root};l&&l(a.root);let d=!1;if(a.ctx=t?t(n,e.props||{},(u,f,...h)=>{const b=h.length?h[0]:f;return a.ctx&&r(a.ctx[u],a.ctx[u]=b)&&(!a.skip_bound&&a.bound[u]&&a.bound[u](b),d&&Sn(n,u)),f}):[],a.update(),d=!0,ye(a.before_update),a.fragment=i?i(a.ctx):!1,e.target){if(e.hydrate){const u=gn(e.target);a.fragment&&a.fragment.l(u),u.forEach(D)}else a.fragment&&a.fragment.c();e.intro&&Z(n.$$.fragment),pe(n,e.target,e.anchor),ni()}Ze(c)}class Ae{constructor(){de(this,"$$");de(this,"$$set")}$destroy(){be(this,1),this.$destroy=G}$on(e,t){if(!Xt(t))return G;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&&!ln(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const xn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(xn);function Mn(n){let e,t;return{c(){e=ve("svg"),t=ve("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){q(i,e,r),R(e,t)},p:G,i:G,o:G,d(i){i&&D(e)}}}class oi extends Ae{constructor(e){super(),We(this,e,null,Mn,Ie,{})}}function kn(n){let e,t;return{c(){e=ve("svg"),t=ve("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){q(i,e,r),R(e,t)},p:G,i:G,o:G,d(i){i&&D(e)}}}class si extends Ae{constructor(e){super(),We(this,e,null,kn,Ie,{})}}function Cn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"area.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"area.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Pn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"reverse.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"reverse.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Nn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"poi.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"poi.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Tn(n){let e,t;return{c(){e=A("img"),ee(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){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"postal_code.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Rn(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"street.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"street.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function In(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"road.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"road.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function On(n){let e,t;return{c(){e=A("img"),ee(e.src,t=n[3]+"housenumber.svg")||p(e,"src",t),p(e,"alt",n[6]),p(e,"class","svelte-ltkwvy")},m(i,r){q(i,e,r)},p(i,r){r&8&&!ee(e.src,t=i[3]+"housenumber.svg")&&p(e,"src",t),r&64&&p(e,"alt",i[6])},d(i){i&&D(e)}}}function Wn(n){let e,t,i,r;return{c(){e=A("img"),ee(e.src,t=n[5])||p(e,"src",t),p(e,"alt",n[4]),p(e,"class","svelte-ltkwvy")},m(o,l){q(o,e,l),i||(r=ie(e,"error",n[14]),i=!0)},p(o,l){l&32&&!ee(e.src,t=o[5])&&p(e,"src",t),l&16&&p(e,"alt",o[4])},d(o){o&&D(e),i=!1,r()}}}function li(n){let e,t;return{c(){e=A("span"),t=Ee(n[6]),p(e,"class","secondary svelte-ltkwvy")},m(i,r){q(i,e,r),R(e,t)},p(i,r){r&64&&Ve(t,i[6])},d(i){i&&D(e)}}}function An(n){let e,t,i,r,o,l,s,c,a,d=(n[7]?n[0].place_name:n[0].place_name.replace(/,.*/,""))+"",u,f,h=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],b,m,y=(n[7]?"":n[0].place_name.replace(/[^,]*,?\s*/,""))+"",v,E,S;function w(_,P){return P&1&&(t=null),P&1&&(i=null),P&1&&(r=null),P&1&&(o=null),_[5]?Wn:_[0].address?On:(t==null&&(t=!!_[0].id.startsWith("road.")),t?In:(i==null&&(i=!!_[0].id.startsWith("address.")),i?Rn:(r==null&&(r=!!_[0].id.startsWith("postal_code.")),r?Tn:(o==null&&(o=!!_[0].id.startsWith("poi.")),o?Nn:_[7]?Pn:Cn))))}let C=w(n,-1),x=C(n),L=h&&li(n);return{c(){e=A("li"),x.c(),l=re(),s=A("span"),c=A("span"),a=A("span"),u=Ee(d),f=re(),L&&L.c(),b=re(),m=A("span"),v=Ee(y),p(a,"class","primary svelte-ltkwvy"),p(c,"class","svelte-ltkwvy"),p(m,"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(_,P){q(_,e,P),x.m(e,null),R(e,l),R(e,s),R(s,c),R(c,a),R(a,u),R(c,f),L&&L.m(c,null),R(s,b),R(s,m),R(m,v),E||(S=[ie(e,"mouseenter",n[12]),ie(e,"focus",n[13])],E=!0)},p(_,[P]){C===(C=w(_,P))&&x?x.p(_,P):(x.d(1),x=C(_),x&&(x.c(),x.m(e,l))),P&1&&d!==(d=(_[7]?_[0].place_name:_[0].place_name.replace(/,.*/,""))+"")&&Ve(u,d),P&37&&(h=_[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]),h?L?L.p(_,P):(L=li(_),L.c(),L.m(c,null)):L&&(L.d(1),L=null),P&1&&y!==(y=(_[7]?"":_[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ve(v,y),P&2&&p(e,"data-selected",_[1]),P&2&&Le(e,"selected",_[1])},i:G,o:G,d(_){_&&D(e),x.d(),L&&L.d(),E=!1,ye(S)}}}function zn(n,e,t){var S;let i,r,{feature:o}=e,{selected:l=!1}=e,{showPlaceType:s}=e,{missingIconsCache:c}=e,{iconsBaseUrl:a}=e;const d=(S=o.properties)==null?void 0:S.categories;let u,f,h=0,b=o.place_type[0]==="reverse";function m(){f&&c.add(f),t(10,h++,h)}function y(w){ti.call(this,n,w)}function v(w){ti.call(this,n,w)}const E=()=>m();return n.$$set=w=>{"feature"in w&&t(0,o=w.feature),"selected"in w&&t(1,l=w.selected),"showPlaceType"in w&&t(2,s=w.showPlaceType),"missingIconsCache"in w&&t(9,c=w.missingIconsCache),"iconsBaseUrl"in w&&t(3,a=w.iconsBaseUrl)},n.$$.update=()=>{var w,C,x,L;if(n.$$.dirty&3640)do t(11,i--,i),t(4,u=d==null?void 0:d[i]),t(5,f=u?a+u.replace(/ /g,"_")+".svg":void 0);while(i>-1&&(!f||c.has(f)));n.$$.dirty&1&&t(6,r=((C=(w=o.properties)==null?void 0:w.categories)==null?void 0:C.join(", "))??((L=(x=o.properties)==null?void 0:x.place_type_name)==null?void 0:L[0])??o.place_type[0])},t(11,i=(d==null?void 0:d.length)??0),[o,l,s,a,u,f,r,b,m,c,h,i,y,v,E]}class Fn extends Ae{constructor(e){super(),We(this,e,zn,An,Ie,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function Dn(n){let e;return{c(){e=A("div"),e.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',p(e,"class","svelte-7cmwmc")},m(t,i){q(t,e,i)},p:G,i:G,o:G,d(t){t&&D(e)}}}class Bn extends Ae{constructor(e){super(),We(this,e,null,Dn,Ie,{})}}function Un(n){let e,t;return{c(){e=ve("svg"),t=ve("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){q(i,e,r),R(e,t)},p:G,i:G,o:G,d(i){i&&D(e)}}}class Gn extends Ae{constructor(e){super(),We(this,e,null,Un,Ie,{})}}function qn(n){let e,t,i;return{c(){e=ve("svg"),t=ve("circle"),i=ve("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){q(r,e,o),R(e,t),R(e,i)},p:G,i:G,o:G,d(r){r&&D(e)}}}class jn extends Ae{constructor(e){super(),We(this,e,null,qn,Ie,{})}}function Vn(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 ot(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 He;async function Qn(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(He&&r.cachedLocationExpiry&&He.time+r.cachedLocationExpiry>Date.now()){if(!He.coords)break e;return He.coords}let o;try{return o=await new Promise((l,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(c=>{l([c.coords.longitude,c.coords.latitude].map(a=>a.toFixed(6)).join(","))},c=>{s(c)},r)}),o}catch{}finally{r.cachedLocationExpiry&&(He={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 Zn=/^(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,ui=/^([+-]?[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,})$/,ai=/^(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,ci=/^(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,fi=/^(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,di=/^(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 Hn(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(h=>Number(h.trim())),t=Number(e[0]),i=Number(e[1]),r=Math.abs(t),o=Math.abs(i),l=t>0?"N":"S",s=i>0?"E":"W";let c;n=="DD"&&(c=`${r}° ${l}, ${o}° ${s}`);const a=Math.floor(r),d=Math.floor(o),u=(r-a)*60,f=(o-d)*60;if(n=="DM"){let h=hi(u,3).toFixed(3).padStart(6,"0"),b=hi(f,3).toFixed(3).padStart(6,"0");h.endsWith(".000")&&b.endsWith(".000")&&(h=h.replace(/\.000$/,""),b=b.replace(/\.000$/,"")),c=`${a}° ${h}' ${l}, ${d}° ${b}' ${s}`}if(n=="DMS"){const h=Math.floor(u),b=Math.floor(f);let m=((u-h)*60).toFixed(1).padStart(4,"0"),y=((f-b)*60).toFixed(1).padStart(4,"0");const v=h.toString().padStart(2,"0"),E=b.toString().padStart(2,"0");m.endsWith(".0")&&y.endsWith(".0")&&(m=m.replace(/\.0$/,""),y=y.replace(/\.0$/,"")),c=`${a}° ${v}' ${m}" ${l}, ${d}° ${E}' ${y}" ${s}`}return c}else throw new Error("no decimal coordinates to convert")}function hi(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="",l=null,s=[],c=!1;if(Zn.test(n))throw new Error("invalid coordinate value");if(ui.test(n))if(s=ui.exec(n),c=Ye(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),l="DM";else throw new Error("invalid coordinate format");else if(ai.test(n))if(s=ai.exec(n),c=Ye(s),c){if(t=s[2],i=s[6],t.includes(",")&&(t=t.replace(",",".")),i.includes(",")&&(i=i.replace(",",".")),l="DD",Number(Math.round(t))==Number(t))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(ci.test(n))if(s=ci.exec(n),c=Ye(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[9])),s[11]&&(i+=s[11]/60),s[13]&&(i+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(i=-1*i),s[1]?(r=s[1],o=s[8]):s[7]&&(r=s[7],o=s[14]);else throw new Error("invalid DMS coordinates format");else if(fi.test(n))if(s=fi.exec(n),c=Ye(s),c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,l="DM"),s[6]&&(t+=s[6]/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12]/60),s[14]&&(i+=s[14]/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);else throw new Error("invalid DMS coordinates format");else if(di.test(n)){if(s=di.exec(n),c=Ye(s),s.filter(a=>a).length<=5)throw new Error("invalid coordinates format");if(c)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,l="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,l="DMS"),parseInt(s[2])<0&&(t=-1*t),i=Math.abs(parseInt(s[10])),s[12]&&(i+=s[12].replace(",",".")/60),s[14]&&(i+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(i=-1*i),s[1]?(r=s[1],o=s[9]):s[8]&&(r=s[8],o=s[16]);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 a=/S|SOUTH/i;a.test(r)&&t>0&&(t=-1*t),a=/W|WEST/i,a.test(o)&&i>0&&(i=-1*i);const d=s[0].trim();let u,f;const h=/[,/;\u0020]/g,b=d.match(h);if(b==null){const v=Math.floor(n.length/2);u=d.substring(0,v).trim(),f=d.substring(v).trim()}else{let v;b.length%2==1?v=Math.floor(b.length/2):v=b.length/2-1;let E=0;if(v==0)E=d.indexOf(b[0]),u=d.substring(0,E).trim(),f=d.substring(E+1).trim();else{let S=0,w=0;for(;S<=v;)E=d.indexOf(b[S],w),w=E+1,S++;u=d.substring(0,E).trim(),f=d.substring(E+1).trim()}}const m=u.split(".");if(m.length==2&&m[1]==0&&m[1].length!=2)throw new Error("invalid coordinates format");const y=f.split(".");if(y.length==2&&y[1]==0&&y[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(u)||/^\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:u,verbatimLongitude:f,decimalLatitude:t,decimalLongitude:i,decimalCoordinates:`${t},${i}`,originalFormat:l,closeEnough:Yn,toCoordinateFormat:Hn})}else throw new Error("coordinates pattern match failed")}function Ye(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 l=e[o],s=e[o+r],c=t.test(l)&&t.test(s),a=i.test(l)&&i.test(s),d=l==s;if(!(l==null&&s==null)){if(l==null||s==null)return!1;if(c||a||d)continue;return!1}}return!0}function gi(n,e){const t=Math.abs(n-e);return Number(t.toFixed(6))<=1e-5}function Yn(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 gi(this.decimalLatitude,Number(e[0]))&&gi(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Xn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Et.to=Xn;const Kn=[{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"}],Jn={decimalLatitude:40.123,decimalLongitude:-74.123},$n=[{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}],er=[{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 tr(){const n=[];return Kn.forEach(e=>{e.decimalLatitude?n.push(e):n.push({...e,...Jn})}),[...n,...$n,...er]}const ir=tr();Et.formats=ir.map(n=>n.verbatimCoordinates);const nr=Et;function mi(n,e,t){const i=n.slice();return i[86]=e[t],i[88]=t,i}function yi(n){let e,t;return e=new Bn({}),{c(){Se(e.$$.fragment)},m(i,r){pe(e,i,r),t=!0},i(i){t||(Z(e.$$.fragment,i),t=!0)},o(i){J(e.$$.fragment,i),t=!1},d(i){be(e,i)}}}function vi(n){let e,t,i,r,o;return t=new Gn({}),{c(){e=A("button"),Se(t.$$.fragment),p(e,"type","button"),p(e,"title",n[9]),p(e,"class","svelte-bz0zu3"),Le(e,"active",n[0])},m(l,s){q(l,e,s),pe(t,e,null),i=!0,r||(o=ie(e,"click",n[70]),r=!0)},p(l,s){(!i||s[0]&512)&&p(e,"title",l[9]),(!i||s[0]&1)&&Le(e,"active",l[0])},i(l){i||(Z(t.$$.fragment,l),i=!0)},o(l){J(t.$$.fragment,l),i=!1},d(l){l&&D(e),be(t),r=!1,o()}}}function rr(n){let e,t=[],i=new Map,r,o,l,s=ri(n[14]);const c=a=>a[86].id+(a[86].address?","+a[86].address:"");for(let a=0;a<s.length;a+=1){let d=mi(n,s,a),u=c(d);i.set(u,t[a]=pi(u,d))}return{c(){e=A("ul");for(let a=0;a<t.length;a+=1)t[a].c();p(e,"class","options svelte-bz0zu3")},m(a,d){q(a,e,d);for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(e,null);r=!0,o||(l=[ie(e,"mouseleave",n[74]),ie(e,"blur",n[75])],o=!0)},p(a,d){d[0]&17880064&&(s=ri(a[14]),nt(),t=Ln(t,d,c,1,a,s,i,e,En,pi,null,mi),rt())},i(a){if(!r){for(let d=0;d<s.length;d+=1)Z(t[d]);r=!0}},o(a){for(let d=0;d<t.length;d+=1)J(t[d]);r=!1},d(a){a&&D(e);for(let d=0;d<t.length;d+=1)t[d].d();o=!1,ye(l)}}}function or(n){let e,t,i,r,o,l;return t=new si({}),{c(){e=A("div"),Se(t.$$.fragment),i=re(),r=A("div"),o=Ee(n[7]),p(r,"class","svelte-bz0zu3"),p(e,"class","no-results svelte-bz0zu3")},m(s,c){q(s,e,c),pe(t,e,null),R(e,i),R(e,r),R(r,o),l=!0},p(s,c){(!l||c[0]&128)&&Ve(o,s[7])},i(s){l||(Z(t.$$.fragment,s),l=!0)},o(s){J(t.$$.fragment,s),l=!1},d(s){s&&D(e),be(t)}}}function sr(n){let e="",t;return{c(){t=Ee(e)},m(i,r){q(i,t,r)},p:G,i:G,o:G,d(i){i&&D(t)}}}function lr(n){let e,t,i,r,o,l,s,c,a,d,u;return t=new si({}),c=new oi({}),{c(){e=A("div"),Se(t.$$.fragment),i=re(),r=A("div"),o=Ee(n[6]),l=re(),s=A("button"),Se(c.$$.fragment),p(r,"class","svelte-bz0zu3"),p(s,"class","svelte-bz0zu3"),p(e,"class","error svelte-bz0zu3")},m(f,h){q(f,e,h),pe(t,e,null),R(e,i),R(e,r),R(r,o),R(e,l),R(e,s),pe(c,s,null),a=!0,d||(u=ie(s,"click",n[71]),d=!0)},p(f,h){(!a||h[0]&64)&&Ve(o,f[6])},i(f){a||(Z(t.$$.fragment,f),Z(c.$$.fragment,f),a=!0)},o(f){J(t.$$.fragment,f),J(c.$$.fragment,f),a=!1},d(f){f&&D(e),be(t),be(c),d=!1,u()}}}function pi(n,e){let t,i,r;function o(){return e[72](e[88])}function l(){return e[73](e[86])}return i=new Fn({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",l),{key:n,first:null,c(){t=dn(),Se(i.$$.fragment),this.first=t},m(s,c){q(s,t,c),pe(i,s,c),r=!0},p(s,c){e=s;const a={};c[0]&16384&&(a.feature=e[86]),c[0]&1024&&(a.showPlaceType=e[10]),c[0]&49152&&(a.selected=e[15]===e[88]),c[0]&4096&&(a.iconsBaseUrl=e[12]),i.$set(a)},i(s){r||(Z(i.$$.fragment,s),r=!0)},o(s){J(i.$$.fragment,s),r=!1},d(s){s&&D(t),be(i,s)}}}function ur(n){let e,t,i,r,o,l,s,c,a,d,u,f,h,b,m,y,v,E,S,w,C,x=!1;o=new jn({}),u=new oi({});let L=n[19]&&yi(),_=n[5]!=="never"&&vi(n);const P=n[62].default,O=un(P,n,n[61],null),B=[lr,sr,or,rr],j=[];function W(M,V){var oe,Ne;return M[18]?0:M[16]?((oe=M[14])==null?void 0:oe.length)===0?2:M[16]&&((Ne=M[14])!=null&&Ne.length)?3:-1:1}return~(y=W(n))&&(v=j[y]=B[y](n)),{c(){e=re(),t=A("form"),i=A("div"),r=A("button"),Se(o.$$.fragment),l=re(),s=A("input"),c=re(),a=A("div"),d=A("button"),Se(u.$$.fragment),f=re(),L&&L.c(),h=re(),_&&_.c(),b=re(),O&&O.c(),m=re(),v&&v.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(a,"class","clear-button-container svelte-bz0zu3"),Le(a,"displayable",n[1]!==""),p(i,"class","input-group svelte-bz0zu3"),p(t,"tabindex","0"),p(t,"class",E=Jt(n[2])+" svelte-bz0zu3"),Le(t,"can-collapse",n[4]&&n[1]==="")},m(M,V){q(M,e,V),q(M,t,V),R(t,i),R(i,r),pe(o,r,null),R(i,l),R(i,s),n[64](s),$t(s,n[1]),R(i,c),R(i,a),R(a,d),pe(u,d,null),R(a,f),L&&L.m(a,null),R(i,h),_&&_.m(i,null),R(i,b),O&&O.m(i,null),R(t,m),~y&&j[y].m(t,null),S=!0,w||(C=[ie(r,"click",n[63]),ie(s,"input",n[65]),ie(s,"focus",n[66]),ie(s,"blur",n[67]),ie(s,"keydown",n[22]),ie(s,"input",n[68]),ie(d,"click",n[69]),ie(t,"submit",hn(n[21]))],w=!0)},p(M,V){(!S||V[0]&256)&&p(s,"placeholder",M[8]),(!S||V[0]&256)&&p(s,"aria-label",M[8]),V[0]&2&&s.value!==M[1]&&$t(s,M[1]),(!S||V[0]&8)&&p(d,"title",M[3]),M[19]?L?V[0]&524288&&Z(L,1):(L=yi(),L.c(),Z(L,1),L.m(a,null)):L&&(nt(),J(L,1,1,()=>{L=null}),rt()),(!S||V[0]&2)&&Le(a,"displayable",M[1]!==""),M[5]!=="never"?_?(_.p(M,V),V[0]&32&&Z(_,1)):(_=vi(M),_.c(),Z(_,1),_.m(i,b)):_&&(nt(),J(_,1,1,()=>{_=null}),rt()),O&&O.p&&(!S||V[1]&1073741824)&&cn(O,P,M,M[61],S?an(P,M[61],V,null):fn(M[61]),null);let oe=y;y=W(M),y===oe?~y&&j[y].p(M,V):(v&&(nt(),J(j[oe],1,1,()=>{j[oe]=null}),rt()),~y?(v=j[y],v?v.p(M,V):(v=j[y]=B[y](M),v.c()),Z(v,1),v.m(t,null)):v=null),(!S||V[0]&4&&E!==(E=Jt(M[2])+" svelte-bz0zu3"))&&p(t,"class",E),(!S||V[0]&22)&&Le(t,"can-collapse",M[4]&&M[1]==="")},i(M){S||(Z(x),Z(o.$$.fragment,M),Z(u.$$.fragment,M),Z(L),Z(_),Z(O,M),Z(v),S=!0)},o(M){J(x),J(o.$$.fragment,M),J(u.$$.fragment,M),J(L),J(_),J(O,M),J(v),S=!1},d(M){M&&(D(e),D(t)),be(o),n[64](null),be(u),L&&L.d(),_&&_.d(),O&&O.d(M),~y&&j[y].d(),w=!1,ye(C)}}}function ar(n,e,t){let i,{$$slots:r={},$$scope:o}=e;const l={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:a=void 0}=e,{clearButtonTitle:d="clear"}=e,{clearOnBlur:u=!1}=e,{collapsed:f=!1}=e,{country:h=void 0}=e,{debounceSearch:b=200}=e,{reverse:m="never"}=e,{errorMessage:y="Something went wrong…"}=e,{filter:v=()=>!0}=e,{flyTo:E=!0}=e,{fuzzyMatch:S=!0}=e,{language:w=void 0}=e,{limit:C=void 0}=e,{mapController:x=void 0}=e,{minLength:L=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:P="Search"}=e,{proximity:O=[{type:"server-geolocation"}]}=e,{reverseActive:B=m==="always"}=e,{reverseButtonTitle:j="toggle reverse geocoding"}=e,{searchValue:W=""}=e,{pickedResultStyle:M="full-geometry"}=e,{showPlaceType:V="if-needed"}=e,{showResultsWhileTyping:oe=!0}=e,{autocompleteTimeout:Ne=void 0}=e,{selectFirst:qe=!0}=e,{flyToSelected:Ot=!1}=e,{markerOnSelected:ct=!0}=e,{types:ze=void 0}=e,{exhaustiveReverseGeocoding:Wt=!1}=e,{excludeTypes:ft=!1}=e,{zoom:dt=l}=e,{apiUrl:At="https://api.maptiler.com/geocoding"}=e,{fetchParameters:zt={}}=e,{iconsBaseUrl:Hi="https://cdn.maptiler.com/maptiler-geocoding-control/v2.0.0-rc.3/icons/"}=e,{adjustUrlQuery:Ft=()=>{}}=e;function Vr(){ge.focus()}function Qr(){ge.blur()}function Yi(g,Q=!0,Y=!1){t(1,W=g),Q?(t(15,U=-1),Ki()):(Ut(!Y,Y),setTimeout(()=>{ge.focus(),ge.select()}))}function Zr(){t(14,I=void 0),t(57,N=void 0),t(15,U=-1)}function Hr(){t(56,H=[]),t(57,N=void 0)}let je=!1,I,H,N,Xi="",ge,U=-1,me,ht=[],Fe,Te,ce,gt,Dt;const Yr=new Set,Re=vn();function Xr(){return!!ce}yn(()=>{x&&(x.setEventHandler(void 0),x.indicateReverse(!1),x.setSelectedMarker(-1),x.setMarkers(void 0,void 0))});function Ki(g){if(Te&&(window.clearTimeout(Te),Te=void 0),ce){window.clearTimeout(ce),t(58,ce=void 0),$e(W,{exact:!0});return}if(U>-1&&I)t(57,N=I[U]),t(1,W=N.place_type[0]==="reverse"?N.place_name:N.place_name.replace(/,.*/,"")),t(18,me=void 0),t(56,H=void 0),t(15,U=-1);else if(W){const Q=g||!Bt(W);$e(W,{exact:!0}).then(()=>{t(56,H=I),t(57,N=void 0),Q&&Kr()}).catch(Y=>t(18,me=Y))}}function Bt(g){try{return nr(g,6)}catch{return!1}}async function $e(g,{byId:Q=!1,exact:Y=!1,appendSpace:fe=!1}={}){t(18,me=void 0),Fe==null||Fe.abort();const se=new AbortController;t(19,Fe=se);try{const T=Bt(g),$=new URLSearchParams;if(w!==void 0&&$.set("language",Array.isArray(w)?w.join(","):w??""),ze&&$.set("types",ze.join(",")),ft&&$.set("excludeTypes",String(ft)),a&&$.set("bbox",a.map(yt=>yt.toFixed(6)).join(",")),h&&$.set("country",Array.isArray(h)?h.join(","):h),!Q&&!T){const yt=await Qn(x,O,se);yt&&$.set("proximity",yt),(Y||!oe)&&$.set("autocomplete","false"),$.set("fuzzyMatch",String(S))}C!==void 0&&(Wt||!T||(ze==null?void 0:ze.length)===1)&&$.set("limit",String(C)),$.set("key",c),Ft($);const mt=At+"/"+encodeURIComponent(T?T.decimalLongitude+","+T.decimalLatitude:g+(fe?" ":""))+".json?"+$.toString();if(mt===Xi){Q?(t(14,I=void 0),t(57,N=ht[0])):t(14,I=ht);return}Xi=mt;const qt=await fetch(mt,{signal:se.signal,...zt});if(!qt.ok)throw new Error(await qt.text());const jt=await qt.json();Re("response",{url:mt,featureCollection:jt}),Q?(t(14,I=void 0),t(57,N=jt.features[0]),ht=[N]):(t(14,I=jt.features.filter(v)),T&&I.unshift({type:"Feature",properties:{},id:"reverse_"+T.decimalLongitude+"_"+T.decimalLatitude,text:T.decimalLatitude+", "+T.decimalLongitude,place_name:T.decimalLatitude+", "+T.decimalLongitude,place_type:["reverse"],center:[T.decimalLongitude,T.decimalLatitude],bbox:[T.decimalLongitude,T.decimalLatitude,T.decimalLongitude,T.decimalLatitude],geometry:{type:"Point",coordinates:[T.decimalLongitude,T.decimalLatitude]}}),ht=I,T&&ge.focus())}catch(T){if(T&&typeof T=="object"&&"name"in T&&T.name==="AbortError")return;throw T}finally{se===Fe&&t(19,Fe=void 0)}}function Kr(){var fe;if(!(H!=null&&H.length)||!E)return;const g=[180,90,-180,-90],Q=!H.some(se=>!se.matching_text);let Y;for(const se of H){const T=et(se);if(Y=Y===void 0?T:T===void 0?Y:Math.max(Y,T),Q||!se.matching_text)for(const $ of[0,1,2,3])g[$]=Math[$<2?"min":"max"](g[$],((fe=se.bbox)==null?void 0:fe[$])??se.center[$%2])}x&&H.length>0&&(N&&g[0]===g[2]&&g[1]===g[3]?x.flyTo(N.center,et(N)):x.fitBounds(ot(g),50,Y))}function et(g){var Y;if(!g.bbox||g.bbox[0]!==g.bbox[2]&&g.bbox[1]!==g.bbox[3])return;const Q=g.id.replace(/\..*/,"");return(Array.isArray((Y=g.properties)==null?void 0:Y.categories)?g.properties.categories.reduce((fe,se)=>{const T=dt[Q+"."+se];return fe===void 0?T:T===void 0?fe:Math.max(fe,T)},void 0):void 0)??dt[Q]}function Jr(g){t(0,B=m==="always"),t(14,I=void 0),t(57,N=void 0),t(15,U=-1),Yi(g[1].toFixed(6)+", "+Vn(g[0],[-180,180],!0).toFixed(6),!1,!0)}function $r(g){if(!I)return;let Q=g.key==="ArrowDown"?1:g.key==="ArrowUp"?-1:0;Q&&(U===(qe?0:-1)&&Q===-1&&t(15,U=I.length),t(15,U+=Q),U>=I.length&&t(15,U=-1),U<0&&qe&&t(15,U=0),g.preventDefault())}function Ut(g=!0,Q=!1){if(t(18,me=void 0),Te&&(window.clearTimeout(Te),Te=void 0),ce&&(window.clearTimeout(ce),t(58,ce=void 0)),!oe&&!Q||W.length<L){t(14,I=void 0);return}const Y=W;Te=window.setTimeout(()=>{Te=void 0,$e(Y).catch(fe=>t(18,me=fe))},g?b:0),W.endsWith(" ")||t(58,ce=window.setTimeout(()=>{t(58,ce=void 0),$e(Y,{appendSpace:!0}).catch(fe=>t(18,me=fe))},Ne))}function Gt(g){t(57,N=g),t(1,W=g.place_name),t(15,U=-1)}const eo=()=>ge.focus();function to(g){pt[g?"unshift":"push"](()=>{ge=g,t(17,ge)})}function io(){W=this.value,t(1,W),t(13,je),t(28,u)}const no=()=>t(13,je=!0),ro=()=>t(13,je=!1),oo=()=>Ut(),so=()=>{t(1,W=""),ge.focus()},lo=()=>t(0,B=!B),uo=()=>t(18,me=void 0),ao=g=>t(15,U=g),co=g=>Gt(g),fo=()=>{qe||t(15,U=-1)},ho=()=>{};return n.$$set=g=>{"class"in g&&t(2,s=g.class),"apiKey"in g&&t(26,c=g.apiKey),"bbox"in g&&t(27,a=g.bbox),"clearButtonTitle"in g&&t(3,d=g.clearButtonTitle),"clearOnBlur"in g&&t(28,u=g.clearOnBlur),"collapsed"in g&&t(4,f=g.collapsed),"country"in g&&t(29,h=g.country),"debounceSearch"in g&&t(30,b=g.debounceSearch),"reverse"in g&&t(5,m=g.reverse),"errorMessage"in g&&t(6,y=g.errorMessage),"filter"in g&&t(31,v=g.filter),"flyTo"in g&&t(32,E=g.flyTo),"fuzzyMatch"in g&&t(33,S=g.fuzzyMatch),"language"in g&&t(34,w=g.language),"limit"in g&&t(35,C=g.limit),"mapController"in g&&t(36,x=g.mapController),"minLength"in g&&t(37,L=g.minLength),"noResultsMessage"in g&&t(7,_=g.noResultsMessage),"placeholder"in g&&t(8,P=g.placeholder),"proximity"in g&&t(38,O=g.proximity),"reverseActive"in g&&t(0,B=g.reverseActive),"reverseButtonTitle"in g&&t(9,j=g.reverseButtonTitle),"searchValue"in g&&t(1,W=g.searchValue),"pickedResultStyle"in g&&t(39,M=g.pickedResultStyle),"showPlaceType"in g&&t(10,V=g.showPlaceType),"showResultsWhileTyping"in g&&t(40,oe=g.showResultsWhileTyping),"autocompleteTimeout"in g&&t(41,Ne=g.autocompleteTimeout),"selectFirst"in g&&t(11,qe=g.selectFirst),"flyToSelected"in g&&t(42,Ot=g.flyToSelected),"markerOnSelected"in g&&t(43,ct=g.markerOnSelected),"types"in g&&t(44,ze=g.types),"exhaustiveReverseGeocoding"in g&&t(45,Wt=g.exhaustiveReverseGeocoding),"excludeTypes"in g&&t(46,ft=g.excludeTypes),"zoom"in g&&t(47,dt=g.zoom),"apiUrl"in g&&t(48,At=g.apiUrl),"fetchParameters"in g&&t(49,zt=g.fetchParameters),"iconsBaseUrl"in g&&t(12,Hi=g.iconsBaseUrl),"adjustUrlQuery"in g&&t(50,Ft=g.adjustUrlQuery),"$$scope"in g&&t(61,o=g.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&32&&t(0,B=m==="always"),n.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,gt=je),u&&!je&&t(1,W="")}),n.$$.dirty[0]&16386|n.$$.dirty[1]&64&&W.length<L&&(t(57,N=void 0),t(14,I=void 0),t(18,me=void 0),t(56,H=I)),n.$$.dirty[1]&67109120&&M!=="marker-only"&&N&&!N.address&&N.geometry.type==="Point"&&N.place_type[0]!=="reverse"&&$e(N.id,{byId:!0}).catch(g=>t(18,me=g)),n.$$.dirty[1]&335544354&&(x&&N&&N.id!==Dt&&E&&(!N.bbox||N.bbox[0]===N.bbox[2]&&N.bbox[1]===N.bbox[3]?x.flyTo(N.center,et(N)):x.fitBounds(ot(N.bbox),50,et(N)),t(14,I=void 0),t(56,H=void 0),t(15,U=-1)),t(59,Dt=N==null?void 0:N.id)),n.$$.dirty[0]&18432&&qe&&I!=null&&I.length&&(Xr()||t(15,U=0)),n.$$.dirty[0]&2&&t(15,U=-1),n.$$.dirty[0]&16384|n.$$.dirty[1]&33554432&&H!==I&&t(56,H=void 0),n.$$.dirty[0]&81921|n.$$.dirty[1]&33554464&&x&&x.setEventHandler(g=>{switch(g.type){case"mapClick":B&&Jr(g.coordinates);break;case"markerClick":{const Q=I==null?void 0:I.find(Y=>Y.id===g.id);Q&&Gt(Q)}break;case"markerMouseEnter":H&&t(15,U=gt?(I==null?void 0:I.findIndex(Q=>Q.id===g.id))??-1:-1);break;case"markerMouseLeave":H&&t(15,U=-1);break}}),n.$$.dirty[0]&49152&&t(60,i=I==null?void 0:I[U]),n.$$.dirty[1]&536872994&&x&&i&&E&&Ot&&x.flyTo(i.center,et(i)),n.$$.dirty[1]&4128&&(ct||x==null||x.setMarkers(void 0,void 0)),n.$$.dirty[1]&570429472&&x&&ct&&!H&&(x.setMarkers(i?[i]:void 0,void 0),x.setSelectedMarker(i?0:-1)),n.$$.dirty[1]&100663328&&x&&x.setMarkers(H,N),n.$$.dirty[0]&32768|n.$$.dirty[1]&33554464&&H&&x&&x.setSelectedMarker(U),n.$$.dirty[1]&671088640&&i&&(window.clearTimeout(ce),t(58,ce=void 0)),n.$$.dirty[0]&2|n.$$.dirty[1]&32&&x){const g=Bt(W);x.setReverseMarker(g?[g.decimalLongitude,g.decimalLatitude]:void 0)}n.$$.dirty[1]&536870912&&Re("select",{feature:i}),n.$$.dirty[1]&67108864&&Re("pick",{feature:N}),n.$$.dirty[0]&81920&&Re("optionsvisibilitychange",{optionsVisible:gt&&!!I}),n.$$.dirty[0]&16384&&Re("featureslisted",{features:I}),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&&x&&x.indicateReverse(B)},[B,W,s,d,f,m,y,_,P,j,V,qe,Hi,je,I,U,gt,ge,me,Fe,Yr,Ki,$r,Ut,Gt,l,c,a,u,h,b,v,E,S,w,C,x,L,O,M,oe,Ne,Ot,ct,ze,Wt,ft,dt,At,zt,Ft,Vr,Qr,Yi,Zr,Hr,H,N,ce,Dt,i,o,r,eo,to,io,no,ro,oo,so,lo,uo,ao,co,fo,ho]}let cr=class extends Ae{constructor(e){super(),We(this,e,ar,ur,Ie,{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 st(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 Lt(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 st({type:"Polygon",coordinates:n},e,t)}function St(n,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=n,t}function bi(n,e,t={}){return st({type:"MultiPolygon",coordinates:n},e,t)}function wi(n,e,t){if(n!==null)for(var i,r,o,l,s,c,a,d=0,u=0,f,h=n.type,b=h==="FeatureCollection",m=h==="Feature",y=b?n.features.length:1,v=0;v<y;v++){a=b?n.features[v].geometry:m?n.geometry:n,f=a?a.type==="GeometryCollection":!1,s=f?a.geometries.length:1;for(var E=0;E<s;E++){var S=0,w=0;if(l=f?a.geometries[E]:a,l!==null){c=l.coordinates;var C=l.type;switch(d=0,C){case null:break;case"Point":if(e(c,u,v,S,w)===!1)return!1;u++,S++;break;case"LineString":case"MultiPoint":for(i=0;i<c.length;i++){if(e(c[i],u,v,S,w)===!1)return!1;u++,C==="MultiPoint"&&S++}C==="LineString"&&S++;break;case"Polygon":case"MultiLineString":for(i=0;i<c.length;i++){for(r=0;r<c[i].length-d;r++){if(e(c[i][r],u,v,S,w)===!1)return!1;u++}C==="MultiLineString"&&S++,C==="Polygon"&&w++}C==="Polygon"&&S++;break;case"MultiPolygon":for(i=0;i<c.length;i++){for(w=0,r=0;r<c[i].length;r++){for(o=0;o<c[i][r].length-d;o++){if(e(c[i][r][o],u,v,S,w)===!1)return!1;u++}w++}S++}break;case"GeometryCollection":for(i=0;i<l.geometries.length;i++)if(wi(l.geometries[i],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function xt(n,e){var t,i,r,o,l,s,c,a,d,u,f=0,h=n.type==="FeatureCollection",b=n.type==="Feature",m=h?n.features.length:1;for(t=0;t<m;t++){for(s=h?n.features[t].geometry:b?n.geometry:n,a=h?n.features[t].properties:b?n.properties:{},d=h?n.features[t].bbox:b?n.bbox:void 0,u=h?n.features[t].id:b?n.id:void 0,c=s?s.type==="GeometryCollection":!1,l=c?s.geometries.length:1,r=0;r<l;r++){if(o=c?s.geometries[r]:s,o===null){if(e(null,f,a,d,u)===!1)return!1;continue}switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(o,f,a,d,u)===!1)return!1;break}case"GeometryCollection":{for(i=0;i<o.geometries.length;i++)if(e(o.geometries[i],f,a,d,u)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}f++}}function fr(n,e){xt(n,function(t,i,r,o,l){var s=t===null?null:t.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return e(st(t,r,{bbox:o,id:l}),i,0)===!1?!1:void 0}var c;switch(s){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var a=0;a<t.coordinates.length;a++){var d=t.coordinates[a],u={type:c,coordinates:d};if(e(st(u,r),i,a)===!1)return!1}})}function dr(n,e={}){if(n.bbox!=null&&e.recompute!==!0)return n.bbox;const t=[1/0,1/0,-1/0,-1/0];return wi(n,i=>{t[0]>i[0]&&(t[0]=i[0]),t[1]>i[1]&&(t[1]=i[1]),t[2]<i[0]&&(t[2]=i[0]),t[3]<i[1]&&(t[3]=i[1])}),t}var _i=dr;/**
2
2
  * splaytree v3.1.2
3
3
  * Fast Splay tree for Node and browser
4
4
  *