@maptiler/geocoding-control 1.3.3 → 1.4.0
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/README.md +3 -4
- package/icons/airport.svg +6 -0
- package/icons/animal_shelter.svg +4 -0
- package/icons/art_gallery.svg +4 -0
- package/icons/atm.svg +5 -1
- package/icons/barrier.svg +4 -0
- package/icons/baseball.svg +4 -0
- package/icons/basketball.svg +4 -0
- package/icons/bbq.svg +4 -1
- package/icons/beach.svg +4 -0
- package/icons/beer.svg +4 -1
- package/icons/bench.svg +4 -1
- package/icons/bicycle.svg +4 -1
- package/icons/bicycle_parking.svg +5 -1
- package/icons/bicycle_rental.svg +5 -1
- package/icons/billiards.svg +4 -0
- package/icons/board.svg +4 -1
- package/icons/bollard.svg +4 -0
- package/icons/bowling.svg +4 -1
- package/icons/building.svg +4 -0
- package/icons/bulldozer.svg +4 -0
- package/icons/bus_guided.svg +4 -0
- package/icons/bus_trolley.svg +4 -0
- package/icons/butcher.svg +4 -1
- package/icons/camper_trailer.svg +4 -0
- package/icons/campfire.svg +4 -0
- package/icons/caution.svg +4 -0
- package/icons/cemetery.svg +3 -11
- package/icons/charging_station.svg +4 -1
- package/icons/christian.svg +5 -0
- package/icons/circle-dot.svg +4 -0
- package/icons/circle-stroke.svg +4 -0
- package/icons/circle.svg +4 -0
- package/icons/city.svg +4 -0
- package/icons/communications_tower.svg +4 -1
- package/icons/confectionery.svg +4 -1
- package/icons/construction.svg +4 -0
- package/icons/cricket.svg +4 -0
- package/icons/cross.svg +4 -1
- package/icons/cycle_barrier.svg +4 -0
- package/icons/dam.svg +4 -0
- package/icons/danger.svg +4 -0
- package/icons/diamond.svg +4 -0
- package/icons/diamond_stroked.svg +4 -0
- package/icons/dot.svg +4 -0
- package/icons/drinking_water.svg +4 -1
- package/icons/emergency_phone.svg +4 -1
- package/icons/entrance.svg +4 -0
- package/icons/farm.svg +3 -8
- package/icons/fence.svg +4 -0
- package/icons/florist.svg +4 -1
- package/icons/furniture.svg +4 -1
- package/icons/gaming.svg +4 -0
- package/icons/garden.svg +4 -0
- package/icons/garden_centre.svg +4 -1
- package/icons/gate.svg +4 -1
- package/icons/globe.svg +4 -0
- package/icons/golf_green.svg +4 -0
- package/icons/gondola.svg +4 -0
- package/icons/guidepost.svg +4 -1
- package/icons/hardware.svg +3 -3
- package/icons/heart.svg +4 -0
- package/icons/heliport.svg +4 -0
- package/icons/highway_rest_area.svg +4 -0
- package/icons/home.svg +4 -0
- package/icons/hot_spring.svg +4 -1
- package/icons/hut.svg +4 -0
- package/icons/industry.svg +4 -0
- package/icons/karaoke.svg +4 -0
- package/icons/lift_gate.svg +4 -0
- package/icons/light_rail.svg +4 -0
- package/icons/lighthouse.svg +4 -1
- package/icons/marker.svg +4 -0
- package/icons/marker_stroked.svg +4 -0
- package/icons/monorail.svg +4 -0
- package/icons/motorcycle.svg +4 -1
- package/icons/motorcycle_parking.svg +4 -1
- package/icons/motorcycle_rental.svg +4 -0
- package/icons/motorcycle_repair.svg +4 -0
- package/icons/natural.svg +4 -0
- package/icons/noodle.svg +4 -0
- package/icons/obelisk.svg +4 -1
- package/icons/observation_tower.svg +4 -1
- package/icons/oneway.svg +4 -0
- package/icons/optician.svg +4 -1
- package/icons/park.svg +4 -1
- package/icons/parking_paid.svg +4 -0
- package/icons/pin.svg +4 -0
- package/icons/pipe.svg +4 -0
- package/icons/pizza.svg +4 -0
- package/icons/place_of_worship.svg +4 -1
- package/icons/playground.svg +3 -3
- package/icons/racetrack.svg +4 -0
- package/icons/radiation.svg +4 -0
- package/icons/railway.svg +4 -0
- package/icons/ranger_station.svg +4 -0
- package/icons/recycling.svg +4 -1
- package/icons/road_accident.svg +4 -0
- package/icons/roadblock.svg +4 -0
- package/icons/rocket.svg +4 -0
- package/icons/school_bus.svg +4 -0
- package/icons/sculpture.svg +4 -0
- package/icons/seafood.svg +4 -1
- package/icons/shelter.svg +4 -1
- package/icons/shoes.svg +4 -1
- package/icons/sikh.svg +4 -0
- package/icons/snow.svg +4 -0
- package/icons/soccer.svg +4 -1
- package/icons/spring.svg +4 -1
- package/icons/square.svg +4 -0
- package/icons/square_stroked.svg +4 -0
- package/icons/star.svg +4 -0
- package/icons/star_stroked.svg +4 -0
- package/icons/statue.svg +4 -1
- package/icons/subway.svg +4 -0
- package/icons/sushi.svg +4 -0
- package/icons/swimming.svg +5 -0
- package/icons/swimming_pool.svg +8 -0
- package/icons/tako.svg +4 -0
- package/icons/taxi.svg +4 -1
- package/icons/teahouse.svg +4 -0
- package/icons/terminal.svg +4 -1
- package/icons/theme_park.svg +4 -0
- package/icons/town.svg +4 -0
- package/icons/town_hall.svg +4 -1
- package/icons/townhall.svg +4 -1
- package/icons/tram_stop.svg +4 -0
- package/icons/transit.svg +4 -0
- package/icons/triangle.svg +4 -0
- package/icons/triangle_stroked.svg +4 -0
- package/icons/truck.svg +4 -0
- package/icons/tunnel.svg +4 -0
- package/icons/veterinary.svg +4 -1
- package/icons/viewpoint.svg +4 -1
- package/icons/village.svg +4 -0
- package/icons/volleyball.svg +4 -0
- package/icons/warehouse.svg +4 -0
- package/icons/water.svg +3 -5
- package/icons/water_park.svg +6 -1
- package/icons/water_tower.svg +4 -1
- package/icons/watermill.svg +4 -0
- package/icons/wetland.svg +4 -0
- package/icons/wine.svg +4 -0
- package/leaflet-controller.d.ts +2 -2
- package/leaflet-controller.js +1427 -9922
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +3 -9
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.js +2708 -11166
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -9
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +2 -2
- package/maplibregl-controller.js +1268 -9849
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -9
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.js +2550 -11094
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -9
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +2558 -11102
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -9
- package/maptilersdk.umd.js.map +1 -1
- package/mask.d.ts +1 -1
- package/openlayers-controller.js +1191 -9762
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +3 -9
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.js +2689 -11223
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -9
- package/openlayers.umd.js.map +1 -1
- package/package.json +24 -22
- package/react.js +996 -955
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/FeatureItem.svelte +6 -5
- package/svelte/GeocodingControl.svelte +68 -12
- package/svelte/GeocodingControl.svelte.d.ts +4 -2
- package/svelte/geoUtils.js +7 -1
- package/svelte/leaflet-controller.d.ts +2 -2
- package/svelte/leaflet-controller.js +48 -2
- package/svelte/maplibregl-controller.d.ts +2 -2
- package/svelte/maplibregl-controller.js +5 -2
- package/svelte/mask.d.ts +1 -1
- package/svelte/mask.js +32 -29
- package/svelte/openlayers-controller.js +13 -14
- package/svelte/types.d.ts +15 -9
- package/types.d.ts +15 -9
- package/vanilla.js +1016 -975
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
- package/icons/beach_resort.svg +0 -1
- package/icons/drinking-water.svg +0 -1
- package/icons/emergency-phone.svg +0 -1
- package/icons/rental_bicycle.svg +0 -1
- package/icons/rental_car.svg +0 -1
- /package/icons/{camp_site.svg → campsite.svg} +0 -0
- /package/icons/{toll_booth.svg → toll.svg} +0 -0
package/vanilla.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(I,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(I=typeof globalThis<"u"?globalThis:I||self,v(I.maptilerGeocoder={}))})(this,function(I){"use strict";var mn=Object.defineProperty;var Ut=I=>{throw TypeError(I)};var gn=(I,v,Q)=>v in I?mn(I,v,{enumerable:!0,configurable:!0,writable:!0,value:Q}):I[v]=Q;var ot=(I,v,Q)=>gn(I,typeof v!="symbol"?v+"":v,Q),zt=(I,v,Q)=>v.has(I)||Ut("Cannot "+Q);var le=(I,v,Q)=>(zt(I,v,"read from private field"),Q?Q.call(I):v.get(I)),At=(I,v,Q)=>v.has(I)?Ut("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(I):v.set(I,Q),Bt=(I,v,Q,Te)=>(zt(I,v,"write to private field"),Te?Te.call(I,Q):v.set(I,Q),Q);var x;function v(){}function Q(i,e){for(const t in e)i[t]=e[t];return i}function Te(i){return i()}function st(){return Object.create(null)}function re(i){i.forEach(Te)}function at(i){return typeof i=="function"}function me(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ie;function V(i,e){return i===e?!0:(Ie||(Ie=document.createElement("a")),Ie.href=e,i===Ie.href)}function Ft(i){return Object.keys(i).length===0}function Ht(i,e,t,n){if(i){const o=lt(i,e,t,n);return i[0](o)}}function lt(i,e,t,n){return i[1]&&n?Q(t.ctx.slice(),i[1](n(e))):t.ctx}function Pt(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const l=[],c=Math.max(e.dirty.length,o.length);for(let r=0;r<c;r+=1)l[r]=e.dirty[r]|o[r];return l}return e.dirty|o}return e.dirty}function jt(i,e,t,n,o,l){if(o){const c=lt(e,t,n,l);i.p(c,o)}}function Gt(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 ut(i){return i??""}function M(i,e){i.appendChild(e)}function H(i,e,t){i.insertBefore(e,t||null)}function B(i){i.parentNode&&i.parentNode.removeChild(i)}function U(i){return document.createElement(i)}function oe(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function ue(i){return document.createTextNode(i)}function X(){return ue(" ")}function Zt(){return ue("")}function K(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function qt(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 Qt(i){return Array.from(i.childNodes)}function Me(i,e){e=""+e,i.data!==e&&(i.data=e)}function ct(i,e){i.value=e??""}function ce(i,e,t){i.classList.toggle(e,!!t)}function Vt(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let Ce;function We(i){Ce=i}function dt(){if(!Ce)throw new Error("Function called outside component initialization");return Ce}function Kt(i){dt().$$.on_destroy.push(i)}function Jt(){const i=dt();return(e,t,{cancelable:n=!1}={})=>{const o=i.$$.callbacks[e];if(o){const l=Vt(e,t,{cancelable:n});return o.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function ft(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const _e=[],Ze=[];let ye=[];const mt=[],Xt=Promise.resolve();let qe=!1;function Yt(){qe||(qe=!0,Xt.then(gt))}function Qe(i){ye.push(i)}const Ve=new Set;let we=0;function gt(){if(we!==0)return;const i=Ce;do{try{for(;we<_e.length;){const e=_e[we];we++,We(e),xt(e.$$)}}catch(e){throw _e.length=0,we=0,e}for(We(null),_e.length=0,we=0;Ze.length;)Ze.pop()();for(let e=0;e<ye.length;e+=1){const t=ye[e];Ve.has(t)||(Ve.add(t),t())}ye.length=0}while(_e.length);for(;mt.length;)mt.pop()();qe=!1,Ve.clear(),We(i)}function xt(i){if(i.fragment!==null){i.update(),re(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qe)}}function $t(i){const e=[],t=[];ye.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ye=e}const Ue=new Set;let ge;function ze(){ge={r:0,c:[],p:ge}}function Ae(){ge.r||re(ge.c),ge=ge.p}function j(i,e){i&&i.i&&(Ue.delete(i),i.i(e))}function q(i,e,t,n){if(i&&i.o){if(Ue.has(i))return;Ue.add(i),ge.c.push(()=>{Ue.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function ht(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ei(i,e){q(i,1,1,()=>{e.delete(i.key)})}function ti(i,e,t,n,o,l,c,r,f,u,d,b){let m=i.length,E=l.length,y=m;const A={};for(;y--;)A[i[y].key]=y;const S=[],p=new Map,z=new Map,D=[];for(y=E;y--;){const L=b(o,l,y),T=t(L);let g=c.get(T);g?D.push(()=>g.p(L,e)):(g=u(T,L),g.c()),p.set(T,S[y]=g),T in A&&z.set(T,Math.abs(y-A[T]))}const k=new Set,h=new Set;function R(L){j(L,1),L.m(r,d),c.set(L.key,L),d=L.first,E--}for(;m&&E;){const L=S[E-1],T=i[m-1],g=L.key,w=T.key;L===T?(d=L.first,m--,E--):p.has(w)?!c.has(g)||k.has(g)?R(L):h.has(w)?m--:z.get(g)>z.get(w)?(h.add(g),R(L)):(k.add(w),m--):(f(T,c),m--)}for(;m--;){const L=i[m];p.has(L.key)||f(L,c)}for(;E;)R(S[E-1]);return re(D),S}function de(i){i&&i.c()}function se(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qe(()=>{const l=i.$$.on_mount.map(Te).filter(at);i.$$.on_destroy?i.$$.on_destroy.push(...l):re(l),i.$$.on_mount=[]}),o.forEach(Qe)}function ae(i,e){const t=i.$$;t.fragment!==null&&($t(t.after_update),re(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ii(i,e){i.$$.dirty[0]===-1&&(_e.push(i),Yt(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function he(i,e,t,n,o,l,c=null,r=[-1]){const f=Ce;We(i);const u=i.$$={fragment:null,ctx:[],props:l,update:v,not_equal:o,bound:st(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:st(),dirty:r,skip_bound:!1,root:e.target||f.$$.root};c&&c(u.root);let d=!1;if(u.ctx=t?t(i,e.props||{},(b,m,...E)=>{const y=E.length?E[0]:m;return u.ctx&&o(u.ctx[b],u.ctx[b]=y)&&(!u.skip_bound&&u.bound[b]&&u.bound[b](y),d&&ii(i,b)),m}):[],u.update(),d=!0,re(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const b=Qt(e.target);u.fragment&&u.fragment.l(b),b.forEach(B)}else u.fragment&&u.fragment.c();e.intro&&j(i.$$.fragment),se(i,e.target,e.anchor),gt()}We(f)}class be{constructor(){ot(this,"$$");ot(this,"$$set")}$destroy(){ae(this,1),this.$destroy=v}$on(e,t){if(!at(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Ft(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ni="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ni);function ri(i){let e,t;return{c(){e=oe("svg"),t=oe("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,o){H(n,e,o),M(e,t)},p:v,i:v,o:v,d(n){n&&B(e)}}}class bt extends be{constructor(e){super(),he(this,e,null,ri,me,{})}}function oi(i){let e,t;return{c(){e=oe("svg"),t=oe("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,o){H(n,e,o),M(e,t)},p:v,i:v,o:v,d(n){n&&B(e)}}}class vt extends be{constructor(e){super(),he(this,e,null,oi,me,{})}}function si(i){let e,t;return{c(){e=U("img"),V(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){H(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"area.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&B(e)}}}function ai(i){let e,t;return{c(){e=U("img"),V(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){H(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&B(e)}}}function li(i){let e,t;return{c(){e=U("img"),V(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){H(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&B(e)}}}function ui(i){let e,t;return{c(){e=U("img"),V(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){H(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&B(e)}}}function ci(i){let e,t;return{c(){e=U("img"),V(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){H(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"street.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&B(e)}}}function di(i){let e,t;return{c(){e=U("img"),V(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){H(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"road.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&B(e)}}}function fi(i){let e,t;return{c(){e=U("img"),V(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){H(n,e,o)},p(n,o){o&8&&!V(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&B(e)}}}function mi(i){let e,t,n,o;return{c(){e=U("img"),V(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"class","svelte-ltkwvy")},m(l,c){H(l,e,c),n||(o=K(e,"error",i[14]),n=!0)},p(l,c){c&32&&!V(e.src,t=l[5])&&a(e,"src",t),c&16&&a(e,"alt",l[4])},d(l){l&&B(e),n=!1,o()}}}function Lt(i){let e,t;return{c(){e=U("span"),t=ue(i[6]),a(e,"class","secondary svelte-ltkwvy")},m(n,o){H(n,e,o),M(e,t)},p(n,o){o&64&&Me(t,n[6])},d(n){n&&B(e)}}}function gi(i){var L,T;let e,t,n,o,l,c,r,f,u=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",d,b,m=i[2]==="always"||i[2]&&!i[0].address&&((L=i[0].properties)==null?void 0:L.kind)!=="road"&&((T=i[0].properties)==null?void 0:T.kind)!=="road_relation"&&!i[0].id.startsWith("address.")&&!i[0].id.startsWith("postal_code.")&&(!i[0].id.startsWith("poi.")||!i[5])&&!i[7],E,y,A=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,p,z;function D(g,w){var te,O;return w&1&&(t=null),w&1&&(n=null),w&1&&(o=null),g[5]?mi:g[0].address?fi:((te=g[0].properties)==null?void 0:te.kind)==="road"||((O=g[0].properties)==null?void 0:O.kind)==="road_relation"?di:(t==null&&(t=!!g[0].id.startsWith("address.")),t?ci:(n==null&&(n=!!g[0].id.startsWith("postal_code.")),n?ui:(o==null&&(o=!!g[0].id.startsWith("poi.")),o?li:g[7]?ai:si)))}let k=D(i,-1),h=k(i),R=m&&Lt(i);return{c(){e=U("li"),h.c(),l=X(),c=U("span"),r=U("span"),f=U("span"),d=ue(u),b=X(),R&&R.c(),E=X(),y=U("span"),S=ue(A),a(f,"class","primary svelte-ltkwvy"),a(r,"class","svelte-ltkwvy"),a(y,"class","line2 svelte-ltkwvy"),a(c,"class","texts svelte-ltkwvy"),a(e,"tabindex","0"),a(e,"data-selected",i[1]),a(e,"class","svelte-ltkwvy"),ce(e,"selected",i[1])},m(g,w){H(g,e,w),h.m(e,null),M(e,l),M(e,c),M(c,r),M(r,f),M(f,d),M(r,b),R&&R.m(r,null),M(c,E),M(c,y),M(y,S),p||(z=[K(e,"mouseenter",i[12]),K(e,"focus",i[13])],p=!0)},p(g,[w]){var te,O;k===(k=D(g,w))&&h?h.p(g,w):(h.d(1),h=k(g),h&&(h.c(),h.m(e,l))),w&1&&u!==(u=(g[7]?g[0].place_name:g[0].place_name.replace(/,.*/,""))+"")&&Me(d,u),w&37&&(m=g[2]==="always"||g[2]&&!g[0].address&&((te=g[0].properties)==null?void 0:te.kind)!=="road"&&((O=g[0].properties)==null?void 0:O.kind)!=="road_relation"&&!g[0].id.startsWith("address.")&&!g[0].id.startsWith("postal_code.")&&(!g[0].id.startsWith("poi.")||!g[5])&&!g[7]),m?R?R.p(g,w):(R=Lt(g),R.c(),R.m(r,null)):R&&(R.d(1),R=null),w&1&&A!==(A=(g[7]?"":g[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Me(S,A),w&2&&a(e,"data-selected",g[1]),w&2&&ce(e,"selected",g[1])},i:v,o:v,d(g){g&&B(e),h.d(),R&&R.d(),p=!1,re(z)}}}function hi(i,e,t){var D;let n,o,{feature:l}=e,{selected:c=!1}=e,{showPlaceType:r}=e,{missingIconsCache:f}=e,{iconsBaseUrl:u}=e;const d=(D=l.properties)==null?void 0:D.categories;let b,m,E=0,y=l.place_type[0]==="reverse";function A(){m&&f.add(m),t(10,E++,E)}function S(k){ft.call(this,i,k)}function p(k){ft.call(this,i,k)}const z=()=>A();return i.$$set=k=>{"feature"in k&&t(0,l=k.feature),"selected"in k&&t(1,c=k.selected),"showPlaceType"in k&&t(2,r=k.showPlaceType),"missingIconsCache"in k&&t(9,f=k.missingIconsCache),"iconsBaseUrl"in k&&t(3,u=k.iconsBaseUrl)},i.$$.update=()=>{var k,h,R,L;if(i.$$.dirty&3640)do t(11,n--,n),t(4,b=d==null?void 0:d[n]),t(5,m=b?u+b.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!m||f.has(m)));i.$$.dirty&1&&t(6,o=l.id.startsWith("poi.")?(h=(k=l.properties)==null?void 0:k.categories)==null?void 0:h.join(", "):((L=(R=l.properties)==null?void 0:R.place_type_name)==null?void 0:L[0])??l.place_type[0])},t(11,n=(d==null?void 0:d.length)??0),[l,c,r,u,b,m,o,y,A,f,E,n,S,p,z]}class bi extends be{constructor(e){super(),he(this,e,hi,gi,me,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function vi(i){let e;return{c(){e=U("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){H(t,e,n)},p:v,i:v,o:v,d(t){t&&B(e)}}}class Li extends be{constructor(e){super(),he(this,e,null,vi,me,{})}}function _i(i){let e,t;return{c(){e=oe("svg"),t=oe("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,o){H(n,e,o),M(e,t)},p:v,i:v,o:v,d(n){n&&B(e)}}}class yi extends be{constructor(e){super(),he(this,e,null,_i,me,{})}}function wi(i){let e,t,n;return{c(){e=oe("svg"),t=oe("circle"),n=oe("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(o,l){H(o,e,l),M(e,t),M(e,n)},p:v,i:v,o:v,d(o){o&&B(e)}}}class Ei extends be{constructor(e){super(),he(this,e,null,wi,me,{})}}function Si(i,e,t){const n=e[1],o=e[0],l=n-o;return i===n&&t?i:((i-o)%l+l)%l+o}function _t(i){const e=[...i];return e[2]<e[0]&&(e[2]+=360),e}let De;async function pi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const o of e??[])if(!(n&&(o.minZoom!=null&&o.minZoom>n[0]||o.maxZoom!=null&&o.maxZoom<n[0]))){if(o.type==="fixed")return o.coordinates.join(",");e:if(o.type==="client-geolocation"){if(De&&o.cachedLocationExpiry&&De.time+o.cachedLocationExpiry>Date.now()){if(!De.coords)break e;return De.coords}let l;try{return l=await new Promise((c,r)=>{t.signal.addEventListener("abort",()=>{r(Error("aborted"))}),navigator.geolocation.getCurrentPosition(f=>{c([f.coords.longitude,f.coords.latitude].map(u=>u.toFixed(6)).join(","))},f=>{r(f)},o)}),l}catch{}finally{o.cachedLocationExpiry&&(De={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(o.type==="server-geolocation")return"ip";if(n&&o.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const ki=/^(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,yt=/^([+-]?[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,})$/,wt=/^(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,Et=/^(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,St=/^(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,pt=/^(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 Ni(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(E=>Number(E.trim())),t=Number(e[0]),n=Number(e[1]),o=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",r=n>0?"E":"W";let f;i=="DD"&&(f=`${o}° ${c}, ${l}° ${r}`);const u=Math.floor(o),d=Math.floor(l),b=(o-u)*60,m=(l-d)*60;if(i=="DM"){let E=kt(b,3).toFixed(3).padStart(6,"0"),y=kt(m,3).toFixed(3).padStart(6,"0");E.endsWith(".000")&&y.endsWith(".000")&&(E=E.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),f=`${u}° ${E}' ${c}, ${d}° ${y}' ${r}`}if(i=="DMS"){const E=Math.floor(b),y=Math.floor(m);let A=((b-E)*60).toFixed(1).padStart(4,"0"),S=((m-y)*60).toFixed(1).padStart(4,"0");const p=E.toString().padStart(2,"0"),z=y.toString().padStart(2,"0");A.endsWith(".0")&&S.endsWith(".0")&&(A=A.replace(/\.0$/,""),S=S.replace(/\.0$/,"")),f=`${u}° ${p}' ${A}" ${c}, ${d}° ${z}' ${S}" ${r}`}return f}else throw new Error("no decimal coordinates to convert")}function kt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function Ke(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,o="",l="",c=null,r=[],f=!1;if(ki.test(i))throw new Error("invalid coordinate value");if(yt.test(i))if(r=yt.exec(i),f=Oe(r),f)t=Math.abs(r[1])+r[2]/60,Number(r[1])<0&&(t*=-1),n=Math.abs(r[3])+r[4]/60,Number(r[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(wt.test(i))if(r=wt.exec(i),f=Oe(r),f){if(t=r[2],n=r[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");r[1]?(o=r[1],l=r[5]):r[4]&&(o=r[4],l=r[8])}else throw new Error("invalid decimal coordinate format");else if(Et.test(i))if(r=Et.exec(i),f=Oe(r),f)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,c="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,c="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[9])),r[11]&&(n+=r[11]/60),r[13]&&(n+=r[13].replace(",",".")/3600),parseInt(r[9])<0&&(n=-1*n),r[1]?(o=r[1],l=r[8]):r[7]&&(o=r[7],l=r[14]);else throw new Error("invalid DMS coordinates format");else if(St.test(i))if(r=St.exec(i),f=Oe(r),f)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,c="DM"),r[6]&&(t+=r[6]/3600,c="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12]/60),r[14]&&(n+=r[14]/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],l=r[9]):r[8]&&(o=r[8],l=r[16]);else throw new Error("invalid DMS coordinates format");else if(pt.test(i)){if(r=pt.exec(i),f=Oe(r),r.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(f)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4].replace(",",".")/60,c="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,c="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12].replace(",",".")/60),r[14]&&(n+=r[14].replace(",",".")/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],l=r[9]):r[8]&&(o=r[8],l=r[16]);else throw new Error("invalid coordinates format")}if(f){if(Math.abs(n)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(o&&!l||!o&&l)throw new Error("invalid coordinates value");if(o&&o==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(o)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const d=r[0].trim();let b,m;const E=/[,/;\u0020]/g,y=d.match(E);if(y==null){const p=Math.floor(i.length/2);b=d.substring(0,p).trim(),m=d.substring(p).trim()}else{let p;y.length%2==1?p=Math.floor(y.length/2):p=y.length/2-1;let z=0;if(p==0)z=d.indexOf(y[0]),b=d.substring(0,z).trim(),m=d.substring(z+1).trim();else{let D=0,k=0;for(;D<=p;)z=d.indexOf(y[D],k),k=z+1,D++;b=d.substring(0,z).trim(),m=d.substring(z+1).trim()}}const A=b.split(".");if(A.length==2&&A[1]==0&&A[1].length!=2)throw new Error("invalid coordinates format");const S=m.split(".");if(S.length==2&&S[1]==0&&S[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(b)||/^\d+$/.test(m))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),n=Number(Number(n).toFixed(e)),Object.freeze({verbatimCoordinates:d,verbatimLatitude:b,verbatimLongitude:m,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:Ti,toCoordinateFormat:Ni})}else throw new Error("coordinates pattern match failed")}function Oe(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,o=e.length/2;for(let l=0;l<o;l++){const c=e[l],r=e[l+o],f=t.test(c)&&t.test(r),u=n.test(c)&&n.test(r),d=c==r;if(!(c==null&&r==null)){if(c==null||r==null)return!1;if(f||u||d)continue;return!1}}return!0}function Nt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Ti(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 Nt(this.decimalLatitude,Number(e[0]))&&Nt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Mi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Ke.to=Mi;const Ci=[{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"}],Wi={decimalLatitude:40.123,decimalLongitude:-74.123},Di=[{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}],Oi=[{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 Ri(){const i=[];return Ci.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Wi})}),[...i,...Di,...Oi]}const Ii=Ri();Ke.formats=Ii.map(i=>i.verbatimCoordinates);const Ui=Ke;function Tt(i,e,t){const n=i.slice();return n[81]=e[t],n[83]=t,n}function Mt(i){let e,t;return e=new Li({}),{c(){de(e.$$.fragment)},m(n,o){se(e,n,o),t=!0},i(n){t||(j(e.$$.fragment,n),t=!0)},o(n){q(e.$$.fragment,n),t=!1},d(n){ae(e,n)}}}function Ct(i){let e,t,n,o,l;return t=new yi({}),{c(){e=U("button"),de(t.$$.fragment),a(e,"type","button"),a(e,"title",i[9]),a(e,"class","svelte-zh3kmv"),ce(e,"active",i[0])},m(c,r){H(c,e,r),se(t,e,null),n=!0,o||(l=K(e,"click",i[67]),o=!0)},p(c,r){(!n||r[0]&512)&&a(e,"title",c[9]),(!n||r[0]&1)&&ce(e,"active",c[0])},i(c){n||(j(t.$$.fragment,c),n=!0)},o(c){q(t.$$.fragment,c),n=!1},d(c){c&&B(e),ae(t),o=!1,l()}}}function zi(i){let e,t=[],n=new Map,o,l,c,r=ht(i[14]);const f=u=>u[81].id+(u[81].address?","+u[81].address:"");for(let u=0;u<r.length;u+=1){let d=Tt(i,r,u),b=f(d);n.set(b,t[u]=Wt(b,d))}return{c(){e=U("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","svelte-zh3kmv")},m(u,d){H(u,e,d);for(let b=0;b<t.length;b+=1)t[b]&&t[b].m(e,null);o=!0,l||(c=[K(e,"mouseleave",i[71]),K(e,"blur",i[72])],l=!0)},p(u,d){d[0]&17880064&&(r=ht(u[14]),ze(),t=ti(t,d,f,1,u,r,n,e,ei,Wt,null,Tt),Ae())},i(u){if(!o){for(let d=0;d<r.length;d+=1)j(t[d]);o=!0}},o(u){for(let d=0;d<t.length;d+=1)q(t[d]);o=!1},d(u){u&&B(e);for(let d=0;d<t.length;d+=1)t[d].d();l=!1,re(c)}}}function Ai(i){let e,t,n,o,l,c;return t=new vt({}),{c(){e=U("div"),de(t.$$.fragment),n=X(),o=U("div"),l=ue(i[7]),a(o,"class","svelte-zh3kmv"),a(e,"class","no-results svelte-zh3kmv")},m(r,f){H(r,e,f),se(t,e,null),M(e,n),M(e,o),M(o,l),c=!0},p(r,f){(!c||f[0]&128)&&Me(l,r[7])},i(r){c||(j(t.$$.fragment,r),c=!0)},o(r){q(t.$$.fragment,r),c=!1},d(r){r&&B(e),ae(t)}}}function Bi(i){let e="",t;return{c(){t=ue(e)},m(n,o){H(n,t,o)},p:v,i:v,o:v,d(n){n&&B(t)}}}function Fi(i){let e,t,n,o,l,c,r,f,u,d,b;return t=new vt({}),f=new bt({}),{c(){e=U("div"),de(t.$$.fragment),n=X(),o=U("div"),l=ue(i[6]),c=X(),r=U("button"),de(f.$$.fragment),a(o,"class","svelte-zh3kmv"),a(r,"class","svelte-zh3kmv"),a(e,"class","error svelte-zh3kmv")},m(m,E){H(m,e,E),se(t,e,null),M(e,n),M(e,o),M(o,l),M(e,c),M(e,r),se(f,r,null),u=!0,d||(b=K(r,"click",i[68]),d=!0)},p(m,E){(!u||E[0]&64)&&Me(l,m[6])},i(m){u||(j(t.$$.fragment,m),j(f.$$.fragment,m),u=!0)},o(m){q(t.$$.fragment,m),q(f.$$.fragment,m),u=!1},d(m){m&&B(e),ae(t),ae(f),d=!1,b()}}}function Wt(i,e){let t,n,o;function l(){return e[69](e[83])}function c(){return e[70](e[81])}return n=new bi({props:{feature:e[81],showPlaceType:e[10],selected:e[15]===e[83],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("focus",c),{key:i,first:null,c(){t=Zt(),de(n.$$.fragment),this.first=t},m(r,f){H(r,t,f),se(n,r,f),o=!0},p(r,f){e=r;const u={};f[0]&16384&&(u.feature=e[81]),f[0]&1024&&(u.showPlaceType=e[10]),f[0]&49152&&(u.selected=e[15]===e[83]),f[0]&4096&&(u.iconsBaseUrl=e[12]),n.$set(u)},i(r){o||(j(n.$$.fragment,r),o=!0)},o(r){q(n.$$.fragment,r),o=!1},d(r){r&&B(t),ae(n,r)}}}function Hi(i){let e,t,n,o,l,c,r,f,u,d,b,m,E,y,A,S,p,z,D,k,h,R=!1;l=new Ei({}),b=new bt({});let L=i[19]&&Mt(),T=i[5]===!0&&Ct(i);const g=i[59].default,w=Ht(g,i,i[58],null),te=[Fi,Bi,Ai,zi],O=[];function Ee(_,P){var J,Se;return _[18]?0:_[16]?((J=_[14])==null?void 0:J.length)===0?2:_[16]&&((Se=_[14])!=null&&Se.length)?3:-1:1}return~(S=Ee(i))&&(p=O[S]=te[S](i)),{c(){e=X(),t=U("form"),n=U("div"),o=U("button"),de(l.$$.fragment),c=X(),r=U("input"),f=X(),u=U("div"),d=U("button"),de(b.$$.fragment),m=X(),L&&L.c(),E=X(),T&&T.c(),y=X(),w&&w.c(),A=X(),p&&p.c(),a(o,"class","search-button svelte-zh3kmv"),a(o,"type","button"),a(r,"placeholder",i[8]),a(r,"aria-label",i[8]),a(r,"class","svelte-zh3kmv"),a(d,"type","button"),a(d,"title",i[3]),a(d,"class","svelte-zh3kmv"),a(u,"class","clear-button-container svelte-zh3kmv"),ce(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-zh3kmv"),a(t,"tabindex","0"),a(t,"class",z=ut(i[2])+" svelte-zh3kmv"),ce(t,"can-collapse",i[4]&&i[1]==="")},m(_,P){H(_,e,P),H(_,t,P),M(t,n),M(n,o),se(l,o,null),M(n,c),M(n,r),i[61](r),ct(r,i[1]),M(n,f),M(n,u),M(u,d),se(b,d,null),M(u,m),L&&L.m(u,null),M(n,E),T&&T.m(n,null),M(n,y),w&&w.m(n,null),M(t,A),~S&&O[S].m(t,null),D=!0,k||(h=[K(o,"click",i[60]),K(r,"input",i[62]),K(r,"focus",i[63]),K(r,"blur",i[64]),K(r,"keydown",i[22]),K(r,"input",i[65]),K(d,"click",i[66]),K(t,"submit",qt(i[21]))],k=!0)},p(_,P){(!D||P[0]&256)&&a(r,"placeholder",_[8]),(!D||P[0]&256)&&a(r,"aria-label",_[8]),P[0]&2&&r.value!==_[1]&&ct(r,_[1]),(!D||P[0]&8)&&a(d,"title",_[3]),_[19]?L?P[0]&524288&&j(L,1):(L=Mt(),L.c(),j(L,1),L.m(u,null)):L&&(ze(),q(L,1,1,()=>{L=null}),Ae()),(!D||P[0]&2)&&ce(u,"displayable",_[1]!==""),_[5]===!0?T?(T.p(_,P),P[0]&32&&j(T,1)):(T=Ct(_),T.c(),j(T,1),T.m(n,y)):T&&(ze(),q(T,1,1,()=>{T=null}),Ae()),w&&w.p&&(!D||P[1]&134217728)&&jt(w,g,_,_[58],D?Pt(g,_[58],P,null):Gt(_[58]),null);let J=S;S=Ee(_),S===J?~S&&O[S].p(_,P):(p&&(ze(),q(O[J],1,1,()=>{O[J]=null}),Ae()),~S?(p=O[S],p?p.p(_,P):(p=O[S]=te[S](_),p.c()),j(p,1),p.m(t,null)):p=null),(!D||P[0]&4&&z!==(z=ut(_[2])+" svelte-zh3kmv"))&&a(t,"class",z),(!D||P[0]&22)&&ce(t,"can-collapse",_[4]&&_[1]==="")},i(_){D||(j(R),j(l.$$.fragment,_),j(b.$$.fragment,_),j(L),j(T),j(w,_),j(p),D=!0)},o(_){q(R),q(l.$$.fragment,_),q(b.$$.fragment,_),q(L),q(T),q(w,_),q(p),D=!1},d(_){_&&(B(e),B(t)),ae(l),i[61](null),ae(b),L&&L.d(),T&&T.d(),w&&w.d(_),~S&&O[S].d(),k=!1,re(h)}}}function Pi(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{class:c=void 0}=e,{apiKey:r}=e,{bbox:f=void 0}=e,{clearButtonTitle:u="clear"}=e,{clearOnBlur:d=!1}=e,{collapsed:b=!1}=e,{country:m=void 0}=e,{debounceSearch:E=200}=e,{enableReverse:y=!1}=e,{errorMessage:A="Something went wrong…"}=e,{filter:S=()=>!0}=e,{flyTo:p=!0}=e,{fuzzyMatch:z=!0}=e,{language:D=void 0}=e,{limit:k=void 0}=e,{mapController:h=void 0}=e,{minLength:R=2}=e,{noResultsMessage:L="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:T="Search"}=e,{proximity:g=[{type:"server-geolocation"}]}=e,{reverseActive:w=y==="always"}=e,{reverseButtonTitle:te="toggle reverse geocoding"}=e,{searchValue:O=""}=e,{showFullGeometry:Ee=!0}=e,{showPlaceType:_="ifNeeded"}=e,{showResultsWhileTyping:P=!0}=e,{selectFirst:J=!0}=e,{flyToSelected:Se=!1}=e,{markerOnSelected:Be=!0}=e,{types:ve=void 0}=e,{excludeTypes:Fe=!1}=e,{zoom:Re=16}=e,{maxZoom:pe=18}=e,{apiUrl:Je="https://api.maptiler.com/geocoding"}=e,{fetchParameters:Xe={}}=e,{iconsBaseUrl:Dt="https://cdn.maptiler.com/maptiler-geocoding-control/v1.3.3/icons/"}=e,{adjustUrlQuery:Ye=()=>{}}=e;function qi(){ie.focus()}function Qi(){ie.blur()}function Ot(s,Z=!0,Y=!1){t(1,O=s),Z?(t(15,F=-1),It()):(tt(!Y,Y),setTimeout(()=>{ie.focus(),ie.select()}))}function Vi(){t(14,C=void 0),t(55,N=void 0),t(15,F=-1)}function Ki(){t(54,G=[]),t(55,N=void 0)}let ke=!1,C,G,N,Rt="",ie,F=-1,ne,He=[],Le,Ne,Pe,xe;const Ji=new Set,fe=Jt();Kt(()=>{h&&(h.setEventHandler(void 0),h.indicateReverse(!1),h.setSelectedMarker(-1),h.setMarkers(void 0,void 0))});function It(s){if(Ne&&(clearTimeout(Ne),Ne=void 0),F>-1&&C)t(55,N=C[F]),t(1,O=N.place_type[0]==="reverse"?N.place_name:N.place_name.replace(/,.*/,"")),t(18,ne=void 0),t(54,G=void 0),t(15,F=-1);else if(O){const Z=s||!$e(O);et(O,{exact:!0}).then(()=>{t(54,G=C),t(55,N=void 0),Z&&Xi()}).catch(Y=>t(18,ne=Y))}}function $e(s){try{return Ui(s,6)}catch{return!1}}async function et(s,{byId:Z=!1,exact:Y=!1}={}){t(18,ne=void 0),Le==null||Le.abort();const $=new AbortController;t(19,Le=$);try{const W=$e(s),ee=new URLSearchParams;if(D!==void 0&&ee.set("language",Array.isArray(D)?D.join(","):D??""),ve&&ee.set("types",ve.join(",")),Fe&&ee.set("excludeTypes",String(Fe)),f&&ee.set("bbox",f.map(Ge=>Ge.toFixed(6)).join(",")),m&&ee.set("country",Array.isArray(m)?m.join(","):m),!Z&&!W){const Ge=await pi(h,g,$);Ge&&ee.set("proximity",Ge),(Y||!P)&&ee.set("autocomplete","false"),ee.set("fuzzyMatch",String(z))}k!==void 0&&(!W||(ve==null?void 0:ve.length)===1)&&ee.set("limit",String(k)),ee.set("key",r),Ye(ee);const je=Je+"/"+encodeURIComponent(W?W.decimalLongitude+","+W.decimalLatitude:s)+".json?"+ee.toString();if(je===Rt){Z?(t(14,C=void 0),t(55,N=He[0])):t(14,C=He);return}Rt=je;const nt=await fetch(je,{signal:$.signal,...Xe});if(!nt.ok)throw new Error(await nt.text());const rt=await nt.json();fe("response",{url:je,featureCollection:rt}),Z?(t(14,C=void 0),t(55,N=rt.features[0]),He=[N]):(t(14,C=rt.features.filter(S)),W&&C.unshift({type:"Feature",properties:{},id:"reverse_"+W.decimalLongitude+"_"+W.decimalLatitude,text:W.decimalLatitude+", "+W.decimalLongitude,place_name:W.decimalLatitude+", "+W.decimalLongitude,place_type:["reverse"],center:[W.decimalLongitude,W.decimalLatitude],bbox:[W.decimalLongitude,W.decimalLatitude,W.decimalLongitude,W.decimalLatitude],geometry:{type:"Point",coordinates:[W.decimalLongitude,W.decimalLatitude]}}),He=C,W&&ie.focus())}catch(W){if(W&&typeof W=="object"&&"name"in W&&W.name==="AbortError")return;throw W}finally{$===Le&&t(19,Le=void 0)}}function Xi(){var Y;if(!(G!=null&&G.length)||!p)return;const s=[180,90,-180,-90],Z=!G.some($=>!$.matching_text);for(const $ of G)if(Z||!$.matching_text)for(const W of[0,1,2,3])s[W]=Math[W<2?"min":"max"](s[W],((Y=$.bbox)==null?void 0:Y[W])??$.center[W%2]);h&&G.length>0&&(N&&s[0]===s[2]&&s[1]===s[3]?h.flyTo(N.center,Re):h.fitBounds(_t(s),50,pe))}function Yi(s){t(0,w=y==="always"),t(14,C=void 0),t(55,N=void 0),t(15,F=-1),Ot(s[1].toFixed(6)+", "+Si(s[0],[-180,180],!0).toFixed(6),!1,!0)}function xi(s){if(!C)return;let Z=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;Z&&(F===(J?0:-1)&&Z===-1&&t(15,F=C.length),t(15,F+=Z),F>=C.length&&t(15,F=-1),F<0&&J&&t(15,F=0),s.preventDefault())}function tt(s=!0,Z=!1){if(t(18,ne=void 0),P||Z){if(Ne&&clearTimeout(Ne),O.length<R)return;const Y=O;Ne=window.setTimeout(()=>{et(Y).catch($=>t(18,ne=$))},s?E:0)}else t(14,C=void 0),t(18,ne=void 0)}function it(s){t(55,N=s),t(1,O=s.place_name),t(15,F=-1)}const $i=()=>ie.focus();function en(s){Ze[s?"unshift":"push"](()=>{ie=s,t(17,ie)})}function tn(){O=this.value,t(1,O),t(13,ke),t(27,d)}const nn=()=>t(13,ke=!0),rn=()=>t(13,ke=!1),on=()=>tt(),sn=()=>{t(1,O=""),ie.focus()},an=()=>t(0,w=!w),ln=()=>t(18,ne=void 0),un=s=>t(15,F=s),cn=s=>it(s),dn=()=>{J||t(15,F=-1)},fn=()=>{};return i.$$set=s=>{"class"in s&&t(2,c=s.class),"apiKey"in s&&t(25,r=s.apiKey),"bbox"in s&&t(26,f=s.bbox),"clearButtonTitle"in s&&t(3,u=s.clearButtonTitle),"clearOnBlur"in s&&t(27,d=s.clearOnBlur),"collapsed"in s&&t(4,b=s.collapsed),"country"in s&&t(28,m=s.country),"debounceSearch"in s&&t(29,E=s.debounceSearch),"enableReverse"in s&&t(5,y=s.enableReverse),"errorMessage"in s&&t(6,A=s.errorMessage),"filter"in s&&t(30,S=s.filter),"flyTo"in s&&t(31,p=s.flyTo),"fuzzyMatch"in s&&t(32,z=s.fuzzyMatch),"language"in s&&t(33,D=s.language),"limit"in s&&t(34,k=s.limit),"mapController"in s&&t(35,h=s.mapController),"minLength"in s&&t(36,R=s.minLength),"noResultsMessage"in s&&t(7,L=s.noResultsMessage),"placeholder"in s&&t(8,T=s.placeholder),"proximity"in s&&t(37,g=s.proximity),"reverseActive"in s&&t(0,w=s.reverseActive),"reverseButtonTitle"in s&&t(9,te=s.reverseButtonTitle),"searchValue"in s&&t(1,O=s.searchValue),"showFullGeometry"in s&&t(38,Ee=s.showFullGeometry),"showPlaceType"in s&&t(10,_=s.showPlaceType),"showResultsWhileTyping"in s&&t(39,P=s.showResultsWhileTyping),"selectFirst"in s&&t(11,J=s.selectFirst),"flyToSelected"in s&&t(40,Se=s.flyToSelected),"markerOnSelected"in s&&t(41,Be=s.markerOnSelected),"types"in s&&t(42,ve=s.types),"excludeTypes"in s&&t(43,Fe=s.excludeTypes),"zoom"in s&&t(44,Re=s.zoom),"maxZoom"in s&&t(45,pe=s.maxZoom),"apiUrl"in s&&t(46,Je=s.apiUrl),"fetchParameters"in s&&t(47,Xe=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Dt=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(48,Ye=s.adjustUrlQuery),"$$scope"in s&&t(58,l=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,w=y==="always"),i.$$.dirty[0]&134225920&&setTimeout(()=>{t(16,Pe=ke),d&&!ke&&t(1,O="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&32&&O.length<R&&(t(55,N=void 0),t(14,C=void 0),t(18,ne=void 0),t(54,G=C)),i.$$.dirty[1]&16777344&&Ee&&N&&!N.address&&N.geometry.type==="Point"&&N.place_type[0]!=="reverse"&&et(N.id,{byId:!0}).catch(s=>t(18,ne=s)),i.$$.dirty[1]&50356241&&(h&&N&&N.id!==xe&&p&&(!N.bbox||N.bbox[0]===N.bbox[2]&&N.bbox[1]===N.bbox[3]?h.flyTo(N.center,N.id.startsWith("poi.")||N.id.startsWith("address.")?pe:Re):h.fitBounds(_t(N.bbox),50,pe),t(14,C=void 0),t(54,G=void 0),t(15,F=-1)),t(56,xe=N==null?void 0:N.id)),i.$$.dirty[0]&18432&&J&&C!=null&&C.length&&t(15,F=0),i.$$.dirty[0]&2050&&(J||t(15,F=-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&8388608&&G!==C&&t(54,G=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&8388624&&h&&h.setEventHandler(s=>{switch(s.type){case"mapClick":w&&Yi(s.coordinates);break;case"markerClick":{const Z=C==null?void 0:C.find(Y=>Y.id===s.id);Z&&it(Z)}break;case"markerMouseEnter":G&&t(15,F=Pe?(C==null?void 0:C.findIndex(Z=>Z.id===s.id))??-1:-1);break;case"markerMouseLeave":G&&t(15,F=-1);break}}),i.$$.dirty[0]&49152&&t(57,n=C==null?void 0:C[F]),i.$$.dirty[1]&67133969&&h&&n&&p&&Se&&h.flyTo(n.center,n.id.startsWith("poi.")||n.id.startsWith("address.")?pe:Re),i.$$.dirty[1]&1040&&(Be||h==null||h.setMarkers(void 0,void 0)),i.$$.dirty[1]&75498512&&h&&Be&&!G&&(h.setMarkers(n?[n]:void 0,void 0),h.setSelectedMarker(n?0:-1)),i.$$.dirty[1]&25165840&&h&&h.setMarkers(G,N),i.$$.dirty[0]&32768|i.$$.dirty[1]&8388624&&G&&h&&h.setSelectedMarker(F),i.$$.dirty[0]&2|i.$$.dirty[1]&16&&h){const s=$e(O);h.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&67108864&&fe("select",n),i.$$.dirty[1]&16777216&&fe("pick",N),i.$$.dirty[0]&81920&&fe("optionsVisibilityChange",Pe&&!!C),i.$$.dirty[0]&16384&&fe("featuresListed",C),i.$$.dirty[1]&8388608&&fe("featuresMarked",G),i.$$.dirty[0]&1&&fe("reverseToggle",w),i.$$.dirty[0]&2&&fe("queryChange",O),i.$$.dirty[0]&1|i.$$.dirty[1]&16&&h&&h.indicateReverse(w)},[w,O,c,u,b,y,A,L,T,te,_,J,Dt,ke,C,F,Pe,ie,ne,Le,Ji,It,xi,tt,it,r,f,d,m,E,S,p,z,D,k,h,R,g,Ee,P,Se,Be,ve,Fe,Re,pe,Je,Xe,Ye,qi,Qi,Ot,Vi,Ki,G,N,xe,n,l,o,$i,en,tn,nn,rn,on,sn,an,ln,un,cn,dn,fn]}let ji=class extends be{constructor(e){super(),he(this,e,Pi,Hi,me,{class:2,apiKey:25,bbox:26,clearButtonTitle:3,clearOnBlur:27,collapsed:4,country:28,debounceSearch:29,enableReverse:5,errorMessage:6,filter:30,flyTo:31,fuzzyMatch:32,language:33,limit:34,mapController:35,minLength:36,noResultsMessage:7,placeholder:8,proximity:37,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:38,showPlaceType:10,showResultsWhileTyping:39,selectFirst:11,flyToSelected:40,markerOnSelected:41,types:42,excludeTypes:43,zoom:44,maxZoom:45,apiUrl:46,fetchParameters:47,iconsBaseUrl:12,adjustUrlQuery:48,focus:49,blur:50,setQuery:51,clearList:52,clearMap:53},null,[-1,-1,-1])}get focus(){return this.$$.ctx[49]}get blur(){return this.$$.ctx[50]}get setQuery(){return this.$$.ctx[51]}get clearList(){return this.$$.ctx[52]}get clearMap(){return this.$$.ctx[53]}};const Gi=new FinalizationRegistry(i=>{i.$destroy()});class Zi extends EventTarget{constructor({target:t,...n}){super();At(this,x);Bt(this,x,new ji({target:t,props:n}));for(const o of["select","pick","featuresListed","featuresMarked","response","optionsVisibilityChange","reverseToggle","queryChange"])le(this,x).$on(o,l=>this.dispatchEvent(l));Gi.register(this,le(this,x))}setOptions(t){le(this,x).$set(t)}setQuery(t,n=!0){var o;(o=le(this,x))==null||o.setQuery(t,n)}clearMap(){var t;(t=le(this,x))==null||t.clearMap()}clearList(){var t;(t=le(this,x))==null||t.clearList()}focus(){var t;(t=le(this,x))==null||t.focus()}blur(){var t;(t=le(this,x))==null||t.blur()}}x=new WeakMap,I.GeocodingControl=Zi,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(R,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(R=typeof globalThis<"u"?globalThis:R||self,L(R.maptilerGeocoder={}))})(this,function(R){"use strict";var hn=Object.defineProperty;var Bt=R=>{throw TypeError(R)};var bn=(R,L,K)=>L in R?hn(R,L,{enumerable:!0,configurable:!0,writable:!0,value:K}):R[L]=K;var at=(R,L,K)=>bn(R,typeof L!="symbol"?L+"":L,K),Ft=(R,L,K)=>L.has(R)||Bt("Cannot "+K);var de=(R,L,K)=>(Ft(R,L,"read from private field"),K?K.call(R):L.get(R)),jt=(R,L,K)=>L.has(R)?Bt("Cannot add the same private member more than once"):L instanceof WeakSet?L.add(R):L.set(R,K),qt=(R,L,K,ke)=>(Ft(R,L,"write to private field"),ke?ke.call(R,K):L.set(R,K),K);var $;function L(){}function K(i,e){for(const t in e)i[t]=e[t];return i}function ke(i){return i()}function lt(){return Object.create(null)}function ae(i){i.forEach(ke)}function ut(i){return typeof i=="function"}function be(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ie;function x(i,e){return i===e?!0:(Ie||(Ie=document.createElement("a")),Ie.href=e,i===Ie.href)}function zt(i){return Object.keys(i).length===0}function Ht(i,e,t,n){if(i){const o=ct(i,e,t,n);return i[0](o)}}function ct(i,e,t,n){return i[1]&&n?K(t.ctx.slice(),i[1](n(e))):t.ctx}function Pt(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const l=[],c=Math.max(e.dirty.length,o.length);for(let r=0;r<c;r+=1)l[r]=e.dirty[r]|o[r];return l}return e.dirty|o}return e.dirty}function Zt(i,e,t,n,o,l){if(o){const c=ct(e,t,n,l);i.p(c,o)}}function Gt(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function dt(i){return i??""}function T(i,e){i.appendChild(e)}function B(i,e,t){i.insertBefore(e,t||null)}function I(i){i.parentNode&&i.parentNode.removeChild(i)}function U(i){return document.createElement(i)}function le(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function fe(i){return document.createTextNode(i)}function X(){return fe(" ")}function Qt(){return fe("")}function J(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Vt(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 Kt(i){return Array.from(i.childNodes)}function Ce(i,e){e=""+e,i.data!==e&&(i.data=e)}function ft(i,e){i.value=e??""}function me(i,e,t){i.classList.toggle(e,!!t)}function xt(i,e,{bubbles:t=!1,cancelable:n=!1}={}){return new CustomEvent(i,{detail:e,bubbles:t,cancelable:n})}let We;function Oe(i){We=i}function mt(){if(!We)throw new Error("Function called outside component initialization");return We}function Jt(i){mt().$$.on_destroy.push(i)}function Xt(){const i=mt();return(e,t,{cancelable:n=!1}={})=>{const o=i.$$.callbacks[e];if(o){const l=xt(e,t,{cancelable:n});return o.slice().forEach(c=>{c.call(i,l)}),!l.defaultPrevented}return!0}}function gt(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Ee=[],Ge=[];let Se=[];const ht=[],Yt=Promise.resolve();let Qe=!1;function $t(){Qe||(Qe=!0,Yt.then(bt))}function Ve(i){Se.push(i)}const Ke=new Set;let pe=0;function bt(){if(pe!==0)return;const i=We;do{try{for(;pe<Ee.length;){const e=Ee[pe];pe++,Oe(e),ei(e.$$)}}catch(e){throw Ee.length=0,pe=0,e}for(Oe(null),Ee.length=0,pe=0;Ge.length;)Ge.pop()();for(let e=0;e<Se.length;e+=1){const t=Se[e];Ke.has(t)||(Ke.add(t),t())}Se.length=0}while(Ee.length);for(;ht.length;)ht.pop()();Qe=!1,Ke.clear(),Oe(i)}function ei(i){if(i.fragment!==null){i.update(),ae(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Ve)}}function ti(i){const e=[],t=[];Se.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Se=e}const Ae=new Set;let ve;function Be(){ve={r:0,c:[],p:ve}}function Fe(){ve.r||ae(ve.c),ve=ve.p}function j(i,e){i&&i.i&&(Ae.delete(i),i.i(e))}function Q(i,e,t,n){if(i&&i.o){if(Ae.has(i))return;Ae.add(i),ve.c.push(()=>{Ae.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function vt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function ii(i,e){Q(i,1,1,()=>{e.delete(i.key)})}function ni(i,e,t,n,o,l,c,r,d,u,f,h){let v=i.length,y=l.length,E=v;const O={};for(;E--;)O[i[E].key]=E;const w=[],S=new Map,W=new Map,D=[];for(E=y;E--;){const g=h(o,l,E),m=t(g);let C=c.get(m);C?D.push(()=>C.p(g,e)):(C=u(m,g),C.c()),S.set(m,w[E]=C),m in O&&W.set(m,Math.abs(E-O[m]))}const N=new Set,V=new Set;function b(g){j(g,1),g.m(r,f),c.set(g.key,g),f=g.first,y--}for(;v&&y;){const g=w[y-1],m=i[v-1],C=g.key,z=m.key;g===m?(f=g.first,v--,y--):S.has(z)?!c.has(C)||N.has(C)?b(g):V.has(z)?v--:W.get(C)>W.get(z)?(V.add(C),b(g)):(N.add(z),v--):(d(m,c),v--)}for(;v--;){const g=i[v];S.has(g.key)||d(g,c)}for(;y;)b(w[y-1]);return ae(D),w}function ge(i){i&&i.c()}function ue(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Ve(()=>{const l=i.$$.on_mount.map(ke).filter(ut);i.$$.on_destroy?i.$$.on_destroy.push(...l):ae(l),i.$$.on_mount=[]}),o.forEach(Ve)}function ce(i,e){const t=i.$$;t.fragment!==null&&(ti(t.after_update),ae(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function ri(i,e){i.$$.dirty[0]===-1&&(Ee.push(i),$t(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function Le(i,e,t,n,o,l,c=null,r=[-1]){const d=We;Oe(i);const u=i.$$={fragment:null,ctx:[],props:l,update:L,not_equal:o,bound:lt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:lt(),dirty:r,skip_bound:!1,root:e.target||d.$$.root};c&&c(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(h,v,...y)=>{const E=y.length?y[0]:v;return u.ctx&&o(u.ctx[h],u.ctx[h]=E)&&(!u.skip_bound&&u.bound[h]&&u.bound[h](E),f&&ri(i,h)),v}):[],u.update(),f=!0,ae(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){const h=Kt(e.target);u.fragment&&u.fragment.l(h),h.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&j(i.$$.fragment),ue(i,e.target,e.anchor),bt()}Oe(d)}class _e{constructor(){at(this,"$$");at(this,"$$set")}$destroy(){ce(this,1),this.$destroy=L}$on(e,t){if(!ut(t))return L;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!zt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const oi="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(oi);function si(i){let e,t;return{c(){e=le("svg"),t=le("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,o){B(n,e,o),T(e,t)},p:L,i:L,o:L,d(n){n&&I(e)}}}class Lt extends _e{constructor(e){super(),Le(this,e,null,si,be,{})}}function ai(i){let e,t;return{c(){e=le("svg"),t=le("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,o){B(n,e,o),T(e,t)},p:L,i:L,o:L,d(n){n&&I(e)}}}class _t extends _e{constructor(e){super(),Le(this,e,null,ai,be,{})}}function li(i){let e,t;return{c(){e=U("img"),x(e.src,t=i[3]+"area.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){B(n,e,o)},p(n,o){o&8&&!x(e.src,t=n[3]+"area.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function ui(i){let e,t;return{c(){e=U("img"),x(e.src,t=i[3]+"reverse.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){B(n,e,o)},p(n,o){o&8&&!x(e.src,t=n[3]+"reverse.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function ci(i){let e,t;return{c(){e=U("img"),x(e.src,t=i[3]+"poi.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){B(n,e,o)},p(n,o){o&8&&!x(e.src,t=n[3]+"poi.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function di(i){let e,t;return{c(){e=U("img"),x(e.src,t=i[3]+"postal_code.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){B(n,e,o)},p(n,o){o&8&&!x(e.src,t=n[3]+"postal_code.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function fi(i){let e,t;return{c(){e=U("img"),x(e.src,t=i[3]+"street.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){B(n,e,o)},p(n,o){o&8&&!x(e.src,t=n[3]+"street.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function mi(i){let e,t;return{c(){e=U("img"),x(e.src,t=i[3]+"road.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){B(n,e,o)},p(n,o){o&8&&!x(e.src,t=n[3]+"road.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function gi(i){let e,t;return{c(){e=U("img"),x(e.src,t=i[3]+"housenumber.svg")||a(e,"src",t),a(e,"alt",i[6]),a(e,"class","svelte-ltkwvy")},m(n,o){B(n,e,o)},p(n,o){o&8&&!x(e.src,t=n[3]+"housenumber.svg")&&a(e,"src",t),o&64&&a(e,"alt",n[6])},d(n){n&&I(e)}}}function hi(i){let e,t,n,o;return{c(){e=U("img"),x(e.src,t=i[5])||a(e,"src",t),a(e,"alt",i[4]),a(e,"class","svelte-ltkwvy")},m(l,c){B(l,e,c),n||(o=J(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])},d(l){l&&I(e),n=!1,o()}}}function yt(i){let e,t;return{c(){e=U("span"),t=fe(i[6]),a(e,"class","secondary svelte-ltkwvy")},m(n,o){B(n,e,o),T(e,t)},p(n,o){o&64&&Ce(t,n[6])},d(n){n&&I(e)}}}function bi(i){let e,t,n,o,l,c,r,d,u,f=(i[7]?i[0].place_name:i[0].place_name.replace(/,.*/,""))+"",h,v,y=i[2]==="always"||i[2]&&!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[7],E,O,w=(i[7]?"":i[0].place_name.replace(/[^,]*,?\s*/,""))+"",S,W,D;function N(m,C){return C&1&&(t=null),C&1&&(n=null),C&1&&(o=null),C&1&&(l=null),m[5]?hi:m[0].address?gi:(t==null&&(t=!!m[0].id.startsWith("road.")),t?mi:(n==null&&(n=!!m[0].id.startsWith("address.")),n?fi:(o==null&&(o=!!m[0].id.startsWith("postal_code.")),o?di:(l==null&&(l=!!m[0].id.startsWith("poi.")),l?ci:m[7]?ui:li))))}let V=N(i,-1),b=V(i),g=y&&yt(i);return{c(){e=U("li"),b.c(),c=X(),r=U("span"),d=U("span"),u=U("span"),h=fe(f),v=X(),g&&g.c(),E=X(),O=U("span"),S=fe(w),a(u,"class","primary svelte-ltkwvy"),a(d,"class","svelte-ltkwvy"),a(O,"class","line2 svelte-ltkwvy"),a(r,"class","texts svelte-ltkwvy"),a(e,"tabindex","0"),a(e,"data-selected",i[1]),a(e,"class","svelte-ltkwvy"),me(e,"selected",i[1])},m(m,C){B(m,e,C),b.m(e,null),T(e,c),T(e,r),T(r,d),T(d,u),T(u,h),T(d,v),g&&g.m(d,null),T(r,E),T(r,O),T(O,S),W||(D=[J(e,"mouseenter",i[12]),J(e,"focus",i[13])],W=!0)},p(m,[C]){V===(V=N(m,C))&&b?b.p(m,C):(b.d(1),b=V(m),b&&(b.c(),b.m(e,c))),C&1&&f!==(f=(m[7]?m[0].place_name:m[0].place_name.replace(/,.*/,""))+"")&&Ce(h,f),C&37&&(y=m[2]==="always"||m[2]&&!m[0].address&&!m[0].id.startsWith("road.")&&!m[0].id.startsWith("address.")&&!m[0].id.startsWith("postal_code.")&&(!m[0].id.startsWith("poi.")||!m[5])&&!m[7]),y?g?g.p(m,C):(g=yt(m),g.c(),g.m(d,null)):g&&(g.d(1),g=null),C&1&&w!==(w=(m[7]?"":m[0].place_name.replace(/[^,]*,?\s*/,""))+"")&&Ce(S,w),C&2&&a(e,"data-selected",m[1]),C&2&&me(e,"selected",m[1])},i:L,o:L,d(m){m&&I(e),b.d(),g&&g.d(),W=!1,ae(D)}}}function vi(i,e,t){var D;let n,o,{feature:l}=e,{selected:c=!1}=e,{showPlaceType:r}=e,{missingIconsCache:d}=e,{iconsBaseUrl:u}=e;const f=(D=l.properties)==null?void 0:D.categories;let h,v,y=0,E=l.place_type[0]==="reverse";function O(){v&&d.add(v),t(10,y++,y)}function w(N){gt.call(this,i,N)}function S(N){gt.call(this,i,N)}const W=()=>O();return i.$$set=N=>{"feature"in N&&t(0,l=N.feature),"selected"in N&&t(1,c=N.selected),"showPlaceType"in N&&t(2,r=N.showPlaceType),"missingIconsCache"in N&&t(9,d=N.missingIconsCache),"iconsBaseUrl"in N&&t(3,u=N.iconsBaseUrl)},i.$$.update=()=>{var N,V,b,g;if(i.$$.dirty&3640)do t(11,n--,n),t(4,h=f==null?void 0:f[n]),t(5,v=h?u+h.replace(/ /g,"_")+".svg":void 0);while(n>-1&&(!v||d.has(v)));i.$$.dirty&1&&t(6,o=((V=(N=l.properties)==null?void 0:N.categories)==null?void 0:V.join(", "))??((g=(b=l.properties)==null?void 0:b.place_type_name)==null?void 0:g[0])??l.place_type[0])},t(11,n=(f==null?void 0:f.length)??0),[l,c,r,u,h,v,o,E,O,d,y,n,w,S,W]}class Li extends _e{constructor(e){super(),Le(this,e,vi,bi,be,{feature:0,selected:1,showPlaceType:2,missingIconsCache:9,iconsBaseUrl:3})}}function _i(i){let e;return{c(){e=U("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:L,i:L,o:L,d(t){t&&I(e)}}}class yi extends _e{constructor(e){super(),Le(this,e,null,_i,be,{})}}function wi(i){let e,t;return{c(){e=le("svg"),t=le("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,o){B(n,e,o),T(e,t)},p:L,i:L,o:L,d(n){n&&I(e)}}}class Ei extends _e{constructor(e){super(),Le(this,e,null,wi,be,{})}}function Si(i){let e,t,n;return{c(){e=le("svg"),t=le("circle"),n=le("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(o,l){B(o,e,l),T(e,t),T(e,n)},p:L,i:L,o:L,d(o){o&&I(e)}}}class pi extends _e{constructor(e){super(),Le(this,e,null,Si,be,{})}}function Ni(i,e,t){const n=e[1],o=e[0],l=n-o;return i===n&&t?i:((i-o)%l+l)%l+o}function wt(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 De;async function Mi(i,e,t){const n=i==null?void 0:i.getCenterAndZoom();for(const o of e??[])if(!(n&&(o.minZoom!=null&&o.minZoom>n[0]||o.maxZoom!=null&&o.maxZoom<n[0]))){if(o.type==="fixed")return o.coordinates.join(",");e:if(o.type==="client-geolocation"){if(De&&o.cachedLocationExpiry&&De.time+o.cachedLocationExpiry>Date.now()){if(!De.coords)break e;return De.coords}let l;try{return l=await new Promise((c,r)=>{t.signal.addEventListener("abort",()=>{r(Error("aborted"))}),navigator.geolocation.getCurrentPosition(d=>{c([d.coords.longitude,d.coords.latitude].map(u=>u.toFixed(6)).join(","))},d=>{r(d)},o)}),l}catch{}finally{o.cachedLocationExpiry&&(De={time:Date.now(),coords:l})}if(t.signal.aborted)return}if(o.type==="server-geolocation")return"ip";if(n&&o.type==="map-center")return n[1].toFixed(6)+","+n[2].toFixed(6)}}const Ti=/^(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,Et=/^([+-]?[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,})$/,St=/^(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,pt=/^(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,Nt=/^(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,Mt=/^(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]),o=Math.abs(t),l=Math.abs(n),c=t>0?"N":"S",r=n>0?"E":"W";let d;i=="DD"&&(d=`${o}° ${c}, ${l}° ${r}`);const u=Math.floor(o),f=Math.floor(l),h=(o-u)*60,v=(l-f)*60;if(i=="DM"){let y=Tt(h,3).toFixed(3).padStart(6,"0"),E=Tt(v,3).toFixed(3).padStart(6,"0");y.endsWith(".000")&&E.endsWith(".000")&&(y=y.replace(/\.000$/,""),E=E.replace(/\.000$/,"")),d=`${u}° ${y}' ${c}, ${f}° ${E}' ${r}`}if(i=="DMS"){const y=Math.floor(h),E=Math.floor(v);let O=((h-y)*60).toFixed(1).padStart(4,"0"),w=((v-E)*60).toFixed(1).padStart(4,"0");const S=y.toString().padStart(2,"0"),W=E.toString().padStart(2,"0");O.endsWith(".0")&&w.endsWith(".0")&&(O=O.replace(/\.0$/,""),w=w.replace(/\.0$/,"")),d=`${u}° ${S}' ${O}" ${c}, ${f}° ${W}' ${w}" ${r}`}return d}else throw new Error("no decimal coordinates to convert")}function Tt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function xe(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,n=null,o="",l="",c=null,r=[],d=!1;if(Ti.test(i))throw new Error("invalid coordinate value");if(Et.test(i))if(r=Et.exec(i),d=Re(r),d)t=Math.abs(r[1])+r[2]/60,Number(r[1])<0&&(t*=-1),n=Math.abs(r[3])+r[4]/60,Number(r[3])<0&&(n*=-1),c="DM";else throw new Error("invalid coordinate format");else if(St.test(i))if(r=St.exec(i),d=Re(r),d){if(t=r[2],n=r[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");r[1]?(o=r[1],l=r[5]):r[4]&&(o=r[4],l=r[8])}else throw new Error("invalid decimal coordinate format");else if(pt.test(i))if(r=pt.exec(i),d=Re(r),d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,c="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,c="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[9])),r[11]&&(n+=r[11]/60),r[13]&&(n+=r[13].replace(",",".")/3600),parseInt(r[9])<0&&(n=-1*n),r[1]?(o=r[1],l=r[8]):r[7]&&(o=r[7],l=r[14]);else throw new Error("invalid DMS coordinates format");else if(Nt.test(i))if(r=Nt.exec(i),d=Re(r),d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4]/60,c="DM"),r[6]&&(t+=r[6]/3600,c="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12]/60),r[14]&&(n+=r[14]/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],l=r[9]):r[8]&&(o=r[8],l=r[16]);else throw new Error("invalid DMS coordinates format");else if(Mt.test(i)){if(r=Mt.exec(i),d=Re(r),r.filter(u=>u).length<=5)throw new Error("invalid coordinates format");if(d)t=Math.abs(parseInt(r[2])),r[4]&&(t+=r[4].replace(",",".")/60,c="DM"),r[6]&&(t+=r[6].replace(",",".")/3600,c="DMS"),parseInt(r[2])<0&&(t=-1*t),n=Math.abs(parseInt(r[10])),r[12]&&(n+=r[12].replace(",",".")/60),r[14]&&(n+=r[14].replace(",",".")/3600),parseInt(r[10])<0&&(n=-1*n),r[1]?(o=r[1],l=r[9]):r[8]&&(o=r[8],l=r[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(o&&!l||!o&&l)throw new Error("invalid coordinates value");if(o&&o==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(o)&&t>0&&(t=-1*t),u=/W|WEST/i,u.test(l)&&n>0&&(n=-1*n);const f=r[0].trim();let h,v;const y=/[,/;\u0020]/g,E=f.match(y);if(E==null){const S=Math.floor(i.length/2);h=f.substring(0,S).trim(),v=f.substring(S).trim()}else{let S;E.length%2==1?S=Math.floor(E.length/2):S=E.length/2-1;let W=0;if(S==0)W=f.indexOf(E[0]),h=f.substring(0,W).trim(),v=f.substring(W+1).trim();else{let D=0,N=0;for(;D<=S;)W=f.indexOf(E[D],N),N=W+1,D++;h=f.substring(0,W).trim(),v=f.substring(W+1).trim()}}const O=h.split(".");if(O.length==2&&O[1]==0&&O[1].length!=2)throw new Error("invalid coordinates format");const w=v.split(".");if(w.length==2&&w[1]==0&&w[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(h)||/^\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:h,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:n,decimalCoordinates:`${t},${n}`,originalFormat:c,closeEnough:Ci,toCoordinateFormat:ki})}else throw new Error("coordinates pattern match failed")}function Re(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,o=e.length/2;for(let l=0;l<o;l++){const c=e[l],r=e[l+o],d=t.test(c)&&t.test(r),u=n.test(c)&&n.test(r),f=c==r;if(!(c==null&&r==null)){if(c==null||r==null)return!1;if(d||u||f)continue;return!1}}return!0}function kt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function Ci(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 kt(this.decimalLatitude,Number(e[0]))&&kt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const Wi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});xe.to=Wi;const Oi=[{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"}],Di={decimalLatitude:40.123,decimalLongitude:-74.123},Ri=[{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}],Ui=[{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 Ii(){const i=[];return Oi.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Di})}),[...i,...Ri,...Ui]}const Ai=Ii();xe.formats=Ai.map(i=>i.verbatimCoordinates);const Bi=xe;function Ct(i,e,t){const n=i.slice();return n[83]=e[t],n[85]=t,n}function Wt(i){let e,t;return e=new yi({}),{c(){ge(e.$$.fragment)},m(n,o){ue(e,n,o),t=!0},i(n){t||(j(e.$$.fragment,n),t=!0)},o(n){Q(e.$$.fragment,n),t=!1},d(n){ce(e,n)}}}function Ot(i){let e,t,n,o,l;return t=new Ei({}),{c(){e=U("button"),ge(t.$$.fragment),a(e,"type","button"),a(e,"title",i[9]),a(e,"class","svelte-qnu791"),me(e,"active",i[0])},m(c,r){B(c,e,r),ue(t,e,null),n=!0,o||(l=J(e,"click",i[68]),o=!0)},p(c,r){(!n||r[0]&512)&&a(e,"title",c[9]),(!n||r[0]&1)&&me(e,"active",c[0])},i(c){n||(j(t.$$.fragment,c),n=!0)},o(c){Q(t.$$.fragment,c),n=!1},d(c){c&&I(e),ce(t),o=!1,l()}}}function Fi(i){let e,t=[],n=new Map,o,l,c,r=vt(i[14]);const d=u=>u[83].id+(u[83].address?","+u[83].address:"");for(let u=0;u<r.length;u+=1){let f=Ct(i,r,u),h=d(f);n.set(h,t[u]=Dt(h,f))}return{c(){e=U("ul");for(let u=0;u<t.length;u+=1)t[u].c();a(e,"class","svelte-qnu791")},m(u,f){B(u,e,f);for(let h=0;h<t.length;h+=1)t[h]&&t[h].m(e,null);o=!0,l||(c=[J(e,"mouseleave",i[72]),J(e,"blur",i[73])],l=!0)},p(u,f){f[0]&17880064&&(r=vt(u[14]),Be(),t=ni(t,f,d,1,u,r,n,e,ii,Dt,null,Ct),Fe())},i(u){if(!o){for(let f=0;f<r.length;f+=1)j(t[f]);o=!0}},o(u){for(let f=0;f<t.length;f+=1)Q(t[f]);o=!1},d(u){u&&I(e);for(let f=0;f<t.length;f+=1)t[f].d();l=!1,ae(c)}}}function ji(i){let e,t,n,o,l,c;return t=new _t({}),{c(){e=U("div"),ge(t.$$.fragment),n=X(),o=U("div"),l=fe(i[7]),a(o,"class","svelte-qnu791"),a(e,"class","no-results svelte-qnu791")},m(r,d){B(r,e,d),ue(t,e,null),T(e,n),T(e,o),T(o,l),c=!0},p(r,d){(!c||d[0]&128)&&Ce(l,r[7])},i(r){c||(j(t.$$.fragment,r),c=!0)},o(r){Q(t.$$.fragment,r),c=!1},d(r){r&&I(e),ce(t)}}}function qi(i){let e="",t;return{c(){t=fe(e)},m(n,o){B(n,t,o)},p:L,i:L,o:L,d(n){n&&I(t)}}}function zi(i){let e,t,n,o,l,c,r,d,u,f,h;return t=new _t({}),d=new Lt({}),{c(){e=U("div"),ge(t.$$.fragment),n=X(),o=U("div"),l=fe(i[6]),c=X(),r=U("button"),ge(d.$$.fragment),a(o,"class","svelte-qnu791"),a(r,"class","svelte-qnu791"),a(e,"class","error svelte-qnu791")},m(v,y){B(v,e,y),ue(t,e,null),T(e,n),T(e,o),T(o,l),T(e,c),T(e,r),ue(d,r,null),u=!0,f||(h=J(r,"click",i[69]),f=!0)},p(v,y){(!u||y[0]&64)&&Ce(l,v[6])},i(v){u||(j(t.$$.fragment,v),j(d.$$.fragment,v),u=!0)},o(v){Q(t.$$.fragment,v),Q(d.$$.fragment,v),u=!1},d(v){v&&I(e),ce(t),ce(d),f=!1,h()}}}function Dt(i,e){let t,n,o;function l(){return e[70](e[85])}function c(){return e[71](e[83])}return n=new Li({props:{feature:e[83],showPlaceType:e[10],selected:e[15]===e[85],missingIconsCache:e[20],iconsBaseUrl:e[12]}}),n.$on("mouseenter",l),n.$on("focus",c),{key:i,first:null,c(){t=Qt(),ge(n.$$.fragment),this.first=t},m(r,d){B(r,t,d),ue(n,r,d),o=!0},p(r,d){e=r;const u={};d[0]&16384&&(u.feature=e[83]),d[0]&1024&&(u.showPlaceType=e[10]),d[0]&49152&&(u.selected=e[15]===e[85]),d[0]&4096&&(u.iconsBaseUrl=e[12]),n.$set(u)},i(r){o||(j(n.$$.fragment,r),o=!0)},o(r){Q(n.$$.fragment,r),o=!1},d(r){r&&I(t),ce(n,r)}}}function Hi(i){let e,t,n,o,l,c,r,d,u,f,h,v,y,E,O,w,S,W,D,N,V,b=!1;l=new pi({}),h=new Lt({});let g=i[19]&&Wt(),m=i[5]===!0&&Ot(i);const C=i[60].default,z=Ht(C,i,i[59],null),ee=[zi,qi,ji,Fi],te=[];function H(_,q){var ie,ne;return _[18]?0:_[16]?((ie=_[14])==null?void 0:ie.length)===0?2:_[16]&&((ne=_[14])!=null&&ne.length)?3:-1:1}return~(w=H(i))&&(S=te[w]=ee[w](i)),{c(){e=X(),t=U("form"),n=U("div"),o=U("button"),ge(l.$$.fragment),c=X(),r=U("input"),d=X(),u=U("div"),f=U("button"),ge(h.$$.fragment),v=X(),g&&g.c(),y=X(),m&&m.c(),E=X(),z&&z.c(),O=X(),S&&S.c(),a(o,"class","search-button svelte-qnu791"),a(o,"type","button"),a(r,"placeholder",i[8]),a(r,"aria-label",i[8]),a(r,"class","svelte-qnu791"),a(f,"type","button"),a(f,"title",i[3]),a(f,"class","svelte-qnu791"),a(u,"class","clear-button-container svelte-qnu791"),me(u,"displayable",i[1]!==""),a(n,"class","input-group svelte-qnu791"),a(t,"tabindex","0"),a(t,"class",W=dt(i[2])+" svelte-qnu791"),me(t,"can-collapse",i[4]&&i[1]==="")},m(_,q){B(_,e,q),B(_,t,q),T(t,n),T(n,o),ue(l,o,null),T(n,c),T(n,r),i[62](r),ft(r,i[1]),T(n,d),T(n,u),T(u,f),ue(h,f,null),T(u,v),g&&g.m(u,null),T(n,y),m&&m.m(n,null),T(n,E),z&&z.m(n,null),T(t,O),~w&&te[w].m(t,null),D=!0,N||(V=[J(o,"click",i[61]),J(r,"input",i[63]),J(r,"focus",i[64]),J(r,"blur",i[65]),J(r,"keydown",i[22]),J(r,"input",i[66]),J(f,"click",i[67]),J(t,"submit",Vt(i[21]))],N=!0)},p(_,q){(!D||q[0]&256)&&a(r,"placeholder",_[8]),(!D||q[0]&256)&&a(r,"aria-label",_[8]),q[0]&2&&r.value!==_[1]&&ft(r,_[1]),(!D||q[0]&8)&&a(f,"title",_[3]),_[19]?g?q[0]&524288&&j(g,1):(g=Wt(),g.c(),j(g,1),g.m(u,null)):g&&(Be(),Q(g,1,1,()=>{g=null}),Fe()),(!D||q[0]&2)&&me(u,"displayable",_[1]!==""),_[5]===!0?m?(m.p(_,q),q[0]&32&&j(m,1)):(m=Ot(_),m.c(),j(m,1),m.m(n,E)):m&&(Be(),Q(m,1,1,()=>{m=null}),Fe()),z&&z.p&&(!D||q[1]&268435456)&&Zt(z,C,_,_[59],D?Pt(C,_[59],q,null):Gt(_[59]),null);let ie=w;w=H(_),w===ie?~w&&te[w].p(_,q):(S&&(Be(),Q(te[ie],1,1,()=>{te[ie]=null}),Fe()),~w?(S=te[w],S?S.p(_,q):(S=te[w]=ee[w](_),S.c()),j(S,1),S.m(t,null)):S=null),(!D||q[0]&4&&W!==(W=dt(_[2])+" svelte-qnu791"))&&a(t,"class",W),(!D||q[0]&22)&&me(t,"can-collapse",_[4]&&_[1]==="")},i(_){D||(j(b),j(l.$$.fragment,_),j(h.$$.fragment,_),j(g),j(m),j(z,_),j(S),D=!0)},o(_){Q(b),Q(l.$$.fragment,_),Q(h.$$.fragment,_),Q(g),Q(m),Q(z,_),Q(S),D=!1},d(_){_&&(I(e),I(t)),ce(l),i[62](null),ce(h),g&&g.d(),m&&m.d(),z&&z.d(_),~w&&te[w].d(),N=!1,ae(V)}}}function Pi(i,e,t){let n,{$$slots:o={},$$scope:l}=e;const c={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:r=void 0}=e,{apiKey:d}=e,{bbox:u=void 0}=e,{clearButtonTitle:f="clear"}=e,{clearOnBlur:h=!1}=e,{collapsed:v=!1}=e,{country:y=void 0}=e,{debounceSearch:E=200}=e,{enableReverse:O=!1}=e,{errorMessage:w="Something went wrong…"}=e,{filter:S=()=>!0}=e,{flyTo:W=!0}=e,{fuzzyMatch:D=!0}=e,{language:N=void 0}=e,{limit:V=void 0}=e,{mapController:b=void 0}=e,{minLength:g=2}=e,{noResultsMessage:m="Oops! Looks like you're trying to predict something that's not quite right. We can't seem to find what you're looking for. Maybe try double-checking your spelling or try a different search term. Keep on typing - we'll do our best to get you where you need to go!"}=e,{placeholder:C="Search"}=e,{proximity:z=[{type:"server-geolocation"}]}=e,{reverseActive:ee=O==="always"}=e,{reverseButtonTitle:te="toggle reverse geocoding"}=e,{searchValue:H=""}=e,{showFullGeometry:_=!0}=e,{showPlaceType:q="ifNeeded"}=e,{showResultsWhileTyping:ie=!0}=e,{selectFirst:ne=!0}=e,{flyToSelected:Je=!1}=e,{markerOnSelected:je=!0}=e,{types:ye=void 0}=e,{excludeTypes:qe=!1}=e,{zoom:Ne=c}=e,{maxZoom:ze=void 0}=e,{apiUrl:Xe="https://api.maptiler.com/geocoding"}=e,{fetchParameters:Ye={}}=e,{iconsBaseUrl:Rt="https://cdn.maptiler.com/maptiler-geocoding-control/v1.4.0/icons/"}=e,{adjustUrlQuery:$e=()=>{}}=e;function Vi(){re.focus()}function Ki(){re.blur()}function Ut(s,F=!0,G=!1){t(1,H=s),F?(t(15,A=-1),At()):(nt(!G,G),setTimeout(()=>{re.focus(),re.select()}))}function xi(){t(14,k=void 0),t(56,p=void 0),t(15,A=-1)}function Ji(){t(55,P=[]),t(56,p=void 0)}let Me=!1,k,P,p,It="",re,A=-1,oe,He=[],we,Te,Pe,et;const Xi=new Set,he=Xt();Jt(()=>{b&&(b.setEventHandler(void 0),b.indicateReverse(!1),b.setSelectedMarker(-1),b.setMarkers(void 0,void 0))});function At(s){if(Te&&(clearTimeout(Te),Te=void 0),A>-1&&k)t(56,p=k[A]),t(1,H=p.place_type[0]==="reverse"?p.place_name:p.place_name.replace(/,.*/,"")),t(18,oe=void 0),t(55,P=void 0),t(15,A=-1);else if(H){const F=s||!tt(H);it(H,{exact:!0}).then(()=>{t(55,P=k),t(56,p=void 0),F&&Yi()}).catch(G=>t(18,oe=G))}}function tt(s){try{return Bi(s,6)}catch{return!1}}async function it(s,{byId:F=!1,exact:G=!1}={}){t(18,oe=void 0),we==null||we.abort();const Y=new AbortController;t(19,we=Y);try{const M=tt(s),Z=new URLSearchParams;if(N!==void 0&&Z.set("language",Array.isArray(N)?N.join(","):N??""),ye&&Z.set("types",ye.join(",")),qe&&Z.set("excludeTypes",String(qe)),u&&Z.set("bbox",u.map(Ze=>Ze.toFixed(6)).join(",")),y&&Z.set("country",Array.isArray(y)?y.join(","):y),!F&&!M){const Ze=await Mi(b,z,Y);Ze&&Z.set("proximity",Ze),(G||!ie)&&Z.set("autocomplete","false"),Z.set("fuzzyMatch",String(D))}V!==void 0&&(!M||(ye==null?void 0:ye.length)===1)&&Z.set("limit",String(V)),Z.set("key",d),$e(Z);const se=Xe+"/"+encodeURIComponent(M?M.decimalLongitude+","+M.decimalLatitude:s)+".json?"+Z.toString();if(se===It){F?(t(14,k=void 0),t(56,p=He[0])):t(14,k=He);return}It=se;const ot=await fetch(se,{signal:Y.signal,...Ye});if(!ot.ok)throw new Error(await ot.text());const st=await ot.json();he("response",{url:se,featureCollection:st}),F?(t(14,k=void 0),t(56,p=st.features[0]),He=[p]):(t(14,k=st.features.filter(S)),M&&k.unshift({type:"Feature",properties:{},id:"reverse_"+M.decimalLongitude+"_"+M.decimalLatitude,text:M.decimalLatitude+", "+M.decimalLongitude,place_name:M.decimalLatitude+", "+M.decimalLongitude,place_type:["reverse"],center:[M.decimalLongitude,M.decimalLatitude],bbox:[M.decimalLongitude,M.decimalLatitude,M.decimalLongitude,M.decimalLatitude],geometry:{type:"Point",coordinates:[M.decimalLongitude,M.decimalLatitude]}}),He=k,M&&re.focus())}catch(M){if(M&&typeof M=="object"&&"name"in M&&M.name==="AbortError")return;throw M}finally{Y===we&&t(19,we=void 0)}}function Yi(){var Y;if(!(P!=null&&P.length)||!W)return;const s=[180,90,-180,-90],F=!P.some(M=>!M.matching_text);let G;for(const M of P){const Z=Ue(M);if(G=ze??(G===void 0?Z:Z===void 0?G:Math.max(G,Z)),F||!M.matching_text)for(const se of[0,1,2,3])s[se]=Math[se<2?"min":"max"](s[se],((Y=M.bbox)==null?void 0:Y[se])??M.center[se%2])}b&&P.length>0&&(p&&s[0]===s[2]&&s[1]===s[3]?b.flyTo(p.center,Ue(p)):b.fitBounds(wt(s),50,G))}function Ue(s){var G;if(!s.bbox||s.bbox[0]!==s.bbox[2]&&s.bbox[1]!==s.bbox[3])return;if(typeof Ne=="number")return s.id.startsWith("poi.")||s.id.startsWith("address.")?ze:Ne;const F=s.id.replace(/\..*/,"");return(Array.isArray((G=s.properties)==null?void 0:G.categories)?s.properties.categories.reduce((Y,M)=>{const Z=Ne[F+"."+M];return Y===void 0?Z:Z===void 0?Y:Math.max(Y,Z)},void 0):void 0)??Ne[F]}function $i(s){t(0,ee=O==="always"),t(14,k=void 0),t(56,p=void 0),t(15,A=-1),Ut(s[1].toFixed(6)+", "+Ni(s[0],[-180,180],!0).toFixed(6),!1,!0)}function en(s){if(!k)return;let F=s.key==="ArrowDown"?1:s.key==="ArrowUp"?-1:0;F&&(A===(ne?0:-1)&&F===-1&&t(15,A=k.length),t(15,A+=F),A>=k.length&&t(15,A=-1),A<0&&ne&&t(15,A=0),s.preventDefault())}function nt(s=!0,F=!1){if(t(18,oe=void 0),ie||F){if(Te&&clearTimeout(Te),H.length<g)return;const G=H;Te=window.setTimeout(()=>{it(G).catch(Y=>t(18,oe=Y))},s?E:0)}else t(14,k=void 0),t(18,oe=void 0)}function rt(s){t(56,p=s),t(1,H=s.place_name),t(15,A=-1)}const tn=()=>re.focus();function nn(s){Ge[s?"unshift":"push"](()=>{re=s,t(17,re)})}function rn(){H=this.value,t(1,H),t(13,Me),t(28,h)}const on=()=>t(13,Me=!0),sn=()=>t(13,Me=!1),an=()=>nt(),ln=()=>{t(1,H=""),re.focus()},un=()=>t(0,ee=!ee),cn=()=>t(18,oe=void 0),dn=s=>t(15,A=s),fn=s=>rt(s),mn=()=>{ne||t(15,A=-1)},gn=()=>{};return i.$$set=s=>{"class"in s&&t(2,r=s.class),"apiKey"in s&&t(26,d=s.apiKey),"bbox"in s&&t(27,u=s.bbox),"clearButtonTitle"in s&&t(3,f=s.clearButtonTitle),"clearOnBlur"in s&&t(28,h=s.clearOnBlur),"collapsed"in s&&t(4,v=s.collapsed),"country"in s&&t(29,y=s.country),"debounceSearch"in s&&t(30,E=s.debounceSearch),"enableReverse"in s&&t(5,O=s.enableReverse),"errorMessage"in s&&t(6,w=s.errorMessage),"filter"in s&&t(31,S=s.filter),"flyTo"in s&&t(32,W=s.flyTo),"fuzzyMatch"in s&&t(33,D=s.fuzzyMatch),"language"in s&&t(34,N=s.language),"limit"in s&&t(35,V=s.limit),"mapController"in s&&t(36,b=s.mapController),"minLength"in s&&t(37,g=s.minLength),"noResultsMessage"in s&&t(7,m=s.noResultsMessage),"placeholder"in s&&t(8,C=s.placeholder),"proximity"in s&&t(38,z=s.proximity),"reverseActive"in s&&t(0,ee=s.reverseActive),"reverseButtonTitle"in s&&t(9,te=s.reverseButtonTitle),"searchValue"in s&&t(1,H=s.searchValue),"showFullGeometry"in s&&t(39,_=s.showFullGeometry),"showPlaceType"in s&&t(10,q=s.showPlaceType),"showResultsWhileTyping"in s&&t(40,ie=s.showResultsWhileTyping),"selectFirst"in s&&t(11,ne=s.selectFirst),"flyToSelected"in s&&t(41,Je=s.flyToSelected),"markerOnSelected"in s&&t(42,je=s.markerOnSelected),"types"in s&&t(43,ye=s.types),"excludeTypes"in s&&t(44,qe=s.excludeTypes),"zoom"in s&&t(45,Ne=s.zoom),"maxZoom"in s&&t(46,ze=s.maxZoom),"apiUrl"in s&&t(47,Xe=s.apiUrl),"fetchParameters"in s&&t(48,Ye=s.fetchParameters),"iconsBaseUrl"in s&&t(12,Rt=s.iconsBaseUrl),"adjustUrlQuery"in s&&t(49,$e=s.adjustUrlQuery),"$$scope"in s&&t(59,l=s.$$scope)},i.$$.update=()=>{if(i.$$.dirty[0]&32&&t(0,ee=O==="always"),i.$$.dirty[0]&268443648&&setTimeout(()=>{t(16,Pe=Me),h&&!Me&&t(1,H="")}),i.$$.dirty[0]&16386|i.$$.dirty[1]&64&&H.length<g&&(t(56,p=void 0),t(14,k=void 0),t(18,oe=void 0),t(55,P=k)),i.$$.dirty[1]&33554688&&_&&p&&!p.address&&p.geometry.type==="Point"&&p.place_type[0]!=="reverse"&&it(p.id,{byId:!0}).catch(s=>t(18,oe=s)),i.$$.dirty[1]&100663330&&(b&&p&&p.id!==et&&W&&(!p.bbox||p.bbox[0]===p.bbox[2]&&p.bbox[1]===p.bbox[3]?b.flyTo(p.center,Ue(p)):b.fitBounds(wt(p.bbox),50,Ue(p)),t(14,k=void 0),t(55,P=void 0),t(15,A=-1)),t(57,et=p==null?void 0:p.id)),i.$$.dirty[0]&18432&&ne&&k!=null&&k.length&&t(15,A=0),i.$$.dirty[0]&2050&&(ne||t(15,A=-1)),i.$$.dirty[0]&16384|i.$$.dirty[1]&16777216&&P!==k&&t(55,P=void 0),i.$$.dirty[0]&81921|i.$$.dirty[1]&16777248&&b&&b.setEventHandler(s=>{switch(s.type){case"mapClick":ee&&$i(s.coordinates);break;case"markerClick":{const F=k==null?void 0:k.find(G=>G.id===s.id);F&&rt(F)}break;case"markerMouseEnter":P&&t(15,A=Pe?(k==null?void 0:k.findIndex(F=>F.id===s.id))??-1:-1);break;case"markerMouseLeave":P&&t(15,A=-1);break}}),i.$$.dirty[0]&49152&&t(58,n=k==null?void 0:k[A]),i.$$.dirty[1]&134218786&&b&&n&&W&&Je&&b.flyTo(n.center,Ue(n)),i.$$.dirty[1]&2080&&(je||b==null||b.setMarkers(void 0,void 0)),i.$$.dirty[1]&150997024&&b&&je&&!P&&(b.setMarkers(n?[n]:void 0,void 0),b.setSelectedMarker(n?0:-1)),i.$$.dirty[1]&50331680&&b&&b.setMarkers(P,p),i.$$.dirty[0]&32768|i.$$.dirty[1]&16777248&&P&&b&&b.setSelectedMarker(A),i.$$.dirty[0]&2|i.$$.dirty[1]&32&&b){const s=tt(H);b.setReverseMarker(s?[s.decimalLongitude,s.decimalLatitude]:void 0)}i.$$.dirty[1]&134217728&&he("select",n),i.$$.dirty[1]&33554432&&he("pick",p),i.$$.dirty[0]&81920&&he("optionsVisibilityChange",Pe&&!!k),i.$$.dirty[0]&16384&&he("featuresListed",k),i.$$.dirty[1]&16777216&&he("featuresMarked",P),i.$$.dirty[0]&1&&he("reverseToggle",ee),i.$$.dirty[0]&2&&he("queryChange",H),i.$$.dirty[0]&1|i.$$.dirty[1]&32&&b&&b.indicateReverse(ee)},[ee,H,r,f,v,O,w,m,C,te,q,ne,Rt,Me,k,A,Pe,re,oe,we,Xi,At,en,nt,rt,c,d,u,h,y,E,S,W,D,N,V,b,g,z,_,ie,Je,je,ye,qe,Ne,ze,Xe,Ye,$e,Vi,Ki,Ut,xi,Ji,P,p,et,n,l,o,tn,nn,rn,on,sn,an,ln,un,cn,dn,fn,mn,gn]}let Zi=class extends _e{constructor(e){super(),Le(this,e,Pi,Hi,be,{ZOOM_DEFAULTS:25,class:2,apiKey:26,bbox:27,clearButtonTitle:3,clearOnBlur:28,collapsed:4,country:29,debounceSearch:30,enableReverse:5,errorMessage:6,filter:31,flyTo:32,fuzzyMatch:33,language:34,limit:35,mapController:36,minLength:37,noResultsMessage:7,placeholder:8,proximity:38,reverseActive:0,reverseButtonTitle:9,searchValue:1,showFullGeometry:39,showPlaceType:10,showResultsWhileTyping:40,selectFirst:11,flyToSelected:41,markerOnSelected:42,types:43,excludeTypes:44,zoom:45,maxZoom:46,apiUrl:47,fetchParameters:48,iconsBaseUrl:12,adjustUrlQuery:49,focus:50,blur:51,setQuery:52,clearList:53,clearMap:54},null,[-1,-1,-1])}get ZOOM_DEFAULTS(){return this.$$.ctx[25]}get focus(){return this.$$.ctx[50]}get blur(){return this.$$.ctx[51]}get setQuery(){return this.$$.ctx[52]}get clearList(){return this.$$.ctx[53]}get clearMap(){return this.$$.ctx[54]}};const Gi=new FinalizationRegistry(i=>{i.$destroy()});class Qi extends EventTarget{constructor({target:t,...n}){super();jt(this,$);qt(this,$,new Zi({target:t,props:n}));for(const o of["select","pick","featuresListed","featuresMarked","response","optionsVisibilityChange","reverseToggle","queryChange"])de(this,$).$on(o,l=>this.dispatchEvent(l));Gi.register(this,de(this,$))}setOptions(t){de(this,$).$set(t)}setQuery(t,n=!0){var o;(o=de(this,$))==null||o.setQuery(t,n)}clearMap(){var t;(t=de(this,$))==null||t.clearMap()}clearList(){var t;(t=de(this,$))==null||t.clearList()}focus(){var t;(t=de(this,$))==null||t.focus()}blur(){var t;(t=de(this,$))==null||t.blur()}}$=new WeakMap,R.GeocodingControl=Qi,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
2
2
|
//# sourceMappingURL=vanilla.umd.js.map
|