@maptiler/geocoding-control 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreBasedGeocodingControl.d.ts +3 -6
- package/leaflet.d.ts +3 -6
- package/leaflet.js +1 -1
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +1 -1
- package/leaflet.umd.js.map +1 -1
- package/maplibregl.js +1 -1
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +1 -1
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1 -1
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +1 -1
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers.js +1 -1
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +1 -1
- package/openlayers.umd.js.map +1 -1
- package/package.json +6 -2
- package/react.js +1 -1
- package/react.umd.js +1 -1
- package/svelte/GeocodingControl.svelte +1 -1
- package/svelte/MapLibreBasedGeocodingControl.d.ts +3 -6
- package/svelte/leaflet.d.ts +3 -6
- package/svelte/types.d.ts +29 -58
- package/types.d.ts +29 -58
- package/vanilla.js +1 -1
- package/vanilla.umd.js +1 -1
package/maplibregl.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ft,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("maplibre-gl")):typeof define=="function"&&define.amd?define(["exports","maplibre-gl"],vt):(ft=typeof globalThis<"u"?globalThis:ft||self,vt(ft.maplibreglMaptilerGeocoder={},ft.maplibregl))})(this,function(ft,vt){"use strict";var Hf=Object.defineProperty;var Wf=(ft,vt,te)=>vt in ft?Hf(ft,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ft[vt]=te;var sa=(ft,vt,te)=>(Wf(ft,typeof vt!="symbol"?vt+"":vt,te),te),ll=(ft,vt,te)=>{if(!vt.has(ft))throw TypeError("Cannot "+te)};var Sr=(ft,vt,te)=>(ll(ft,vt,"read from private field"),te?te.call(ft):vt.get(ft)),aa=(ft,vt,te)=>{if(vt.has(ft))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ft):vt.set(ft,te)},ds=(ft,vt,te,Lo)=>(ll(ft,vt,"write to private field"),Lo?Lo.call(ft,te):vt.set(ft,te),te);var er,pi;function te(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const Lo=te(vt);function It(){}function cl(n,t){for(const e in t)n[e]=t[e];return n}function ua(n){return n()}function la(){return Object.create(null)}function un(n){n.forEach(ua)}function ca(n){return typeof n=="function"}function xn(n,t){return n!=n?t==t:n!==t||n&&typeof n=="object"||typeof n=="function"}let bo;function Me(n,t){return n===t?!0:(bo||(bo=document.createElement("a")),bo.href=t,n===bo.href)}function fl(n){return Object.keys(n).length===0}function hl(n,t,e,r){if(n){const i=fa(n,t,e,r);return n[0](i)}}function fa(n,t,e,r){return n[1]&&r?cl(e.ctx.slice(),n[1](r(t))):e.ctx}function gl(n,t,e,r){if(n[2]&&r){const i=n[2](r(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function pl(n,t,e,r,i,o){if(i){const s=fa(t,e,r,o);n.p(s,i)}}function dl(n){if(n.ctx.length>32){const t=[],e=n.ctx.length/32;for(let r=0;r<e;r++)t[r]=-1;return t}return-1}function ha(n){return n??""}function rt(n,t){n.appendChild(t)}function Rt(n,t,e){n.insertBefore(t,e||null)}function wt(n){n.parentNode&&n.parentNode.removeChild(n)}function gt(n){return document.createElement(n)}function Vr(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function Sn(n){return document.createTextNode(n)}function qe(){return Sn(" ")}function vl(){return Sn("")}function Ne(n,t,e,r){return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}function yl(n){return function(t){return t.preventDefault(),n.call(this,t)}}function P(n,t,e){e==null?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function ml(n){return Array.from(n.childNodes)}function Qi(n,t){t=""+t,n.data!==t&&(n.data=t)}function ga(n,t){n.value=t??""}function ir(n,t,e){n.classList.toggle(t,!!e)}function _l(n,t,{bubbles:e=!1,cancelable:r=!1}={}){return new CustomEvent(n,{detail:t,bubbles:e,cancelable:r})}let Ki;function Zi(n){Ki=n}function pa(){if(!Ki)throw new Error("Function called outside component initialization");return Ki}function El(n){pa().$$.on_destroy.push(n)}function Il(){const n=pa();return(t,e,{cancelable:r=!1}={})=>{const i=n.$$.callbacks[t];if(i){const o=_l(t,e,{cancelable:r});return i.slice().forEach(s=>{s.call(n,o)}),!o.defaultPrevented}return!0}}function da(n,t){const e=n.$$.callbacks[t.type];e&&e.slice().forEach(r=>r.call(this,t))}const vi=[],vs=[];let yi=[];const va=[],Cl=Promise.resolve();let ys=!1;function Nl(){ys||(ys=!0,Cl.then(ya))}function ms(n){yi.push(n)}const _s=new Set;let mi=0;function ya(){if(mi!==0)return;const n=Ki;do{try{for(;mi<vi.length;){const t=vi[mi];mi++,Zi(t),xl(t.$$)}}catch(t){throw vi.length=0,mi=0,t}for(Zi(null),vi.length=0,mi=0;vs.length;)vs.pop()();for(let t=0;t<yi.length;t+=1){const e=yi[t];_s.has(e)||(_s.add(e),e())}yi.length=0}while(vi.length);for(;va.length;)va.pop()();ys=!1,_s.clear(),Zi(n)}function xl(n){if(n.fragment!==null){n.update(),un(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(ms)}}function Sl(n){const t=[],e=[];yi.forEach(r=>n.indexOf(r)===-1?t.push(r):e.push(r)),e.forEach(r=>r()),yi=t}const Po=new Set;let Qn;function Ro(){Qn={r:0,c:[],p:Qn}}function Oo(){Qn.r||un(Qn.c),Qn=Qn.p}function Ft(n,t){n&&n.i&&(Po.delete(n),n.i(t))}function ee(n,t,e,r){if(n&&n.o){if(Po.has(n))return;Po.add(n),Qn.c.push(()=>{Po.delete(n),r&&(e&&n.d(1),r())}),n.o(t)}else r&&r()}function ma(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function wl(n,t){ee(n,1,1,()=>{t.delete(n.key)})}function Ll(n,t,e,r,i,o,s,a,u,l,c,f){let h=n.length,p=o.length,g=h;const v={};for(;g--;)v[n[g].key]=g;const d=[],_=new Map,C=new Map,E=[];for(g=p;g--;){const R=f(i,o,g),D=e(R);let L=s.get(D);L?r&&E.push(()=>L.p(R,t)):(L=l(D,R),L.c()),_.set(D,d[g]=L),D in v&&C.set(D,Math.abs(g-v[D]))}const S=new Set,w=new Set;function T(R){Ft(R,1),R.m(a,c),s.set(R.key,R),c=R.first,p--}for(;h&&p;){const R=d[p-1],D=n[h-1],L=R.key,A=D.key;R===D?(c=R.first,h--,p--):_.has(A)?!s.has(L)||S.has(L)?T(R):w.has(A)?h--:C.get(L)>C.get(A)?(w.add(L),T(R)):(S.add(A),h--):(u(D,s),h--)}for(;h--;){const R=n[h];_.has(R.key)||u(R,s)}for(;p;)T(d[p-1]);return un(E),d}function wn(n){n&&n.c()}function ln(n,t,e){const{fragment:r,after_update:i}=n.$$;r&&r.m(t,e),ms(()=>{const o=n.$$.on_mount.map(ua).filter(ca);n.$$.on_destroy?n.$$.on_destroy.push(...o):un(o),n.$$.on_mount=[]}),i.forEach(ms)}function cn(n,t){const e=n.$$;e.fragment!==null&&(Sl(e.after_update),un(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function bl(n,t){n.$$.dirty[0]===-1&&(vi.push(n),Nl(),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function Ln(n,t,e,r,i,o,s=null,a=[-1]){const u=Ki;Zi(n);const l=n.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(n,t.props||{},(f,h,...p)=>{const g=p.length?p[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=g)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](g),c&&bl(n,f)),h}):[],l.update(),c=!0,un(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=ml(t.target);l.fragment&&l.fragment.l(f),f.forEach(wt)}else l.fragment&&l.fragment.c();t.intro&&Ft(n.$$.fragment),ln(n,t.target,t.anchor),ya()}Zi(u)}class bn{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){cn(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!fl(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Pl="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pl);function Rl(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class _a extends bn{constructor(t){super(),Ln(this,t,null,Rl,xn,{})}}function Ol(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class Ea extends bn{constructor(t){super(),Ln(this,t,null,Ol,xn,{})}}function Tl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"area.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Dl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"poi.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Ml(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Al(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"street.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Fl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"road.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Bl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function kl(n){let t,e,r,i;return{c(){t=gt("img"),Me(t.src,e=n[5])||P(t,"src",e),P(t,"alt",n[4]),P(t,"class","svelte-ltkwvy")},m(o,s){Rt(o,t,s),r||(i=Ne(t,"error",n[13]),r=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&wt(t),r=!1,i()}}}function Ia(n){let t,e;return{c(){t=gt("span"),e=Sn(n[6]),P(t,"class","secondary svelte-ltkwvy")},m(r,i){Rt(r,t,i),rt(t,e)},p(r,i){i&64&&Qi(e,r[6])},d(r){r&&wt(t)}}}function Gl(n){var R,D;let t,e,r,i,o,s,a,u,l=n[0].place_name.replace(/,.*/,"")+"",c,f,h=n[2]==="always"||n[2]&&!n[0].address&&((R=n[0].properties)==null?void 0:R.kind)!=="road"&&((D=n[0].properties)==null?void 0:D.kind)!=="road_relation"&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5]),p,g,v=n[0].place_name.replace(/[^,]*,?\s*/,"")+"",d,_,C;function E(L,A){var Y,G;return A&1&&(e=null),A&1&&(r=null),A&1&&(i=null),L[5]?kl:L[0].address?Bl:((Y=L[0].properties)==null?void 0:Y.kind)==="road"||((G=L[0].properties)==null?void 0:G.kind)==="road_relation"?Fl:(e==null&&(e=!!L[0].id.startsWith("address.")),e?Al:(r==null&&(r=!!L[0].id.startsWith("postal_code.")),r?Ml:(i==null&&(i=!!L[0].id.startsWith("poi.")),i?Dl:Tl)))}let S=E(n,-1),w=S(n),T=h&&Ia(n);return{c(){t=gt("li"),w.c(),o=qe(),s=gt("span"),a=gt("span"),u=gt("span"),c=Sn(l),f=qe(),T&&T.c(),p=qe(),g=gt("span"),d=Sn(v),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(g,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",n[1]),P(t,"class","svelte-ltkwvy"),ir(t,"selected",n[1])},m(L,A){Rt(L,t,A),w.m(t,null),rt(t,o),rt(t,s),rt(s,a),rt(a,u),rt(u,c),rt(a,f),T&&T.m(a,null),rt(s,p),rt(s,g),rt(g,d),_||(C=[Ne(t,"mouseenter",n[11]),Ne(t,"focus",n[12])],_=!0)},p(L,[A]){var Y,G;S===(S=E(L,A))&&w?w.p(L,A):(w.d(1),w=S(L),w&&(w.c(),w.m(t,o))),A&1&&l!==(l=L[0].place_name.replace(/,.*/,"")+"")&&Qi(c,l),A&37&&(h=L[2]==="always"||L[2]&&!L[0].address&&((Y=L[0].properties)==null?void 0:Y.kind)!=="road"&&((G=L[0].properties)==null?void 0:G.kind)!=="road_relation"&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])),h?T?T.p(L,A):(T=Ia(L),T.c(),T.m(a,null)):T&&(T.d(1),T=null),A&1&&v!==(v=L[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Qi(d,v),A&2&&P(t,"data-selected",L[1]),A&2&&ir(t,"selected",L[1])},i:It,o:It,d(L){L&&wt(t),w.d(),T&&T.d(),_=!1,un(C)}}}function Vl(n,t,e){var C;let r,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(C=o.properties)==null?void 0:C.categories;let f,h,p=0;function g(E){h&&u.add(h),e(9,p++,p)}function v(E){da.call(this,n,E)}function d(E){da.call(this,n,E)}const _=E=>g(E.currentTarget);return n.$$set=E=>{"feature"in E&&e(0,o=E.feature),"selected"in E&&e(1,s=E.selected),"showPlaceType"in E&&e(2,a=E.showPlaceType),"missingIconsCache"in E&&e(8,u=E.missingIconsCache),"iconsBaseUrl"in E&&e(3,l=E.iconsBaseUrl)},n.$$.update=()=>{var E,S,w,T;if(n.$$.dirty&1848)do e(10,r--,r),e(4,f=c==null?void 0:c[r]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(r>-1&&(!h||u.has(h)));n.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(S=(E=o.properties)==null?void 0:E.categories)==null?void 0:S.join(", "):((T=(w=o.properties)==null?void 0:w.place_type_name)==null?void 0:T[0])??o.place_type[0])},e(10,r=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,p,r,v,d,_]}class zl extends bn{constructor(t){super(),Ln(this,t,Vl,Gl,xn,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}function Ul(n){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,r){Rt(e,t,r)},p:It,i:It,o:It,d(e){e&&wt(t)}}}class ql extends bn{constructor(t){super(),Ln(this,t,null,Ul,xn,{})}}function Xl(n){let t,e,r;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"stroke-width","4"),P(e,"d","M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"),P(e,"class","svelte-gzo3ar"),P(t,"width",r=n[0]==="list"?20:void 0),P(t,"viewBox","0 0 70 85"),P(t,"fill","none"),P(t,"class","svelte-gzo3ar"),ir(t,"in-map",n[0]!=="list"),ir(t,"list-icon",n[0]==="list")},m(i,o){Rt(i,t,o),rt(t,e)},p(i,[o]){o&1&&r!==(r=i[0]==="list"?20:void 0)&&P(t,"width",r),o&1&&ir(t,"in-map",i[0]!=="list"),o&1&&ir(t,"list-icon",i[0]==="list")},i:It,o:It,d(i){i&&wt(t)}}}function Yl(n,t,e){let{displayIn:r}=t;return n.$$set=i=>{"displayIn"in i&&e(0,r=i.displayIn)},[r]}class Hl extends bn{constructor(t){super(),Ln(this,t,Yl,Xl,xn,{displayIn:0})}}function Wl(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class jl extends bn{constructor(t){super(),Ln(this,t,null,Wl,xn,{})}}function Ql(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class Kl extends bn{constructor(t){super(),Ln(this,t,null,Ql,xn,{})}}function Zl(n,t,e){const r=t[1],i=t[0],o=r-i;return n===r&&e?n:((n-i)%o+o)%o+i}function Ca(n){const t=[...n];return t[2]<t[0]&&(t[2]+=360),t}let Ji;async function Jl(n,t,e){const r=n==null?void 0:n.getCenterAndZoom();for(const i of t??[])if(!(r&&(i.minZoom!=null&&i.minZoom>r[0]||i.maxZoom!=null&&i.maxZoom<r[0]))){if(i.type==="fixed")return i.coordinates.join(",");t:if(i.type==="client-geolocation"){if(Ji&&i.cachedLocationExpiry&&Ji.time+i.cachedLocationExpiry>Date.now()){if(!Ji.coords)break t;return Ji.coords}let o;try{return o=await new Promise((s,a)=>{e.signal.addEventListener("abort",()=>{a(Error("aborted"))}),navigator.geolocation.getCurrentPosition(u=>{s([u.coords.longitude,u.coords.latitude].map(l=>l.toFixed(6)).join(","))},u=>{a(u)},i)}),o}catch{}finally{i.cachedLocationExpiry&&(Ji={time:Date.now(),coords:o})}if(e.signal.aborted)return}if(i.type==="server-geolocation")return"ip";if(r&&i.type==="map-center")return r[1].toFixed(6)+","+r[2].toFixed(6)}}function Na(n,t,e){const r=n.slice();return r[78]=t[e],r[80]=e,r}function xa(n){let t,e;return t=new ql({}),{c(){wn(t.$$.fragment)},m(r,i){ln(t,r,i),e=!0},i(r){e||(Ft(t.$$.fragment,r),e=!0)},o(r){ee(t.$$.fragment,r),e=!1},d(r){cn(t,r)}}}function Sa(n){let t,e,r,i,o;return e=new jl({}),{c(){t=gt("button"),wn(e.$$.fragment),P(t,"type","button"),P(t,"title",n[9]),P(t,"class","svelte-1r7dvt7"),ir(t,"active",n[0])},m(s,a){Rt(s,t,a),ln(e,t,null),r=!0,i||(o=Ne(t,"click",n[64]),i=!0)},p(s,a){(!r||a[0]&512)&&P(t,"title",s[9]),(!r||a[0]&1)&&ir(t,"active",s[0])},i(s){r||(Ft(e.$$.fragment,s),r=!0)},o(s){ee(e.$$.fragment,s),r=!1},d(s){s&&wt(t),cn(e),i=!1,o()}}}function $l(n){let t,e=[],r=new Map,i,o,s,a=ma(n[13]);const u=l=>l[78].id+(l[78].address?","+l[78].address:"");for(let l=0;l<a.length;l+=1){let c=Na(n,a,l),f=u(c);r.set(f,e[l]=wa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){Rt(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ne(t,"mouseleave",n[68]),Ne(t,"blur",n[69])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Ro(),e=Ll(e,c,u,1,l,a,r,t,wl,wa,null,Na),Oo())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Ft(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)ee(e[c]);i=!1},d(l){l&&wt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,un(s)}}}function tc(n){let t,e,r,i,o,s;return e=new Ea({}),{c(){t=gt("div"),wn(e.$$.fragment),r=qe(),i=gt("div"),o=Sn(n[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){Rt(a,t,u),ln(e,t,null),rt(t,r),rt(t,i),rt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Qi(o,a[7])},i(a){s||(Ft(e.$$.fragment,a),s=!0)},o(a){ee(e.$$.fragment,a),s=!1},d(a){a&&wt(t),cn(e)}}}function ec(n){let t="",e;return{c(){e=Sn(t)},m(r,i){Rt(r,e,i)},p:It,i:It,o:It,d(r){r&&wt(e)}}}function rc(n){let t,e,r,i,o,s,a,u,l,c,f;return e=new Ea({}),u=new _a({}),{c(){t=gt("div"),wn(e.$$.fragment),r=qe(),i=gt("div"),o=Sn(n[6]),s=qe(),a=gt("button"),wn(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,p){Rt(h,t,p),ln(e,t,null),rt(t,r),rt(t,i),rt(i,o),rt(t,s),rt(t,a),ln(u,a,null),l=!0,c||(f=Ne(a,"click",n[65]),c=!0)},p(h,p){(!l||p[0]&64)&&Qi(o,h[6])},i(h){l||(Ft(e.$$.fragment,h),Ft(u.$$.fragment,h),l=!0)},o(h){ee(e.$$.fragment,h),ee(u.$$.fragment,h),l=!1},d(h){h&&wt(t),cn(e),cn(u),c=!1,f()}}}function wa(n,t){let e,r,i;function o(){return t[66](t[80])}function s(){return t[67](t[78])}return r=new zl({props:{feature:t[78],showPlaceType:t[10],selected:t[14]===t[80],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),r.$on("mouseenter",o),r.$on("focus",s),{key:n,first:null,c(){e=vl(),wn(r.$$.fragment),this.first=e},m(a,u){Rt(a,e,u),ln(r,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[78]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[80]),u[0]&2048&&(l.iconsBaseUrl=t[11]),r.$set(l)},i(a){i||(Ft(r.$$.fragment,a),i=!0)},o(a){ee(r.$$.fragment,a),i=!1},d(a){a&&wt(e),cn(r,a)}}}function nc(n){let t,e,r,i,o,s,a,u,l,c,f,h,p,g,v,d,_,C,E,S,w,T=!1;o=new Kl({}),f=new _a({});let R=n[18]&&xa(),D=n[5]===!0&&Sa(n);const L=n[56].default,A=hl(L,n,n[55],null),Y=[rc,ec,tc,$l],G=[];function st(N,k){var K,Et;return N[17]?0:N[15]?((K=N[13])==null?void 0:K.length)===0?2:N[15]&&((Et=N[13])!=null&&Et.length)?3:-1:1}return~(d=st(n))&&(_=G[d]=Y[d](n)),{c(){t=qe(),e=gt("form"),r=gt("div"),i=gt("button"),wn(o.$$.fragment),s=qe(),a=gt("input"),u=qe(),l=gt("div"),c=gt("button"),wn(f.$$.fragment),h=qe(),R&&R.c(),p=qe(),D&&D.c(),g=qe(),A&&A.c(),v=qe(),_&&_.c(),P(i,"class","search-button svelte-1r7dvt7"),P(i,"type","button"),P(a,"placeholder",n[8]),P(a,"aria-label",n[8]),P(a,"class","svelte-1r7dvt7"),P(c,"type","button"),P(c,"title",n[3]),P(c,"class","svelte-1r7dvt7"),P(l,"class","clear-button-container svelte-1r7dvt7"),ir(l,"displayable",n[1]!==""),P(r,"class","input-group svelte-1r7dvt7"),P(e,"tabindex","0"),P(e,"class",C=ha(n[2])+" svelte-1r7dvt7"),ir(e,"can-collapse",n[4]&&n[1]==="")},m(N,k){Rt(N,t,k),Rt(N,e,k),rt(e,r),rt(r,i),ln(o,i,null),rt(r,s),rt(r,a),n[58](a),ga(a,n[1]),rt(r,u),rt(r,l),rt(l,c),ln(f,c,null),rt(l,h),R&&R.m(l,null),rt(r,p),D&&D.m(r,null),rt(r,g),A&&A.m(r,null),rt(e,v),~d&&G[d].m(e,null),E=!0,S||(w=[Ne(i,"click",n[57]),Ne(a,"input",n[59]),Ne(a,"focus",n[60]),Ne(a,"blur",n[61]),Ne(a,"keydown",n[21]),Ne(a,"input",n[62]),Ne(c,"click",n[63]),Ne(e,"submit",yl(n[20]))],S=!0)},p(N,k){(!E||k[0]&256)&&P(a,"placeholder",N[8]),(!E||k[0]&256)&&P(a,"aria-label",N[8]),k[0]&2&&a.value!==N[1]&&ga(a,N[1]),(!E||k[0]&8)&&P(c,"title",N[3]),N[18]?R?k[0]&262144&&Ft(R,1):(R=xa(),R.c(),Ft(R,1),R.m(l,null)):R&&(Ro(),ee(R,1,1,()=>{R=null}),Oo()),(!E||k[0]&2)&&ir(l,"displayable",N[1]!==""),N[5]===!0?D?(D.p(N,k),k[0]&32&&Ft(D,1)):(D=Sa(N),D.c(),Ft(D,1),D.m(r,g)):D&&(Ro(),ee(D,1,1,()=>{D=null}),Oo()),A&&A.p&&(!E||k[1]&16777216)&&pl(A,L,N,N[55],E?gl(L,N[55],k,null):dl(N[55]),null);let K=d;d=st(N),d===K?~d&&G[d].p(N,k):(_&&(Ro(),ee(G[K],1,1,()=>{G[K]=null}),Oo()),~d?(_=G[d],_?_.p(N,k):(_=G[d]=Y[d](N),_.c()),Ft(_,1),_.m(e,null)):_=null),(!E||k[0]&4&&C!==(C=ha(N[2])+" svelte-1r7dvt7"))&&P(e,"class",C),(!E||k[0]&22)&&ir(e,"can-collapse",N[4]&&N[1]==="")},i(N){E||(Ft(T),Ft(o.$$.fragment,N),Ft(f.$$.fragment,N),Ft(R),Ft(D),Ft(A,N),Ft(_),E=!0)},o(N){ee(T),ee(o.$$.fragment,N),ee(f.$$.fragment,N),ee(R),ee(D),ee(A,N),ee(_),E=!1},d(N){N&&(wt(t),wt(e)),cn(o),n[58](null),cn(f),R&&R.d(),D&&D.d(),A&&A.d(N),~d&&G[d].d(),S=!1,un(w)}}}function ic(n,t,e){let r,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:p=200}=t,{enableReverse:g=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:d=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:C=!0}=t,{language:E=void 0}=t,{limit:S=void 0}=t,{mapController:w=void 0}=t,{minLength:T=2}=t,{noResultsMessage:R="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!"}=t,{placeholder:D="Search"}=t,{proximity:L=[{type:"server-geolocation"}]}=t,{reverseActive:A=g==="always"}=t,{reverseButtonTitle:Y="toggle reverse geocoding"}=t,{searchValue:G=""}=t,{showFullGeometry:st=!0}=t,{showPlaceType:N="ifNeeded"}=t,{showResultsWhileTyping:k=!0}=t,{types:K=void 0}=t,{excludeTypes:Et=!1}=t,{zoom:$t=16}=t,{maxZoom:fe=18}=t,{apiUrl:Nn="https://api.maptiler.com/geocoding"}=t,{fetchParameters:rr={}}=t,{iconsBaseUrl:rn="https://cdn.maptiler.com/maptiler-geocoding-control/v1.1.0/icons/"}=t,{adjustUrlQuery:nr=x=>{}}=t;function Hi(){nn.focus()}function Wn(){nn.blur()}function il(x,jt=!0){e(1,G=x),jt?(e(14,Vt=-1),sl()):(na(),setTimeout(()=>{nn.focus(),nn.select()}))}function Lf(){e(13,ct=void 0),e(52,it=void 0),e(14,Vt=-1)}function bf(){e(51,Ce=[]),e(52,it=void 0)}let Wi=!1,ct,Ce,it,ol="",nn,Vt=-1,on,fs=[],di,ji,hs,ea;const Pf=new Set,jn=Il();El(()=>{w&&(w.setEventHandler(void 0),w.indicateReverse(!1),w.setSelectedMarker(-1),w.setMarkers(void 0,void 0))});function sl(x){if(ji&&(clearTimeout(ji),ji=void 0),Vt>-1&&ct)e(52,it=ct[Vt]),e(1,G=it.place_name.replace(/,.*/,"")),e(17,on=void 0),e(51,Ce=void 0),e(14,Vt=-1);else if(G){const jt=x||!al();ra(G,{exact:!0}).then(()=>{e(51,Ce=ct),e(52,it=void 0),jt&&Rf()}).catch(sn=>e(17,on=sn))}}function al(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(G)}async function ra(x,{byId:jt=!1,exact:sn=!1}={}){e(17,on=void 0),di==null||di.abort();const an=new AbortController;e(18,di=an);try{const De=al(),xr=new URLSearchParams;if(E!==void 0&&xr.set("language",Array.isArray(E)?E.join(","):E??""),K&&xr.set("types",K.join(",")),Et&&xr.set("excludeTypes",String(Et)),u&&xr.set("bbox",u.map(ps=>ps.toFixed(6)).join(",")),h&&xr.set("country",Array.isArray(h)?h.join(","):h),!jt&&!De){const ps=await Jl(w,L,an);ps&&xr.set("proximity",ps),(sn||!k)&&xr.set("autocomplete","false"),xr.set("fuzzyMatch",String(C))}S!==void 0&&(!De||(K==null?void 0:K.length)===1)&&xr.set("limit",String(S)),xr.set("key",a),nr(xr);const gs=Nn+"/"+encodeURIComponent(x)+".json?"+xr.toString();if(gs===ol){jt?(e(13,ct=void 0),e(52,it=fs[0])):e(13,ct=fs);return}ol=gs;const ul=await fetch(gs,{signal:an.signal,...rr});if(!ul.ok)throw new Error;const oa=await ul.json();jn("response",{url:gs,featureCollection:oa}),jt?(e(13,ct=void 0),e(52,it=oa.features[0]),fs=[it]):(e(13,ct=oa.features.filter(d)),fs=ct,De&&nn.focus())}catch(De){if(De&&typeof De=="object"&&"name"in De&&De.name==="AbortError")return;throw De}finally{an===di&&e(18,di=void 0)}}function Rf(){var sn;if(!(Ce!=null&&Ce.length)||!_)return;const x=[180,90,-180,-90],jt=!Ce.some(an=>!an.matching_text);for(const an of Ce)if(jt||!an.matching_text)for(const De of[0,1,2,3])x[De]=Math[De<2?"min":"max"](x[De],((sn=an.bbox)==null?void 0:sn[De])??an.center[De%2]);w&&Ce.length>0&&(it&&x[0]===x[2]&&x[1]===x[3]?w.flyTo(it.center,$t):w.fitBounds(Ca(x),50,fe))}function Of(x){e(0,A=g==="always"),il(Zl(x[0],[-180,180],!0).toFixed(6)+","+x[1].toFixed(6))}function Tf(x){if(!ct)return;let jt=x.key==="ArrowDown"?1:x.key==="ArrowUp"?-1:0;jt?(Vt===-1&&jt===-1&&e(14,Vt=ct.length),e(14,Vt+=jt),Vt>=ct.length&&e(14,Vt=-1),x.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(x.key)&&e(14,Vt=-1)}function na(x=!0){if(e(17,on=void 0),k){if(ji&&clearTimeout(ji),G.length<T)return;const jt=G;ji=window.setTimeout(()=>{ra(jt).catch(sn=>e(17,on=sn))},x?p:0)}else e(13,ct=void 0),e(17,on=void 0)}function ia(x){e(52,it=x),e(1,G=x.place_name),e(14,Vt=-1)}const Df=()=>nn.focus();function Mf(x){vs[x?"unshift":"push"](()=>{nn=x,e(16,nn)})}function Af(){G=this.value,e(1,G),e(12,Wi),e(26,c)}const Ff=()=>e(12,Wi=!0),Bf=()=>e(12,Wi=!1),kf=()=>na(),Gf=()=>{e(1,G=""),nn.focus()},Vf=()=>e(0,A=!A),zf=()=>e(17,on=void 0),Uf=x=>e(14,Vt=x),qf=x=>ia(x),Xf=()=>e(14,Vt=-1),Yf=()=>{};return n.$$set=x=>{"class"in x&&e(2,s=x.class),"apiKey"in x&&e(24,a=x.apiKey),"bbox"in x&&e(25,u=x.bbox),"clearButtonTitle"in x&&e(3,l=x.clearButtonTitle),"clearOnBlur"in x&&e(26,c=x.clearOnBlur),"collapsed"in x&&e(4,f=x.collapsed),"country"in x&&e(27,h=x.country),"debounceSearch"in x&&e(28,p=x.debounceSearch),"enableReverse"in x&&e(5,g=x.enableReverse),"errorMessage"in x&&e(6,v=x.errorMessage),"filter"in x&&e(29,d=x.filter),"flyTo"in x&&e(30,_=x.flyTo),"fuzzyMatch"in x&&e(31,C=x.fuzzyMatch),"language"in x&&e(32,E=x.language),"limit"in x&&e(33,S=x.limit),"mapController"in x&&e(34,w=x.mapController),"minLength"in x&&e(35,T=x.minLength),"noResultsMessage"in x&&e(7,R=x.noResultsMessage),"placeholder"in x&&e(8,D=x.placeholder),"proximity"in x&&e(36,L=x.proximity),"reverseActive"in x&&e(0,A=x.reverseActive),"reverseButtonTitle"in x&&e(9,Y=x.reverseButtonTitle),"searchValue"in x&&e(1,G=x.searchValue),"showFullGeometry"in x&&e(37,st=x.showFullGeometry),"showPlaceType"in x&&e(10,N=x.showPlaceType),"showResultsWhileTyping"in x&&e(38,k=x.showResultsWhileTyping),"types"in x&&e(39,K=x.types),"excludeTypes"in x&&e(40,Et=x.excludeTypes),"zoom"in x&&e(41,$t=x.zoom),"maxZoom"in x&&e(42,fe=x.maxZoom),"apiUrl"in x&&e(43,Nn=x.apiUrl),"fetchParameters"in x&&e(44,rr=x.fetchParameters),"iconsBaseUrl"in x&&e(11,rn=x.iconsBaseUrl),"adjustUrlQuery"in x&&e(45,nr=x.adjustUrlQuery),"$$scope"in x&&e(55,o=x.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&67112960&&setTimeout(()=>{e(15,hs=Wi),c&&!Wi&&e(1,G="")}),n.$$.dirty[0]&8194|n.$$.dirty[1]&16&&G.length<T&&(e(52,it=void 0),e(13,ct=void 0),e(17,on=void 0),e(51,Ce=ct)),n.$$.dirty[1]&2097216&&st&&it&&!it.address&&it.geometry.type==="Point"&&ra(it.id,{byId:!0}).catch(x=>e(17,on=x)),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&6294536&&(w&&it&&it.id!==ea&&_&&(!it.bbox||it.bbox[0]===it.bbox[2]&&it.bbox[1]===it.bbox[3]?w.flyTo(it.center,it.id.startsWith("poi.")||it.id.startsWith("address.")?fe:$t):w.fitBounds(Ca(it.bbox),50,fe),e(13,ct=void 0),e(51,Ce=void 0),e(14,Vt=-1)),e(53,ea=it==null?void 0:it.id)),n.$$.dirty[0]&8192|n.$$.dirty[1]&1048576&&Ce!==ct&&e(51,Ce=void 0),n.$$.dirty[1]&3145736&&w&&w.setMarkers(Ce,it),n.$$.dirty[0]&2&&e(14,Vt=-1),n.$$.dirty[0]&40961|n.$$.dirty[1]&8&&w&&w.setEventHandler(x=>{switch(x.type){case"mapClick":A&&Of(x.coordinates);break;case"markerClick":{const jt=ct==null?void 0:ct.find(sn=>sn.id===x.id);jt&&ia(jt)}break;case"markerMouseEnter":e(14,Vt=hs?(ct==null?void 0:ct.findIndex(jt=>jt.id===x.id))??-1:-1);break;case"markerMouseLeave":e(14,Vt=-1);break}}),n.$$.dirty[0]&16384|n.$$.dirty[1]&8&&(w==null||w.setSelectedMarker(Vt)),n.$$.dirty[0]&24576&&e(54,r=ct==null?void 0:ct[Vt]),n.$$.dirty[0]&2|n.$$.dirty[1]&8){const x=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(G);w==null||w.setReverseMarker(x?[Number(x[1]),Number(x[2])]:void 0)}n.$$.dirty[1]&8388608&&jn("select",r),n.$$.dirty[1]&2097152&&jn("pick",it),n.$$.dirty[0]&40960&&jn("optionsVisibilityChange",hs&&!!ct),n.$$.dirty[0]&8192&&jn("featuresListed",ct),n.$$.dirty[1]&1048576&&jn("featuresMarked",Ce),n.$$.dirty[0]&1&&jn("reverseToggle",A),n.$$.dirty[0]&2&&jn("queryChange",G),n.$$.dirty[0]&1|n.$$.dirty[1]&8&&w&&w.indicateReverse(A)},[A,G,s,l,f,g,v,R,D,Y,N,rn,Wi,ct,Vt,hs,nn,on,di,Pf,sl,Tf,na,ia,a,u,c,h,p,d,_,C,E,S,w,T,L,st,k,K,Et,$t,fe,Nn,rr,nr,Hi,Wn,il,Lf,bf,Ce,it,ea,r,o,i,Df,Mf,Af,Ff,Bf,kf,Gf,Vf,zf,Uf,qf,Xf,Yf]}let oc=class extends bn{constructor(t){super(),Ln(this,t,ic,nc,xn,{class:2,apiKey:24,bbox:25,clearButtonTitle:3,clearOnBlur:26,collapsed:4,country:27,debounceSearch:28,enableReverse:5,errorMessage:6,filter:29,flyTo:30,fuzzyMatch:31,language:32,limit:33,mapController:34,minLength:35,noResultsMessage:7,placeholder:8,proximity:36,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,types:39,excludeTypes:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,adjustUrlQuery:45,focus:46,blur:47,setQuery:48,clearList:49,clearMap:50},null,[-1,-1,-1])}get focus(){return this.$$.ctx[46]}get blur(){return this.$$.ctx[47]}get setQuery(){return this.$$.ctx[48]}get clearList(){return this.$$.ctx[49]}get clearMap(){return this.$$.ctx[50]}};/**
|
|
1
|
+
(function(ft,vt){typeof exports=="object"&&typeof module<"u"?vt(exports,require("maplibre-gl")):typeof define=="function"&&define.amd?define(["exports","maplibre-gl"],vt):(ft=typeof globalThis<"u"?globalThis:ft||self,vt(ft.maplibreglMaptilerGeocoder={},ft.maplibregl))})(this,function(ft,vt){"use strict";var Hf=Object.defineProperty;var Wf=(ft,vt,te)=>vt in ft?Hf(ft,vt,{enumerable:!0,configurable:!0,writable:!0,value:te}):ft[vt]=te;var sa=(ft,vt,te)=>(Wf(ft,typeof vt!="symbol"?vt+"":vt,te),te),ll=(ft,vt,te)=>{if(!vt.has(ft))throw TypeError("Cannot "+te)};var Sr=(ft,vt,te)=>(ll(ft,vt,"read from private field"),te?te.call(ft):vt.get(ft)),aa=(ft,vt,te)=>{if(vt.has(ft))throw TypeError("Cannot add the same private member more than once");vt instanceof WeakSet?vt.add(ft):vt.set(ft,te)},ds=(ft,vt,te,Lo)=>(ll(ft,vt,"write to private field"),Lo?Lo.call(ft,te):vt.set(ft,te),te);var er,pi;function te(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>n[e]})}}return t.default=n,Object.freeze(t)}const Lo=te(vt);function It(){}function cl(n,t){for(const e in t)n[e]=t[e];return n}function ua(n){return n()}function la(){return Object.create(null)}function un(n){n.forEach(ua)}function ca(n){return typeof n=="function"}function xn(n,t){return n!=n?t==t:n!==t||n&&typeof n=="object"||typeof n=="function"}let bo;function Me(n,t){return n===t?!0:(bo||(bo=document.createElement("a")),bo.href=t,n===bo.href)}function fl(n){return Object.keys(n).length===0}function hl(n,t,e,r){if(n){const i=fa(n,t,e,r);return n[0](i)}}function fa(n,t,e,r){return n[1]&&r?cl(e.ctx.slice(),n[1](r(t))):e.ctx}function gl(n,t,e,r){if(n[2]&&r){const i=n[2](r(e));if(t.dirty===void 0)return i;if(typeof i=="object"){const o=[],s=Math.max(t.dirty.length,i.length);for(let a=0;a<s;a+=1)o[a]=t.dirty[a]|i[a];return o}return t.dirty|i}return t.dirty}function pl(n,t,e,r,i,o){if(i){const s=fa(t,e,r,o);n.p(s,i)}}function dl(n){if(n.ctx.length>32){const t=[],e=n.ctx.length/32;for(let r=0;r<e;r++)t[r]=-1;return t}return-1}function ha(n){return n??""}function rt(n,t){n.appendChild(t)}function Rt(n,t,e){n.insertBefore(t,e||null)}function wt(n){n.parentNode&&n.parentNode.removeChild(n)}function gt(n){return document.createElement(n)}function Vr(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function Sn(n){return document.createTextNode(n)}function qe(){return Sn(" ")}function vl(){return Sn("")}function Ne(n,t,e,r){return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}function yl(n){return function(t){return t.preventDefault(),n.call(this,t)}}function P(n,t,e){e==null?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}function ml(n){return Array.from(n.childNodes)}function Qi(n,t){t=""+t,n.data!==t&&(n.data=t)}function ga(n,t){n.value=t??""}function ir(n,t,e){n.classList.toggle(t,!!e)}function _l(n,t,{bubbles:e=!1,cancelable:r=!1}={}){return new CustomEvent(n,{detail:t,bubbles:e,cancelable:r})}let Ki;function Zi(n){Ki=n}function pa(){if(!Ki)throw new Error("Function called outside component initialization");return Ki}function El(n){pa().$$.on_destroy.push(n)}function Il(){const n=pa();return(t,e,{cancelable:r=!1}={})=>{const i=n.$$.callbacks[t];if(i){const o=_l(t,e,{cancelable:r});return i.slice().forEach(s=>{s.call(n,o)}),!o.defaultPrevented}return!0}}function da(n,t){const e=n.$$.callbacks[t.type];e&&e.slice().forEach(r=>r.call(this,t))}const vi=[],vs=[];let yi=[];const va=[],Cl=Promise.resolve();let ys=!1;function Nl(){ys||(ys=!0,Cl.then(ya))}function ms(n){yi.push(n)}const _s=new Set;let mi=0;function ya(){if(mi!==0)return;const n=Ki;do{try{for(;mi<vi.length;){const t=vi[mi];mi++,Zi(t),xl(t.$$)}}catch(t){throw vi.length=0,mi=0,t}for(Zi(null),vi.length=0,mi=0;vs.length;)vs.pop()();for(let t=0;t<yi.length;t+=1){const e=yi[t];_s.has(e)||(_s.add(e),e())}yi.length=0}while(vi.length);for(;va.length;)va.pop()();ys=!1,_s.clear(),Zi(n)}function xl(n){if(n.fragment!==null){n.update(),un(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(ms)}}function Sl(n){const t=[],e=[];yi.forEach(r=>n.indexOf(r)===-1?t.push(r):e.push(r)),e.forEach(r=>r()),yi=t}const Po=new Set;let Qn;function Ro(){Qn={r:0,c:[],p:Qn}}function Oo(){Qn.r||un(Qn.c),Qn=Qn.p}function Ft(n,t){n&&n.i&&(Po.delete(n),n.i(t))}function ee(n,t,e,r){if(n&&n.o){if(Po.has(n))return;Po.add(n),Qn.c.push(()=>{Po.delete(n),r&&(e&&n.d(1),r())}),n.o(t)}else r&&r()}function ma(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function wl(n,t){ee(n,1,1,()=>{t.delete(n.key)})}function Ll(n,t,e,r,i,o,s,a,u,l,c,f){let h=n.length,p=o.length,g=h;const v={};for(;g--;)v[n[g].key]=g;const d=[],_=new Map,C=new Map,E=[];for(g=p;g--;){const R=f(i,o,g),D=e(R);let L=s.get(D);L?r&&E.push(()=>L.p(R,t)):(L=l(D,R),L.c()),_.set(D,d[g]=L),D in v&&C.set(D,Math.abs(g-v[D]))}const S=new Set,w=new Set;function T(R){Ft(R,1),R.m(a,c),s.set(R.key,R),c=R.first,p--}for(;h&&p;){const R=d[p-1],D=n[h-1],L=R.key,A=D.key;R===D?(c=R.first,h--,p--):_.has(A)?!s.has(L)||S.has(L)?T(R):w.has(A)?h--:C.get(L)>C.get(A)?(w.add(L),T(R)):(S.add(A),h--):(u(D,s),h--)}for(;h--;){const R=n[h];_.has(R.key)||u(R,s)}for(;p;)T(d[p-1]);return un(E),d}function wn(n){n&&n.c()}function ln(n,t,e){const{fragment:r,after_update:i}=n.$$;r&&r.m(t,e),ms(()=>{const o=n.$$.on_mount.map(ua).filter(ca);n.$$.on_destroy?n.$$.on_destroy.push(...o):un(o),n.$$.on_mount=[]}),i.forEach(ms)}function cn(n,t){const e=n.$$;e.fragment!==null&&(Sl(e.after_update),un(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])}function bl(n,t){n.$$.dirty[0]===-1&&(vi.push(n),Nl(),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}function Ln(n,t,e,r,i,o,s=null,a=[-1]){const u=Ki;Zi(n);const l=n.$$={fragment:null,ctx:[],props:o,update:It,not_equal:i,bound:la(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:la(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};s&&s(l.root);let c=!1;if(l.ctx=e?e(n,t.props||{},(f,h,...p)=>{const g=p.length?p[0]:h;return l.ctx&&i(l.ctx[f],l.ctx[f]=g)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](g),c&&bl(n,f)),h}):[],l.update(),c=!0,un(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const f=ml(t.target);l.fragment&&l.fragment.l(f),f.forEach(wt)}else l.fragment&&l.fragment.c();t.intro&&Ft(n.$$.fragment),ln(n,t.target,t.anchor),ya()}Zi(u)}class bn{constructor(){sa(this,"$$");sa(this,"$$set")}$destroy(){cn(this,1),this.$destroy=It}$on(t,e){if(!ca(e))return It;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!fl(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Pl="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Pl);function Rl(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M13.12.706a.982.982 0 0 0-1.391 0L6.907 5.517 2.087.696a.982.982 0 1 0-1.391 1.39l4.821 4.821L.696 11.73a.982.982 0 1 0 1.39 1.39l4.821-4.821 4.822 4.821a.982.982 0 1 0 1.39-1.39L8.298 6.908l4.821-4.822a.988.988 0 0 0 0-1.38Z"),P(t,"viewBox","0 0 14 14"),P(t,"width","13"),P(t,"height","13"),P(t,"class","svelte-en2qvf")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class _a extends bn{constructor(t){super(),Ln(this,t,null,Rl,xn,{})}}function Ol(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M15 0C6.705 0 0 6.705 0 15C0 23.295 6.705 30 15 30C23.295 30 30 23.295 30 15C30 6.705 23.295 0 15 0ZM22.5 20.385L20.385 22.5L15 17.115L9.615 22.5L7.5 20.385L12.885 15L7.5 9.615L9.615 7.5L15 12.885L20.385 7.5L22.5 9.615L17.115 15L22.5 20.385Z"),P(t,"viewBox","0 0 30 30"),P(t,"fill","none"),P(t,"xmlns","http://www.w3.org/2000/svg"),P(t,"class","svelte-d2loi5")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class Ea extends bn{constructor(t){super(),Ln(this,t,null,Ol,xn,{})}}function Tl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"area.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"area.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Dl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"poi.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"poi.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Ml(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"postal_code.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"postal_code.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Al(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"street.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"street.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Fl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"road.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"road.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function Bl(n){let t,e;return{c(){t=gt("img"),Me(t.src,e=n[3]+"housenumber.svg")||P(t,"src",e),P(t,"alt",n[6]),P(t,"class","svelte-ltkwvy")},m(r,i){Rt(r,t,i)},p(r,i){i&8&&!Me(t.src,e=r[3]+"housenumber.svg")&&P(t,"src",e),i&64&&P(t,"alt",r[6])},d(r){r&&wt(t)}}}function kl(n){let t,e,r,i;return{c(){t=gt("img"),Me(t.src,e=n[5])||P(t,"src",e),P(t,"alt",n[4]),P(t,"class","svelte-ltkwvy")},m(o,s){Rt(o,t,s),r||(i=Ne(t,"error",n[13]),r=!0)},p(o,s){s&32&&!Me(t.src,e=o[5])&&P(t,"src",e),s&16&&P(t,"alt",o[4])},d(o){o&&wt(t),r=!1,i()}}}function Ia(n){let t,e;return{c(){t=gt("span"),e=Sn(n[6]),P(t,"class","secondary svelte-ltkwvy")},m(r,i){Rt(r,t,i),rt(t,e)},p(r,i){i&64&&Qi(e,r[6])},d(r){r&&wt(t)}}}function Gl(n){var R,D;let t,e,r,i,o,s,a,u,l=n[0].place_name.replace(/,.*/,"")+"",c,f,h=n[2]==="always"||n[2]&&!n[0].address&&((R=n[0].properties)==null?void 0:R.kind)!=="road"&&((D=n[0].properties)==null?void 0:D.kind)!=="road_relation"&&!n[0].id.startsWith("address.")&&!n[0].id.startsWith("postal_code.")&&(!n[0].id.startsWith("poi.")||!n[5]),p,g,v=n[0].place_name.replace(/[^,]*,?\s*/,"")+"",d,_,C;function E(L,A){var Y,G;return A&1&&(e=null),A&1&&(r=null),A&1&&(i=null),L[5]?kl:L[0].address?Bl:((Y=L[0].properties)==null?void 0:Y.kind)==="road"||((G=L[0].properties)==null?void 0:G.kind)==="road_relation"?Fl:(e==null&&(e=!!L[0].id.startsWith("address.")),e?Al:(r==null&&(r=!!L[0].id.startsWith("postal_code.")),r?Ml:(i==null&&(i=!!L[0].id.startsWith("poi.")),i?Dl:Tl)))}let S=E(n,-1),w=S(n),T=h&&Ia(n);return{c(){t=gt("li"),w.c(),o=qe(),s=gt("span"),a=gt("span"),u=gt("span"),c=Sn(l),f=qe(),T&&T.c(),p=qe(),g=gt("span"),d=Sn(v),P(u,"class","primary svelte-ltkwvy"),P(a,"class","svelte-ltkwvy"),P(g,"class","line2 svelte-ltkwvy"),P(s,"class","texts svelte-ltkwvy"),P(t,"tabindex","0"),P(t,"data-selected",n[1]),P(t,"class","svelte-ltkwvy"),ir(t,"selected",n[1])},m(L,A){Rt(L,t,A),w.m(t,null),rt(t,o),rt(t,s),rt(s,a),rt(a,u),rt(u,c),rt(a,f),T&&T.m(a,null),rt(s,p),rt(s,g),rt(g,d),_||(C=[Ne(t,"mouseenter",n[11]),Ne(t,"focus",n[12])],_=!0)},p(L,[A]){var Y,G;S===(S=E(L,A))&&w?w.p(L,A):(w.d(1),w=S(L),w&&(w.c(),w.m(t,o))),A&1&&l!==(l=L[0].place_name.replace(/,.*/,"")+"")&&Qi(c,l),A&37&&(h=L[2]==="always"||L[2]&&!L[0].address&&((Y=L[0].properties)==null?void 0:Y.kind)!=="road"&&((G=L[0].properties)==null?void 0:G.kind)!=="road_relation"&&!L[0].id.startsWith("address.")&&!L[0].id.startsWith("postal_code.")&&(!L[0].id.startsWith("poi.")||!L[5])),h?T?T.p(L,A):(T=Ia(L),T.c(),T.m(a,null)):T&&(T.d(1),T=null),A&1&&v!==(v=L[0].place_name.replace(/[^,]*,?\s*/,"")+"")&&Qi(d,v),A&2&&P(t,"data-selected",L[1]),A&2&&ir(t,"selected",L[1])},i:It,o:It,d(L){L&&wt(t),w.d(),T&&T.d(),_=!1,un(C)}}}function Vl(n,t,e){var C;let r,i,{feature:o}=t,{selected:s=!1}=t,{showPlaceType:a}=t,{missingIconsCache:u}=t,{iconsBaseUrl:l}=t;const c=(C=o.properties)==null?void 0:C.categories;let f,h,p=0;function g(E){h&&u.add(h),e(9,p++,p)}function v(E){da.call(this,n,E)}function d(E){da.call(this,n,E)}const _=E=>g(E.currentTarget);return n.$$set=E=>{"feature"in E&&e(0,o=E.feature),"selected"in E&&e(1,s=E.selected),"showPlaceType"in E&&e(2,a=E.showPlaceType),"missingIconsCache"in E&&e(8,u=E.missingIconsCache),"iconsBaseUrl"in E&&e(3,l=E.iconsBaseUrl)},n.$$.update=()=>{var E,S,w,T;if(n.$$.dirty&1848)do e(10,r--,r),e(4,f=c==null?void 0:c[r]),e(5,h=f?l+f.replace(/ /g,"_")+".svg":void 0);while(r>-1&&(!h||u.has(h)));n.$$.dirty&1&&e(6,i=o.id.startsWith("poi.")?(S=(E=o.properties)==null?void 0:E.categories)==null?void 0:S.join(", "):((T=(w=o.properties)==null?void 0:w.place_type_name)==null?void 0:T[0])??o.place_type[0])},e(10,r=(c==null?void 0:c.length)??0),[o,s,a,l,f,h,i,g,u,p,r,v,d,_]}class zl extends bn{constructor(t){super(),Ln(this,t,Vl,Gl,xn,{feature:0,selected:1,showPlaceType:2,missingIconsCache:8,iconsBaseUrl:3})}}function Ul(n){let t;return{c(){t=gt("div"),t.innerHTML='<svg viewBox="0 0 18 18" width="24" height="24" class="svelte-7cmwmc"><path fill="#333" d="M4.4 4.4l.8.8c2.1-2.1 5.5-2.1 7.6 0l.8-.8c-2.5-2.5-6.7-2.5-9.2 0z"></path><path opacity=".1" d="M12.8 12.9c-2.1 2.1-5.5 2.1-7.6 0-2.1-2.1-2.1-5.5 0-7.7l-.8-.8c-2.5 2.5-2.5 6.7 0 9.2s6.6 2.5 9.2 0 2.5-6.6 0-9.2l-.8.8c2.2 2.1 2.2 5.6 0 7.7z"></path></svg>',P(t,"class","svelte-7cmwmc")},m(e,r){Rt(e,t,r)},p:It,i:It,o:It,d(e){e&&wt(t)}}}class ql extends bn{constructor(t){super(),Ln(this,t,null,Ul,xn,{})}}function Xl(n){let t,e,r;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"stroke-width","4"),P(e,"d","M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"),P(e,"class","svelte-gzo3ar"),P(t,"width",r=n[0]==="list"?20:void 0),P(t,"viewBox","0 0 70 85"),P(t,"fill","none"),P(t,"class","svelte-gzo3ar"),ir(t,"in-map",n[0]!=="list"),ir(t,"list-icon",n[0]==="list")},m(i,o){Rt(i,t,o),rt(t,e)},p(i,[o]){o&1&&r!==(r=i[0]==="list"?20:void 0)&&P(t,"width",r),o&1&&ir(t,"in-map",i[0]!=="list"),o&1&&ir(t,"list-icon",i[0]==="list")},i:It,o:It,d(i){i&&wt(t)}}}function Yl(n,t,e){let{displayIn:r}=t;return n.$$set=i=>{"displayIn"in i&&e(0,r=i.displayIn)},[r]}class Hl extends bn{constructor(t){super(),Ln(this,t,Yl,Xl,xn,{displayIn:0})}}function Wl(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M30.003-26.765C13.46-26.765 0-14.158 0 1.337c0 23.286 24.535 42.952 28.39 46.04.24.192.402.316.471.376.323.282.732.424 1.142.424.41 0 .82-.142 1.142-.424.068-.06.231-.183.471-.376 3.856-3.09 28.39-22.754 28.39-46.04 0-15.495-13.46-28.102-30.003-28.102Zm1.757 12.469c4.38 0 7.858 1.052 10.431 3.158 2.595 2.105 3.89 4.913 3.89 8.422 0 2.34-.53 4.362-1.593 6.063-1.063 1.702-3.086 3.616-6.063 5.742-2.042 1.51-3.337 2.659-3.89 3.446-.532.787-.8 1.82-.8 3.096v1.914h-8.449V15.18c0-2.041.434-3.815 1.306-5.325.872-1.51 2.467-3.118 4.785-4.82 2.233-1.594 3.7-2.89 4.402-3.889a5.582 5.582 0 0 0 1.087-3.35c0-1.382-.51-2.435-1.531-3.158-1.02-.723-2.45-1.087-4.28-1.087-3.19 0-6.826 1.047-10.91 3.131l-3.472-6.986c4.742-2.659 9.77-3.992 15.087-3.992Zm-1.88 37.324c1.765 0 3.124.472 4.08 1.408.98.936 1.47 2.276 1.47 4.02 0 1.68-.49 3.007-1.47 3.985-.977.957-2.336 1.435-4.08 1.435-1.787 0-3.171-.465-4.15-1.4-.978-.958-1.47-2.298-1.47-4.02 0-1.787.48-3.14 1.436-4.054.957-.915 2.355-1.374 4.184-1.374Z"),P(t,"viewBox","0 0 60.006 21.412"),P(t,"width","14"),P(t,"height","20"),P(t,"class","svelte-en2qvf")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class jl extends bn{constructor(t){super(),Ln(this,t,null,Wl,xn,{})}}function Ql(n){let t,e;return{c(){t=Vr("svg"),e=Vr("path"),P(e,"d","M13.101 14.261 8.74 9.899a4.797 4.797 0 0 1-1.425.748 5.165 5.165 0 0 1-1.603.248c-1.446 0-2.677-.5-3.693-1.503S.495 7.164.495 5.717c0-1.446.508-2.678 1.524-3.693C3.035 1.008 4.266.5 5.712.5c1.448 0 2.672.508 3.675 1.524 1.002 1.015 1.503 2.247 1.503 3.693 0 .558-.08 1.092-.239 1.603-.159.512-.411.98-.757 1.405l4.382 4.4a.74.74 0 0 1 .229.568.81.81 0 0 1-.249.568.787.787 0 0 1-.577.239.787.787 0 0 1-.578-.239ZM5.712 9.223c.97 0 1.796-.342 2.48-1.026a3.378 3.378 0 0 0 1.026-2.48c0-.982-.34-1.818-1.016-2.509-.677-.69-1.507-1.035-2.49-1.035a3.42 3.42 0 0 0-2.509 1.035 3.42 3.42 0 0 0-1.035 2.51c0 .982.345 1.812 1.035 2.488.691.678 1.527 1.017 2.51 1.017Z"),P(t,"width","14"),P(t,"height","14"),P(t,"viewBox","0 0 15 15"),P(t,"class","svelte-en2qvf")},m(r,i){Rt(r,t,i),rt(t,e)},p:It,i:It,o:It,d(r){r&&wt(t)}}}class Kl extends bn{constructor(t){super(),Ln(this,t,null,Ql,xn,{})}}function Zl(n,t,e){const r=t[1],i=t[0],o=r-i;return n===r&&e?n:((n-i)%o+o)%o+i}function Ca(n){const t=[...n];return t[2]<t[0]&&(t[2]+=360),t}let Ji;async function Jl(n,t,e){const r=n==null?void 0:n.getCenterAndZoom();for(const i of t??[])if(!(r&&(i.minZoom!=null&&i.minZoom>r[0]||i.maxZoom!=null&&i.maxZoom<r[0]))){if(i.type==="fixed")return i.coordinates.join(",");t:if(i.type==="client-geolocation"){if(Ji&&i.cachedLocationExpiry&&Ji.time+i.cachedLocationExpiry>Date.now()){if(!Ji.coords)break t;return Ji.coords}let o;try{return o=await new Promise((s,a)=>{e.signal.addEventListener("abort",()=>{a(Error("aborted"))}),navigator.geolocation.getCurrentPosition(u=>{s([u.coords.longitude,u.coords.latitude].map(l=>l.toFixed(6)).join(","))},u=>{a(u)},i)}),o}catch{}finally{i.cachedLocationExpiry&&(Ji={time:Date.now(),coords:o})}if(e.signal.aborted)return}if(i.type==="server-geolocation")return"ip";if(r&&i.type==="map-center")return r[1].toFixed(6)+","+r[2].toFixed(6)}}function Na(n,t,e){const r=n.slice();return r[78]=t[e],r[80]=e,r}function xa(n){let t,e;return t=new ql({}),{c(){wn(t.$$.fragment)},m(r,i){ln(t,r,i),e=!0},i(r){e||(Ft(t.$$.fragment,r),e=!0)},o(r){ee(t.$$.fragment,r),e=!1},d(r){cn(t,r)}}}function Sa(n){let t,e,r,i,o;return e=new jl({}),{c(){t=gt("button"),wn(e.$$.fragment),P(t,"type","button"),P(t,"title",n[9]),P(t,"class","svelte-1r7dvt7"),ir(t,"active",n[0])},m(s,a){Rt(s,t,a),ln(e,t,null),r=!0,i||(o=Ne(t,"click",n[64]),i=!0)},p(s,a){(!r||a[0]&512)&&P(t,"title",s[9]),(!r||a[0]&1)&&ir(t,"active",s[0])},i(s){r||(Ft(e.$$.fragment,s),r=!0)},o(s){ee(e.$$.fragment,s),r=!1},d(s){s&&wt(t),cn(e),i=!1,o()}}}function $l(n){let t,e=[],r=new Map,i,o,s,a=ma(n[13]);const u=l=>l[78].id+(l[78].address?","+l[78].address:"");for(let l=0;l<a.length;l+=1){let c=Na(n,a,l),f=u(c);r.set(f,e[l]=wa(f,c))}return{c(){t=gt("ul");for(let l=0;l<e.length;l+=1)e[l].c();P(t,"class","svelte-1r7dvt7")},m(l,c){Rt(l,t,c);for(let f=0;f<e.length;f+=1)e[f]&&e[f].m(t,null);i=!0,o||(s=[Ne(t,"mouseleave",n[68]),Ne(t,"blur",n[69])],o=!0)},p(l,c){c[0]&8940544&&(a=ma(l[13]),Ro(),e=Ll(e,c,u,1,l,a,r,t,wl,wa,null,Na),Oo())},i(l){if(!i){for(let c=0;c<a.length;c+=1)Ft(e[c]);i=!0}},o(l){for(let c=0;c<e.length;c+=1)ee(e[c]);i=!1},d(l){l&&wt(t);for(let c=0;c<e.length;c+=1)e[c].d();o=!1,un(s)}}}function tc(n){let t,e,r,i,o,s;return e=new Ea({}),{c(){t=gt("div"),wn(e.$$.fragment),r=qe(),i=gt("div"),o=Sn(n[7]),P(i,"class","svelte-1r7dvt7"),P(t,"class","no-results svelte-1r7dvt7")},m(a,u){Rt(a,t,u),ln(e,t,null),rt(t,r),rt(t,i),rt(i,o),s=!0},p(a,u){(!s||u[0]&128)&&Qi(o,a[7])},i(a){s||(Ft(e.$$.fragment,a),s=!0)},o(a){ee(e.$$.fragment,a),s=!1},d(a){a&&wt(t),cn(e)}}}function ec(n){let t="",e;return{c(){e=Sn(t)},m(r,i){Rt(r,e,i)},p:It,i:It,o:It,d(r){r&&wt(e)}}}function rc(n){let t,e,r,i,o,s,a,u,l,c,f;return e=new Ea({}),u=new _a({}),{c(){t=gt("div"),wn(e.$$.fragment),r=qe(),i=gt("div"),o=Sn(n[6]),s=qe(),a=gt("button"),wn(u.$$.fragment),P(i,"class","svelte-1r7dvt7"),P(a,"class","svelte-1r7dvt7"),P(t,"class","error svelte-1r7dvt7")},m(h,p){Rt(h,t,p),ln(e,t,null),rt(t,r),rt(t,i),rt(i,o),rt(t,s),rt(t,a),ln(u,a,null),l=!0,c||(f=Ne(a,"click",n[65]),c=!0)},p(h,p){(!l||p[0]&64)&&Qi(o,h[6])},i(h){l||(Ft(e.$$.fragment,h),Ft(u.$$.fragment,h),l=!0)},o(h){ee(e.$$.fragment,h),ee(u.$$.fragment,h),l=!1},d(h){h&&wt(t),cn(e),cn(u),c=!1,f()}}}function wa(n,t){let e,r,i;function o(){return t[66](t[80])}function s(){return t[67](t[78])}return r=new zl({props:{feature:t[78],showPlaceType:t[10],selected:t[14]===t[80],missingIconsCache:t[19],iconsBaseUrl:t[11]}}),r.$on("mouseenter",o),r.$on("focus",s),{key:n,first:null,c(){e=vl(),wn(r.$$.fragment),this.first=e},m(a,u){Rt(a,e,u),ln(r,a,u),i=!0},p(a,u){t=a;const l={};u[0]&8192&&(l.feature=t[78]),u[0]&1024&&(l.showPlaceType=t[10]),u[0]&24576&&(l.selected=t[14]===t[80]),u[0]&2048&&(l.iconsBaseUrl=t[11]),r.$set(l)},i(a){i||(Ft(r.$$.fragment,a),i=!0)},o(a){ee(r.$$.fragment,a),i=!1},d(a){a&&wt(e),cn(r,a)}}}function nc(n){let t,e,r,i,o,s,a,u,l,c,f,h,p,g,v,d,_,C,E,S,w,T=!1;o=new Kl({}),f=new _a({});let R=n[18]&&xa(),D=n[5]===!0&&Sa(n);const L=n[56].default,A=hl(L,n,n[55],null),Y=[rc,ec,tc,$l],G=[];function st(N,k){var K,Et;return N[17]?0:N[15]?((K=N[13])==null?void 0:K.length)===0?2:N[15]&&((Et=N[13])!=null&&Et.length)?3:-1:1}return~(d=st(n))&&(_=G[d]=Y[d](n)),{c(){t=qe(),e=gt("form"),r=gt("div"),i=gt("button"),wn(o.$$.fragment),s=qe(),a=gt("input"),u=qe(),l=gt("div"),c=gt("button"),wn(f.$$.fragment),h=qe(),R&&R.c(),p=qe(),D&&D.c(),g=qe(),A&&A.c(),v=qe(),_&&_.c(),P(i,"class","search-button svelte-1r7dvt7"),P(i,"type","button"),P(a,"placeholder",n[8]),P(a,"aria-label",n[8]),P(a,"class","svelte-1r7dvt7"),P(c,"type","button"),P(c,"title",n[3]),P(c,"class","svelte-1r7dvt7"),P(l,"class","clear-button-container svelte-1r7dvt7"),ir(l,"displayable",n[1]!==""),P(r,"class","input-group svelte-1r7dvt7"),P(e,"tabindex","0"),P(e,"class",C=ha(n[2])+" svelte-1r7dvt7"),ir(e,"can-collapse",n[4]&&n[1]==="")},m(N,k){Rt(N,t,k),Rt(N,e,k),rt(e,r),rt(r,i),ln(o,i,null),rt(r,s),rt(r,a),n[58](a),ga(a,n[1]),rt(r,u),rt(r,l),rt(l,c),ln(f,c,null),rt(l,h),R&&R.m(l,null),rt(r,p),D&&D.m(r,null),rt(r,g),A&&A.m(r,null),rt(e,v),~d&&G[d].m(e,null),E=!0,S||(w=[Ne(i,"click",n[57]),Ne(a,"input",n[59]),Ne(a,"focus",n[60]),Ne(a,"blur",n[61]),Ne(a,"keydown",n[21]),Ne(a,"input",n[62]),Ne(c,"click",n[63]),Ne(e,"submit",yl(n[20]))],S=!0)},p(N,k){(!E||k[0]&256)&&P(a,"placeholder",N[8]),(!E||k[0]&256)&&P(a,"aria-label",N[8]),k[0]&2&&a.value!==N[1]&&ga(a,N[1]),(!E||k[0]&8)&&P(c,"title",N[3]),N[18]?R?k[0]&262144&&Ft(R,1):(R=xa(),R.c(),Ft(R,1),R.m(l,null)):R&&(Ro(),ee(R,1,1,()=>{R=null}),Oo()),(!E||k[0]&2)&&ir(l,"displayable",N[1]!==""),N[5]===!0?D?(D.p(N,k),k[0]&32&&Ft(D,1)):(D=Sa(N),D.c(),Ft(D,1),D.m(r,g)):D&&(Ro(),ee(D,1,1,()=>{D=null}),Oo()),A&&A.p&&(!E||k[1]&16777216)&&pl(A,L,N,N[55],E?gl(L,N[55],k,null):dl(N[55]),null);let K=d;d=st(N),d===K?~d&&G[d].p(N,k):(_&&(Ro(),ee(G[K],1,1,()=>{G[K]=null}),Oo()),~d?(_=G[d],_?_.p(N,k):(_=G[d]=Y[d](N),_.c()),Ft(_,1),_.m(e,null)):_=null),(!E||k[0]&4&&C!==(C=ha(N[2])+" svelte-1r7dvt7"))&&P(e,"class",C),(!E||k[0]&22)&&ir(e,"can-collapse",N[4]&&N[1]==="")},i(N){E||(Ft(T),Ft(o.$$.fragment,N),Ft(f.$$.fragment,N),Ft(R),Ft(D),Ft(A,N),Ft(_),E=!0)},o(N){ee(T),ee(o.$$.fragment,N),ee(f.$$.fragment,N),ee(R),ee(D),ee(A,N),ee(_),E=!1},d(N){N&&(wt(t),wt(e)),cn(o),n[58](null),cn(f),R&&R.d(),D&&D.d(),A&&A.d(N),~d&&G[d].d(),S=!1,un(w)}}}function ic(n,t,e){let r,{$$slots:i={},$$scope:o}=t,{class:s=void 0}=t,{apiKey:a}=t,{bbox:u=void 0}=t,{clearButtonTitle:l="clear"}=t,{clearOnBlur:c=!1}=t,{collapsed:f=!1}=t,{country:h=void 0}=t,{debounceSearch:p=200}=t,{enableReverse:g=!1}=t,{errorMessage:v="Something went wrong…"}=t,{filter:d=()=>!0}=t,{flyTo:_=!0}=t,{fuzzyMatch:C=!0}=t,{language:E=void 0}=t,{limit:S=void 0}=t,{mapController:w=void 0}=t,{minLength:T=2}=t,{noResultsMessage:R="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!"}=t,{placeholder:D="Search"}=t,{proximity:L=[{type:"server-geolocation"}]}=t,{reverseActive:A=g==="always"}=t,{reverseButtonTitle:Y="toggle reverse geocoding"}=t,{searchValue:G=""}=t,{showFullGeometry:st=!0}=t,{showPlaceType:N="ifNeeded"}=t,{showResultsWhileTyping:k=!0}=t,{types:K=void 0}=t,{excludeTypes:Et=!1}=t,{zoom:$t=16}=t,{maxZoom:fe=18}=t,{apiUrl:Nn="https://api.maptiler.com/geocoding"}=t,{fetchParameters:rr={}}=t,{iconsBaseUrl:rn="https://cdn.maptiler.com/maptiler-geocoding-control/v1.1.1/icons/"}=t,{adjustUrlQuery:nr=x=>{}}=t;function Hi(){nn.focus()}function Wn(){nn.blur()}function il(x,jt=!0){e(1,G=x),jt?(e(14,Vt=-1),sl()):(na(),setTimeout(()=>{nn.focus(),nn.select()}))}function Lf(){e(13,ct=void 0),e(52,it=void 0),e(14,Vt=-1)}function bf(){e(51,Ce=[]),e(52,it=void 0)}let Wi=!1,ct,Ce,it,ol="",nn,Vt=-1,on,fs=[],di,ji,hs,ea;const Pf=new Set,jn=Il();El(()=>{w&&(w.setEventHandler(void 0),w.indicateReverse(!1),w.setSelectedMarker(-1),w.setMarkers(void 0,void 0))});function sl(x){if(ji&&(clearTimeout(ji),ji=void 0),Vt>-1&&ct)e(52,it=ct[Vt]),e(1,G=it.place_name.replace(/,.*/,"")),e(17,on=void 0),e(51,Ce=void 0),e(14,Vt=-1);else if(G){const jt=x||!al();ra(G,{exact:!0}).then(()=>{e(51,Ce=ct),e(52,it=void 0),jt&&Rf()}).catch(sn=>e(17,on=sn))}}function al(){return/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(G)}async function ra(x,{byId:jt=!1,exact:sn=!1}={}){e(17,on=void 0),di==null||di.abort();const an=new AbortController;e(18,di=an);try{const De=al(),xr=new URLSearchParams;if(E!==void 0&&xr.set("language",Array.isArray(E)?E.join(","):E??""),K&&xr.set("types",K.join(",")),Et&&xr.set("excludeTypes",String(Et)),u&&xr.set("bbox",u.map(ps=>ps.toFixed(6)).join(",")),h&&xr.set("country",Array.isArray(h)?h.join(","):h),!jt&&!De){const ps=await Jl(w,L,an);ps&&xr.set("proximity",ps),(sn||!k)&&xr.set("autocomplete","false"),xr.set("fuzzyMatch",String(C))}S!==void 0&&(!De||(K==null?void 0:K.length)===1)&&xr.set("limit",String(S)),xr.set("key",a),nr(xr);const gs=Nn+"/"+encodeURIComponent(x)+".json?"+xr.toString();if(gs===ol){jt?(e(13,ct=void 0),e(52,it=fs[0])):e(13,ct=fs);return}ol=gs;const ul=await fetch(gs,{signal:an.signal,...rr});if(!ul.ok)throw new Error;const oa=await ul.json();jn("response",{url:gs,featureCollection:oa}),jt?(e(13,ct=void 0),e(52,it=oa.features[0]),fs=[it]):(e(13,ct=oa.features.filter(d)),fs=ct,De&&nn.focus())}catch(De){if(De&&typeof De=="object"&&"name"in De&&De.name==="AbortError")return;throw De}finally{an===di&&e(18,di=void 0)}}function Rf(){var sn;if(!(Ce!=null&&Ce.length)||!_)return;const x=[180,90,-180,-90],jt=!Ce.some(an=>!an.matching_text);for(const an of Ce)if(jt||!an.matching_text)for(const De of[0,1,2,3])x[De]=Math[De<2?"min":"max"](x[De],((sn=an.bbox)==null?void 0:sn[De])??an.center[De%2]);w&&Ce.length>0&&(it&&x[0]===x[2]&&x[1]===x[3]?w.flyTo(it.center,$t):w.fitBounds(Ca(x),50,fe))}function Of(x){e(0,A=g==="always"),il(Zl(x[0],[-180,180],!0).toFixed(6)+","+x[1].toFixed(6))}function Tf(x){if(!ct)return;let jt=x.key==="ArrowDown"?1:x.key==="ArrowUp"?-1:0;jt?(Vt===-1&&jt===-1&&e(14,Vt=ct.length),e(14,Vt+=jt),Vt>=ct.length&&e(14,Vt=-1),x.preventDefault()):["ArrowLeft","ArrowRight","Home","End"].includes(x.key)&&e(14,Vt=-1)}function na(x=!0){if(e(17,on=void 0),k){if(ji&&clearTimeout(ji),G.length<T)return;const jt=G;ji=window.setTimeout(()=>{ra(jt).catch(sn=>e(17,on=sn))},x?p:0)}else e(13,ct=void 0),e(17,on=void 0)}function ia(x){e(52,it=x),e(1,G=x.place_name),e(14,Vt=-1)}const Df=()=>nn.focus();function Mf(x){vs[x?"unshift":"push"](()=>{nn=x,e(16,nn)})}function Af(){G=this.value,e(1,G),e(12,Wi),e(26,c)}const Ff=()=>e(12,Wi=!0),Bf=()=>e(12,Wi=!1),kf=()=>na(),Gf=()=>{e(1,G=""),nn.focus()},Vf=()=>e(0,A=!A),zf=()=>e(17,on=void 0),Uf=x=>e(14,Vt=x),qf=x=>ia(x),Xf=()=>e(14,Vt=-1),Yf=()=>{};return n.$$set=x=>{"class"in x&&e(2,s=x.class),"apiKey"in x&&e(24,a=x.apiKey),"bbox"in x&&e(25,u=x.bbox),"clearButtonTitle"in x&&e(3,l=x.clearButtonTitle),"clearOnBlur"in x&&e(26,c=x.clearOnBlur),"collapsed"in x&&e(4,f=x.collapsed),"country"in x&&e(27,h=x.country),"debounceSearch"in x&&e(28,p=x.debounceSearch),"enableReverse"in x&&e(5,g=x.enableReverse),"errorMessage"in x&&e(6,v=x.errorMessage),"filter"in x&&e(29,d=x.filter),"flyTo"in x&&e(30,_=x.flyTo),"fuzzyMatch"in x&&e(31,C=x.fuzzyMatch),"language"in x&&e(32,E=x.language),"limit"in x&&e(33,S=x.limit),"mapController"in x&&e(34,w=x.mapController),"minLength"in x&&e(35,T=x.minLength),"noResultsMessage"in x&&e(7,R=x.noResultsMessage),"placeholder"in x&&e(8,D=x.placeholder),"proximity"in x&&e(36,L=x.proximity),"reverseActive"in x&&e(0,A=x.reverseActive),"reverseButtonTitle"in x&&e(9,Y=x.reverseButtonTitle),"searchValue"in x&&e(1,G=x.searchValue),"showFullGeometry"in x&&e(37,st=x.showFullGeometry),"showPlaceType"in x&&e(10,N=x.showPlaceType),"showResultsWhileTyping"in x&&e(38,k=x.showResultsWhileTyping),"types"in x&&e(39,K=x.types),"excludeTypes"in x&&e(40,Et=x.excludeTypes),"zoom"in x&&e(41,$t=x.zoom),"maxZoom"in x&&e(42,fe=x.maxZoom),"apiUrl"in x&&e(43,Nn=x.apiUrl),"fetchParameters"in x&&e(44,rr=x.fetchParameters),"iconsBaseUrl"in x&&e(11,rn=x.iconsBaseUrl),"adjustUrlQuery"in x&&e(45,nr=x.adjustUrlQuery),"$$scope"in x&&e(55,o=x.$$scope)},n.$$.update=()=>{if(n.$$.dirty[0]&67112960&&setTimeout(()=>{e(15,hs=Wi),c&&!Wi&&e(1,G="")}),n.$$.dirty[0]&8194|n.$$.dirty[1]&16&&G.length<T&&(e(52,it=void 0),e(13,ct=void 0),e(17,on=void 0),e(51,Ce=ct)),n.$$.dirty[1]&2097216&&st&&it&&!it.address&&it.geometry.type==="Point"&&ra(it.id,{byId:!0}).catch(x=>e(17,on=x)),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&6294536&&(w&&it&&it.id!==ea&&_&&(!it.bbox||it.bbox[0]===it.bbox[2]&&it.bbox[1]===it.bbox[3]?w.flyTo(it.center,it.id.startsWith("poi.")||it.id.startsWith("address.")?fe:$t):w.fitBounds(Ca(it.bbox),50,fe),e(13,ct=void 0),e(51,Ce=void 0),e(14,Vt=-1)),e(53,ea=it==null?void 0:it.id)),n.$$.dirty[0]&8192|n.$$.dirty[1]&1048576&&Ce!==ct&&e(51,Ce=void 0),n.$$.dirty[1]&3145736&&w&&w.setMarkers(Ce,it),n.$$.dirty[0]&2&&e(14,Vt=-1),n.$$.dirty[0]&40961|n.$$.dirty[1]&8&&w&&w.setEventHandler(x=>{switch(x.type){case"mapClick":A&&Of(x.coordinates);break;case"markerClick":{const jt=ct==null?void 0:ct.find(sn=>sn.id===x.id);jt&&ia(jt)}break;case"markerMouseEnter":e(14,Vt=hs?(ct==null?void 0:ct.findIndex(jt=>jt.id===x.id))??-1:-1);break;case"markerMouseLeave":e(14,Vt=-1);break}}),n.$$.dirty[0]&16384|n.$$.dirty[1]&8&&(w==null||w.setSelectedMarker(Vt)),n.$$.dirty[0]&24576&&e(54,r=ct==null?void 0:ct[Vt]),n.$$.dirty[0]&2|n.$$.dirty[1]&8){const x=/^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(G);w==null||w.setReverseMarker(x?[Number(x[1]),Number(x[2])]:void 0)}n.$$.dirty[1]&8388608&&jn("select",r),n.$$.dirty[1]&2097152&&jn("pick",it),n.$$.dirty[0]&40960&&jn("optionsVisibilityChange",hs&&!!ct),n.$$.dirty[0]&8192&&jn("featuresListed",ct),n.$$.dirty[1]&1048576&&jn("featuresMarked",Ce),n.$$.dirty[0]&1&&jn("reverseToggle",A),n.$$.dirty[0]&2&&jn("queryChange",G),n.$$.dirty[0]&1|n.$$.dirty[1]&8&&w&&w.indicateReverse(A)},[A,G,s,l,f,g,v,R,D,Y,N,rn,Wi,ct,Vt,hs,nn,on,di,Pf,sl,Tf,na,ia,a,u,c,h,p,d,_,C,E,S,w,T,L,st,k,K,Et,$t,fe,Nn,rr,nr,Hi,Wn,il,Lf,bf,Ce,it,ea,r,o,i,Df,Mf,Af,Ff,Bf,kf,Gf,Vf,zf,Uf,qf,Xf,Yf]}let oc=class extends bn{constructor(t){super(),Ln(this,t,ic,nc,xn,{class:2,apiKey:24,bbox:25,clearButtonTitle:3,clearOnBlur:26,collapsed:4,country:27,debounceSearch:28,enableReverse:5,errorMessage:6,filter:29,flyTo:30,fuzzyMatch:31,language:32,limit:33,mapController:34,minLength:35,noResultsMessage:7,placeholder:8,proximity:36,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:37,showPlaceType:10,showResultsWhileTyping:38,types:39,excludeTypes:40,zoom:41,maxZoom:42,apiUrl:43,fetchParameters:44,iconsBaseUrl:11,adjustUrlQuery:45,focus:46,blur:47,setQuery:48,clearList:49,clearMap:50},null,[-1,-1,-1])}get focus(){return this.$$.ctx[46]}get blur(){return this.$$.ctx[47]}get setQuery(){return this.$$.ctx[48]}get clearList(){return this.$$.ctx[49]}get clearMap(){return this.$$.ctx[50]}};/**
|
|
2
2
|
* splaytree v3.1.2
|
|
3
3
|
* Fast Splay tree for Node and browser
|
|
4
4
|
*
|