=o.localMax))break;return O.sort((T,k)=>{const m=T.properties.__pplr_local,w=k.properties.__pplr_local,S=(m==null?void 0:m.depth)??99,A=(w==null?void 0:w.depth)??99;if(S!==A)return S-A;const I=T.place_name.toLowerCase().startsWith(x)?0:1,M=k.place_name.toLowerCase().startsWith(x)?0:1;return I!==M?I-M:((w==null?void 0:w.pop)||0)-((m==null?void 0:m.pop)||0)||((w==null?void 0:w.count)||0)-((m==null?void 0:m.count)||0)}),O}}function c(L){var w,S;const x=((w=L==null?void 0:L.properties)==null?void 0:w.__pplr_kind)||"",O=(S=L==null?void 0:L.properties)==null?void 0:S.__pplr_local,T=(O==null?void 0:O.color)||"",k=T?``:"",m=x?`${x}`:"";return`
- ${k}${L.place_name}${m}
-
`}function p(L){if(!L||L===document||L.querySelector("link[data-pplr-geocoder-css]"))return;const x=document.createElement("link");x.rel="stylesheet",x.href=i_,x.setAttribute("data-pplr-geocoder-css","1"),L.prepend(x)}function f(){try{if(!window.MapboxGeocoder||!window.mapboxgl){console.warn("[MapboxGeocoder] mapbox-gl-geocoder or mapbox-gl not on window — check CDN
-
+