@maptiler/geocoding-control 2.1.0-with-autocomplete-timeout → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +35 -69
  2. package/leaflet-controller.js +1942 -1523
  3. package/leaflet-controller.js.map +1 -1
  4. package/leaflet-controller.umd.js +1 -22
  5. package/leaflet-controller.umd.js.map +1 -1
  6. package/leaflet.js +2798 -2385
  7. package/leaflet.js.map +1 -1
  8. package/leaflet.umd.js +1 -22
  9. package/leaflet.umd.js.map +1 -1
  10. package/maplibregl-controller.js +1918 -1498
  11. package/maplibregl-controller.js.map +1 -1
  12. package/maplibregl-controller.umd.js +1 -22
  13. package/maplibregl-controller.umd.js.map +1 -1
  14. package/maplibregl.d.ts +34 -68
  15. package/maplibregl.js +2892 -2478
  16. package/maplibregl.js.map +1 -1
  17. package/maplibregl.umd.js +1 -22
  18. package/maplibregl.umd.js.map +1 -1
  19. package/maptilersdk.d.ts +34 -68
  20. package/maptilersdk.js +2896 -2481
  21. package/maptilersdk.js.map +1 -1
  22. package/maptilersdk.umd.js +1 -22
  23. package/maptilersdk.umd.js.map +1 -1
  24. package/openlayers-controller.js +1686 -1264
  25. package/openlayers-controller.js.map +1 -1
  26. package/openlayers-controller.umd.js +1 -22
  27. package/openlayers-controller.umd.js.map +1 -1
  28. package/openlayers.js +2778 -2365
  29. package/openlayers.js.map +1 -1
  30. package/openlayers.umd.js +1 -22
  31. package/openlayers.umd.js.map +1 -1
  32. package/package.json +23 -23
  33. package/react.js +753 -756
  34. package/react.js.map +1 -1
  35. package/react.umd.js +1 -1
  36. package/react.umd.js.map +1 -1
  37. package/svelte/GeocodingControl.svelte +71 -58
  38. package/svelte/GeocodingControl.svelte.d.ts +5 -3
  39. package/svelte/MapLibreBasedGeocodingControl.d.ts +35 -69
  40. package/svelte/info.json +1 -0
  41. package/svelte/maplibregl.d.ts +34 -68
  42. package/svelte/maptilersdk.d.ts +34 -68
  43. package/svelte/maptilersdk.js +2 -0
  44. package/svelte/react.js +3 -0
  45. package/svelte/types.d.ts +175 -128
  46. package/types.d.ts +175 -128
  47. package/vanilla.js +847 -853
  48. package/vanilla.js.map +1 -1
  49. package/vanilla.umd.js +1 -1
  50. package/vanilla.umd.js.map +1 -1
package/vanilla.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(W,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(W=typeof globalThis<"u"?globalThis:W||self,b(W.maptilerGeocoder={}))})(this,function(W){"use strict";var Un=Object.defineProperty;var In=Object.getPrototypeOf;var An=Reflect.get;var ti=W=>{throw TypeError(W)};var Bn=(W,b,Z)=>b in W?Un(W,b,{enumerable:!0,configurable:!0,writable:!0,value:Z}):W[b]=Z;var pt=(W,b,Z)=>Bn(W,typeof b!="symbol"?b+"":b,Z),wt=(W,b,Z)=>b.has(W)||ti("Cannot "+Z);var oe=(W,b,Z)=>(wt(W,b,"read from private field"),Z?Z.call(W):b.get(W)),Et=(W,b,Z)=>b.has(W)?ti("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(W):b.set(W,Z),ii=(W,b,Z,ze)=>(wt(W,b,"write to private field"),ze?ze.call(W,Z):b.set(W,Z),Z),ni=(W,b,Z)=>(wt(W,b,"access private method"),Z);var ri=(W,b,Z)=>An(In(W),Z,b);var $,qe,oi;function b(){}function Z(i,e){for(const t in e)i[t]=e[t];return i}function ze(i){return i()}function St(){return Object.create(null)}function le(i){i.forEach(ze)}function Tt(i){return typeof i=="function"}function _e(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Pe;function Y(i,e){return i===e?!0:(Pe||(Pe=document.createElement("a")),Pe.href=e,i===Pe.href)}function si(i){return Object.keys(i).length===0}function ai(i,e,t,n){if(i){const r=Nt(i,e,t,n);return i[0](r)}}function Nt(i,e,t,n){return i[1]&&n?Z(t.ctx.slice(),i[1](n(e))):t.ctx}function li(i,e,t,n){if(i[2]&&n){const r=i[2](n(t));if(e.dirty===void 0)return r;if(typeof r=="object"){const l=[],c=Math.max(e.dirty.length,r.length);for(let o=0;o<c;o+=1)l[o]=e.dirty[o]|r[o];return l}return e.dirty|r}return e.dirty}function ui(i,e,t,n,r,l){if(r){const c=Nt(e,t,n,l);i.p(c,r)}}function ci(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function Fe(i){return i??""}function k(i,e){i.appendChild(e)}function P(i,e,t){i.insertBefore(e,t||null)}function j(i){i.parentNode&&i.parentNode.removeChild(i)}function D(i){return document.createElement(i)}function ue(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ge(i){return document.createTextNode(i)}function ee(){return ge(" ")}function di(){return ge("")}function K(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function fi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function mi(i){return Array.from(i.childNodes)}function Oe(i,e){e=""+e,i.data!==e&&(i.data=e)}function kt(i,e){i.value=e??""}function Ne(i,e,t){i.classList.toggle(e,!!t)}function gi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Re;function De(i){Re=i}function Mt(){if(!Re)throw new Error("Function called outside component initialization");return Re}function hi(i){Mt().$$.on_destroy.push(i)}function Ct(){const i=Mt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=gi(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function bi(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ke=[],tt=[];let Me=[];const Wt=[],vi=Promise.resolve();let it=!1;function Li(){it||(it=!0,vi.then(zt))}function nt(i){Me.push(i)}const rt=new Set;let Ce=0;function zt(){if(Ce!==0)return;const i=Re;do{try{for(;Ce<ke.length;){const e=ke[Ce];Ce++,De(e),_i(e.$$)}}catch(e){throw ke.length=0,Ce=0,e}for(De(null),ke.length=0,Ce=0;tt.length;)tt.pop()();for(let e=0;e<Me.length;e+=1){const t=Me[e];rt.has(t)||(rt.add(t),t())}Me.length=0}while(ke.length);for(;Wt.length;)Wt.pop()();it=!1,rt.clear(),De(i)}function _i(i){if(i.fragment!==null){i.update(),le(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(nt)}}function yi(i){const e=[],t=[];Me.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Me=e}const He=new Set;let ye;function Ze(){ye={r:0,c:[],p:ye}}function Ge(){ye.r||le(ye.c),ye=ye.p}function G(i,e){i&&i.i&&(He.delete(i),i.i(e))}function J(i,e,t,n){if(i&&i.o){if(He.has(i))return;He.add(i),ye.c.push(()=>{He.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ot(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function pi(i,e){J(i,1,1,()=>{e.delete(i.key)})}function wi(i,e,t,n,r,l,c,o,d,u,f,g){let v=i.length,y=l.length,w=v;const B={};for(;w--;)B[i[w].key]=w;const T=[],N=new Map,R=new Map,z=[];for(w=y;w--;){const _=g(r,l,w),p=t(_);let C=c.get(p);C?z.push(()=>C.p(_,e)):(C=u(p,_),C.c()),N.set(p,T[w]=C),p in B&&R.set(p,Math.abs(w-B[p]))}const V=new Set,x=new Set;function M(_){G(_,1),_.m(o,f),c.set(_.key,_),f=_.first,y--}for(;v&&y;){const _=T[y-1],p=i[v-1],C=_.key,m=p.key;_===p?(f=_.first,v--,y--):N.has(m)?!c.has(C)||V.has(C)?M(_):x.has(m)?v--:R.get(C)>R.get(m)?(x.add(C),M(_)):(V.add(m),v--):(d(p,c),v--)}for(;v--;){const _=i[v];N.has(_.key)||d(_,c)}for(;y;)M(T[y-1]);return le(z),T}function he(i){i&&i.c()}function ce(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),nt(()=>{const l=i.$$.on_mount.map(ze).filter(Tt);i.$$.on_destroy?i.$$.on_destroy.push(...l):le(l),i.$$.on_mount=[]}),r.forEach(nt)}function de(i,e){const t=i.$$;t.fragment!==null&&(yi(t.after_update),le(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Ei(i,e){i.$$.dirty[0]===-1&&(ke.push(i),Li(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function pe(i,e,t,n,r,l,c=null,o=[-1]){const d=Re;De(i);const u=i.$$={fragment:null,ctx:[],props:l,update:b,not_equal:r,bound:St(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:St(),dirty:o,skip_bound:!1,root:e.target||d.$$.root};c&&c(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(g,v,...y)=>{const w=y.length?y[0]:v;return u.ctx&&r(u.ctx[g],u.ctx[g]=w)&&(!u.skip_bound&&u.bound[g]&&u.bound[g](w),f&&Ei(i,g)),v}):[],u.update(),f=!0,le(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const g=mi(e.target);u.fragment&&u.fragment.l(g),g.forEach(j)}else u.fragment&&u.fragment.c();e.intro&&G(i.$$.fragment),ce(i,e.target,e.anchor),zt()}De(d)}class we{constructor(){pt(this,"$$");pt(this,"$$set")}$destroy(){de(this,1),this.$destroy=b}$on(e,t){if(!Tt(t))return b;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!si(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Si="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Si);function Ti(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(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"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&j(e)}}}class Rt extends we{constructor(e){super(),pe(this,e,null,Ti,_e,{})}}function Ni(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(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"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){P(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&j(e)}}}class Dt extends we{constructor(e){super(),pe(this,e,null,Ni,_e,{})}}function ki(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Mi(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Ci(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Wi(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function zi(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Oi(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Ri(i){let e,t;return{c(){e=D("img"),Y(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){P(n,e,r)},p(n,r){r&8&&!Y(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&j(e)}}}function Di(i){let e,t,n,r;return{c(){e=D("img"),Y(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(l,c){P(l,e,c),n||(r=K(e,"error",i[14]),n=!0)},p(l,c){c&32&&!Y(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4]),c&64&&a(e,"title",l[6])},d(l){l&&j(e),n=!1,r()}}}function Ut(i){let e,t;return{c(){e=D("span"),t=ge(i[6]),a(e,"class","secondary svelte-z7p9pp")},m(n,r){P(n,e,r),k(e,t)},p(n,r){r&64&&Oe(t,n[6])},d(n){n&&j(e)}}}function Ui(i){let e,t,n,r,l,c,o,d,u,f=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",g,v,y=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],w,B,T=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",N,R,z,V,x,M;function _(E,U){return U&1&&(t=null),U&1&&(n=null),U&1&&(r=null),U&1&&(l=null),E[5]?Di:E[0].address?Ri:(t==null&&(t=!!E[0].id.startsWith("road.")),t?Oi:(n==null&&(n=!!E[0].id.startsWith("address.")),n?zi:(r==null&&(r=!!E[0].id.startsWith("postal_code.")),r?Wi:(l==null&&(l=!!E[0].id.startsWith("poi.")),l?Ci:E[8]?Mi:ki))))}let p=_(i,-1),C=p(i),m=y&&Ut(i);return{c(){e=D("li"),C.c(),c=ee(),o=D("span"),d=D("span"),u=D("span"),g=ge(f),v=ee(),m&&m.c(),w=ee(),B=D("span"),N=ge(T),a(u,"class","primary svelte-z7p9pp"),a(d,"class","svelte-z7p9pp"),a(B,"class","line2 svelte-z7p9pp"),a(o,"class","texts svelte-z7p9pp"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",R=i[1]==="selected"),a(e,"aria-checked",z=i[1]==="picked"),a(e,"class",V=Fe(i[1])+" svelte-z7p9pp")},m(E,U){P(E,e,U),C.m(e,null),k(e,c),k(e,o),k(o,d),k(d,u),k(u,g),k(d,v),m&&m.m(d,null),k(o,w),k(o,B),k(B,N),x||(M=[K(e,"mouseenter",i[13]),K(e,"focus",i[15]),K(e,"click",i[16])],x=!0)},p(E,[U]){p===(p=_(E,U))&&C?C.p(E,U):(C.d(1),C=p(E),C&&(C.c(),C.m(e,c))),U&1&&f!==(f=(E[8]?E[0].place_name:E[0].place_name.replace(/,.*/,""))+"")&&Oe(g,f),U&37&&(y=E[2]==="always"||E[2]!=="never"&&!E[0].address&&!E[0].id.startsWith("road.")&&!E[0].id.startsWith("address.")&&!E[0].id.startsWith("postal_code.")&&(!E[0].id.startsWith("poi.")||!E[5])&&!E[8]),y?m?m.p(E,U):(m=Ut(E),m.c(),m.m(d,null)):m&&(m.d(1),m=null),U&1&&T!==(T=(E[8]?"":E[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Oe(N,T),U&2&&R!==(R=E[1]==="selected")&&a(e,"aria-selected",R),U&2&&z!==(z=E[1]==="picked")&&a(e,"aria-checked",z),U&2&&V!==(V=Fe(E[1])+" svelte-z7p9pp")&&a(e,"class",V)},i:b,o:b,d(E){E&&j(e),C.d(),m&&m.d(),x=!1,le(M)}}}function Ii(i,e,t){var x;let n,r,{feature:l}=e,{style:c="default"}=e,{showPlaceType:o}=e,{missingIconsCache:d}=e,{iconsBaseUrl:u}=e;const f=Ct(),g=(x=l.properties)==null?void 0:x.categories;let v,y,w=0,B=l.place_type[0]==="reverse";function T(){y&&d.add(y),t(11,w++,w)}function N(M){bi.call(this,i,M)}const R=()=>T(),z=()=>f("select",void 0),V=M=>{document.activeElement!==M.target&&f("select",void 0)};return i.$$set=M=>{"feature"in M&&t(0,l=M.feature),"style"in M&&t(1,c=M.style),"showPlaceType"in M&&t(2,o=M.showPlaceType),"missingIconsCache"in M&&t(10,d=M.missingIconsCache),"iconsBaseUrl"in M&&t(3,u=M.iconsBaseUrl)},i.$$.update=()=>{var M,_,p,C;if(i.$$.dirty&7224)do t(12,n--,n),t(4,v=g==null?void 0:g[n]),t(5,y=v?u+v.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!y||d.has(y)));i.$$.dirty&1&&t(6,r=((_=(M=l.properties)==null?void 0:M.categories)==null?void 0:_.join(", "))??((C=(p=l.properties)==null?void 0:p.place_type_name)==null?void 0:C[0])??l.place_type[0])},t(12,n=(g==null?void 0:g.length)??0),[l,c,o,u,v,y,r,f,B,T,d,w,n,N,R,z,V]}class Ai extends we{constructor(e){super(),pe(this,e,Ii,Ui,_e,{feature:0,style:1,showPlaceType:2,missingIconsCache:10,iconsBaseUrl:3})}}function Bi(i){let e;return{c(){e=D("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>',a(e,"class","svelte-7cmwmc")},m(t,n){P(t,e,n)},p:b,i:b,o:b,d(t){t&&j(e)}}}class ji extends we{constructor(e){super(),pe(this,e,null,Bi,_e,{})}}function Pi(i){let e,t;return{c(){e=ue("svg"),t=ue("path"),a(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"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){P(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&j(e)}}}class Fi extends we{constructor(e){super(),pe(this,e,null,Pi,_e,{})}}function Hi(i){let e,t,n;return{c(){e=ue("svg"),t=ue("circle"),n=ue("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){P(r,e,l),k(e,t),k(e,n)},p:b,i:b,o:b,d(r){r&&j(e)}}}class Zi extends we{constructor(e){super(),pe(this,e,null,Hi,_e,{})}}function Gi(i,e,t){const n=e[1],r=e[0],l=n-r;return i===n&&t?i:((i-r)%l+l)%l+r}function It(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Ue;async function qi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Ue&&r.cachedLocationExpiry&&Ue.time+r.cachedLocationExpiry>Date.now()){if(!Ue.coords)break e;return Ue.coords}let l;try{return l=await new Promise((c,o)=>{t.signal.addEventListener("abort",()=>{o(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{c([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{o(d)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(Ue={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Qi=/^(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,At=/^([+-]?[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,})$/,Bt=/^(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,jt=/^(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,Pt=/^(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,Ft=/^(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 Ki(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",o=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${c}, ${l}° ${o}`);const u=Math.floor(r),f=Math.floor(l),g=(r-u)*60,v=(l-f)*60;if(i=="DM"){let y=Ht(g,3).toFixed(3).padStart(6,"0"),w=Ht(v,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&w.endsWith(".000")&&(y=y.replace(/\.000$/,""),w=w.replace(/\.000$/,"")),d=`${u}° ${y}' ${c}, ${f}° ${w}' ${o}`}if(i=="DMS"){const y=Math.floor(g),w=Math.floor(v);let B=((g-y)*60).toFixed(1).padStart(4,"0"),T=((v-w)*60).toFixed(1).padStart(4,"0");const N=y.toString().padStart(2,"0"),R=w.toString().padStart(2,"0");B.endsWith(".0")&&T.endsWith(".0")&&(B=B.replace(/\.0$/,""),T=T.replace(/\.0$/,"")),d=`${u}° ${N}' ${B}" ${c}, ${f}° ${R}' ${T}" ${o}`}return d}else throw new Error("no decimal coordinates to convert")}function Ht(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function ot(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,o=[],d=!1;if(Qi.test(i))throw new Error("invalid coordinate value");if(At.test(i))if(o=At.exec(i),d=Ie(o),d)t=Math.abs(o[1])+o[2]/60,Number(o[1])<0&&(t*=-1),n=Math.abs(o[3])+o[4]/60,Number(o[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(Bt.test(i))if(o=Bt.exec(i),d=Ie(o),d){if(t=o[2],n=o[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");o[1]?(r=o[1],l=o[5]):o[4]&&(r=o[4],l=o[8])}else throw new Error("invalid decimal coordinate format");else if(jt.test(i))if(o=jt.exec(i),d=Ie(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[9])),o[11]&&(n+=o[11]/60),o[13]&&(n+=o[13].replace(",",".")/3600),parseInt(o[9])<0&&(n=-1*n),o[1]?(r=o[1],l=o[8]):o[7]&&(r=o[7],l=o[14]);else throw new Error("invalid DMS coordinates format");else if(Pt.test(i))if(o=Pt.exec(i),d=Ie(o),d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4]/60,c="DM"),o[6]&&(t+=o[6]/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12]/60),o[14]&&(n+=o[14]/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid DMS coordinates format");else if(Ft.test(i)){if(o=Ft.exec(i),d=Ie(o),o.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(o[2])),o[4]&&(t+=o[4].replace(",",".")/60,c="DM"),o[6]&&(t+=o[6].replace(",",".")/3600,c="DMS"),parseInt(o[2])<0&&(t=-1*t),n=Math.abs(parseInt(o[10])),o[12]&&(n+=o[12].replace(",",".")/60),o[14]&&(n+=o[14].replace(",",".")/3600),parseInt(o[10])<0&&(n=-1*n),o[1]?(r=o[1],l=o[9]):o[8]&&(r=o[8],l=o[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!l||!r&&l)throw new Error("invalid coordinates value");if(r&&r==l)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const f=o[0].trim();let g,v;const y=/[,/;\u0020]/g,w=f.match(y);if(w==null){const N=Math.floor(i.length/2);g=f.substring(0,N).trim(),v=f.substring(N).trim()}else{let N;w.length%2==1?N=Math.floor(w.length/2):N=w.length/2-1;let R=0;if(N==0)R=f.indexOf(w[0]),g=f.substring(0,R).trim(),v=f.substring(R+1).trim();else{let z=0,V=0;for(;z<=N;)R=f.indexOf(w[z],V),V=R+1,z++;g=f.substring(0,R).trim(),v=f.substring(R+1).trim()}}const B=g.split(".");if(B.length==2&&B[1]==0&&B[1].length!=2)throw new Error("invalid coordinates format");const T=v.split(".");if(T.length==2&&T[1]==0&&T[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(g)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:g,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:Vi,toCoordinateFormat:Ki})}else throw new Error("coordinates pattern match failed")}function Ie(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],o=e[l+r],d=t.test(c)&&t.test(o),u=n.test(c)&&n.test(o),f=c==o;if(!(c==null&&o==null)){if(c==null||o==null)return!1;if(d||u||f)continue;return!1}}return!0}function Zt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Vi(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Zt(this.decimalLatitude,Number(e[0]))&&Zt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Ji=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});ot.to=Ji;const Xi=[{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"}],Yi={decimalLatitude:40.123,decimalLongitude:-74.123},xi=[{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}],$i=[{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 en(){const i=[];return Xi.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Yi})}),[...i,...xi,...$i]}const tn=en();ot.formats=tn.map(i=>i.verbatimCoordinates);const nn=ot;function Gt(i,e,t){const n=i.slice();return n[94]=e[t],n[96]=t,n}function qt(i){let e,t;return e=new ji({}),{c(){he(e.$$.fragment)},m(n,r){ce(e,n,r),t=!0},i(n){t||(G(e.$$.fragment,n),t=!0)},o(n){J(e.$$.fragment,n),t=!1},d(n){de(e,n)}}}function Qt(i){let e,t,n,r,l;return t=new Fi({}),{c(){e=D("button"),he(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),Ne(e,"active",i[0])},m(c,o){P(c,e,o),ce(t,e,null),n=!0,r||(l=K(e,"click",i[78]),r=!0)},p(c,o){(!n||o[0]&1024)&&a(e,"title",c[10]),(!n||o[0]&1)&&Ne(e,"active",c[0])},i(c){n||(G(t.$$.fragment,c),n=!0)},o(c){J(t.$$.fragment,c),n=!1},d(c){c&&j(e),de(t),r=!1,l()}}}function rn(i){let e,t=[],n=new Map,r,l,c,o=Ot(i[13]);const d=u=>u[94].id+(u[94].address?","+u[94].address:"");for(let u=0;u<o.length;u+=1){let f=Gt(i,o,u),g=d(f);n.set(g,t[u]=Kt(g,f))}return{c(){e=D("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3"),a(e,"role","listbox")},m(u,f){P(u,e,f);for(let g=0;g<t.length;g+=1)t[g]&&t[g].m(e,null);r=!0,l||(c=[K(e,"mouseleave",i[27]),K(e,"blur",i[82]),K(e,"keydown",i[23])],l=!0)},p(u,f){f[0]&102823936&&(o=Ot(u[13]),Ze(),t=wi(t,f,d,1,u,o,n,e,pi,Kt,null,Gt),Ge())},i(u){if(!r){for(let f=0;f<o.length;f+=1)G(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)J(t[f]);r=!1},d(u){u&&j(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,le(c)}}}function on(i){let e,t,n,r,l,c;return t=new Dt({}),{c(){e=D("div"),he(t.$$.fragment),n=ee(),r=D("div"),l=ge(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(o,d){P(o,e,d),ce(t,e,null),k(e,n),k(e,r),k(r,l),c=!0},p(o,d){(!c||d[0]&256)&&Oe(l,o[8])},i(o){c||(G(t.$$.fragment,o),c=!0)},o(o){J(t.$$.fragment,o),c=!1},d(o){o&&j(e),de(t)}}}function sn(i){let e="",t;return{c(){t=ge(e)},m(n,r){P(n,t,r)},p:b,i:b,o:b,d(n){n&&j(t)}}}function an(i){let e,t,n,r,l,c,o,d,u,f,g;return t=new Dt({}),d=new Rt({}),{c(){e=D("div"),he(t.$$.fragment),n=ee(),r=D("div"),l=ge(i[7]),c=ee(),o=D("button"),he(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(o,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(v,y){P(v,e,y),ce(t,e,null),k(e,n),k(e,r),k(r,l),k(e,c),k(e,o),ce(d,o,null),u=!0,f||(g=K(o,"click",i[79]),f=!0)},p(v,y){(!u||y[0]&128)&&Oe(l,v[7])},i(v){u||(G(t.$$.fragment,v),G(d.$$.fragment,v),u=!0)},o(v){J(t.$$.fragment,v),J(d.$$.fragment,v),u=!1},d(v){v&&j(e),de(t),de(d),f=!1,g()}}}function Kt(i,e){var o;let t,n,r;function l(){return e[80](e[96])}function c(){return e[81](e[94])}return n=new Ai({props:{feature:e[94],showPlaceType:e[11],style:e[15]===e[96]?"selected":((o=e[14])==null?void 0:o.id)===e[94].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("select",c),{key:i,first:null,c(){t=di(),he(n.$$.fragment),this.first=t},m(d,u){P(d,t,u),ce(n,d,u),r=!0},p(d,u){var g;e=d;const f={};u[0]&8192&&(f.feature=e[94]),u[0]&2048&&(f.showPlaceType=e[11]),u[0]&57344&&(f.style=e[15]===e[96]?"selected":((g=e[14])==null?void 0:g.id)===e[94].id?"picked":"default"),u[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(G(n.$$.fragment,d),r=!0)},o(d){J(n.$$.fragment,d),r=!1},d(d){d&&j(t),de(n,d)}}}function ln(i){let e,t,n,r,l,c,o,d,u,f,g,v,y,w,B,T,N,R,z,V,x,M=!1;l=new Zi({}),g=new Rt({});let _=i[20]&&qt(),p=i[6]==="button"&&Qt(i);const C=i[69].default,m=ai(C,i,i[68],null),E=[an,sn,on,rn],U=[];function Ae(L,I){var fe,H;return L[19]?0:!L[16]&&!L[4]?1:((fe=L[13])==null?void 0:fe.length)===0?2:(H=L[13])!=null&&H.length&&(L[16]||L[4])?3:-1}return~(T=Ae(i))&&(N=U[T]=E[T](i)),{c(){e=ee(),t=D("form"),n=D("div"),r=D("button"),he(l.$$.fragment),c=ee(),o=D("input"),d=ee(),u=D("div"),f=D("button"),he(g.$$.fragment),v=ee(),_&&_.c(),y=ee(),p&&p.c(),w=ee(),m&&m.c(),B=ee(),N&&N.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(o,"placeholder",i[9]),a(o,"aria-label",i[9]),a(o,"class","svelte-bz0zu3"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),Ne(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",R=Fe(i[2])+" svelte-bz0zu3"),Ne(t,"can-collapse",i[5]&&i[1]==="")},m(L,I){P(L,e,I),P(L,t,I),k(t,n),k(n,r),ce(l,r,null),k(n,c),k(n,o),i[71](o),kt(o,i[1]),k(n,d),k(n,u),k(u,f),ce(g,f,null),k(u,v),_&&_.m(u,null),k(n,y),p&&p.m(n,null),k(n,w),m&&m.m(n,null),k(t,B),~T&&U[T].m(t,null),z=!0,V||(x=[K(r,"click",i[70]),K(o,"input",i[72]),K(o,"focus",i[73]),K(o,"blur",i[74]),K(o,"click",i[75]),K(o,"keydown",i[23]),K(o,"input",i[24]),K(o,"change",i[76]),K(f,"click",i[77]),K(t,"submit",fi(i[22]))],V=!0)},p(L,I){(!z||I[0]&512)&&a(o,"placeholder",L[9]),(!z||I[0]&512)&&a(o,"aria-label",L[9]),I[0]&2&&o.value!==L[1]&&kt(o,L[1]),(!z||I[0]&8)&&a(f,"title",L[3]),L[20]?_?I[0]&1048576&&G(_,1):(_=qt(),_.c(),G(_,1),_.m(u,null)):_&&(Ze(),J(_,1,1,()=>{_=null}),Ge()),(!z||I[0]&2)&&Ne(u,"displayable",L[1]!==""),L[6]==="button"?p?(p.p(L,I),I[0]&64&&G(p,1)):(p=Qt(L),p.c(),G(p,1),p.m(n,w)):p&&(Ze(),J(p,1,1,()=>{p=null}),Ge()),m&&m.p&&(!z||I[2]&64)&&ui(m,C,L,L[68],z?li(C,L[68],I,null):ci(L[68]),null);let fe=T;T=Ae(L),T===fe?~T&&U[T].p(L,I):(N&&(Ze(),J(U[fe],1,1,()=>{U[fe]=null}),Ge()),~T?(N=U[T],N?N.p(L,I):(N=U[T]=E[T](L),N.c()),G(N,1),N.m(t,null)):N=null),(!z||I[0]&4&&R!==(R=Fe(L[2])+" svelte-bz0zu3"))&&a(t,"class",R),(!z||I[0]&38)&&Ne(t,"can-collapse",L[5]&&L[1]==="")},i(L){z||(G(M),G(l.$$.fragment,L),G(g.$$.fragment,L),G(_),G(p),G(m,L),G(N),z=!0)},o(L){J(M),J(l.$$.fragment,L),J(g.$$.fragment,L),J(_),J(p),J(m,L),J(N),z=!1},d(L){L&&(j(e),j(t)),de(l),i[71](null),de(g),_&&_.d(),p&&p.d(),m&&m.d(L),~T&&U[T].d(),V=!1,le(x)}}}function un(i,e,t){let n,r,l,{$$slots:c={},$$scope:o}=e;const d={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:u=void 0}=e,{apiKey:f}=e,{bbox:g=void 0}=e,{clearButtonTitle:v="clear"}=e,{clearOnBlur:y=!1}=e,{clearListOnPick:w=!1}=e,{keepListOpen:B=!1}=e,{collapsed:T=!1}=e,{country:N=void 0}=e,{debounceSearch:R=200}=e,{enableReverse:z="never"}=e,{errorMessage:V="Something went wrong…"}=e,{filter:x=()=>!0}=e,{flyTo:M=!0}=e,{fuzzyMatch:_=!0}=e,{language:p=void 0}=e,{limit:C=void 0}=e,{mapController:m=void 0}=e,{minLength:E=2}=e,{noResultsMessage:U="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:Ae="Search"}=e,{proximity:L=[{type:"server-geolocation"}]}=e,{reverseActive:I=z==="always"}=e,{reverseButtonTitle:fe="toggle reverse geocoding"}=e,{searchValue:H=""}=e,{pickedResultStyle:Qe="full-geometry"}=e,{showPlaceType:Vt="if-needed"}=e,{showResultsWhileTyping:Ke=!0}=e,{autocompleteTimeout:lt=void 0}=e,{selectFirst:Ee=!0}=e,{flyToSelected:Ve=!1}=e,{markerOnSelected:Je=!0}=e,{types:Se=void 0}=e,{exhaustiveReverseGeocoding:ut=!1}=e,{excludeTypes:Xe=!1}=e,{zoom:Ye=d}=e,{apiUrl:ct="https://api.maptiler.com/geocoding"}=e,{fetchParameters:dt={}}=e,{iconsBaseUrl:Jt="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.0-with-autocomplete-timeout/icons/"}=e,{adjustUrlQuery:ft=()=>{}}=e,{adjustUrl:mt=()=>{}}=e;function fn(s){ie.focus(s)}function mn(){ie.blur()}function Xt(s,F=!0,q=!1){t(1,H=s),F?(t(15,O=-1),xt()):($t(void 0,!q,q),setTimeout(()=>{ie.focus(),ie.select()}))}function gn(){t(13,S=void 0),t(14,h=void 0),t(15,O=-1)}function hn(){t(62,Q=[]),t(14,h=void 0)}let S,Q,h,Yt="",ie,O=-1,se,xe=[],Te,be,te,We,gt,me=!1;const bn=new Set,ve=Ct();function vn(){return!!te}hi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function xt(s){if(t(17,me=!1),be&&(window.clearTimeout(be),be=void 0),te){window.clearTimeout(te),t(63,te=void 0),Be(H,{appendSpace:!0});return}if(O>-1&&S)t(14,h=S[O]),t(1,H=h.place_type[0]==="reverse"?h.place_name:h.place_name.replace(/,.*/,"")),t(19,se=void 0),t(62,Q=void 0),t(15,O=-1);else if(H){const F=s||!ht(H);Be(H,{exact:!0}).then(()=>{t(62,Q=S),t(14,h=void 0),F&&Ln()}).catch(q=>t(19,se=q))}}function ht(s){try{return nn(s,6)}catch{return!1}}async function Be(s,{byId:F=!1,exact:q=!1,appendSpace:ne=!1}={}){var ae,Le;t(19,se=void 0),Te==null||Te.abort();const X=new AbortController;t(20,Te=X);try{const A=ht(s),Lt=new URL(ct+"/"+encodeURIComponent(A?A.decimalLongitude+","+A.decimalLatitude:s+(ne?" ":""))+".json"),re=Lt.searchParams;if(p!==void 0&&re.set("language",Array.isArray(p)?p.join(","):p??""),Se&&re.set("types",Se.join(",")),Xe&&re.set("excludeTypes",String(Xe)),g&&re.set("bbox",g.map(et=>et.toFixed(6)).join(",")),N&&re.set("country",Array.isArray(N)?N.join(","):N),!F&&!A){const et=await qi(m,L,X);et&&re.set("proximity",et),(q||!Ke)&&re.set("autocomplete","false"),re.set("fuzzyMatch",String(_))}C!==void 0&&(ut||!A||(Se==null?void 0:Se.length)===1)&&re.set("limit",String(C)),re.set("key",f),ft(re),mt(Lt);const $e=Lt.toString();if($e===Yt){F?(w&&t(13,S=void 0),t(14,h=xe[0])):(t(13,S=xe),((ae=S[O])==null?void 0:ae.id)!==(r==null?void 0:r.id)&&t(15,O=-1));return}Yt=$e;const _t=await fetch($e,{signal:X.signal,...dt});if(!_t.ok)throw new Error(await _t.text());const yt=await _t.json();ve("response",{url:$e,featureCollection:yt}),F?(w&&t(13,S=void 0),t(14,h=yt.features[0]),xe=[h]):(t(13,S=yt.features.filter(x)),A&&S.unshift({type:"Feature",properties:{},id:"reverse_"+A.decimalLongitude+"_"+A.decimalLatitude,text:A.decimalLatitude+", "+A.decimalLongitude,place_name:A.decimalLatitude+", "+A.decimalLongitude,place_type:["reverse"],center:[A.decimalLongitude,A.decimalLatitude],bbox:[A.decimalLongitude,A.decimalLatitude,A.decimalLongitude,A.decimalLatitude],geometry:{type:"Point",coordinates:[A.decimalLongitude,A.decimalLatitude]}}),xe=S,((Le=S[O])==null?void 0:Le.id)!==(r==null?void 0:r.id)&&t(15,O=-1),A&&ie.focus())}catch(A){if(A&&typeof A=="object"&&"name"in A&&A.name==="AbortError")return;throw A}finally{X===Te&&t(20,Te=void 0)}}function Ln(){var ne;if(!(Q!=null&&Q.length)||!M)return;const s=[180,90,-180,-90],F=!Q.some(X=>!X.matching_text);let q;for(const X of Q){const ae=je(X);if(q=q===void 0?ae:ae===void 0?q:Math.max(q,ae),F||!X.matching_text)for(const Le of[0,1,2,3])s[Le]=Math[Le<2?"min":"max"](s[Le],((ne=X.bbox)==null?void 0:ne[Le])??X.center[Le%2])}m&&Q.length>0&&(h&&s[0]===s[2]&&s[1]===s[3]?m.flyTo(h.center,je(h)):m.fitBounds(It(s),50,q))}function bt(){!h||!m||(!h.bbox||h.bbox[0]===h.bbox[2]&&h.bbox[1]===h.bbox[3]?m.flyTo(h.center,je(h)):m.fitBounds(It(h.bbox),50,je(h)))}function je(s){var q;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;const F=s.id.replace(/\..*/,"");return(Array.isArray((q=s.properties)==null?void 0:q.categories)?s.properties.categories.reduce((ne,X)=>{const ae=Ye[F+"."+X];return ne===void 0?ae:ae===void 0?ne:Math.max(ne,ae)},void 0):void 0)??Ye[F]}function _n(s){t(0,I=z==="always"),t(13,S=void 0),t(14,h=void 0),t(15,O=-1),Xt(s[1].toFixed(6)+", "+Gi(s[0],[-180,180],!0).toFixed(6),!1,!0)}function yn(s){if(!S)return;let F=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;F&&(ie.focus(),t(17,me=!0),s.preventDefault(),h&&O===-1&&t(15,O=S.findIndex(q=>q.id===(h==null?void 0:h.id))),O===(h||Ee?0:-1)&&F===-1&&t(15,O=S.length),t(15,O+=F),O>=S.length&&t(15,O=-1),O<0&&(h||Ee)&&t(15,O=0))}function $t(s,F=!0,q=!1){if(t(19,se=void 0),t(14,h=void 0),t(17,me=!0),be&&(window.clearTimeout(be),be=void 0),te&&(window.clearTimeout(te),t(63,te=void 0)),!Ke&&!q||H.length<E){t(13,S=void 0);return}const ne=H;be=window.setTimeout(()=>{be=void 0,Be(ne).catch(X=>t(19,se=X))},F?R:0),H.endsWith(" ")||t(63,te=window.setTimeout(()=>{t(63,te=void 0),Be(ne,{appendSpace:!0}).catch(X=>t(19,se=X))},lt))}function vt(s){h&&(h==null?void 0:h.id)===(s==null?void 0:s.id)?bt():(t(14,h=s),t(1,H=s.place_name))}function ei(s){t(15,O=s)}function pn(){(!Ee||h)&&t(15,O=-1),Ve&&bt()}const wn=()=>ie.focus();function En(s){tt[s?"unshift":"push"](()=>{ie=s,t(18,ie)})}function Sn(){H=this.value,t(1,H),t(17,me),t(31,y),t(16,We)}const Tn=()=>t(17,me=!0),Nn=()=>t(17,me=!1),kn=()=>t(17,me=!0),Mn=()=>t(14,h=void 0),Cn=()=>{t(1,H=""),ie.focus()},Wn=()=>t(0,I=!I),zn=()=>t(19,se=void 0),On=s=>ei(s),Rn=s=>vt(s),Dn=()=>{};return i.$$set=s=>{"class"in s&&t(2,u=s.class),"apiKey"in s&&t(29,f=s.apiKey),"bbox"in s&&t(30,g=s.bbox),"clearButtonTitle"in s&&t(3,v=s.clearButtonTitle),"clearOnBlur"in s&&t(31,y=s.clearOnBlur),"clearListOnPick"in s&&t(32,w=s.clearListOnPick),"keepListOpen"in s&&t(4,B=s.keepListOpen),"collapsed"in s&&t(5,T=s.collapsed),"country"in s&&t(33,N=s.country),"debounceSearch"in s&&t(34,R=s.debounceSearch),"enableReverse"in s&&t(6,z=s.enableReverse),"errorMessage"in s&&t(7,V=s.errorMessage),"filter"in s&&t(35,x=s.filter),"flyTo"in s&&t(36,M=s.flyTo),"fuzzyMatch"in s&&t(37,_=s.fuzzyMatch),"language"in s&&t(38,p=s.language),"limit"in s&&t(39,C=s.limit),"mapController"in s&&t(40,m=s.mapController),"minLength"in s&&t(41,E=s.minLength),"noResultsMessage"in s&&t(8,U=s.noResultsMessage),"placeholder"in s&&t(9,Ae=s.placeholder),"proximity"in s&&t(42,L=s.proximity),"reverseActive"in s&&t(0,I=s.reverseActive),"reverseButtonTitle"in s&&t(10,fe=s.reverseButtonTitle),"searchValue"in s&&t(1,H=s.searchValue),"pickedResultStyle"in s&&t(43,Qe=s.pickedResultStyle),"showPlaceType"in s&&t(11,Vt=s.showPlaceType),"showResultsWhileTyping"in s&&t(44,Ke=s.showResultsWhileTyping),"autocompleteTimeout"in s&&t(45,lt=s.autocompleteTimeout),"selectFirst"in s&&t(46,Ee=s.selectFirst),"flyToSelected"in s&&t(47,Ve=s.flyToSelected),"markerOnSelected"in s&&t(48,Je=s.markerOnSelected),"types"in s&&t(49,Se=s.types),"exhaustiveReverseGeocoding"in s&&t(50,ut=s.exhaustiveReverseGeocoding),"excludeTypes"in s&&t(51,Xe=s.excludeTypes),"zoom"in s&&t(52,Ye=s.zoom),"apiUrl"in s&&t(53,ct=s.apiUrl),"fetchParameters"in s&&t(54,dt=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Jt=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(55,ft=s.adjustUrlQuery),"adjustUrl"in s&&t(56,mt=s.adjustUrl),"$$scope"in s&&t(68,o=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,I=z==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&4096&&Qe!=="marker-only"&&h&&!h.address&&h.geometry.type==="Point"&&h.place_type[0]!=="reverse"&&Be(h.id,{byId:!0}).catch(s=>t(19,se=s)),i.$$.dirty[0]&16384|i.$$.dirty[1]&546|i.$$.dirty[2]&4&&(m&&h&&h.id!==gt&&M&&(bt(),w&&t(13,S=void 0),t(62,Q=void 0),t(15,O=-1)),t(64,gt=h==null?void 0:h.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,We=me),y&&!We&&t(1,H="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&1024&&H.length<E&&(t(13,S=void 0),t(19,se=void 0),t(62,Q=S)),i.$$.dirty[0]&8192|i.$$.dirty[1]&32768&&Ee&&S!=null&&S.length&&(vn()||t(15,O=0)),i.$$.dirty[0]&57344|i.$$.dirty[1]&32768&&Ee&&S!=null&&S.length&&O==-1&&!h&&t(15,O=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&1&&Q!==S&&t(62,Q=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&512|i.$$.dirty[2]&1&&m&&m.setEventHandler(s=>{switch(s.type){case"mapClick":I&&_n(s.coordinates);break;case"markerClick":{const F=S==null?void 0:S.find(q=>q.id===s.id);F&&vt(F)}break;case"markerMouseEnter":Q&&t(15,O=We?(S==null?void 0:S.findIndex(F=>F.id===s.id))??-1:-1);break;case"markerMouseLeave":Q&&t(15,O=-1);break}}),i.$$.dirty[0]&40960&&t(65,r=S==null?void 0:S[O]),i.$$.dirty[1]&66080|i.$$.dirty[2]&8&&m&&r&&M&&Ve&&m.flyTo(r.center,je(r)),i.$$.dirty[1]&4096&&t(67,n=Qe==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&131584|i.$$.dirty[2]&32&&(Je||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&131584|i.$$.dirty[2]&41&&m&&Je&&!Q&&(m.setFeatures(r?[r]:void 0,h,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&512|i.$$.dirty[2]&33&&m&&m.setFeatures(Q,h,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&512|i.$$.dirty[2]&1&&Q&&m&&m.setSelectedMarker(O),i.$$.dirty[2]&10&&r&&(window.clearTimeout(te),t(63,te=void 0)),i.$$.dirty[0]&2|i.$$.dirty[1]&512&&m){const s=ht(H);m.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[2]&8&&ve("select",{feature:r}),i.$$.dirty[0]&16384&&ve("pick",{feature:h}),i.$$.dirty[0]&73744&&t(66,l=!!(S!=null&&S.length)&&(We||B)),i.$$.dirty[2]&16&&ve("optionsvisibilitychange",{optionsVisible:l}),i.$$.dirty[0]&8192&&ve("featureslisted",{features:S}),i.$$.dirty[2]&1&&ve("featuresmarked",{features:Q}),i.$$.dirty[0]&1&&ve("reversetoggle",{reverse:I}),i.$$.dirty[0]&2&&ve("querychange",{query:H}),i.$$.dirty[0]&1|i.$$.dirty[1]&512&&m&&m.indicateReverse(I)},[I,H,u,v,B,T,z,V,U,Ae,fe,Vt,Jt,S,h,O,We,me,ie,se,Te,bn,xt,yn,$t,vt,ei,pn,d,f,g,y,w,N,R,x,M,_,p,C,m,E,L,Qe,Ke,lt,Ee,Ve,Je,Se,ut,Xe,Ye,ct,dt,ft,mt,fn,mn,Xt,gn,hn,Q,te,gt,r,l,n,o,c,wn,En,Sn,Tn,Nn,kn,Mn,Cn,Wn,zn,On,Rn,Dn]}let cn=class extends we{constructor(e){super(),pe(this,e,un,ln,_e,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,mapController:40,minLength:41,noResultsMessage:8,placeholder:9,proximity:42,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:43,showPlaceType:11,showResultsWhileTyping:44,autocompleteTimeout:45,selectFirst:46,flyToSelected:47,markerOnSelected:48,types:49,exhaustiveReverseGeocoding:50,excludeTypes:51,zoom:52,apiUrl:53,fetchParameters:54,iconsBaseUrl:12,adjustUrlQuery:55,adjustUrl:56,focus:57,blur:58,setQuery:59,clearList:60,clearMap:61},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[57]}get blur(){return this.$$.ctx[58]}get setQuery(){return this.$$.ctx[59]}get clearList(){return this.$$.ctx[60]}get clearMap(){return this.$$.ctx[61]}};const dn=new FinalizationRegistry(i=>{i.$destroy()}),at=class at extends EventTarget{constructor({target:t,...n}){super();Et(this,qe);Et(this,$);ii(this,$,new cn({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])oe(this,$).$on(r,l=>{ni(this,qe,oi).call(this,r,l.detail)});oe(this,$).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),dn.register(this,oe(this,$))}setOptions(t){oe(this,$).$set(t)}setQuery(t,n=!0){var r;(r=oe(this,$))==null||r.setQuery(t,n)}clearMap(){var t;(t=oe(this,$))==null||t.clearMap()}clearList(){var t;(t=oe(this,$))==null||t.clearList()}setReverseMode(t){var n;(n=oe(this,$))==null||n.$set({reverseActive:t})}focus(t){var n;(n=oe(this,$))==null||n.focus(t)}blur(){var t;(t=oe(this,$))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};$=new WeakMap,qe=new WeakSet,oi=function(t,n){return ri(at.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let st=at;W.GeocodingControl=st,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
1
+ (function(z,b){typeof exports=="object"&&typeof module<"u"?b(exports):typeof define=="function"&&define.amd?define(["exports"],b):(z=typeof globalThis<"u"?globalThis:z||self,b(z.maptilerGeocoder={}))})(this,function(z){"use strict";var Gn=Object.defineProperty;var Hn=Object.getPrototypeOf;var Zn=Reflect.get;var li=z=>{throw TypeError(z)};var qn=(z,b,j)=>b in z?Gn(z,b,{enumerable:!0,configurable:!0,writable:!0,value:j}):z[b]=j;var St=(z,b,j)=>qn(z,typeof b!="symbol"?b+"":b,j),Tt=(z,b,j)=>b.has(z)||li("Cannot "+j);var oe=(z,b,j)=>(Tt(z,b,"read from private field"),j?j.call(z):b.get(z)),Nt=(z,b,j)=>b.has(z)?li("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(z):b.set(z,j),ui=(z,b,j,De)=>(Tt(z,b,"write to private field"),De?De.call(z,j):b.set(z,j),j),ci=(z,b,j)=>(Tt(z,b,"access private method"),j);var di=(z,b,j)=>Zn(Hn(z),j,b);var $,Ve,fi;function b(){}function j(i,e){for(const t in e)i[t]=e[t];return i}function De(i){return i()}function kt(){return Object.create(null)}function de(i){i.forEach(De)}function Mt(i){return typeof i=="function"}function ye(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let He;function X(i,e){return i===e?!0:(He||(He=document.createElement("a")),He.href=e,i===He.href)}function mi(i){return Object.keys(i).length===0}function gi(i,e,t,n){if(i){const r=Ct(i,e,t,n);return i[0](r)}}function Ct(i,e,t,n){return i[1]&&n?j(t.ctx.slice(),i[1](n(e))):t.ctx}function hi(i,e,t,n){return i[2],e.dirty}function bi(i,e,t,n,r,l){if(r){const c=Ct(e,t,n,l);i.p(c,r)}}function vi(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function Ze(i){return i??""}function k(i,e){i.appendChild(e)}function B(i,e,t){i.insertBefore(e,t||null)}function P(i){i.parentNode&&i.parentNode.removeChild(i)}function I(i){return document.createElement(i)}function fe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function be(i){return document.createTextNode(i)}function ee(){return be(" ")}function Li(){return be("")}function Q(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function _i(i){return function(e){return e.preventDefault(),i.call(this,e)}}function a(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function yi(i){return Array.from(i.childNodes)}function Re(i,e){e=""+e,i.data!==e&&(i.data=e)}function Wt(i,e){i.value=e??""}function Ne(i,e,t){i.classList.toggle(e,!!t)}function pi(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Ue;function Ie(i){Ue=i}function zt(){if(!Ue)throw new Error("Function called outside component initialization");return Ue}function wi(i){zt().$$.on_destroy.push(i)}function Ot(){const i=zt();return(e,t,{cancelable:n=!1}={})=>{const r=i.$$.callbacks[e];if(r){const l=pi(e,t,{cancelable:n});return r.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function Ei(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const ke=[],rt=[];let Me=[];const Dt=[],Si=Promise.resolve();let st=!1;function Ti(){st||(st=!0,Si.then(Rt))}function ot(i){Me.push(i)}const at=new Set;let Ce=0;function Rt(){if(Ce!==0)return;const i=Ue;do{try{for(;Ce<ke.length;){const e=ke[Ce];Ce++,Ie(e),Ni(e.$$)}}catch(e){throw ke.length=0,Ce=0,e}for(Ie(null),ke.length=0,Ce=0;rt.length;)rt.pop()();for(let e=0;e<Me.length;e+=1){const t=Me[e];at.has(t)||(at.add(t),t())}Me.length=0}while(ke.length);for(;Dt.length;)Dt.pop()();st=!1,at.clear(),Ie(i)}function Ni(i){if(i.fragment!==null){i.update(),de(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(ot)}}function ki(i){const e=[],t=[];Me.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Me=e}const qe=new Set;let pe;function Qe(){pe={r:0,c:[],p:pe}}function Ke(){pe.r||de(pe.c),pe=pe.p}function G(i,e){i&&i.i&&(qe.delete(i),i.i(e))}function V(i,e,t,n){if(i&&i.o){if(qe.has(i))return;qe.add(i),pe.c.push(()=>{qe.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Ut(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Mi(i,e){V(i,1,1,()=>{e.delete(i.key)})}function Ci(i,e,t,n,r,l,c,s,d,u,f,g){let v=i.length,y=l.length,w=v;const A={};for(;w--;)A[i[w].key]=w;const S=[],T=new Map,D=new Map,O=[];for(w=y;w--;){const L=g(r,l,w),p=t(L);let M=c.get(p);M?O.push(()=>M.p(L,e)):(M=u(p,L),M.c()),T.set(p,S[w]=M),p in A&&D.set(p,Math.abs(w-A[p]))}const K=new Set,J=new Set;function W(L){G(L,1),L.m(s,f),c.set(L.key,L),f=L.first,y--}for(;v&&y;){const L=S[y-1],p=i[v-1],M=L.key,C=p.key;L===p?(f=L.first,v--,y--):T.has(C)?!c.has(M)||K.has(M)?W(L):J.has(C)?v--:D.get(M)>D.get(C)?(J.add(M),W(L)):(K.add(C),v--):(d(p,c),v--)}for(;v--;){const L=i[v];T.has(L.key)||d(L,c)}for(;y;)W(S[y-1]);return de(O),S}function ve(i){i&&i.c()}function me(i,e,t){const{fragment:n,after_update:r}=i.$$;n&&n.m(e,t),ot(()=>{const l=i.$$.on_mount.map(De).filter(Mt);i.$$.on_destroy?i.$$.on_destroy.push(...l):de(l),i.$$.on_mount=[]}),r.forEach(ot)}function ge(i,e){const t=i.$$;t.fragment!==null&&(ki(t.after_update),de(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Wi(i,e){i.$$.dirty[0]===-1&&(ke.push(i),Ti(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function we(i,e,t,n,r,l,c=null,s=[-1]){const d=Ue;Ie(i);const u=i.$$={fragment:null,ctx:[],props:l,update:b,not_equal:r,bound:kt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:kt(),dirty:s,skip_bound:!1,root:e.target||d.$$.root};c&&c(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(g,v,...y)=>{const w=y.length?y[0]:v;return u.ctx&&r(u.ctx[g],u.ctx[g]=w)&&(!u.skip_bound&&u.bound[g]&&u.bound[g](w),f&&Wi(i,g)),v}):[],u.update(),f=!0,de(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const g=yi(e.target);u.fragment&&u.fragment.l(g),g.forEach(P)}else u.fragment&&u.fragment.c();e.intro&&G(i.$$.fragment),me(i,e.target,e.anchor),Rt()}Ie(d)}class Ee{constructor(){St(this,"$$");St(this,"$$set")}$destroy(){ge(this,1),this.$destroy=b}$on(e,t){if(!Mt(t))return b;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}$set(e){this.$$set&&!mi(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const zi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zi);function Oi(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(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"),a(e,"viewBox","0 0 14 14"),a(e,"width","13"),a(e,"height","13"),a(e,"class","svelte-en2qvf")},m(n,r){B(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&P(e)}}}class It extends Ee{constructor(e){super(),we(this,e,null,Oi,ye,{})}}function Di(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(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"),a(e,"viewBox","0 0 30 30"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"class","svelte-d2loi5")},m(n,r){B(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&P(e)}}}class At extends Ee{constructor(e){super(),we(this,e,null,Di,ye,{})}}function Ri(i){let e,t;return{c(){e=I("img"),X(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){B(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"area.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&P(e)}}}function Ui(i){let e,t;return{c(){e=I("img"),X(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){B(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&P(e)}}}function Ii(i){let e,t;return{c(){e=I("img"),X(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){B(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&P(e)}}}function Ai(i){let e,t;return{c(){e=I("img"),X(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){B(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&P(e)}}}function Pi(i){let e,t;return{c(){e=I("img"),X(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){B(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"street.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&P(e)}}}function Bi(i){let e,t;return{c(){e=I("img"),X(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){B(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"road.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&P(e)}}}function Fi(i){let e,t;return{c(){e=I("img"),X(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(n,r){B(n,e,r)},p(n,r){r&8&&!X(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),r&64&&a(e,"alt",n[6]),r&64&&a(e,"title",n[6])},d(n){n&&P(e)}}}function ji(i){let e,t,n,r;return{c(){e=I("img"),X(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"title",i[6]),a(e,"class","svelte-z7p9pp")},m(l,c){B(l,e,c),n||(r=Q(e,"error",i[14]),n=!0)},p(l,c){c&32&&!X(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4]),c&64&&a(e,"title",l[6])},d(l){l&&P(e),n=!1,r()}}}function Pt(i){let e,t;return{c(){e=I("span"),t=be(i[6]),a(e,"class","secondary svelte-z7p9pp")},m(n,r){B(n,e,r),k(e,t)},p(n,r){r&64&&Re(t,n[6])},d(n){n&&P(e)}}}function Gi(i){let e,t,n,r,l,c,s,d,u,f=(i[8]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",g,v,y=i[2]==="always"||i[2]!=="never"&&!i[0].address&&!i[0].id.startsWith("road.")&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[8],w,A,S=(i[8]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",T,D,O,K,J,W;function L(E,m){return m&1&&(t=null),m&1&&(n=null),m&1&&(r=null),m&1&&(l=null),E[5]?ji:E[0].address?Fi:(t==null&&(t=!!E[0].id.startsWith("road.")),t?Bi:(n==null&&(n=!!E[0].id.startsWith("address.")),n?Pi:(r==null&&(r=!!E[0].id.startsWith("postal_code.")),r?Ai:(l==null&&(l=!!E[0].id.startsWith("poi.")),l?Ii:E[8]?Ui:Ri))))}let p=L(i,-1),M=p(i),C=y&&Pt(i);return{c(){e=I("li"),M.c(),c=ee(),s=I("span"),d=I("span"),u=I("span"),g=be(f),v=ee(),C&&C.c(),w=ee(),A=I("span"),T=be(S),a(u,"class","primary svelte-z7p9pp"),a(d,"class","svelte-z7p9pp"),a(A,"class","line2 svelte-z7p9pp"),a(s,"class","texts svelte-z7p9pp"),a(e,"tabindex","-1"),a(e,"role","option"),a(e,"aria-selected",D=i[1]==="selected"),a(e,"aria-checked",O=i[1]==="picked"),a(e,"class",K=Ze(i[1])+" svelte-z7p9pp")},m(E,m){B(E,e,m),M.m(e,null),k(e,c),k(e,s),k(s,d),k(d,u),k(u,g),k(d,v),C&&C.m(d,null),k(s,w),k(s,A),k(A,T),J||(W=[Q(e,"mouseenter",i[13]),Q(e,"focus",i[15]),Q(e,"click",i[16])],J=!0)},p(E,[m]){p===(p=L(E,m))&&M?M.p(E,m):(M.d(1),M=p(E),M&&(M.c(),M.m(e,c))),m&1&&f!==(f=(E[8]?E[0].place_name:E[0].place_name.replace(/,.*/,""))+"")&&Re(g,f),m&37&&(y=E[2]==="always"||E[2]!=="never"&&!E[0].address&&!E[0].id.startsWith("road.")&&!E[0].id.startsWith("address.")&&!E[0].id.startsWith("postal_code.")&&(!E[0].id.startsWith("poi.")||!E[5])&&!E[8]),y?C?C.p(E,m):(C=Pt(E),C.c(),C.m(d,null)):C&&(C.d(1),C=null),m&1&&S!==(S=(E[8]?"":E[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Re(T,S),m&2&&D!==(D=E[1]==="selected")&&a(e,"aria-selected",D),m&2&&O!==(O=E[1]==="picked")&&a(e,"aria-checked",O),m&2&&K!==(K=Ze(E[1])+" svelte-z7p9pp")&&a(e,"class",K)},i:b,o:b,d(E){E&&P(e),M.d(),C&&C.d(),J=!1,de(W)}}}function Hi(i,e,t){var J;let n,r,{feature:l}=e,{style:c="default"}=e,{showPlaceType:s}=e,{missingIconsCache:d}=e,{iconsBaseUrl:u}=e;const f=Ot(),g=(J=l.properties)==null?void 0:J.categories;let v,y,w=0,A=l.place_type[0]==="reverse";function S(){y&&d.add(y),t(11,w++,w)}function T(W){Ei.call(this,i,W)}const D=()=>S(),O=()=>f("select",void 0),K=W=>{document.activeElement!==W.target&&f("select",void 0)};return i.$$set=W=>{"feature"in W&&t(0,l=W.feature),"style"in W&&t(1,c=W.style),"showPlaceType"in W&&t(2,s=W.showPlaceType),"missingIconsCache"in W&&t(10,d=W.missingIconsCache),"iconsBaseUrl"in W&&t(3,u=W.iconsBaseUrl)},i.$$.update=()=>{var W,L,p,M;if(i.$$.dirty&7224)do t(12,n--,n),t(4,v=g==null?void 0:g[n]),t(5,y=v?u+v.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!y||d.has(y)));i.$$.dirty&1&&t(6,r=((L=(W=l.properties)==null?void 0:W.categories)==null?void 0:L.join(", "))??((M=(p=l.properties)==null?void 0:p.place_type_name)==null?void 0:M[0])??l.place_type[0])},t(12,n=(g==null?void 0:g.length)??0),[l,c,s,u,v,y,r,f,A,S,d,w,n,T,D,O,K]}class Zi extends Ee{constructor(e){super(),we(this,e,Hi,Gi,ye,{feature:0,style:1,showPlaceType:2,missingIconsCache:10,iconsBaseUrl:3})}}function qi(i){let e;return{c(){e=I("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>',a(e,"class","svelte-7cmwmc")},m(t,n){B(t,e,n)},p:b,i:b,o:b,d(t){t&&P(e)}}}class Qi extends Ee{constructor(e){super(),we(this,e,null,qi,ye,{})}}function Ki(i){let e,t;return{c(){e=fe("svg"),t=fe("path"),a(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"),a(e,"viewBox","0 0 60.006 21.412"),a(e,"width","14"),a(e,"height","20"),a(e,"class","svelte-en2qvf")},m(n,r){B(n,e,r),k(e,t)},p:b,i:b,o:b,d(n){n&&P(e)}}}class Vi extends Ee{constructor(e){super(),we(this,e,null,Ki,ye,{})}}function Yi(i){let e,t,n;return{c(){e=fe("svg"),t=fe("circle"),n=fe("path"),a(t,"cx","4.789"),a(t,"cy","4.787"),a(t,"r","3.85"),a(t,"class","svelte-1aq105l"),a(n,"d","M12.063 12.063 7.635 7.635"),a(n,"class","svelte-1aq105l"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","13"),a(e,"height","13"),a(e,"viewBox","0 0 13 13"),a(e,"class","svelte-1aq105l")},m(r,l){B(r,e,l),k(e,t),k(e,n)},p:b,i:b,o:b,d(r){r&&P(e)}}}class Xi extends Ee{constructor(e){super(),we(this,e,null,Yi,ye,{})}}function Ji(i,e,t){const n=e[1],r=e[0],l=n-r;return i===n&&t?i:((i-r)%l+l)%l+r}function Bt(i){const e=[...i];return e[2]<e[0]&&(Math.abs((e[0]+e[2]+360)/2)>Math.abs((e[0]-360+e[2])/2)?e[0]-=360:e[2]+=360),e}let Ae;async function xi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const r of e??[])if(!(n&&(r.minZoom!=null&&r.minZoom>n[0]||r.maxZoom!=null&&r.maxZoom<n[0]))){if(r.type==="fixed")return r.coordinates.join(",");e:if(r.type==="client-geolocation"){if(Ae&&r.cachedLocationExpiry&&Ae.time+r.cachedLocationExpiry>Date.now()){if(!Ae.coords)break e;return Ae.coords}let l;try{return l=await new Promise((c,s)=>{t.signal.addEventListener("abort",()=>{s(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{c([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{s(d)},r)}),l}catch{}finally{r.cachedLocationExpiry&&(Ae={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(r.type==="server-geolocation")return"ip";if(n&&r.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const $i=/^(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,Ft=/^([+-]?[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,})$/,jt=/^(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,Gt=/^(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,Ht=/^(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,Zt=/^(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 en(i){if(!["DMS","DM","DD"].includes(i))throw new Error("invalid format specified");if(this.decimalCoordinates&&this.decimalCoordinates.trim()){const e=this.decimalCoordinates.split(",").map(y=>Number(y.trim())),t=Number(e[0]),n=Number(e[1]),r=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",s=n>0?"E":"W";let d;i=="DD"&&(d=`${r}° ${c}, ${l}° ${s}`);const u=Math.floor(r),f=Math.floor(l),g=(r-u)*60,v=(l-f)*60;if(i=="DM"){let y=qt(g,3).toFixed(3).padStart(6,"0"),w=qt(v,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&w.endsWith(".000")&&(y=y.replace(/\.000$/,""),w=w.replace(/\.000$/,"")),d=`${u}° ${y}' ${c}, ${f}° ${w}' ${s}`}if(i=="DMS"){const y=Math.floor(g),w=Math.floor(v);let A=((g-y)*60).toFixed(1).padStart(4,"0"),S=((v-w)*60).toFixed(1).padStart(4,"0");const T=y.toString().padStart(2,"0"),D=w.toString().padStart(2,"0");A.endsWith(".0")&&S.endsWith(".0")&&(A=A.replace(/\.0$/,""),S=S.replace(/\.0$/,"")),d=`${u}° ${T}' ${A}" ${c}, ${f}° ${D}' ${S}" ${s}`}return d}else throw new Error("no decimal coordinates to convert")}function qt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function lt(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,r="",l="",c=null,s=[],d=!1;if($i.test(i))throw new Error("invalid coordinate value");if(Ft.test(i))if(s=Ft.exec(i),d=Pe(s),d)t=Math.abs(s[1])+s[2]/60,Number(s[1])<0&&(t*=-1),n=Math.abs(s[3])+s[4]/60,Number(s[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(jt.test(i))if(s=jt.exec(i),d=Pe(s),d){if(t=s[2],n=s[6],t.includes(",")&&(t=t.replace(",",".")),n.includes(",")&&(n=n.replace(",",".")),c="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(n))==Number(n))throw new Error("integer only coordinate provided");s[1]?(r=s[1],l=s[5]):s[4]&&(r=s[4],l=s[8])}else throw new Error("invalid decimal coordinate format");else if(Gt.test(i))if(s=Gt.exec(i),d=Pe(s),d)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,c="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[9])),s[11]&&(n+=s[11]/60),s[13]&&(n+=s[13].replace(",",".")/3600),parseInt(s[9])<0&&(n=-1*n),s[1]?(r=s[1],l=s[8]):s[7]&&(r=s[7],l=s[14]);else throw new Error("invalid DMS coordinates format");else if(Ht.test(i))if(s=Ht.exec(i),d=Pe(s),d)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4]/60,c="DM"),s[6]&&(t+=s[6]/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[10])),s[12]&&(n+=s[12]/60),s[14]&&(n+=s[14]/3600),parseInt(s[10])<0&&(n=-1*n),s[1]?(r=s[1],l=s[9]):s[8]&&(r=s[8],l=s[16]);else throw new Error("invalid DMS coordinates format");else if(Zt.test(i)){if(s=Zt.exec(i),d=Pe(s),s.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(s[2])),s[4]&&(t+=s[4].replace(",",".")/60,c="DM"),s[6]&&(t+=s[6].replace(",",".")/3600,c="DMS"),parseInt(s[2])<0&&(t=-1*t),n=Math.abs(parseInt(s[10])),s[12]&&(n+=s[12].replace(",",".")/60),s[14]&&(n+=s[14].replace(",",".")/3600),parseInt(s[10])<0&&(n=-1*n),s[1]?(r=s[1],l=s[9]):s[8]&&(r=s[8],l=s[16]);else throw new Error("invalid coordinates format")}if(d){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!l||!r&&l)throw new Error("invalid coordinates value");if(r&&r==l)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),n.toString().includes(",")&&(n=n.replace(",","."));let u=/S|SOUTH/i;u.test(r)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const f=s[0].trim();let g,v;const y=/[,/;\u0020]/g,w=f.match(y);if(w==null){const T=Math.floor(i.length/2);g=f.substring(0,T).trim(),v=f.substring(T).trim()}else{let T;w.length%2==1?T=Math.floor(w.length/2):T=w.length/2-1;let D=0;if(T==0)D=f.indexOf(w[0]),g=f.substring(0,D).trim(),v=f.substring(D+1).trim();else{let O=0,K=0;for(;O<=T;)D=f.indexOf(w[O],K),K=D+1,O++;g=f.substring(0,D).trim(),v=f.substring(D+1).trim()}}const A=g.split(".");if(A.length==2&&A[1]==0&&A[1].length!=2)throw new Error("invalid coordinates format");const S=v.split(".");if(S.length==2&&S[1]==0&&S[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(g)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:f,verbatimLatitude:g,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:tn,toCoordinateFormat:en})}else throw new Error("coordinates pattern match failed")}function Pe(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,n=/[eastsouthnorthwest]+/i,r=e.length/2;for(let l=0;l<r;l++){const c=e[l],s=e[l+r],d=t.test(c)&&t.test(s),u=n.test(c)&&n.test(s),f=c==s;if(!(c==null&&s==null)){if(c==null||s==null)return!1;if(d||u||f)continue;return!1}}return!0}function Qt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function tn(i){if(!i)throw new Error("coords must be provided");if(i.includes(",")){const e=i.split(",");if(Number(e[0])==NaN||Number(e[1])==NaN)throw new Error("coords are not valid decimals");return Qt(this.decimalLatitude,Number(e[0]))&&Qt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const nn=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});lt.to=nn;const rn=[{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"}],sn={decimalLatitude:40.123,decimalLongitude:-74.123},on=[{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}],an=[{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 ln(){const i=[];return rn.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...sn})}),[...i,...on,...an]}const un=ln();lt.formats=un.map(i=>i.verbatimCoordinates);const cn=lt;function Kt(i,e,t){const n=i.slice();return n[97]=e[t],n[99]=t,n}function Vt(i){let e,t;return e=new Qi({}),{c(){ve(e.$$.fragment)},m(n,r){me(e,n,r),t=!0},i(n){t||(G(e.$$.fragment,n),t=!0)},o(n){V(e.$$.fragment,n),t=!1},d(n){ge(e,n)}}}function Yt(i){let e,t,n,r,l;return t=new Vi({}),{c(){e=I("button"),ve(t.$$.fragment),a(e,"type","button"),a(e,"title",i[10]),a(e,"class","svelte-bz0zu3"),Ne(e,"active",i[0])},m(c,s){B(c,e,s),me(t,e,null),n=!0,r||(l=Q(e,"click",i[79]),r=!0)},p(c,s){(!n||s[0]&1024)&&a(e,"title",c[10]),(!n||s[0]&1)&&Ne(e,"active",c[0])},i(c){n||(G(t.$$.fragment,c),n=!0)},o(c){V(t.$$.fragment,c),n=!1},d(c){c&&P(e),ge(t),r=!1,l()}}}function dn(i){let e,t=[],n=new Map,r,l,c,s=Ut(i[13]);const d=u=>u[97].id+(u[97].address?","+u[97].address:"");for(let u=0;u<s.length;u+=1){let f=Kt(i,s,u),g=d(f);n.set(g,t[u]=Xt(g,f))}return{c(){e=I("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","options svelte-bz0zu3"),a(e,"role","listbox")},m(u,f){B(u,e,f);for(let g=0;g<t.length;g+=1)t[g]&&t[g].m(e,null);r=!0,l||(c=[Q(e,"mouseleave",i[27]),Q(e,"blur",i[83]),Q(e,"keydown",i[23])],l=!0)},p(u,f){f[0]&102823936&&(s=Ut(u[13]),Qe(),t=Ci(t,f,d,1,u,s,n,e,Mi,Xt,null,Kt),Ke())},i(u){if(!r){for(let f=0;f<s.length;f+=1)G(t[f]);r=!0}},o(u){for(let f=0;f<t.length;f+=1)V(t[f]);r=!1},d(u){u&&P(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,de(c)}}}function fn(i){let e,t,n,r,l,c;return t=new At({}),{c(){e=I("div"),ve(t.$$.fragment),n=ee(),r=I("div"),l=be(i[8]),a(r,"class","svelte-bz0zu3"),a(e,"class","no-results svelte-bz0zu3")},m(s,d){B(s,e,d),me(t,e,null),k(e,n),k(e,r),k(r,l),c=!0},p(s,d){(!c||d[0]&256)&&Re(l,s[8])},i(s){c||(G(t.$$.fragment,s),c=!0)},o(s){V(t.$$.fragment,s),c=!1},d(s){s&&P(e),ge(t)}}}function mn(i){let e="",t;return{c(){t=be(e)},m(n,r){B(n,t,r)},p:b,i:b,o:b,d(n){n&&P(t)}}}function gn(i){let e,t,n,r,l,c,s,d,u,f,g;return t=new At({}),d=new It({}),{c(){e=I("div"),ve(t.$$.fragment),n=ee(),r=I("div"),l=be(i[7]),c=ee(),s=I("button"),ve(d.$$.fragment),a(r,"class","svelte-bz0zu3"),a(s,"class","svelte-bz0zu3"),a(e,"class","error svelte-bz0zu3")},m(v,y){B(v,e,y),me(t,e,null),k(e,n),k(e,r),k(r,l),k(e,c),k(e,s),me(d,s,null),u=!0,f||(g=Q(s,"click",i[80]),f=!0)},p(v,y){(!u||y[0]&128)&&Re(l,v[7])},i(v){u||(G(t.$$.fragment,v),G(d.$$.fragment,v),u=!0)},o(v){V(t.$$.fragment,v),V(d.$$.fragment,v),u=!1},d(v){v&&P(e),ge(t),ge(d),f=!1,g()}}}function Xt(i,e){var s;let t,n,r;function l(){return e[81](e[99])}function c(){return e[82](e[97])}return n=new Zi({props:{feature:e[97],showPlaceType:e[11],style:e[15]===e[99]?"selected":((s=e[14])==null?void 0:s.id)===e[97].id?"picked":"default",missingIconsCache:e[21],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("select",c),{key:i,first:null,c(){t=Li(),ve(n.$$.fragment),this.first=t},m(d,u){B(d,t,u),me(n,d,u),r=!0},p(d,u){var g;e=d;const f={};u[0]&8192&&(f.feature=e[97]),u[0]&2048&&(f.showPlaceType=e[11]),u[0]&57344&&(f.style=e[15]===e[99]?"selected":((g=e[14])==null?void 0:g.id)===e[97].id?"picked":"default"),u[0]&4096&&(f.iconsBaseUrl=e[12]),n.$set(f)},i(d){r||(G(n.$$.fragment,d),r=!0)},o(d){V(n.$$.fragment,d),r=!1},d(d){d&&P(t),ge(n,d)}}}function hn(i){let e,t,n,r,l,c,s,d,u,f,g,v,y,w,A,S,T,D,O,K,J,W=!1;l=new Xi({}),g=new It({});let L=i[20]&&Vt(),p=i[6]==="button"&&Yt(i);const M=i[70].default,C=gi(M,i,i[69],null),E=[gn,mn,fn,dn],m=[];function Se(_,H){var ae,ne;return _[19]?0:!_[16]&&!_[4]?1:((ae=_[13])==null?void 0:ae.length)===0?2:(ne=_[13])!=null&&ne.length&&(_[16]||_[4])?3:-1}return~(S=Se(i))&&(T=m[S]=E[S](i)),{c(){e=ee(),t=I("form"),n=I("div"),r=I("button"),ve(l.$$.fragment),c=ee(),s=I("input"),d=ee(),u=I("div"),f=I("button"),ve(g.$$.fragment),v=ee(),L&&L.c(),y=ee(),p&&p.c(),w=ee(),C&&C.c(),A=ee(),T&&T.c(),a(r,"class","search-button svelte-bz0zu3"),a(r,"type","button"),a(s,"placeholder",i[9]),a(s,"aria-label",i[9]),a(s,"class","svelte-bz0zu3"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-bz0zu3"),a(u,"class","clear-button-container svelte-bz0zu3"),Ne(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-bz0zu3"),a(t,"class",D=Ze(i[2])+" svelte-bz0zu3"),Ne(t,"can-collapse",i[5]&&i[1]==="")},m(_,H){B(_,e,H),B(_,t,H),k(t,n),k(n,r),me(l,r,null),k(n,c),k(n,s),i[72](s),Wt(s,i[1]),k(n,d),k(n,u),k(u,f),me(g,f,null),k(u,v),L&&L.m(u,null),k(n,y),p&&p.m(n,null),k(n,w),C&&C.m(n,null),k(t,A),~S&&m[S].m(t,null),O=!0,K||(J=[Q(r,"click",i[71]),Q(s,"input",i[73]),Q(s,"focus",i[74]),Q(s,"blur",i[75]),Q(s,"click",i[76]),Q(s,"keydown",i[23]),Q(s,"input",i[24]),Q(s,"change",i[77]),Q(f,"click",i[78]),Q(t,"submit",_i(i[22]))],K=!0)},p(_,H){(!O||H[0]&512)&&a(s,"placeholder",_[9]),(!O||H[0]&512)&&a(s,"aria-label",_[9]),H[0]&2&&s.value!==_[1]&&Wt(s,_[1]),(!O||H[0]&8)&&a(f,"title",_[3]),_[20]?L?H[0]&1048576&&G(L,1):(L=Vt(),L.c(),G(L,1),L.m(u,null)):L&&(Qe(),V(L,1,1,()=>{L=null}),Ke()),(!O||H[0]&2)&&Ne(u,"displayable",_[1]!==""),_[6]==="button"?p?(p.p(_,H),H[0]&64&&G(p,1)):(p=Yt(_),p.c(),G(p,1),p.m(n,w)):p&&(Qe(),V(p,1,1,()=>{p=null}),Ke()),C&&C.p&&(!O||H[2]&128)&&bi(C,M,_,_[69],O?hi(M,_[69],H,null):vi(_[69]),null);let ae=S;S=Se(_),S===ae?~S&&m[S].p(_,H):(T&&(Qe(),V(m[ae],1,1,()=>{m[ae]=null}),Ke()),~S?(T=m[S],T?T.p(_,H):(T=m[S]=E[S](_),T.c()),G(T,1),T.m(t,null)):T=null),(!O||H[0]&4&&D!==(D=Ze(_[2])+" svelte-bz0zu3"))&&a(t,"class",D),(!O||H[0]&38)&&Ne(t,"can-collapse",_[5]&&_[1]==="")},i(_){O||(G(W),G(l.$$.fragment,_),G(g.$$.fragment,_),G(L),G(p),G(C,_),G(T),O=!0)},o(_){V(W),V(l.$$.fragment,_),V(g.$$.fragment,_),V(L),V(p),V(C,_),V(T),O=!1},d(_){_&&(P(e),P(t)),ge(l),i[72](null),ge(g),L&&L.d(),p&&p.d(),C&&C.d(_),~S&&m[S].d(),K=!1,de(J)}}}function bn(i,e,t){let n,r,l,{$$slots:c={},$$scope:s}=e;const d={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:u=void 0}=e,{apiKey:f}=e,{bbox:g=void 0}=e,{clearButtonTitle:v="clear"}=e,{clearOnBlur:y=!1}=e,{clearListOnPick:w=!1}=e,{keepListOpen:A=!1}=e,{collapsed:S=!1}=e,{country:T=void 0}=e,{debounceSearch:D=200}=e,{enableReverse:O="never"}=e,{errorMessage:K="Something went wrong…"}=e,{filter:J=()=>!0}=e,{flyTo:W=!0}=e,{fuzzyMatch:L=!0}=e,{language:p=void 0}=e,{limit:M=void 0}=e;const C=41415112612;let{reverseGeocodingLimit:E=C}=e,{mapController:m=void 0}=e,{minLength:Se=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:H="Search"}=e,{proximity:ae=[{type:"server-geolocation"}]}=e,{reverseActive:ne=O==="always"}=e,{reverseButtonTitle:Jt="toggle reverse geocoding"}=e,{searchValue:Y=""}=e,{pickedResultStyle:Ye="full-geometry"}=e,{showPlaceType:xt="if-needed"}=e,{showResultsWhileTyping:Xe=!0}=e,{selectFirst:We=!0}=e,{flyToSelected:Je=!1}=e,{markerOnSelected:xe=!0}=e,{types:dt=void 0}=e;const $t=[];let{reverseGeocodingTypes:$e=$t}=e,{exhaustiveReverseGeocoding:ft=!1}=e,{excludeTypes:mt=!1}=e;const ei=void 0;let{reverseGeocodingExcludeTypes:et=ei}=e,{zoom:tt=d}=e,{apiUrl:gt="https://api.maptiler.com/geocoding"}=e,{fetchParameters:ht={}}=e,{iconsBaseUrl:ti="https://cdn.maptiler.com/maptiler-geocoding-control/v2.1.2/icons/"}=e,{adjustUrlQuery:bt=()=>{}}=e,{adjustUrl:vt=()=>{}}=e;function _n(o){se.focus(o)}function yn(){se.blur()}function ii(o,F=!0,Z=!1){t(1,Y=o),F?(t(15,R=-1),ri()):(si(void 0,!Z,Z),setTimeout(()=>{se.focus(),se.select()}))}function pn(){t(13,N=void 0),t(14,h=void 0),t(15,R=-1)}function wn(){t(64,q=[]),t(14,h=void 0)}let N,q,h,ni="",se,R=-1,le,it=[],Te,ze,Oe,Lt,he=!1;const En=new Set,Le=Ot();wi(()=>{m&&(m.setEventHandler(void 0),m.indicateReverse(!1),m.setSelectedMarker(-1),m.setFeatures(void 0,void 0,!1))});function ri(o){if(t(17,he=!1),ze&&(clearTimeout(ze),ze=void 0),R>-1&&N)t(14,h=N[R]),t(1,Y=h.place_type[0]==="reverse"?h.place_name:h.place_name.replace(/,.*/,"")),t(19,le=void 0),t(64,q=void 0),t(15,R=-1);else if(Y){const F=o||!_t(Y);yt(Y,{exact:!0}).then(()=>{t(64,q=N),t(14,h=void 0),F&&Sn()}).catch(Z=>t(19,le=Z))}}function _t(o){try{return cn(o,6)}catch{return!1}}async function yt(o,{byId:F=!1,exact:Z=!1}={}){var ie,ue,_e;t(19,le=void 0),Te==null||Te.abort();const te=new AbortController;t(20,Te=te);try{const U=_t(o),Fe=new URL(gt+"/"+encodeURIComponent(U?U.decimalLongitude+","+U.decimalLatitude:o)+".json"),re=Fe.searchParams;p!==void 0&&re.set("language",Array.isArray(p)?p.join(","):p??"");const[Et]=(m==null?void 0:m.getCenterAndZoom())??[];let ce=(ie=!U||$e===$t?dt:$e)==null?void 0:ie.map(x=>typeof x=="string"?x:Et===void 0||(x[0]??0)<=Et&&Et<(x[1]??1/0)?x[2]:void 0).filter(x=>x!==void 0);ce&&(ce=[...new Set(ce)],re.set("types",ce.join(",")));const ai=!U||et===ei?mt:et;if(ai&&re.set("excludeTypes",String(ai)),g&&re.set("bbox",g.map(x=>x.toFixed(6)).join(",")),T&&re.set("country",Array.isArray(T)?T.join(","):T),!F&&!U){const x=await xi(m,ae,te);x&&re.set("proximity",x),(Z||!Xe)&&re.set("autocomplete","false"),re.set("fuzzyMatch",String(L))}const je=E===C?M:E;je!==void 0&&je>1&&(ce==null?void 0:ce.length)!==1&&console.warn("For reverse geocoding when limit > 1 then types must contain single value."),U?(je===1||je!==void 0&&(ft||(ce==null?void 0:ce.length)===1))&&re.set("limit",String(je)):M!==void 0&&re.set("limit",String(M)),re.set("key",f),bt(re),vt(Fe);const jn=Fe.searchParams.get("types")===""&&Fe.searchParams.get("excludeTypes")!=="true",nt=Fe.toString();if(nt===ni){F?(w&&t(13,N=void 0),t(14,h=it[0])):(t(13,N=it),((ue=N[R])==null?void 0:ue.id)!==(r==null?void 0:r.id)&&t(15,R=-1));return}ni=nt;let Ge;if(jn)Ge={type:"FeatureCollection",features:[]};else{const x=await fetch(nt,{signal:te.signal,...ht});if(!x.ok)throw new Error(await x.text());Ge=await x.json()}Le("response",{url:nt,featureCollection:Ge}),F?(w&&t(13,N=void 0),t(14,h=Ge.features[0]),it=[h]):(t(13,N=Ge.features.filter(J)),U&&N.unshift({type:"Feature",properties:{},id:"reverse_"+U.decimalLongitude+"_"+U.decimalLatitude,text:U.decimalLatitude+", "+U.decimalLongitude,place_name:U.decimalLatitude+", "+U.decimalLongitude,place_type:["reverse"],center:[U.decimalLongitude,U.decimalLatitude],bbox:[U.decimalLongitude,U.decimalLatitude,U.decimalLongitude,U.decimalLatitude],geometry:{type:"Point",coordinates:[U.decimalLongitude,U.decimalLatitude]}}),it=N,((_e=N[R])==null?void 0:_e.id)!==(r==null?void 0:r.id)&&t(15,R=-1),U&&se.focus())}catch(U){if(U&&typeof U=="object"&&"name"in U&&U.name==="AbortError")return;throw U}finally{te===Te&&t(20,Te=void 0)}}function Sn(){var te;if(!(q!=null&&q.length)||!W)return;const o=[180,90,-180,-90],F=!q.some(ie=>!ie.matching_text);let Z;for(const ie of q){const ue=Be(ie);if(Z=Z===void 0?ue:ue===void 0?Z:Math.max(Z,ue),F||!ie.matching_text)for(const _e of[0,1,2,3])o[_e]=Math[_e<2?"min":"max"](o[_e],((te=ie.bbox)==null?void 0:te[_e])??ie.center[_e%2])}m&&q.length>0&&(h&&o[0]===o[2]&&o[1]===o[3]?m.flyTo(h.center,Be(h)):m.fitBounds(Bt(o),50,Z))}function pt(){!h||!m||(!h.bbox||h.bbox[0]===h.bbox[2]&&h.bbox[1]===h.bbox[3]?m.flyTo(h.center,Be(h)):m.fitBounds(Bt(h.bbox),50,Be(h)))}function Be(o){var Z;if(!o.bbox||o.bbox[0]!==o.bbox[2]&&o.bbox[1]!==o.bbox[3])return;const F=o.id.replace(/\..*/,"");return(Array.isArray((Z=o.properties)==null?void 0:Z.categories)?o.properties.categories.reduce((te,ie)=>{const ue=tt[F+"."+ie];return te===void 0?ue:ue===void 0?te:Math.max(te,ue)},void 0):void 0)??tt[F]}function Tn(o){t(0,ne=O==="always"),t(13,N=void 0),t(14,h=void 0),t(15,R=-1),ii(o[1].toFixed(6)+", "+Ji(o[0],[-180,180],!0).toFixed(6),!1,!0)}function Nn(o){if(!N)return;let F=o.key==="ArrowDown"?1:o.key==="ArrowUp"?-1:0;F&&(se.focus(),t(17,he=!0),o.preventDefault(),h&&R===-1&&t(15,R=N.findIndex(Z=>Z.id===(h==null?void 0:h.id))),R===(h||We?0:-1)&&F===-1&&t(15,R=N.length),t(15,R+=F),R>=N.length&&t(15,R=-1),R<0&&(h||We)&&t(15,R=0))}function si(o,F=!0,Z=!1){if(t(19,le=void 0),t(14,h=void 0),t(17,he=!0),Xe||Z){if(ze&&clearTimeout(ze),Y.length<Se)return;const te=Y;ze=window.setTimeout(()=>{yt(te).catch(ie=>t(19,le=ie))},F?D:0)}else t(13,N=void 0),t(19,le=void 0)}function wt(o){h&&(h==null?void 0:h.id)===(o==null?void 0:o.id)?pt():(t(14,h=o),t(1,Y=o.place_name))}function oi(o){t(15,R=o)}function kn(){(!We||h)&&t(15,R=-1),Je&&pt()}const Mn=()=>se.focus();function Cn(o){rt[o?"unshift":"push"](()=>{se=o,t(18,se)})}function Wn(){Y=this.value,t(1,Y),t(17,he),t(31,y),t(16,Oe)}const zn=()=>t(17,he=!0),On=()=>t(17,he=!1),Dn=()=>t(17,he=!0),Rn=()=>t(14,h=void 0),Un=()=>{t(1,Y=""),se.focus()},In=()=>t(0,ne=!ne),An=()=>t(19,le=void 0),Pn=o=>oi(o),Bn=o=>wt(o),Fn=()=>{};return i.$$set=o=>{"class"in o&&t(2,u=o.class),"apiKey"in o&&t(29,f=o.apiKey),"bbox"in o&&t(30,g=o.bbox),"clearButtonTitle"in o&&t(3,v=o.clearButtonTitle),"clearOnBlur"in o&&t(31,y=o.clearOnBlur),"clearListOnPick"in o&&t(32,w=o.clearListOnPick),"keepListOpen"in o&&t(4,A=o.keepListOpen),"collapsed"in o&&t(5,S=o.collapsed),"country"in o&&t(33,T=o.country),"debounceSearch"in o&&t(34,D=o.debounceSearch),"enableReverse"in o&&t(6,O=o.enableReverse),"errorMessage"in o&&t(7,K=o.errorMessage),"filter"in o&&t(35,J=o.filter),"flyTo"in o&&t(36,W=o.flyTo),"fuzzyMatch"in o&&t(37,L=o.fuzzyMatch),"language"in o&&t(38,p=o.language),"limit"in o&&t(39,M=o.limit),"reverseGeocodingLimit"in o&&t(40,E=o.reverseGeocodingLimit),"mapController"in o&&t(41,m=o.mapController),"minLength"in o&&t(42,Se=o.minLength),"noResultsMessage"in o&&t(8,_=o.noResultsMessage),"placeholder"in o&&t(9,H=o.placeholder),"proximity"in o&&t(43,ae=o.proximity),"reverseActive"in o&&t(0,ne=o.reverseActive),"reverseButtonTitle"in o&&t(10,Jt=o.reverseButtonTitle),"searchValue"in o&&t(1,Y=o.searchValue),"pickedResultStyle"in o&&t(44,Ye=o.pickedResultStyle),"showPlaceType"in o&&t(11,xt=o.showPlaceType),"showResultsWhileTyping"in o&&t(45,Xe=o.showResultsWhileTyping),"selectFirst"in o&&t(46,We=o.selectFirst),"flyToSelected"in o&&t(47,Je=o.flyToSelected),"markerOnSelected"in o&&t(48,xe=o.markerOnSelected),"types"in o&&t(49,dt=o.types),"reverseGeocodingTypes"in o&&t(50,$e=o.reverseGeocodingTypes),"exhaustiveReverseGeocoding"in o&&t(51,ft=o.exhaustiveReverseGeocoding),"excludeTypes"in o&&t(52,mt=o.excludeTypes),"reverseGeocodingExcludeTypes"in o&&t(53,et=o.reverseGeocodingExcludeTypes),"zoom"in o&&t(54,tt=o.zoom),"apiUrl"in o&&t(55,gt=o.apiUrl),"fetchParameters"in o&&t(56,ht=o.fetchParameters),"iconsBaseUrl"in o&&t(12,ti=o.iconsBaseUrl),"adjustUrlQuery"in o&&t(57,bt=o.adjustUrlQuery),"adjustUrl"in o&&t(58,vt=o.adjustUrl),"$$scope"in o&&t(69,s=o.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&64&&t(0,ne=O==="always"),i.$$.dirty[0]&16384|i.$$.dirty[1]&8192&&Ye!=="marker-only"&&h&&!h.address&&h.geometry.type==="Point"&&h.place_type[0]!=="reverse"&&yt(h.id,{byId:!0}).catch(o=>t(19,le=o)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1058|i.$$.dirty[2]&8&&(m&&h&&h.id!==Lt&&W&&(pt(),w&&t(13,N=void 0),t(64,q=void 0),t(15,R=-1)),t(65,Lt=h==null?void 0:h.id)),i.$$.dirty[0]&196608|i.$$.dirty[1]&1&&setTimeout(()=>{t(16,Oe=he),y&&!Oe&&t(1,Y="")}),i.$$.dirty[0]&8194|i.$$.dirty[1]&2048&&Y.length<Se&&(t(13,N=void 0),t(19,le=void 0),t(64,q=N)),i.$$.dirty[0]&57344|i.$$.dirty[1]&32768&&We&&N!=null&&N.length&&R==-1&&!h&&t(15,R=0),i.$$.dirty[0]&8192|i.$$.dirty[2]&4&&q!==N&&t(64,q=void 0),i.$$.dirty[0]&73729|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&m&&m.setEventHandler(o=>{switch(o.type){case"mapClick":ne&&Tn(o.coordinates);break;case"markerClick":{const F=N==null?void 0:N.find(Z=>Z.id===o.id);F&&wt(F)}break;case"markerMouseEnter":q&&t(15,R=Oe?(N==null?void 0:N.findIndex(F=>F.id===o.id))??-1:-1);break;case"markerMouseLeave":q&&t(15,R=-1);break}}),i.$$.dirty[0]&40960&&t(66,r=N==null?void 0:N[R]),i.$$.dirty[1]&66592|i.$$.dirty[2]&16&&m&&r&&W&&Je&&m.flyTo(r.center,Be(r)),i.$$.dirty[1]&8192&&t(68,n=Ye==="full-geometry-including-polygon-center-marker"),i.$$.dirty[1]&132096|i.$$.dirty[2]&64&&(xe||m==null||m.setFeatures(void 0,void 0,n)),i.$$.dirty[0]&16384|i.$$.dirty[1]&132096|i.$$.dirty[2]&84&&m&&xe&&!q&&(m.setFeatures(r?[r]:void 0,h,n),m.setSelectedMarker(r?0:-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&1024|i.$$.dirty[2]&68&&m&&m.setFeatures(q,h,n),i.$$.dirty[0]&32768|i.$$.dirty[1]&1024|i.$$.dirty[2]&4&&q&&m&&m.setSelectedMarker(R),i.$$.dirty[0]&2|i.$$.dirty[1]&1024&&m){const o=_t(Y);m.setReverseMarker(o?[o.decimalLongitude,o.decimalLatitude]:void 0)}i.$$.dirty[2]&16&&Le("select",{feature:r}),i.$$.dirty[0]&16384&&Le("pick",{feature:h}),i.$$.dirty[0]&73744&&t(67,l=!!(N!=null&&N.length)&&(Oe||A)),i.$$.dirty[2]&32&&Le("optionsvisibilitychange",{optionsVisible:l}),i.$$.dirty[0]&8192&&Le("featureslisted",{features:N}),i.$$.dirty[2]&4&&Le("featuresmarked",{features:q}),i.$$.dirty[0]&1&&Le("reversetoggle",{reverse:ne}),i.$$.dirty[0]&2&&Le("querychange",{query:Y}),i.$$.dirty[0]&1|i.$$.dirty[1]&1024&&m&&m.indicateReverse(ne)},[ne,Y,u,v,A,S,O,K,_,H,Jt,xt,ti,N,h,R,Oe,he,se,le,Te,En,ri,Nn,si,wt,oi,kn,d,f,g,y,w,T,D,J,W,L,p,M,E,m,Se,ae,Ye,Xe,We,Je,xe,dt,$e,ft,mt,et,tt,gt,ht,bt,vt,_n,yn,ii,pn,wn,q,Lt,r,l,n,s,c,Mn,Cn,Wn,zn,On,Dn,Rn,Un,In,An,Pn,Bn,Fn]}let vn=class extends Ee{constructor(e){super(),we(this,e,bn,hn,ye,{ZOOM_DEFAULTS:28,class:2,apiKey:29,bbox:30,clearButtonTitle:3,clearOnBlur:31,clearListOnPick:32,keepListOpen:4,collapsed:5,country:33,debounceSearch:34,enableReverse:6,errorMessage:7,filter:35,flyTo:36,fuzzyMatch:37,language:38,limit:39,reverseGeocodingLimit:40,mapController:41,minLength:42,noResultsMessage:8,placeholder:9,proximity:43,reverseActive:0,reverseButtonTitle:10,searchValue:1,pickedResultStyle:44,showPlaceType:11,showResultsWhileTyping:45,selectFirst:46,flyToSelected:47,markerOnSelected:48,types:49,reverseGeocodingTypes:50,exhaustiveReverseGeocoding:51,excludeTypes:52,reverseGeocodingExcludeTypes:53,zoom:54,apiUrl:55,fetchParameters:56,iconsBaseUrl:12,adjustUrlQuery:57,adjustUrl:58,focus:59,blur:60,setQuery:61,clearList:62,clearMap:63},null,[-1,-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[28]}get focus(){return this.$$.ctx[59]}get blur(){return this.$$.ctx[60]}get setQuery(){return this.$$.ctx[61]}get clearList(){return this.$$.ctx[62]}get clearMap(){return this.$$.ctx[63]}};const Ln=new FinalizationRegistry(i=>{i.$destroy()}),ct=class ct extends EventTarget{constructor({target:t,...n}){super();Nt(this,Ve);Nt(this,$);ui(this,$,new vn({target:t,props:n}));for(const r of["select","pick","featureslisted","featuresmarked","response","optionsvisibilitychange","reversetoggle","querychange"])oe(this,$).$on(r,l=>{ci(this,Ve,fi).call(this,r,l.detail)});oe(this,$).$on("select",r=>{const l=new CustomEvent(r.type,{detail:r.detail});this.dispatchEvent(l)}),Ln.register(this,oe(this,$))}setOptions(t){oe(this,$).$set(t)}setQuery(t,n=!0){var r;(r=oe(this,$))==null||r.setQuery(t,n)}clearMap(){var t;(t=oe(this,$))==null||t.clearMap()}clearList(){var t;(t=oe(this,$))==null||t.clearList()}setReverseMode(t){var n;(n=oe(this,$))==null||n.$set({reverseActive:t})}focus(t){var n;(n=oe(this,$))==null||n.focus(t)}blur(){var t;(t=oe(this,$))==null||t.blur()}addEventListener(t,n,r){super.addEventListener(t,n,r)}removeEventListener(t,n,r){super.removeEventListener(t,n,r)}dispatchEvent(t){return super.dispatchEvent(t)}};$=new WeakMap,Ve=new WeakSet,fi=function(t,n){return di(ct.prototype,this,"dispatchEvent").call(this,new CustomEvent(t,{detail:n}))};let ut=ct;z.GeocodingControl=ut,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
2
2
  //# sourceMappingURL=vanilla.umd.js.map