@maptiler/geocoding-control 3.0.0-rc.3 → 3.0.0-rc.4

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 CHANGED
@@ -6,8 +6,6 @@ The Javascript & TypeScript Map Control component for <a href="https://www.mapti
6
6
 
7
7
  The _MapTiler Geocoding control_ implements a powerful search box in your maps or online forms, enabling your application users to find any place on Earth down to individual addresses. Use the search box control with [MapTiler SDK JS](https://docs.maptiler.com/sdk-js/) (or other map libraries like [Leaflet](https://docs.maptiler.com/leaflet/), [MapLibre GL JS](https://github.com/maplibre/maplibre-gl-js), [OpenLayers](https://docs.maptiler.com/openlayers/)).
8
8
 
9
- > ⚠️ _MapTiler Geocoding control_ v3 support for _Leaflet_ (v1 and v2) and _OpenLayers_ is to be added soon. In the meantime, please use _MapTiler Geocoding control_ v2 with these map libraries.
10
-
11
9
  [![](https://img.shields.io/npm/v/@maptiler/geocoding-control?style=for-the-badge&labelColor=D3DBEC&color=f2f6ff&logo=npm&logoColor=333359)](https://www.npmjs.com/package/@maptiler/geocoding-control)
12
10
  ![](https://img.shields.io/badge/-white?style=for-the-badge&logo=javascript)![](https://img.shields.io/badge/-white?style=for-the-badge&logo=typescript)![](https://img.shields.io/badge/-white?style=for-the-badge&logo=react&logoColor=61dafb)![](https://img.shields.io/badge/-white?style=for-the-badge&logo=svelte&logoColor=FF3E00)
13
11
 
package/dist/index.js CHANGED
@@ -501,7 +501,7 @@ let a = class extends L {
501
501
  c(this, o, Fe).call(this, e);
502
502
  }}
503
503
  .missingIconsCache=${x(this, ie)}
504
- .iconsBaseUrl=${this.iconsBaseUrl ?? "https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.3/icons/"}
504
+ .iconsBaseUrl=${this.iconsBaseUrl ?? "https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.4/icons/"}
505
505
  >
506
506
  ${e.place_name}
507
507
  </maptiler-geocoder-feature-item>
package/dist/index.umd.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const U=globalThis,_e=U.ShadowRoot&&(U.ShadyCSS===void 0||U.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Le=Symbol(),Ve=new WeakMap;let qe=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==Le)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(_e&&e===void 0){const s=t!==void 0&&t.length===1;s&&(e=Ve.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&Ve.set(t,e))}return e}toString(){return this.cssText}};const we=i=>new qe(typeof i=="string"?i:i+"",void 0,Le),D=(i,...e)=>{const t=i.length===1?i[0]:e.reduce(((s,r,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[o+1]),i[0]);return new qe(t,i,Le)},Gt=(i,e)=>{if(_e)i.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const t of e){const s=document.createElement("style"),r=U.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=t.cssText,i.appendChild(s)}},Ze=_e?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return we(t)})(i):i;/**
5
+ */const U=globalThis,_e=U.ShadowRoot&&(U.ShadyCSS===void 0||U.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Le=Symbol(),Ve=new WeakMap;let qe=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==Le)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(_e&&e===void 0){const s=t!==void 0&&t.length===1;s&&(e=Ve.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&Ve.set(t,e))}return e}toString(){return this.cssText}};const we=i=>new qe(typeof i=="string"?i:i+"",void 0,Le),D=(i,...e)=>{const t=i.length===1?i[0]:e.reduce(((s,r,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal undefined, but take care to ensure page security.")})(r)+i[o+1]),i[0]);return new qe(t,i,Le)},Gt=(i,e)=>{if(_e)i.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const t of e){const s=document.createElement("style"),r=U.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=t.cssText,i.appendChild(s)}},Ze=_e?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return we(t)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
@@ -12,7 +12,7 @@
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
13
  */const Me=globalThis,he=Me.trustedTypes,Je=he?he.createPolicy("lit-html",{createHTML:i=>i}):void 0,Xe="$lit$",P=`lit$${Math.random().toFixed(9).slice(2)}$`,Ye="?"+P,jt=`<${Ye}>`,F=document,Y=()=>F.createComment(""),ee=i=>i===null||typeof i!="object"&&typeof i!="function",Ae=Array.isArray,zt=i=>Ae(i)||typeof i?.[Symbol.iterator]=="function",xe=`[
14
14
  \f\r]`,te=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,tt=/>/g,R=RegExp(`>|${xe}(?:([^\\s"'>=/]+)(${xe}*=${xe}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,st=/"/g,rt=/^(?:script|style|textarea|title)$/i,ot=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),S=ot(1),ue=ot(2),O=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),at=new WeakMap,H=F.createTreeWalker(F,129);function nt(i,e){if(!Ae(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Je!==void 0?Je.createHTML(e):e}const Vt=(i,e)=>{const t=i.length-1,s=[];let r,o=e===2?"<svg>":e===3?"<math>":"",n=te;for(let a=0;a<t;a++){const l=i[a];let p,b,d=-1,g=0;for(;g<l.length&&(n.lastIndex=g,b=n.exec(l),b!==null);)g=n.lastIndex,n===te?b[1]==="!--"?n=et:b[1]!==void 0?n=tt:b[2]!==void 0?(rt.test(b[2])&&(r=RegExp("</"+b[2],"g")),n=R):b[3]!==void 0&&(n=R):n===R?b[0]===">"?(n=r??te,d=-1):b[1]===void 0?d=-2:(d=n.lastIndex-b[2].length,p=b[1],n=b[3]===void 0?R:b[3]==='"'?st:it):n===st||n===it?n=R:n===et||n===tt?n=te:(n=R,r=void 0);const v=n===R&&i[a+1].startsWith("/>")?" ":"";o+=n===te?l+jt:d>=0?(s.push(p),l.slice(0,d)+Xe+l.slice(d)+P+v):l+P+(d===-2?a:v)}return[nt(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),s]};class ie{constructor({strings:e,_$litType$:t},s){let r;this.parts=[];let o=0,n=0;const a=e.length-1,l=this.parts,[p,b]=Vt(e,t);if(this.el=ie.createElement(p,s),H.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=H.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(Xe)){const g=b[n++],v=r.getAttribute(d).split(P),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:o,name:y[2],strings:v,ctor:y[1]==="."?Zt:y[1]==="?"?Kt:y[1]==="@"?Qt:pe}),r.removeAttribute(d)}else d.startsWith(P)&&(l.push({type:6,index:o}),r.removeAttribute(d));if(rt.test(r.tagName)){const d=r.textContent.split(P),g=d.length-1;if(g>0){r.textContent=he?he.emptyScript:"";for(let v=0;v<g;v++)r.append(d[v],Y()),H.nextNode(),l.push({type:2,index:++o});r.append(d[g],Y())}}}else if(r.nodeType===8)if(r.data===Ye)l.push({type:2,index:o});else{let d=-1;for(;(d=r.data.indexOf(P,d+1))!==-1;)l.push({type:7,index:o}),d+=P.length-1}o++}}static createElement(e,t){const s=F.createElement("template");return s.innerHTML=e,s}}function q(i,e,t=i,s){if(e===O)return e;let r=s!==void 0?t._$Co?.[s]:t._$Cl;const o=ee(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),o===void 0?r=void 0:(r=new o(i),r._$AT(i,t,s)),s!==void 0?(t._$Co??=[])[s]=r:t._$Cl=r),r!==void 0&&(e=q(i,r._$AS(i,e.values),r,s)),e}let qt=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,r=(e?.creationScope??F).importNode(t,!0);H.currentNode=r;let o=H.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let p;l.type===2?p=new Z(o,o.nextSibling,this,e):l.type===1?p=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(p=new Jt(o,this,e)),this._$AV.push(p),l=s[++a]}n!==l?.index&&(o=H.nextNode(),n++)}return H.currentNode=F,r}p(e){let t=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}};class Z{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,r){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=q(this,e,t),ee(e)?e===w||e==null||e===""?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==O&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):zt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&ee(this._$AH)?this._$AA.nextSibling.data=e:this.T(F.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:s}=e,r=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=ie.createElement(nt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(t);else{const o=new qt(r,this),n=o.u(this.options);o.p(t),this.T(n),this._$AH=o}}_$AC(e){let t=at.get(e.strings);return t===void 0&&at.set(e.strings,t=new ie(e)),t}k(e){Ae(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,r=0;for(const o of e)r===t.length?t.push(s=new Z(this.O(Y()),this.O(Y()),this,this.options)):s=t[r],s._$AI(o),r++;r<t.length&&(this._$AR(s&&s._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class pe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,r,o){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}_$AI(e,t=this,s,r){const o=this.strings;let n=!1;if(o===void 0)e=q(this,e,t,0),n=!ee(e)||e!==this._$AH&&e!==O,n&&(this._$AH=e);else{const a=e;let l,p;for(e=o[0],l=0;l<o.length-1;l++)p=q(this,a[s+l],t,l),p===O&&(p=this._$AH[l]),n||=!ee(p)||p!==this._$AH[l],p===w?e=w:e!==w&&(e+=(p??"")+o[l+1]),this._$AH[l]=p}n&&!r&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Zt extends pe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}}class Kt extends pe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}}class Qt extends pe{constructor(e,t,s,r,o){super(e,t,s,r,o),this.type=5}_$AI(e,t=this){if((e=q(this,e,t,0)??w)===O)return;const s=this._$AH,r=e===w&&s!==w||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==w&&(s===w||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Jt{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){q(this,e)}}const Xt={I:Z},Yt=Me.litHtmlPolyfillSupport;Yt?.(ie,Z),(Me.litHtmlVersions??=[]).push("3.3.1");const ei=(i,e,t)=>{const s=t?.renderBefore??e;let r=s._$litPart$;if(r===void 0){const o=t?.renderBefore??null;s._$litPart$=r=new Z(e.insertBefore(Y(),o),o,void 0,t??{})}return r._$AI(i),r};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,st=/"/g,rt=/^(?:script|style|textarea|title)$/i,ot=i=>(e,...t)=>({_$litType$:i,strings:e,undefined:t}),S=ot(1),ue=ot(2),O=Symbol.for("lit-noChange"),w=Symbol.for("lit-nothing"),at=new WeakMap,H=F.createTreeWalker(F,129);function nt(i,e){if(!Ae(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Je!==void 0?Je.createHTML(e):e}const Vt=(i,e)=>{const t=i.length-1,s=[];let r,o=e===2?"<svg>":e===3?"<math>":"",n=te;for(let a=0;a<t;a++){const l=i[a];let p,b,d=-1,v=0;for(;v<l.length&&(n.lastIndex=v,b=n.exec(l),b!==null);)v=n.lastIndex,n===te?b[1]==="!--"?n=et:b[1]!==void 0?n=tt:b[2]!==void 0?(rt.test(b[2])&&(r=RegExp("</"+b[2],"g")),n=R):b[3]!==void 0&&(n=R):n===R?b[0]===">"?(n=r??te,d=-1):b[1]===void 0?d=-2:(d=n.lastIndex-b[2].length,p=b[1],n=b[3]===void 0?R:b[3]==='"'?st:it):n===st||n===it?n=R:n===et||n===tt?n=te:(n=R,r=void 0);const g=n===R&&i[a+1].startsWith("/>")?" ":"";o+=n===te?l+jt:d>=0?(s.push(p),l.slice(0,d)+Xe+l.slice(d)+P+g):l+P+(d===-2?a:g)}return[nt(i,o+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),s]};class ie{constructor({strings:e,_$litType$:t},s){let r;this.parts=[];let o=0,n=0;const a=e.length-1,l=this.parts,[p,b]=Vt(e,t);if(this.el=ie.createElement(p,s),H.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=H.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(Xe)){const v=b[n++],g=r.getAttribute(d).split(P),y=/([.?@])?(.*)/.exec(v);l.push({type:1,index:o,name:y[2],strings:g,ctor:y[1]==="."?Zt:y[1]==="?"?Kt:y[1]==="@"?Qt:pe}),r.removeAttribute(d)}else d.startsWith(P)&&(l.push({type:6,index:o}),r.removeAttribute(d));if(rt.test(r.tagName)){const d=r.textContent.split(P),v=d.length-1;if(v>0){r.textContent=he?he.emptyScript:"";for(let g=0;g<v;g++)r.append(d[g],Y()),H.nextNode(),l.push({type:2,index:++o});r.append(d[v],Y())}}}else if(r.nodeType===8)if(r.data===Ye)l.push({type:2,index:o});else{let d=-1;for(;(d=r.data.indexOf(P,d+1))!==-1;)l.push({type:7,index:o}),d+=P.length-1}o++}}static createElement(e,t){const s=F.createElement("template");return s.innerHTML=e,s}}function q(i,e,t=i,s){if(e===O)return e;let r=s!==void 0?t._$Co?.[s]:t._$Cl;const o=ee(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),o===void 0?r=void 0:(r=new o(i),r._$AT(i,t,s)),s!==void 0?(t._$Co??=[])[s]=r:t._$Cl=r),r!==void 0&&(e=q(i,r._$AS(i,e.undefined),r,s)),e}let qt=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:s}=this._$AD,r=(e?.creationScope??F).importNode(t,!0);H.currentNode=r;let o=H.nextNode(),n=0,a=0,l=s[0];for(;l!==void 0;){if(n===l.index){let p;l.type===2?p=new Z(o,o.nextSibling,this,e):l.type===1?p=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(p=new Jt(o,this,e)),this._$AV.push(p),l=s[++a]}n!==l?.index&&(o=H.nextNode(),n++)}return H.currentNode=F,r}p(e){let t=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}};class Z{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,s,r){this.type=2,this._$AH=w,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=q(this,e,t),ee(e)?e===w||e==null||e===""?(this._$AH!==w&&this._$AR(),this._$AH=w):e!==this._$AH&&e!==O&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):zt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==w&&ee(this._$AH)?this._$AA.nextSibling.data=e:this.T(F.createTextNode(e)),this._$AH=e}$(e){const{undefined:t,_$litType$:s}=e,r=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=ie.createElement(nt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(t);else{const o=new qt(r,this),n=o.u(this.options);o.p(t),this.T(n),this._$AH=o}}_$AC(e){let t=at.get(e.strings);return t===void 0&&at.set(e.strings,t=new ie(e)),t}k(e){Ae(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,r=0;for(const o of e)r===t.length?t.push(s=new Z(this.O(Y()),this.O(Y()),this,this.options)):s=t[r],s._$AI(o),r++;r<t.length&&(this._$AR(s&&s._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class pe{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,r,o){this.type=1,this._$AH=w,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=w}_$AI(e,t=this,s,r){const o=this.strings;let n=!1;if(o===void 0)e=q(this,e,t,0),n=!ee(e)||e!==this._$AH&&e!==O,n&&(this._$AH=e);else{const a=e;let l,p;for(e=o[0],l=0;l<o.length-1;l++)p=q(this,a[s+l],t,l),p===O&&(p=this._$AH[l]),n||=!ee(p)||p!==this._$AH[l],p===w?e=w:e!==w&&(e+=(p??"")+o[l+1]),this._$AH[l]=p}n&&!r&&this.j(e)}j(e){e===w?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Zt extends pe{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===w?void 0:e}}class Kt extends pe{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==w)}}class Qt extends pe{constructor(e,t,s,r,o){super(e,t,s,r,o),this.type=5}_$AI(e,t=this){if((e=q(this,e,t,0)??w)===O)return;const s=this._$AH,r=e===w&&s!==w||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==w&&(s===w||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class Jt{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){q(this,e)}}const Xt={I:Z},Yt=Me.litHtmlPolyfillSupport;Yt?.(ie,Z),(Me.litHtmlVersions??=[]).push("3.3.1");const ei=(i,e,t)=>{const s=t?.renderBefore??e;let r=s._$litPart$;if(r===void 0){const o=t?.renderBefore??null;s._$litPart$=r=new Z(e.insertBefore(Y(),o),o,void 0,t??{})}return r._$AI(i),r};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
@@ -127,11 +127,11 @@
127
127
  display: block;
128
128
  stroke: var(--color-icon-button);
129
129
  }
130
- `,c.MaptilerGeocodeSearchIconElement=fi([B("maptiler-geocode-search-icon")],c.MaptilerGeocodeSearchIconElement);const vi=/^(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,lt=/^([+-]?[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,})$/,ct=/^(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,dt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,ht=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,ut=/^(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 gi(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(v=>Number(v.trim())),t=Number(e[0]),s=Number(e[1]),r=Math.abs(t),o=Math.abs(s),n=t>0?"N":"S",a=s>0?"E":"W";let l;i=="DD"&&(l=`${r}° ${n}, ${o}° ${a}`);const p=Math.floor(r),b=Math.floor(o),d=(r-p)*60,g=(o-b)*60;if(i=="DM"){let v=pt(d,3).toFixed(3).padStart(6,"0"),y=pt(g,3).toFixed(3).padStart(6,"0");v.endsWith(".000")&&y.endsWith(".000")&&(v=v.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),l=`${p}° ${v}' ${n}, ${b}° ${y}' ${a}`}if(i=="DMS"){const v=Math.floor(d),y=Math.floor(g);let L=((d-v)*60).toFixed(1).padStart(4,"0"),E=((g-y)*60).toFixed(1).padStart(4,"0");const x=v.toString().padStart(2,"0"),G=y.toString().padStart(2,"0");L.endsWith(".0")&&E.endsWith(".0")&&(L=L.replace(/\.0$/,""),E=E.replace(/\.0$/,"")),l=`${p}° ${x}' ${L}" ${n}, ${b}° ${G}' ${E}" ${a}`}return l}else throw new Error("no decimal coordinates to convert")}function pt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function Ie(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,s=null,r="",o="",n=null,a=[],l=!1;if(vi.test(i))throw new Error("invalid coordinate value");if(lt.test(i))if(a=lt.exec(i),l=se(a),l)t=Math.abs(a[1])+a[2]/60,Number(a[1])<0&&(t*=-1),s=Math.abs(a[3])+a[4]/60,Number(a[3])<0&&(s*=-1),n="DM";else throw new Error("invalid coordinate format");else if(ct.test(i))if(a=ct.exec(i),l=se(a),l){if(t=a[2],s=a[6],t.includes(",")&&(t=t.replace(",",".")),s.includes(",")&&(s=s.replace(",",".")),n="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(s))==Number(s))throw new Error("integer only coordinate provided");a[1]?(r=a[1],o=a[5]):a[4]&&(r=a[4],o=a[8])}else throw new Error("invalid decimal coordinate format");else if(dt.test(i))if(a=dt.exec(i),l=se(a),l)t=Math.abs(parseInt(a[2])),a[4]&&(t+=a[4]/60,n="DM"),a[6]&&(t+=a[6].replace(",",".")/3600,n="DMS"),parseInt(a[2])<0&&(t=-1*t),s=Math.abs(parseInt(a[9])),a[11]&&(s+=a[11]/60),a[13]&&(s+=a[13].replace(",",".")/3600),parseInt(a[9])<0&&(s=-1*s),a[1]?(r=a[1],o=a[8]):a[7]&&(r=a[7],o=a[14]);else throw new Error("invalid DMS coordinates format");else if(ht.test(i))if(a=ht.exec(i),l=se(a),l)t=Math.abs(parseInt(a[2])),a[4]&&(t+=a[4]/60,n="DM"),a[6]&&(t+=a[6]/3600,n="DMS"),parseInt(a[2])<0&&(t=-1*t),s=Math.abs(parseInt(a[10])),a[12]&&(s+=a[12]/60),a[14]&&(s+=a[14]/3600),parseInt(a[10])<0&&(s=-1*s),a[1]?(r=a[1],o=a[9]):a[8]&&(r=a[8],o=a[16]);else throw new Error("invalid DMS coordinates format");else if(ut.test(i)){if(a=ut.exec(i),l=se(a),a.filter(p=>p).length<=5)throw new Error("invalid coordinates format");if(l)t=Math.abs(parseInt(a[2])),a[4]&&(t+=a[4].replace(",",".")/60,n="DM"),a[6]&&(t+=a[6].replace(",",".")/3600,n="DMS"),parseInt(a[2])<0&&(t=-1*t),s=Math.abs(parseInt(a[10])),a[12]&&(s+=a[12].replace(",",".")/60),a[14]&&(s+=a[14].replace(",",".")/3600),parseInt(a[10])<0&&(s=-1*s),a[1]?(r=a[1],o=a[9]):a[8]&&(r=a[8],o=a[16]);else throw new Error("invalid coordinates format")}if(l){if(Math.abs(s)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!o||!r&&o)throw new Error("invalid coordinates value");if(r&&r==o)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),s.toString().includes(",")&&(s=s.replace(",","."));let p=/S|SOUTH/i;p.test(r)&&t>0&&(t=-1*t),p=/W|WEST/i,p.test(o)&&s>0&&(s=-1*s);const b=a[0].trim();let d,g;const v=/[,/;\u0020]/g,y=b.match(v);if(y==null){const x=Math.floor(i.length/2);d=b.substring(0,x).trim(),g=b.substring(x).trim()}else{let x;y.length%2==1?x=Math.floor(y.length/2):x=y.length/2-1;let G=0;if(x==0)G=b.indexOf(y[0]),d=b.substring(0,G).trim(),g=b.substring(G+1).trim();else{let ze=0,Ot=0;for(;ze<=x;)G=b.indexOf(y[ze],Ot),Ot=G+1,ze++;d=b.substring(0,G).trim(),g=b.substring(G+1).trim()}}const L=d.split(".");if(L.length==2&&L[1]==0&&L[1].length!=2)throw new Error("invalid coordinates format");const E=g.split(".");if(E.length==2&&E[1]==0&&E[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(d)||/^\d+$/.test(g))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),s=Number(Number(s).toFixed(e)),Object.freeze({verbatimCoordinates:b,verbatimLatitude:d,verbatimLongitude:g,decimalLatitude:t,decimalLongitude:s,decimalCoordinates:`${t},${s}`,originalFormat:n,closeEnough:bi,toCoordinateFormat:gi})}else throw new Error("coordinates pattern match failed")}function se(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,s=/[eastsouthnorthwest]+/i,r=e.length/2;for(let o=0;o<r;o++){const n=e[o],a=e[o+r],l=t.test(n)&&t.test(a),p=s.test(n)&&s.test(a),b=n==a;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(l||p||b)continue;return!1}}return!0}function mt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function bi(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 mt(this.decimalLatitude,Number(e[0]))&&mt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const yi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Ie.to=yi;const $i=[{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"}],Ei={decimalLatitude:40.123,decimalLongitude:-74.123},_i=[{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}],Li=[{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 wi(){const i=[];return $i.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Ei})}),[...i,..._i,...Li]}const Si=wi();Ie.formats=Si.map(i=>i.verbatimCoordinates);const Mi=Ie;/**
130
+ `,c.MaptilerGeocodeSearchIconElement=fi([B("maptiler-geocode-search-icon")],c.MaptilerGeocodeSearchIconElement);const gi=/^(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,lt=/^([+-]?[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,})$/,ct=/^(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,dt=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(\.)\s*([0-5]?[0-9])\s*(\.)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(EAST|WEST|[EW])?$/i,ht=/^(NORTH|SOUTH|[NS])?\s*([+-]?[0-8]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)?\s*(NORTH|SOUTH|[NS])?(?:\s*[,/;]\s*|\s*)(EAST|WEST|[EW])?\s*([+-]?[0-1]?[0-9]?[0-9])\s*(D(?:EG)?(?:REES)?)\s*([0-5]?[0-9])\s*(M(?:IN)?(?:UTES)?)\s*((?:[0-5]?[0-9])(?:[\.,]\d{1,3})?)?\s*(S(?:EC)?(?:ONDS)?)\s*(EAST|WEST|[EW])?$/i,ut=/^(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 vi(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(g=>Number(g.trim())),t=Number(e[0]),s=Number(e[1]),r=Math.abs(t),o=Math.abs(s),n=t>0?"N":"S",a=s>0?"E":"W";let l;i=="DD"&&(l=`${r}° ${n}, ${o}° ${a}`);const p=Math.floor(r),b=Math.floor(o),d=(r-p)*60,v=(o-b)*60;if(i=="DM"){let g=pt(d,3).toFixed(3).padStart(6,"0"),y=pt(v,3).toFixed(3).padStart(6,"0");g.endsWith(".000")&&y.endsWith(".000")&&(g=g.replace(/\.000$/,""),y=y.replace(/\.000$/,"")),l=`${p}° ${g}' ${n}, ${b}° ${y}' ${a}`}if(i=="DMS"){const g=Math.floor(d),y=Math.floor(v);let L=((d-g)*60).toFixed(1).padStart(4,"0"),E=((v-y)*60).toFixed(1).padStart(4,"0");const x=g.toString().padStart(2,"0"),G=y.toString().padStart(2,"0");L.endsWith(".0")&&E.endsWith(".0")&&(L=L.replace(/\.0$/,""),E=E.replace(/\.0$/,"")),l=`${p}° ${x}' ${L}" ${n}, ${b}° ${G}' ${E}" ${a}`}return l}else throw new Error("no decimal coordinates to convert")}function pt(i,e){const t=Math.pow(10,e);return Math.round((i+Number.EPSILON)*t)/t}function Ie(i,e){e||(e=5),i=i.replace(/\s+/g," ").trim();let t=null,s=null,r="",o="",n=null,a=[],l=!1;if(gi.test(i))throw new Error("invalid coordinate value");if(lt.test(i))if(a=lt.exec(i),l=se(a),l)t=Math.abs(a[1])+a[2]/60,Number(a[1])<0&&(t*=-1),s=Math.abs(a[3])+a[4]/60,Number(a[3])<0&&(s*=-1),n="DM";else throw new Error("invalid coordinate format");else if(ct.test(i))if(a=ct.exec(i),l=se(a),l){if(t=a[2],s=a[6],t.includes(",")&&(t=t.replace(",",".")),s.includes(",")&&(s=s.replace(",",".")),n="DD",Number(Math.round(t))==Number(t))throw new Error("integer only coordinate provided");if(Number(Math.round(s))==Number(s))throw new Error("integer only coordinate provided");a[1]?(r=a[1],o=a[5]):a[4]&&(r=a[4],o=a[8])}else throw new Error("invalid decimal coordinate format");else if(dt.test(i))if(a=dt.exec(i),l=se(a),l)t=Math.abs(parseInt(a[2])),a[4]&&(t+=a[4]/60,n="DM"),a[6]&&(t+=a[6].replace(",",".")/3600,n="DMS"),parseInt(a[2])<0&&(t=-1*t),s=Math.abs(parseInt(a[9])),a[11]&&(s+=a[11]/60),a[13]&&(s+=a[13].replace(",",".")/3600),parseInt(a[9])<0&&(s=-1*s),a[1]?(r=a[1],o=a[8]):a[7]&&(r=a[7],o=a[14]);else throw new Error("invalid DMS coordinates format");else if(ht.test(i))if(a=ht.exec(i),l=se(a),l)t=Math.abs(parseInt(a[2])),a[4]&&(t+=a[4]/60,n="DM"),a[6]&&(t+=a[6]/3600,n="DMS"),parseInt(a[2])<0&&(t=-1*t),s=Math.abs(parseInt(a[10])),a[12]&&(s+=a[12]/60),a[14]&&(s+=a[14]/3600),parseInt(a[10])<0&&(s=-1*s),a[1]?(r=a[1],o=a[9]):a[8]&&(r=a[8],o=a[16]);else throw new Error("invalid DMS coordinates format");else if(ut.test(i)){if(a=ut.exec(i),l=se(a),a.filter(p=>p).length<=5)throw new Error("invalid coordinates format");if(l)t=Math.abs(parseInt(a[2])),a[4]&&(t+=a[4].replace(",",".")/60,n="DM"),a[6]&&(t+=a[6].replace(",",".")/3600,n="DMS"),parseInt(a[2])<0&&(t=-1*t),s=Math.abs(parseInt(a[10])),a[12]&&(s+=a[12].replace(",",".")/60),a[14]&&(s+=a[14].replace(",",".")/3600),parseInt(a[10])<0&&(s=-1*s),a[1]?(r=a[1],o=a[9]):a[8]&&(r=a[8],o=a[16]);else throw new Error("invalid coordinates format")}if(l){if(Math.abs(s)>=180)throw new Error("invalid longitude value");if(Math.abs(t)>=90)throw new Error("invalid latitude value");if(r&&!o||!r&&o)throw new Error("invalid coordinates value");if(r&&r==o)throw new Error("invalid coordinates format");t.toString().includes(",")&&(t=t.replace(",",".")),s.toString().includes(",")&&(s=s.replace(",","."));let p=/S|SOUTH/i;p.test(r)&&t>0&&(t=-1*t),p=/W|WEST/i,p.test(o)&&s>0&&(s=-1*s);const b=a[0].trim();let d,v;const g=/[,/;\u0020]/g,y=b.match(g);if(y==null){const x=Math.floor(i.length/2);d=b.substring(0,x).trim(),v=b.substring(x).trim()}else{let x;y.length%2==1?x=Math.floor(y.length/2):x=y.length/2-1;let G=0;if(x==0)G=b.indexOf(y[0]),d=b.substring(0,G).trim(),v=b.substring(G+1).trim();else{let ze=0,Ot=0;for(;ze<=x;)G=b.indexOf(y[ze],Ot),Ot=G+1,ze++;d=b.substring(0,G).trim(),v=b.substring(G+1).trim()}}const L=d.split(".");if(L.length==2&&L[1]==0&&L[1].length!=2)throw new Error("invalid coordinates format");const E=v.split(".");if(E.length==2&&E[1]==0&&E[1].length!=2)throw new Error("invalid coordinates format");if(/^\d+$/.test(d)||/^\d+$/.test(v))throw new Error("degree only coordinate/s provided");return t=Number(Number(t).toFixed(e)),s=Number(Number(s).toFixed(e)),Object.freeze({verbatimCoordinates:b,verbatimLatitude:d,verbatimLongitude:v,decimalLatitude:t,decimalLongitude:s,decimalCoordinates:`${t},${s}`,originalFormat:n,closeEnough:bi,toCoordinateFormat:vi})}else throw new Error("coordinates pattern match failed")}function se(i){if(!isNaN(i[0]))return!1;const e=[...i];if(e.shift(),e.length%2>0)return!1;const t=/^[-+]?\d+([\.,]\d+)?$/,s=/[eastsouthnorthwest]+/i,r=e.length/2;for(let o=0;o<r;o++){const n=e[o],a=e[o+r],l=t.test(n)&&t.test(a),p=s.test(n)&&s.test(a),b=n==a;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(l||p||b)continue;return!1}}return!0}function mt(i,e){const t=Math.abs(i-e);return Number(t.toFixed(6))<=1e-5}function bi(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 mt(this.decimalLatitude,Number(e[0]))&&mt(this.decimalLongitude,e[1])}else throw new Error("coords being tested must be separated by a comma")}const yi=Object.freeze({DMS:"DMS",DM:"DM",DD:"DD"});Ie.to=yi;const $i=[{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"}],Ei={decimalLatitude:40.123,decimalLongitude:-74.123},_i=[{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}],Li=[{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 wi(){const i=[];return $i.forEach(e=>{e.decimalLatitude?i.push(e):i.push({...e,...Ei})}),[...i,..._i,...Li]}const Si=wi();Ie.formats=Si.map(i=>i.verbatimCoordinates);const Mi=Ie;/**
131
131
  * @license
132
132
  * Copyright 2017 Google LLC
133
133
  * SPDX-License-Identifier: BSD-3-Clause
134
- */const Te={ATTRIBUTE:1,CHILD:2},Ne=i=>(...e)=>({_$litDirective$:i,values:e});let ke=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
134
+ */const Te={ATTRIBUTE:1,CHILD:2},Ne=i=>(...e)=>({_$litDirective$:i,undefined:e});let ke=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
135
135
  * @license
136
136
  * Copyright 2018 Google LLC
137
137
  * SPDX-License-Identifier: BSD-3-Clause
@@ -143,11 +143,11 @@
143
143
  * @license
144
144
  * Copyright 2017 Google LLC
145
145
  * SPDX-License-Identifier: BSD-3-Clause
146
- */const vt=(i,e,t)=>{const s=new Map;for(let r=e;r<=t;r++)s.set(i[r],r);return s},Ti=Ne(class extends ke{constructor(i){if(super(i),i.type!==Te.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,e,t){let s;t===void 0?t=e:e!==void 0&&(s=e);const r=[],o=[];let n=0;for(const a of i)r[n]=s?s(a,n):n,o[n]=t(a,n),n++;return{values:o,keys:r}}render(i,e,t){return this.dt(i,e,t).values}update(i,[e,t,s]){const r=Ii(i),{values:o,keys:n}=this.dt(e,t,s);if(!Array.isArray(r))return this.ut=n,o;const a=this.ut??=[],l=[];let p,b,d=0,g=r.length-1,v=0,y=o.length-1;for(;d<=g&&v<=y;)if(r[d]===null)d++;else if(r[g]===null)g--;else if(a[d]===n[v])l[v]=j(r[d],o[v]),d++,v++;else if(a[g]===n[y])l[y]=j(r[g],o[y]),g--,y--;else if(a[d]===n[y])l[y]=j(r[d],o[y]),re(i,l[y+1],r[d]),d++,y--;else if(a[g]===n[v])l[v]=j(r[g],o[v]),re(i,r[d],r[g]),g--,v++;else if(p===void 0&&(p=vt(n,v,y),b=vt(a,d,g)),p.has(a[d]))if(p.has(a[g])){const L=b.get(n[v]),E=L!==void 0?r[L]:null;if(E===null){const x=re(i,r[d]);j(x,o[v]),l[v]=x}else l[v]=j(E,o[v]),re(i,r[d],E),r[L]=null;v++}else Oe(r[g]),g--;else Oe(r[d]),d++;for(;v<=y;){const L=re(i,l[y+1]);j(L,o[v]),l[v++]=L}for(;d<=g;){const L=r[d++];L!==null&&Oe(L)}return this.ut=n,Ci(i,l),O}});function Ni(i,e,t){const s=e[1],r=e[0],o=s-r;return i===s&&t?i:((i-r)%o+o)%o+r}let oe;async function ki(i,e,t){for(const s of e??[])if(!(i&&(s.minZoom!=null&&s.minZoom>i[0]||s.maxZoom!=null&&s.maxZoom<i[0]))){if(s.type==="fixed")return s.coordinates.join(",");if(s.type==="client-geolocation")if(oe&&s.cachedLocationExpiry&&oe.time+s.cachedLocationExpiry>Date.now()){if(oe.coords)return oe.coords}else{let r;try{return r=await new Promise((o,n)=>{t.signal.addEventListener("abort",()=>{n(Error("aborted"))}),navigator.geolocation.getCurrentPosition(a=>{o([a.coords.longitude,a.coords.latitude].map(l=>l.toFixed(6)).join(","))},a=>{n(a)},s)}),r}catch{}finally{s.cachedLocationExpiry&&(oe={time:Date.now(),coords:r})}if(t.signal.aborted)return}if(s.type==="server-geolocation")return"ip";if(i&&s.type==="map-center")return i[1].toFixed(6)+","+i[2].toFixed(6)}}/**
146
+ */const gt=(i,e,t)=>{const s=new Map;for(let r=e;r<=t;r++)s.set(i[r],r);return s},Ti=Ne(class extends ke{constructor(i){if(super(i),i.type!==Te.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,e,t){let s;t===void 0?t=e:e!==void 0&&(s=e);const r=[],o=[];let n=0;for(const a of i)r[n]=s?s(a,n):n,o[n]=t(a,n),n++;return{undefined:o,keys:r}}render(i,e,t){return this.dt(i,e,t).undefined}update(i,[e,t,s]){const r=Ii(i),{undefined:o,keys:n}=this.dt(e,t,s);if(!Array.isArray(r))return this.ut=n,o;const a=this.ut??=[],l=[];let p,b,d=0,v=r.length-1,g=0,y=o.length-1;for(;d<=v&&g<=y;)if(r[d]===null)d++;else if(r[v]===null)v--;else if(a[d]===n[g])l[g]=j(r[d],o[g]),d++,g++;else if(a[v]===n[y])l[y]=j(r[v],o[y]),v--,y--;else if(a[d]===n[y])l[y]=j(r[d],o[y]),re(i,l[y+1],r[d]),d++,y--;else if(a[v]===n[g])l[g]=j(r[v],o[g]),re(i,r[d],r[v]),v--,g++;else if(p===void 0&&(p=gt(n,g,y),b=gt(a,d,v)),p.has(a[d]))if(p.has(a[v])){const L=b.get(n[g]),E=L!==void 0?r[L]:null;if(E===null){const x=re(i,r[d]);j(x,o[g]),l[g]=x}else l[g]=j(E,o[g]),re(i,r[d],E),r[L]=null;g++}else Oe(r[v]),v--;else Oe(r[d]),d++;for(;g<=y;){const L=re(i,l[y+1]);j(L,o[g]),l[g++]=L}for(;d<=v;){const L=r[d++];L!==null&&Oe(L)}return this.ut=n,Ci(i,l),O}});function Ni(i,e,t){const s=e[1],r=e[0],o=s-r;return i===s&&t?i:((i-r)%o+o)%o+r}let oe;async function ki(i,e,t){for(const s of e??[])if(!(i&&(s.minZoom!=null&&s.minZoom>i[0]||s.maxZoom!=null&&s.maxZoom<i[0]))){if(s.type==="fixed")return s.coordinates.join(",");if(s.type==="client-geolocation")if(oe&&s.cachedLocationExpiry&&oe.time+s.cachedLocationExpiry>Date.now()){if(oe.coords)return oe.coords}else{let r;try{return r=await new Promise((o,n)=>{t.signal.addEventListener("abort",()=>{n(Error("aborted"))}),navigator.geolocation.getCurrentPosition(a=>{o([a.coords.longitude,a.coords.latitude].map(l=>l.toFixed(6)).join(","))},a=>{n(a)},s)}),r}catch{}finally{s.cachedLocationExpiry&&(oe={time:Date.now(),coords:r})}if(t.signal.aborted)return}if(s.type==="server-geolocation")return"ip";if(i&&s.type==="map-center")return i[1].toFixed(6)+","+i[2].toFixed(6)}}/**
147
147
  * @license
148
148
  * Copyright 2018 Google LLC
149
149
  * SPDX-License-Identifier: BSD-3-Clause
150
- */const gt="important",Oi=" !"+gt,Gi=Ne(class extends ke{constructor(i){if(super(i),i.type!==Te.ATTRIBUTE||i.name!=="style"||i.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce(((e,t)=>{const s=i[t];return s==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(i,[e]){const{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?t.removeProperty(s):t[s]=null);for(const s in e){const r=e[s];if(r!=null){this.ft.add(s);const o=typeof r=="string"&&r.endsWith(Oi);s.includes("-")||o?t.setProperty(s,o?r.slice(0,-11):r,o?gt:""):t[s]=r}}return O}}),Ui=".sprite-icon{align-self:center;justify-self:center;opacity:.75;background-repeat:no-repeat}li{text-align:left;cursor:default;display:grid;grid-template-columns:40px 1fr;color:var(--color-text);padding:8px 0;font-size:14px;line-height:18px;min-width:fit-content;outline:0}li:first-child{padding-top:10px}li:last-child{padding-bottom:10px}li.picked{background-color:#e7edff}li.picked .secondary{color:#96a4c7;padding-left:4px}li.picked .line2{color:#96a4c7}li.selected{background-color:#f3f6ff;animation:backAndForth 5s linear infinite}li.selected .primary{color:#2b8bfb}li.selected .secondary{color:#a2adc7;padding-left:4px}li.selected .line2{color:#a2adc7}li>img{align-self:center;justify-self:center;opacity:.75}.texts{padding:0 17px 0 0}.texts>*{white-space:nowrap;display:block;min-width:fit-content}.primary{font-weight:600}.secondary{color:#aeb6c7;padding-left:4px}.line2{color:#aeb6c7}@keyframes backAndForth{0%{transform:translate(0)}10%{transform:translate(0)}45%{transform:translate(calc(-100% + 270px))}55%{transform:translate(calc(-100% + 270px))}90%{transform:translate(0)}to{transform:translate(0)}}";var Pi=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,bt=i=>{throw TypeError(i)},k=(i,e,t,s)=>{for(var r=s>1?void 0:s?Wi(e,t):e,o=i.length-1,n;o>=0;o--)(n=i[o])&&(r=(s?n(e,t,r):n(r))||r);return s&&r&&Pi(e,t,r),r},yt=(i,e,t)=>e.has(i)||bt("Cannot "+t),_=(i,e,t)=>(yt(i,e,"read from private field"),t?t.call(i):e.get(i)),Di=(i,e,t)=>e.has(i)?bt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),K=(i,e,t)=>(yt(i,e,"access private method"),t),$,fe,ae,M,$t,Et,Ge,Ue;const _t=typeof devicePixelRatio>"u"||devicePixelRatio>1.25,Lt=_t?"@2x":"",Q=_t?2:1;let z,wt,T=class extends N{constructor(){super(...arguments),Di(this,$),this.itemStyle="default",this.showPlaceType="if-needed",this.missingIconsCache=new Set,this.iconsBaseUrl="",this.index=0}willUpdate(i){i.has("feature")&&_(this,$,fe)&&(this.index=_(this,$,fe).length,K(this,$,Ge).call(this))}render(){return S`
150
+ */const vt="important",Oi=" !"+vt,Gi=Ne(class extends ke{constructor(i){if(super(i),i.type!==Te.ATTRIBUTE||i.name!=="style"||i.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce(((e,t)=>{const s=i[t];return s==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(i,[e]){const{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const s of this.ft)e[s]==null&&(this.ft.delete(s),s.includes("-")?t.removeProperty(s):t[s]=null);for(const s in e){const r=e[s];if(r!=null){this.ft.add(s);const o=typeof r=="string"&&r.endsWith(Oi);s.includes("-")||o?t.setProperty(s,o?r.slice(0,-11):r,o?vt:""):t[s]=r}}return O}}),Ui=".sprite-icon{align-self:center;justify-self:center;opacity:.75;background-repeat:no-repeat}li{text-align:left;cursor:default;display:grid;grid-template-columns:40px 1fr;color:var(--color-text);padding:8px 0;font-size:14px;line-height:18px;min-width:fit-content;outline:0}li:first-child{padding-top:10px}li:last-child{padding-bottom:10px}li.picked{background-color:#e7edff}li.picked .secondary{color:#96a4c7;padding-left:4px}li.picked .line2{color:#96a4c7}li.selected{background-color:#f3f6ff;animation:backAndForth 5s linear infinite}li.selected .primary{color:#2b8bfb}li.selected .secondary{color:#a2adc7;padding-left:4px}li.selected .line2{color:#a2adc7}li>img{align-self:center;justify-self:center;opacity:.75}.texts{padding:0 17px 0 0}.texts>*{white-space:nowrap;display:block;min-width:fit-content}.primary{font-weight:600}.secondary{color:#aeb6c7;padding-left:4px}.line2{color:#aeb6c7}@keyframes backAndForth{0%{transform:translate(0)}10%{transform:translate(0)}45%{transform:translate(calc(-100% + 270px))}55%{transform:translate(calc(-100% + 270px))}90%{transform:translate(0)}to{transform:translate(0)}}";var Pi=Object.defineProperty,Wi=Object.getOwnPropertyDescriptor,bt=i=>{throw TypeError(i)},k=(i,e,t,s)=>{for(var r=s>1?void 0:s?Wi(e,t):e,o=i.length-1,n;o>=0;o--)(n=i[o])&&(r=(s?n(e,t,r):n(r))||r);return s&&r&&Pi(e,t,r),r},yt=(i,e,t)=>e.has(i)||bt("Cannot "+t),_=(i,e,t)=>(yt(i,e,"read from private field"),t?t.call(i):e.get(i)),Di=(i,e,t)=>e.has(i)?bt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),K=(i,e,t)=>(yt(i,e,"access private method"),t),$,fe,ae,M,$t,Et,Ge,Ue;const _t=typeof devicePixelRatio>"u"||devicePixelRatio>1.25,Lt=_t?"@2x":"",Q=_t?2:1;let z,wt,T=class extends N{constructor(){super(...arguments),Di(this,$),this.itemStyle="default",this.showPlaceType="if-needed",this.missingIconsCache=new Set,this.iconsBaseUrl="",this.index=0}willUpdate(i){i.has("feature")&&_(this,$,fe)&&(this.index=_(this,$,fe).length,K(this,$,Ge).call(this))}render(){return S`
151
151
  <li
152
152
  tabindex="-1"
153
153
  role="option"
@@ -176,7 +176,7 @@
176
176
  </li>
177
177
  `}};$=new WeakSet,fe=function(){return this.feature?.properties?.categories},ae=function(){return this.feature?.place_type[0]==="reverse"},M=function(){return this.feature?.properties?.categories?.join(", ")??this.feature?.place_type_name?.[0]??this.feature?.place_type[0]},$t=function(){wt??=fetch(`${this.iconsBaseUrl}sprite${Lt}.json`).then(i=>i.json()).then(i=>{z=i}).catch(()=>{z=null})},Et=function(){this.imageUrl&&this.missingIconsCache.add(this.imageUrl),K(this,$,Ge).call(this)},Ge=function(){z!==void 0?K(this,$,Ue).call(this):(K(this,$,$t).call(this),wt?.then(()=>{K(this,$,Ue).call(this)}))},Ue=function(){do{if(this.index--,this.category=_(this,$,fe)?.[this.index],this.spriteIcon=this.category?z?.icons[this.category]:void 0,this.spriteIcon)break;this.imageUrl=this.category?this.iconsBaseUrl+this.category.replace(/ /g,"_")+".svg":void 0}while(this.index>-1&&(!this.imageUrl||this.missingIconsCache.has(this.imageUrl)))},T.styles=D`
178
178
  ${we(Ui)}
179
- `,k([m({type:Object})],T.prototype,"feature",2),k([m({type:String})],T.prototype,"itemStyle",2),k([m({type:String})],T.prototype,"showPlaceType",2),k([m({attribute:!1})],T.prototype,"missingIconsCache",2),k([m({type:String})],T.prototype,"iconsBaseUrl",2),k([C()],T.prototype,"category",2),k([C()],T.prototype,"imageUrl",2),k([C()],T.prototype,"spriteIcon",2),k([C()],T.prototype,"index",2),T=k([B("maptiler-geocoder-feature-item")],T);const Fi="form{font-family:Open Sans,Ubuntu,Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;background-color:#fff;z-index:10;border-radius:4px;margin:0;transition:max-width .25s;box-shadow:0 2px 5px #33335926;--color-text: #444952;--color-icon-button: #444952;pointer-events:all}form,form *,form *:after,form *:before{box-sizing:border-box}form.can-collapse{max-width:29px}form.can-collapse input::placeholder{transition:opacity .25s;opacity:0}form{width:270px;max-width:270px}form:focus-within,form:hover{width:270px;max-width:270px}form input::placeholder,form:focus-within input::placeholder,form:hover input::placeholder{opacity:1}input{font:inherit;font-size:14px;flex-grow:1;min-height:29px;background-color:transparent;color:#444952;white-space:nowrap;overflow:hidden;border:0;margin:0;padding:0}input:focus{color:#444952;outline:0;outline:none;box-shadow:none}ul,div.error,div.no-results{background-color:#fff;border-radius:4px;left:0;list-style:none;margin:0;padding:0;position:absolute;width:100%;top:calc(100% + 6px);overflow:hidden}ul{font-size:14px;line-height:16px;box-shadow:0 5px 10px #33335926}div.error,div.no-results{font:inherit;line-height:18px;font-size:12px;display:flex;gap:16px}div.error{padding:16px;font-weight:600;color:#e25041;background-color:#fbeae8}div.error div{flex-grow:1}div.error maptiler-geocode-fail-icon{flex-shrink:0;width:20px;height:20px}div.error button{flex-shrink:0}div.error button maptiler-geocode-clear-icon{--color-icon-button: #e25041}div.error button:hover maptiler-geocode-clear-icon,div.error button:active maptiler-geocode-clear-icon{--color-icon-button: inherit}div.no-results{padding:14px 24px 14px 16px;font-weight:400;color:#6b7c93;box-shadow:0 5px 10px #33335926}div.no-results maptiler-geocode-fail-icon{margin-top:4px;flex-shrink:0;width:20px;height:20px}ul.options.open-on-top{top:auto;bottom:calc(100% + 6px)}button{padding:0;margin:0;border:0;background-color:transparent;height:auto;width:auto}button:hover{background-color:transparent}button:hover,button:active{--color-icon-button: #2b8bfb}.input-group{display:flex;align-items:stretch;gap:7px;padding-inline:8px;border-radius:4px;overflow:hidden}.input-group:focus-within{outline:#2b8bfb solid 2px}.search-button{flex-shrink:0}.clear-button-container{display:flex;display:none;position:relative;align-items:stretch}.clear-button-container.displayable{display:flex;flex-shrink:0}:host(.maptiler-geocoder):not(:empty){box-shadow:none}:host(.maptiler-geocoder) .input-group{border:white solid 2px}:host(.maptiler-geocoder) .input-group:focus-within{border:#2b8bfb solid 2px;outline:0;outline:none}:host(.maptiler-geocoder) form.can-collapse{max-width:33px}:host(.maptiler-geocoder) form,:host(.maptiler-geocoder) form:focus-within,:host(.maptiler-geocoder) form:hover{width:270px;max-width:270px}:host(.leaflet-geocoder) .input-group{border:white solid 1px}:host(.leaflet-geocoder) form.can-collapse{max-width:30px}";var Ri=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,St=i=>{throw TypeError(i)},u=(i,e,t,s)=>{for(var r=s>1?void 0:s?Hi(e,t):e,o=i.length-1,n;o>=0;o--)(n=i[o])&&(r=(s?n(e,t,r):n(r))||r);return s&&r&&Ri(e,t,r),r},Pe=(i,e,t)=>e.has(i)||St("Cannot "+t),I=(i,e,t)=>(Pe(i,e,"read from private field"),t?t.call(i):e.get(i)),J=(i,e,t)=>e.has(i)?St("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ve=(i,e,t,s)=>(Pe(i,e,"write to private field"),e.set(i,t),t),f=(i,e,t)=>(Pe(i,e,"access private method"),t),ge,be,ne,We,le,h,ye,Mt,At,De,A,Fe,$e,Re,He,W,Be,Ee,xt,je,Ct,It,Tt,Nt,kt;c.MaptilerGeocoderElement=class extends N{constructor(){super(...arguments),J(this,h),this.clearListOnPick=!1,this.clearOnBlur=!1,this.collapsed=!1,this.excludeTypes=!1,this.exhaustiveReverseGeocoding=!1,this.fetchFullGeometryOnPick=!1,this.keepListOpen=!1,this.openListOnTop=!1,this.reverseActive=!1,this.searchValue="",this.selectedItemIndex=-1,this.cachedFeatures=[],this.lastSearchUrl="",this.focused=!1,this.focusedDelayed=!1,J(this,ge,!1),J(this,be,!1),J(this,ne),J(this,We,new Set),J(this,le)}firstUpdated(){ve(this,ge,!0)}setOptions(e){const t={...e};for(const s of Object.keys(t))Bi.includes(s)||delete t[s];Object.assign(this,t)}setQuery(e){f(this,h,He).call(this,e),f(this,h,Re).call(this)}submitQuery(e){f(this,h,Be).call(this,e)}clearList(){f(this,h,W).call(this),this.picked=void 0,this.selectedItemIndex=-1}focus(e){this.input.focus(e)}blur(){this.input.blur()}addEventListener(e,t,s){super.addEventListener(e,t,s)}removeEventListener(e,t,s){super.removeEventListener(e,t,s)}handleMapChange(e){ve(this,le,e)}handleMapClick(e){this.reverseActive&&f(this,h,xt).call(this,e)}willUpdate(e){e.has("error")&&this.error&&console.error("[MapTilerGeocodingControl] Error:",this.error),e.has("enableReverse")&&(this.reverseActive=this.enableReverse==="always"),["picked"].some(t=>e.has(t))&&this.picked&&(this.clearListOnPick&&f(this,h,W).call(this),this.selectedItemIndex=-1),["searchValue","minLength"].some(t=>e.has(t))&&I(this,h,De)&&(f(this,h,W).call(this),this.error=void 0),["focused"].some(t=>e.has(t))&&setTimeout(()=>{this.focusedDelayed=this.focused,this.clearOnBlur&&!this.focused&&(this.searchValue="")},100),["selectFirst","listFeatures","selectedItemIndex","picked"].some(t=>e.has(t))&&this.selectFirst!==!1&&this.listFeatures?.length&&this.selectedItemIndex==-1&&!this.picked&&(this.selectedItemIndex=0),["listFeatures","selectedItemIndex"].some(t=>e.has(t))&&f(this,h,A).call(this,"select",{feature:I(this,h,ye)}),["picked"].some(t=>e.has(t))&&this.picked&&this.picked.id!==e.get("picked")?.id&&(this.fetchFullGeometryOnPick&&!this.picked.address&&this.picked.geometry.type==="Point"&&this.picked.place_type[0]!=="reverse"?f(this,h,Ee).call(this,this.picked.id,{byId:!0}):Promise.resolve()).then(()=>{f(this,h,A).call(this,"pick",{feature:this.picked})},t=>{t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"||(this.error=t,f(this,h,A).call(this,"pick",{feature:this.picked}))}),["listFeatures","focusedDelayed"].some(t=>e.has(t))&&(I(this,h,Mt)?(f(this,h,A).call(this,"featuresshow"),ve(this,be,!0)):I(this,be)&&f(this,h,A).call(this,"featureshide")),["reverseActive"].some(t=>e.has(t))&&f(this,h,A).call(this,"reversetoggle",{reverse:this.reverseActive})}render(){return S`
179
+ `,k([m({type:Object})],T.prototype,"feature",2),k([m({type:String})],T.prototype,"itemStyle",2),k([m({type:String})],T.prototype,"showPlaceType",2),k([m({attribute:!1})],T.prototype,"missingIconsCache",2),k([m({type:String})],T.prototype,"iconsBaseUrl",2),k([C()],T.prototype,"category",2),k([C()],T.prototype,"imageUrl",2),k([C()],T.prototype,"spriteIcon",2),k([C()],T.prototype,"index",2),T=k([B("maptiler-geocoder-feature-item")],T);const Fi="form{font-family:Open Sans,Ubuntu,Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;background-color:#fff;z-index:10;border-radius:4px;margin:0;transition:max-width .25s;box-shadow:0 2px 5px #33335926;--color-text: #444952;--color-icon-button: #444952;pointer-events:all}form,form *,form *:after,form *:before{box-sizing:border-box}form.can-collapse{max-width:29px}form.can-collapse input::placeholder{transition:opacity .25s;opacity:0}form{width:270px;max-width:270px}form:focus-within,form:hover{width:270px;max-width:270px}form input::placeholder,form:focus-within input::placeholder,form:hover input::placeholder{opacity:1}input{font:inherit;font-size:14px;flex-grow:1;min-height:29px;background-color:transparent;color:#444952;white-space:nowrap;overflow:hidden;border:0;margin:0;padding:0}input:focus{color:#444952;outline:0;outline:none;box-shadow:none}ul,div.error,div.no-results{background-color:#fff;border-radius:4px;left:0;list-style:none;margin:0;padding:0;position:absolute;width:100%;top:calc(100% + 6px);overflow:hidden}ul{font-size:14px;line-height:16px;box-shadow:0 5px 10px #33335926}div.error,div.no-results{font:inherit;line-height:18px;font-size:12px;display:flex;gap:16px}div.error{padding:16px;font-weight:600;color:#e25041;background-color:#fbeae8}div.error div{flex-grow:1}div.error maptiler-geocode-fail-icon{flex-shrink:0;width:20px;height:20px}div.error button{flex-shrink:0}div.error button maptiler-geocode-clear-icon{--color-icon-button: #e25041}div.error button:hover maptiler-geocode-clear-icon,div.error button:active maptiler-geocode-clear-icon{--color-icon-button: inherit}div.no-results{padding:14px 24px 14px 16px;font-weight:400;color:#6b7c93;box-shadow:0 5px 10px #33335926}div.no-results maptiler-geocode-fail-icon{margin-top:4px;flex-shrink:0;width:20px;height:20px}ul.options.open-on-top{top:auto;bottom:calc(100% + 6px)}button{padding:0;margin:0;border:0;background-color:transparent;height:auto;width:auto}button:hover{background-color:transparent}button:hover,button:active{--color-icon-button: #2b8bfb}.input-group{display:flex;align-items:stretch;gap:7px;padding-inline:8px;border-radius:4px;overflow:hidden}.input-group:focus-within{outline:#2b8bfb solid 2px}.search-button{flex-shrink:0}.clear-button-container{display:flex;display:none;position:relative;align-items:stretch}.clear-button-container.displayable{display:flex;flex-shrink:0}:host(.maptiler-geocoder):not(:empty){box-shadow:none}:host(.maptiler-geocoder) .input-group{border:white solid 2px}:host(.maptiler-geocoder) .input-group:focus-within{border:#2b8bfb solid 2px;outline:0;outline:none}:host(.maptiler-geocoder) form.can-collapse{max-width:33px}:host(.maptiler-geocoder) form,:host(.maptiler-geocoder) form:focus-within,:host(.maptiler-geocoder) form:hover{width:270px;max-width:270px}:host(.leaflet-geocoder) .input-group{border:white solid 1px}:host(.leaflet-geocoder) form.can-collapse{max-width:30px}";var Ri=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,St=i=>{throw TypeError(i)},u=(i,e,t,s)=>{for(var r=s>1?void 0:s?Hi(e,t):e,o=i.length-1,n;o>=0;o--)(n=i[o])&&(r=(s?n(e,t,r):n(r))||r);return s&&r&&Ri(e,t,r),r},Pe=(i,e,t)=>e.has(i)||St("Cannot "+t),I=(i,e,t)=>(Pe(i,e,"read from private field"),t?t.call(i):e.get(i)),J=(i,e,t)=>e.has(i)?St("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ge=(i,e,t,s)=>(Pe(i,e,"write to private field"),e.set(i,t),t),f=(i,e,t)=>(Pe(i,e,"access private method"),t),ve,be,ne,We,le,h,ye,Mt,At,De,A,Fe,$e,Re,He,W,Be,Ee,xt,je,Ct,It,Tt,Nt,kt;c.MaptilerGeocoderElement=class extends N{constructor(){super(...arguments),J(this,h),this.clearListOnPick=!1,this.clearOnBlur=!1,this.collapsed=!1,this.excludeTypes=!1,this.exhaustiveReverseGeocoding=!1,this.fetchFullGeometryOnPick=!1,this.keepListOpen=!1,this.openListOnTop=!1,this.reverseActive=!1,this.searchValue="",this.selectedItemIndex=-1,this.cachedFeatures=[],this.lastSearchUrl="",this.focused=!1,this.focusedDelayed=!1,J(this,ve,!1),J(this,be,!1),J(this,ne),J(this,We,new Set),J(this,le)}firstUpdated(){ge(this,ve,!0)}setOptions(e){const t={...e};for(const s of Object.keys(t))Bi.includes(s)||delete t[s];Object.assign(this,t)}setQuery(e){f(this,h,He).call(this,e),f(this,h,Re).call(this)}submitQuery(e){f(this,h,Be).call(this,e)}clearList(){f(this,h,W).call(this),this.picked=void 0,this.selectedItemIndex=-1}focus(e){this.input.focus(e)}blur(){this.input.blur()}addEventListener(e,t,s){super.addEventListener(e,t,s)}removeEventListener(e,t,s){super.removeEventListener(e,t,s)}handleMapChange(e){ge(this,le,e)}handleMapClick(e){this.reverseActive&&f(this,h,xt).call(this,e)}willUpdate(e){e.has("error")&&this.error&&console.error("[MapTilerGeocodingControl] Error:",this.error),e.has("enableReverse")&&(this.reverseActive=this.enableReverse==="always"),["picked"].some(t=>e.has(t))&&this.picked&&(this.clearListOnPick&&f(this,h,W).call(this),this.selectedItemIndex=-1),["searchValue","minLength"].some(t=>e.has(t))&&I(this,h,De)&&(f(this,h,W).call(this),this.error=void 0),["focused"].some(t=>e.has(t))&&setTimeout(()=>{this.focusedDelayed=this.focused,this.clearOnBlur&&!this.focused&&(this.searchValue="")},100),["selectFirst","listFeatures","selectedItemIndex","picked"].some(t=>e.has(t))&&this.selectFirst!==!1&&this.listFeatures?.length&&this.selectedItemIndex==-1&&!this.picked&&(this.selectedItemIndex=0),["listFeatures","selectedItemIndex"].some(t=>e.has(t))&&f(this,h,A).call(this,"select",{feature:I(this,h,ye)}),["picked"].some(t=>e.has(t))&&this.picked&&this.picked.id!==e.get("picked")?.id&&(this.fetchFullGeometryOnPick&&!this.picked.address&&this.picked.geometry.type==="Point"&&this.picked.place_type[0]!=="reverse"?f(this,h,Ee).call(this,this.picked.id,{byId:!0}):Promise.resolve()).then(()=>{f(this,h,A).call(this,"pick",{feature:this.picked})},t=>{t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"||(this.error=t,f(this,h,A).call(this,"pick",{feature:this.picked}))}),["listFeatures","focusedDelayed"].some(t=>e.has(t))&&(I(this,h,Mt)?(f(this,h,A).call(this,"featuresshow"),ge(this,be,!0)):I(this,be)&&f(this,h,A).call(this,"featureshide")),["reverseActive"].some(t=>e.has(t))&&f(this,h,A).call(this,"reversetoggle",{reverse:this.reverseActive})}render(){return S`
180
180
  <form @submit=${f(this,h,Fe)} class=${me({"can-collapse":this.collapsed&&this.searchValue===""})}>
181
181
  <div class="input-group">
182
182
  <button
@@ -249,7 +249,7 @@
249
249
  @mouseenter=${()=>{f(this,h,Tt).call(this,t)}}
250
250
  @select=${()=>{f(this,h,It).call(this,e)}}
251
251
  .missingIconsCache=${I(this,We)}
252
- .iconsBaseUrl=${this.iconsBaseUrl??"https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.3/icons/"}
252
+ .iconsBaseUrl=${this.iconsBaseUrl??"https://cdn.maptiler.com/maptiler-geocoding-control/v3.0.0-rc.4/icons/"}
253
253
  >
254
254
  ${e.place_name}
255
255
  </maptiler-geocoder-feature-item>
@@ -257,7 +257,7 @@
257
257
  </ul>
258
258
  `}
259
259
  </form>
260
- `}},ge=new WeakMap,be=new WeakMap,ne=new WeakMap,We=new WeakMap,le=new WeakMap,h=new WeakSet,ye=function(){return this.listFeatures?.[this.selectedItemIndex]},Mt=function(){return!!this.listFeatures?.length&&(this.focusedDelayed||this.keepListOpen)},At=function(){return this.abortController!==void 0},De=function(){return this.searchValue.length<(this.minLength??2)},A=function(i,...[e]){I(this,ge)&&this.dispatchEvent(new CustomEvent(i,{bubbles:!0,composed:!0,detail:e}))},Fe=function(i){i?.preventDefault(),this.focused=!1,clearTimeout(I(this,ne)),this.selectedItemIndex>-1&&this.listFeatures?(this.picked=this.listFeatures[this.selectedItemIndex],this.searchValue=this.picked.place_type[0]==="reverse"?this.picked.place_name:this.picked.place_name.replace(/,.*/,""),this.error=void 0,this.selectedItemIndex=-1):this.searchValue&&f(this,h,Ee).call(this,this.searchValue,{exact:!0}).then(()=>{this.picked=void 0}).catch(e=>this.error=e)},$e=function(i){try{return Mi(i,6)}catch{return!1}},Re=function(){setTimeout(()=>{this.input.focus(),this.focused=!0,this.input.select()})},He=function(i){if(this.searchValue=i,f(this,h,A).call(this,"querychange",{query:this.searchValue,reverseCoords:f(this,h,$e).call(this,i)}),this.error=void 0,this.picked=void 0,this.showResultsWhileTyping!==!1){if(clearTimeout(I(this,ne)),I(this,h,De))return;const e=this.searchValue;ve(this,ne,window.setTimeout(()=>{f(this,h,Ee).call(this,e).catch(t=>this.error=t)},this.debounceSearch??200))}else f(this,h,W).call(this)},W=function(){this.listFeatures!==void 0&&(this.listFeatures=void 0,f(this,h,A).call(this,"featuresclear"))},Be=function(i){this.searchValue=i,f(this,h,A).call(this,"querychange",{query:this.searchValue,reverseCoords:f(this,h,$e).call(this,i)}),this.selectedItemIndex=-1,f(this,h,Fe).call(this)},Ee=async function(i,{byId:e=!1,exact:t=!1}={}){this.error=void 0,this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const r=this.apiUrl??"https://api.maptiler.com/geocoding",o=f(this,h,$e).call(this,i),n=new URL(r+"/"+encodeURIComponent(o?`${o.decimalLongitude},${o.decimalLatitude}`:i)+".json"),a=n.searchParams;this.language!==void 0&&a.set("language",Array.isArray(this.language)?this.language.join(","):this.language??"");const[l]=I(this,le)??[void 0];let p=(!o||this.reverseGeocodingTypes===void 0?this.types:this.reverseGeocodingTypes)?.map(E=>typeof E=="string"?E:l===void 0||(E[0]??0)<=l&&l<(E[1]??1/0)?E[2]:void 0).filter(E=>E!==void 0);p&&(p=[...new Set(p)],a.set("types",p.join(",")));const b=!o||this.reverseGeocodingExcludeTypes===void 0?this.excludeTypes:this.reverseGeocodingExcludeTypes;if(b&&a.set("excludeTypes",String(b)),this.bbox&&a.set("bbox",this.bbox.map(E=>E.toFixed(6)).join(",")),this.country&&a.set("country",Array.isArray(this.country)?this.country.join(","):this.country),this.worldview&&a.set("worldview",this.worldview),!e&&!o){const E=this.proximity??[{type:"server-geolocation"}],x=await ki(I(this,le),E,s);x&&a.set("proximity",x),(t||this.showResultsWhileTyping===!1)&&a.set("autocomplete","false"),a.set("fuzzyMatch",String(this.fuzzyMatch!==!1))}const d=this.limit??5,g=this.reverseGeocodingLimit??d;g>1&&p?.length!==1&&console.warn("[MapTilerGeocodingControl] Warning: For reverse geocoding when limit > 1 then types must contain single value."),o?(g===1||this.exhaustiveReverseGeocoding||p?.length===1)&&a.set("limit",String(g)):a.set("limit",String(d)),this.apiKey&&a.set("key",this.apiKey),this.adjustUrl?.(n);const v=n.searchParams.get("types")===""&&n.searchParams.get("excludeTypes")!=="true",y=n.toString();if(y===this.lastSearchUrl){e?(this.clearListOnPick&&f(this,h,W).call(this),this.picked=this.cachedFeatures[0]):(this.listFeatures=this.cachedFeatures,f(this,h,A).call(this,"featureslisted",{features:this.listFeatures}),this.listFeatures[this.selectedItemIndex]?.id!==I(this,h,ye)?.id&&(this.selectedItemIndex=-1));return}f(this,h,A).call(this,"request",{urlObj:n}),this.lastSearchUrl=y;let L;if(v)L={type:"FeatureCollection",features:[]};else{const E=await fetch(y,{signal:s.signal,...this.fetchParameters});if(!E.ok)throw new Error(await E.text());L=await E.json()}f(this,h,A).call(this,"response",{url:y,featureCollection:L}),e?(this.clearListOnPick&&f(this,h,W).call(this),this.picked=L.features[0],this.cachedFeatures=[this.picked]):(this.listFeatures=L.features.filter(this.filter??(()=>!0)),o&&this.listFeatures.unshift({type:"Feature",properties:{},id:`reverse_${o.decimalLongitude}_${o.decimalLatitude}`,text:`${o.decimalLatitude}, ${o.decimalLongitude}`,place_name:o.toCoordinateFormat("DMS"),place_type:["reverse"],place_type_name:["reverse"],center:[o.decimalLongitude,o.decimalLatitude],bbox:[o.decimalLongitude,o.decimalLatitude,o.decimalLongitude,o.decimalLatitude],geometry:{type:"Point",coordinates:[o.decimalLongitude,o.decimalLatitude]}}),f(this,h,A).call(this,"featureslisted",{features:this.listFeatures}),this.cachedFeatures=this.listFeatures,this.listFeatures[this.selectedItemIndex]?.id!==I(this,h,ye)?.id&&(this.selectedItemIndex=-1),o&&this.input.focus())}catch(r){if(r&&typeof r=="object"&&"name"in r&&r.name==="AbortError")return;throw r}finally{s===this.abortController&&(this.abortController=void 0)}},xt=function(i){this.reverseActive=this.enableReverse==="always",f(this,h,W).call(this),this.picked=void 0,f(this,h,Be).call(this,`${i[1].toFixed(6)}, ${Ni(i[0],[-180,180],!0).toFixed(6)}`),f(this,h,Re).call(this)},je=function(i){if(!this.listFeatures)return;const e=i.key==="ArrowDown"?1:i.key==="ArrowUp"?-1:0;e&&(this.input.focus(),this.focused=!0,i.preventDefault(),this.picked&&this.selectedItemIndex===-1&&(this.selectedItemIndex=this.listFeatures.findIndex(t=>t.id===this.picked?.id)),this.selectedItemIndex===(this.picked||this.selectFirst!==!1?0:-1)&&e===-1&&(this.selectedItemIndex=this.listFeatures.length),this.selectedItemIndex+=e,this.selectedItemIndex>=this.listFeatures.length&&(this.selectedItemIndex=-1),this.selectedItemIndex<0&&(this.picked||this.selectFirst!==!1)&&(this.selectedItemIndex=0))},Ct=function(i){f(this,h,He).call(this,i.target.value)},It=function(i){(!this.picked||this.picked.id!==i.id)&&(this.picked=i,this.searchValue=i.place_name)},Tt=function(i){this.selectedItemIndex=i},Nt=function(){(!this.selectFirst||this.picked)&&(this.selectedItemIndex=-1)},kt=function(){this.searchValue="",f(this,h,A).call(this,"queryclear"),this.picked=void 0,this.input.focus()},c.MaptilerGeocoderElement.styles=D`
260
+ `}},ve=new WeakMap,be=new WeakMap,ne=new WeakMap,We=new WeakMap,le=new WeakMap,h=new WeakSet,ye=function(){return this.listFeatures?.[this.selectedItemIndex]},Mt=function(){return!!this.listFeatures?.length&&(this.focusedDelayed||this.keepListOpen)},At=function(){return this.abortController!==void 0},De=function(){return this.searchValue.length<(this.minLength??2)},A=function(i,...[e]){I(this,ve)&&this.dispatchEvent(new CustomEvent(i,{bubbles:!0,composed:!0,detail:e}))},Fe=function(i){i?.preventDefault(),this.focused=!1,clearTimeout(I(this,ne)),this.selectedItemIndex>-1&&this.listFeatures?(this.picked=this.listFeatures[this.selectedItemIndex],this.searchValue=this.picked.place_type[0]==="reverse"?this.picked.place_name:this.picked.place_name.replace(/,.*/,""),this.error=void 0,this.selectedItemIndex=-1):this.searchValue&&f(this,h,Ee).call(this,this.searchValue,{exact:!0}).then(()=>{this.picked=void 0}).catch(e=>this.error=e)},$e=function(i){try{return Mi(i,6)}catch{return!1}},Re=function(){setTimeout(()=>{this.input.focus(),this.focused=!0,this.input.select()})},He=function(i){if(this.searchValue=i,f(this,h,A).call(this,"querychange",{query:this.searchValue,reverseCoords:f(this,h,$e).call(this,i)}),this.error=void 0,this.picked=void 0,this.showResultsWhileTyping!==!1){if(clearTimeout(I(this,ne)),I(this,h,De))return;const e=this.searchValue;ge(this,ne,window.setTimeout(()=>{f(this,h,Ee).call(this,e).catch(t=>this.error=t)},this.debounceSearch??200))}else f(this,h,W).call(this)},W=function(){this.listFeatures!==void 0&&(this.listFeatures=void 0,f(this,h,A).call(this,"featuresclear"))},Be=function(i){this.searchValue=i,f(this,h,A).call(this,"querychange",{query:this.searchValue,reverseCoords:f(this,h,$e).call(this,i)}),this.selectedItemIndex=-1,f(this,h,Fe).call(this)},Ee=async function(i,{byId:e=!1,exact:t=!1}={}){this.error=void 0,this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const r=this.apiUrl??"https://api.maptiler.com/geocoding",o=f(this,h,$e).call(this,i),n=new URL(r+"/"+encodeURIComponent(o?`${o.decimalLongitude},${o.decimalLatitude}`:i)+".json"),a=n.searchParams;this.language!==void 0&&a.set("language",Array.isArray(this.language)?this.language.join(","):this.language??"");const[l]=I(this,le)??[void 0];let p=(!o||this.reverseGeocodingTypes===void 0?this.types:this.reverseGeocodingTypes)?.map(E=>typeof E=="string"?E:l===void 0||(E[0]??0)<=l&&l<(E[1]??1/0)?E[2]:void 0).filter(E=>E!==void 0);p&&(p=[...new Set(p)],a.set("types",p.join(",")));const b=!o||this.reverseGeocodingExcludeTypes===void 0?this.excludeTypes:this.reverseGeocodingExcludeTypes;if(b&&a.set("excludeTypes",String(b)),this.bbox&&a.set("bbox",this.bbox.map(E=>E.toFixed(6)).join(",")),this.country&&a.set("country",Array.isArray(this.country)?this.country.join(","):this.country),this.worldview&&a.set("worldview",this.worldview),!e&&!o){const E=this.proximity??[{type:"server-geolocation"}],x=await ki(I(this,le),E,s);x&&a.set("proximity",x),(t||this.showResultsWhileTyping===!1)&&a.set("autocomplete","false"),a.set("fuzzyMatch",String(this.fuzzyMatch!==!1))}const d=this.limit??5,v=this.reverseGeocodingLimit??d;v>1&&p?.length!==1&&console.warn("[MapTilerGeocodingControl] Warning: For reverse geocoding when limit > 1 then types must contain single value."),o?(v===1||this.exhaustiveReverseGeocoding||p?.length===1)&&a.set("limit",String(v)):a.set("limit",String(d)),this.apiKey&&a.set("key",this.apiKey),this.adjustUrl?.(n);const g=n.searchParams.get("types")===""&&n.searchParams.get("excludeTypes")!=="true",y=n.toString();if(y===this.lastSearchUrl){e?(this.clearListOnPick&&f(this,h,W).call(this),this.picked=this.cachedFeatures[0]):(this.listFeatures=this.cachedFeatures,f(this,h,A).call(this,"featureslisted",{features:this.listFeatures}),this.listFeatures[this.selectedItemIndex]?.id!==I(this,h,ye)?.id&&(this.selectedItemIndex=-1));return}f(this,h,A).call(this,"request",{urlObj:n}),this.lastSearchUrl=y;let L;if(g)L={type:"FeatureCollection",features:[]};else{const E=await fetch(y,{signal:s.signal,...this.fetchParameters});if(!E.ok)throw new Error(await E.text());L=await E.json()}f(this,h,A).call(this,"response",{url:y,featureCollection:L}),e?(this.clearListOnPick&&f(this,h,W).call(this),this.picked=L.features[0],this.cachedFeatures=[this.picked]):(this.listFeatures=L.features.filter(this.filter??(()=>!0)),o&&this.listFeatures.unshift({type:"Feature",properties:{},id:`reverse_${o.decimalLongitude}_${o.decimalLatitude}`,text:`${o.decimalLatitude}, ${o.decimalLongitude}`,place_name:o.toCoordinateFormat("DMS"),place_type:["reverse"],place_type_name:["reverse"],center:[o.decimalLongitude,o.decimalLatitude],bbox:[o.decimalLongitude,o.decimalLatitude,o.decimalLongitude,o.decimalLatitude],geometry:{type:"Point",coordinates:[o.decimalLongitude,o.decimalLatitude]}}),f(this,h,A).call(this,"featureslisted",{features:this.listFeatures}),this.cachedFeatures=this.listFeatures,this.listFeatures[this.selectedItemIndex]?.id!==I(this,h,ye)?.id&&(this.selectedItemIndex=-1),o&&this.input.focus())}catch(r){if(r&&typeof r=="object"&&"name"in r&&r.name==="AbortError")return;throw r}finally{s===this.abortController&&(this.abortController=void 0)}},xt=function(i){this.reverseActive=this.enableReverse==="always",f(this,h,W).call(this),this.picked=void 0,f(this,h,Be).call(this,`${i[1].toFixed(6)}, ${Ni(i[0],[-180,180],!0).toFixed(6)}`),f(this,h,Re).call(this)},je=function(i){if(!this.listFeatures)return;const e=i.key==="ArrowDown"?1:i.key==="ArrowUp"?-1:0;e&&(this.input.focus(),this.focused=!0,i.preventDefault(),this.picked&&this.selectedItemIndex===-1&&(this.selectedItemIndex=this.listFeatures.findIndex(t=>t.id===this.picked?.id)),this.selectedItemIndex===(this.picked||this.selectFirst!==!1?0:-1)&&e===-1&&(this.selectedItemIndex=this.listFeatures.length),this.selectedItemIndex+=e,this.selectedItemIndex>=this.listFeatures.length&&(this.selectedItemIndex=-1),this.selectedItemIndex<0&&(this.picked||this.selectFirst!==!1)&&(this.selectedItemIndex=0))},Ct=function(i){f(this,h,He).call(this,i.target.value)},It=function(i){(!this.picked||this.picked.id!==i.id)&&(this.picked=i,this.searchValue=i.place_name)},Tt=function(i){this.selectedItemIndex=i},Nt=function(){(!this.selectFirst||this.picked)&&(this.selectedItemIndex=-1)},kt=function(){this.searchValue="",f(this,h,A).call(this,"queryclear"),this.picked=void 0,this.input.focus()},c.MaptilerGeocoderElement.styles=D`
261
261
  ${we(Fi)}
262
262
  `,u([m({attribute:!1})],c.MaptilerGeocoderElement.prototype,"adjustUrl",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"apiKey",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"apiUrl",2),u([m({type:Array})],c.MaptilerGeocoderElement.prototype,"bbox",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"clearButtonTitle",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"clearListOnPick",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"clearOnBlur",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"collapsed",2),u([m({attribute:!1})],c.MaptilerGeocoderElement.prototype,"country",2),u([m({type:Number})],c.MaptilerGeocoderElement.prototype,"debounceSearch",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"enableReverse",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"errorMessage",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"excludeTypes",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"exhaustiveReverseGeocoding",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"fetchFullGeometryOnPick",2),u([m({type:Object})],c.MaptilerGeocoderElement.prototype,"fetchParameters",2),u([m({attribute:!1})],c.MaptilerGeocoderElement.prototype,"filter",2),u([m({type:Object})],c.MaptilerGeocoderElement.prototype,"fuzzyMatch",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"iconsBaseUrl",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"keepListOpen",2),u([m({attribute:!1})],c.MaptilerGeocoderElement.prototype,"language",2),u([m({type:Number})],c.MaptilerGeocoderElement.prototype,"limit",2),u([m({type:Number})],c.MaptilerGeocoderElement.prototype,"minLength",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"noResultsMessage",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"openListOnTop",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"placeholder",2),u([m({type:Array})],c.MaptilerGeocoderElement.prototype,"proximity",2),u([m({type:Boolean})],c.MaptilerGeocoderElement.prototype,"reverseActive",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"reverseButtonTitle",2),u([m({type:Object})],c.MaptilerGeocoderElement.prototype,"reverseGeocodingExcludeTypes",2),u([m({type:Number})],c.MaptilerGeocoderElement.prototype,"reverseGeocodingLimit",2),u([m({type:Array})],c.MaptilerGeocoderElement.prototype,"reverseGeocodingTypes",2),u([m({type:Object})],c.MaptilerGeocoderElement.prototype,"selectFirst",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"showPlaceType",2),u([m({type:Object})],c.MaptilerGeocoderElement.prototype,"showResultsWhileTyping",2),u([m({type:Array})],c.MaptilerGeocoderElement.prototype,"types",2),u([m({type:String})],c.MaptilerGeocoderElement.prototype,"worldview",2),u([oi("input")],c.MaptilerGeocoderElement.prototype,"input",2),u([C()],c.MaptilerGeocoderElement.prototype,"searchValue",2),u([C()],c.MaptilerGeocoderElement.prototype,"listFeatures",2),u([C()],c.MaptilerGeocoderElement.prototype,"selectedItemIndex",2),u([C()],c.MaptilerGeocoderElement.prototype,"picked",2),u([C()],c.MaptilerGeocoderElement.prototype,"cachedFeatures",2),u([C()],c.MaptilerGeocoderElement.prototype,"lastSearchUrl",2),u([C()],c.MaptilerGeocoderElement.prototype,"error",2),u([C()],c.MaptilerGeocoderElement.prototype,"abortController",2),u([C()],c.MaptilerGeocoderElement.prototype,"focused",2),u([C()],c.MaptilerGeocoderElement.prototype,"focusedDelayed",2),c.MaptilerGeocoderElement=u([B("maptiler-geocoder")],c.MaptilerGeocoderElement);const Bi=["adjustUrl","apiKey","apiUrl","bbox","clearButtonTitle","clearListOnPick","clearOnBlur","collapsed","country","debounceSearch","enableReverse","errorMessage","excludeTypes","reverseGeocodingExcludeTypes","exhaustiveReverseGeocoding","fetchParameters","fetchFullGeometryOnPick","filter","fuzzyMatch","iconsBaseUrl","keepListOpen","language","limit","reverseGeocodingLimit","minLength","noResultsMessage","openListOnTop","placeholder","proximity","reverseActive","reverseButtonTitle","selectFirst","showPlaceType","showResultsWhileTyping","types","reverseGeocodingTypes","worldview"];Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}));
263
263
  //# sourceMappingURL=index.umd.js.map