1"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[425],{425:(xe,Z,R)=>{R.r(Z),R.d(Z,{AMapProvider:()=>ne,BingProvider:()=>oe,CivilDefenseMapProvider:()=>ie,EsriProvider:()=>se,GeoApiFrProvider:()=>ae,GeoSearchControl:()=>H,GeoapifyProvider:()=>le,GeocodeEarthProvider:()=>ce,GoogleProvider:()=>pe,HereProvider:()=>fe,JsonProvider:()=>h,LegacyGoogleProvider:()=>de,LocationIQProvider:()=>me,MapBoxProvider:()=>ve,OpenCageProvider:()=>ge,OpenStreetMapProvider:()=>W,PeliasProvider:()=>z,SearchControl:()=>H,SearchElement:()=>V});var u=R(8244);function v(){return v=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},v.apply(this,arguments)}function c(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,A(n,r)}function A(n,r){return(A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o})(n,r)}function B(n,r,o){return(B=function Y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct.bind():function(t,e,i){var s=[null];s.push.apply(s,e);var a=new(Function.bind.apply(t,s));return i&&A(a,i.prototype),a}).apply(null,arguments)}function f(n,r,o,t){void 0===r&&(r=""),void 0===t&&(t={});var e=document.createElement(n);return r&&(e.className=r),Object.keys(t).forEach(function(i){if("function"==typeof t[i]){var s=0===i.indexOf("on")?i.substr(2).toLowerCase():i;e.addEventListener(s,t[i])}else"html"===i?e.innerHTML=t[i]:"text"===i?e.innerText=t[i]:e.setAttribute(i,t[i])}),o&&o.appendChild(e),e}function P(n){n.preventDefault(),n.stopPropagation()}var I=function(){return[].slice.call(arguments).filter(Boolean).join(" ").trim()};function b(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)||n.classList.add(o)})}function m(n,r){n&&n.classList&&(Array.isArray(r)?r:[r]).forEach(function(o){n.classList.contains(o)&&n.classList.remove(o)})}var g,n,j=13,D=40,$=38,ee=[j,27,D,$,37,39],V=function(){function n(o){var t=this,e=o.handleSubmit,i=o.searchLabel,s=o.classNames,a=void 0===s?{}:s;this.container=void 0,this.form=void 0,this.input=void 0,this.handleSubmit=void 0,this.hasError=!1,this.container=f("div",I("geosearch",a.container)),this.form=f("form",["",a.form].join(" "),this.container,{autocomplete:"none",onClick:P,onDblClick:P,touchStart:P,touchEnd:P}),this.input=f("input",["glass",a.input].join(" "),this.form,{type:"text",placeholder:i||"search",onInput:this.onInput,onKeyUp:function(l){return t.onKeyUp(l)},onKeyPress:function(l){return t.onKeyPress(l)},onFocus:this.onFocus,onBlur:this.onBlur,onClick:function(){t.input.focus(),t.input.dispatchEvent(new Event("focus"))}}),this.handleSubmit=e}var r=n.prototype;return r.onFocus=function(){b(this.form,"active")},r.onBlur=function(){m(this.form,"active")},r.onSubmit=function(o){try{var t=this;return P(o),m(e=t.container,"error"),b(e,"pending"),Promise.resolve(t.handleSubmit({query:t.input.value})).then(function(){m(t.container,"pending")})}catch(i){return Promise.reject(i)}var e},r.onInput=function(){this.hasError&&(m(this.container,"error"),this.hasError=!1)},r.onKeyUp=function(o){27===o.keyCode&&(m(this.container,["pending","active"]),this.input.value="",document.body.focus(),document.body.blur())},r.onKeyPress=function(o){o.keyCode===j&&this.onSubmit(o)},r.setQuery=function(o){this.input.value=o},n}(),te=function(){function n(o){var t=this,e=o.handleClick,i=o.classNames,s=void 0===i?{}:i,a=o.notFoundMessage;this.handleClick=void 0,this.selected=-1,this.results=[],this.container=void 0,this.resultItem=void 0,this.notFoundMessage=void 0,this.onClick=function(l){if("function"==typeof t.handleClick){var p=l.target;if(p&&t.container.contains(p)&&p.hasAttribute("data-key")){var d=Number(p.getAttribute("data-key"));t.handleClick({result:t.results[d]})}}},this.handleClick=e,this.notFoundMessage=a?f("div",I(s.notfound),void 0,{html:a}):void 0,this.container=f("div",I("results",s.resultlist)),this.container.addEventListener("click",this.onClick,!0),this.resultItem=f("div",I(s.item))}
1var r=n.prototype;return r.render=function(o,t){var e=this;void 0===o&&(o=[]),this.clear(),o.forEach(function(i,s){var a=e.resultItem.cloneNode(!0);a.setAttribute("data-key",""+s),a.innerHTML=t({result:i}),e.container.appendChild(a)}),o.length>0?(b(this.container.parentElement,"open"),b(this.container,"active")):this.notFoundMessage&&(this.container.appendChild(this.notFoundMessage),b(this.container.parentElement,"open")),this.results=o},r.select=function(o){return Array.from(this.container.children).forEach(function(t,e){return e===o?b(t,"active"):m(t,"active")}),this.selected=o,this.results[o]},r.count=function(){return this.results?this.results.length:0},r.clear=function(){for(this.selected=-1;this.container.lastChild;)this.container.removeChild(this.container.lastChild);m(this.container.parentElement,"open"),m(this.container,"active")},n}(),G={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(n){return""+n.result.label},resultFormat:function(n){return""+n.result.label},marker:{icon:u&&u.Icon?new u.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0,resetButton:"\xd7"},J="Leaflet must be loaded before instantiating the GeoSearch control",re={options:v({},G),classNames:v({},G.classNames),initialize:function(n){var r,o,t,e,i=this;if(!u)throw new Error(J);if(!n.provider)throw new Error("Provider is missing from options");this.options=v({},G,n),this.classNames=v({},this.classNames,n.classNames),this.markers=new u.FeatureGroup,this.classNames.container+=" leaflet-geosearch-"+this.options.style,this.searchElement=new V({searchLabel:this.options.searchLabel,classNames:{container:this.classNames.container,form:this.classNames.form,input:this.classNames.input},handleSubmit:function(s){return i.onSubmit(s)}}),this.button=f("a",this.classNames.button,this.searchElement.container,{title:this.options.searchLabel,href:"#",onClick:function(s){return i.onClick(s)}}),u.DomEvent.disableClickPropagation(this.button),this.resetButton=f("button",this.classNames.resetButton,this.searchElement.form,{text:this.options.resetButton,"aria-label":this.options.clearSearchLabel,onClick:function(){""===i.searchElement.input.value?i.close():i.clearResults(null,!0)}}),u.DomEvent.disableClickPropagation(this.resetButton),this.options.autoComplete&&(this.resultList=new te({handleClick:function(s){var a=s.result;i.searchElement.input.value=a.label,i.onSubmit({query:a.label,data:a})},classNames:{resultlist:this.classNames.resultlist,item:this.classNames.item,notfound:this.classNames.notfound},notFoundMessage:this.options.notFoundMessage}),this.searchElement.form.appendChild(this.resultList.container),this.searchElement.input.addEventListener("keyup",(r=function(s){return i.autoSearch(s)},void 0===(o=this.options.autoCompleteDelay)&&(o=250),void 0===t&&(t=!1),function(){var s=[].slice.call(arguments);e&&clearTimeout(e),e=setTimeout(function(){e=null,t||r.apply(void 0,s)},o),t&&!e&&r.apply(void 0,s)}),!0),this.searchElement.input.addEventListener("keydown",function(s){return i.selectResult(s)},!0),this.searchElement.input.addEventListener("keydown",function(s){return i.clearResults(s,!0)},!0)),this.searchElement.form.addEventListener("click",function(s){s.preventDefault()},!1)},onAdd:function(n){var r=this.options,o=r.showMarker,t=r.style;if(this.map=n,o&&this.markers.addTo(n),"bar"===t){var e=n.getContainer().querySelector(".leaflet-control-container");this.container=f("div","leaflet-control-geosearch leaflet-geosearch-bar"),this.container.appendChild(this.searchElement.form),e.appendChild(this.container)}return u.DomEvent.disableClickPropagation(this.searchElement.form),this.searchElement.container},onRemove:function(){var n;return null==(n=this.container)||n.remove(),this},open:function(){var n=this.searchElement,r=n.input;b(n.container,"active"),r.focus()},close:function(){m(this.searchElement.container,"active"),this.clearResults()},onClick:function(n){n.preventDefault(),n.stopPropagation(),this.searchElement.container.classList.contains("active")?this.close():this.open()},selectResult:function(n){if(-1!==[j,D,$].indexOf(n.keyCode))if(n.preventDefault(),n.keyCode!==j){var r=this.resultList.count()-1;if(!(r<0)){var o=this.resultList.selected,t=n.keyCode===D?o+1:o-1,e=this.resultList.select(t<0?r:t>r?0:t);this.searchElement.input.value=e.label}}else{var i=this.resultList.select(this.resultList.selected);this.onSubmit({query:this.searchElement.input.value,data:i})}},clearResults:function(n,r){if(void 0===r&&(r=!1),!n||27===n.keyCode){var o=this.options,t=o.autoComplete;!r&&o.keepResult||(this.searchElement.input.value="",this.markers.clearLayers()),t&&this.resultList.clear()}},autoSearch:function(n){try{var r=this;if(ee.indexOf(n.keyCode)>-1)return Promise.resolve();var o=n.target.value,t=r.options.provider,e=function(){if(o.length)return Promise.resolve(t.search({query:o})).then(function(i){i=i.slice(0,r.options.maxSuggestions),r.resultList.render(i,r.options.resultFormat)});r.resultList.clear()}();return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(i){return Promise.reject(i)}},onSubmit:function(n){try{var r=this;return r.resultList.clear(),Promise.resolve(r.options.provider.search(n)).then(function(o){o&&o.length>0&&r.showResult(o[0],n)})}catch(o){return Promise.reject(o)}},showResult:function(n,r){var o=this.options,t=o.autoClose,e=o.updateMap,i=this.markers.getLayers();i.length>=this.options.maxMarkers&&this.markers.removeLayer(i[0]);var s=this.addMarker(n,r);e&&this.centerMap(n),this.map.fireEvent("geosearch/showlocation",{location:n,marker:s}),t&&this.closeResults()},closeResults:function(){var n=this.searchElement.container;n.classList.contains("active")&&m(n,"active"),this.clearResults()},addMarker:function(n,r){var o=this,t=this.options,e=t.marker,i=t.showPopup,s=t.popupFormat,a=new u.Marker([n.y,n.x],e),l=n.label;return"function"==typeof s&&(l=s({query:r,result:n})),a.bindPopup(l),this.markers.addLayer(a),i&&a.openPopup(),e.draggable&&a.on("dragend",function(p){o.map.fireEvent("geosearch/marker/dragend",{location:a.getLatLng(),event:p})}),a},centerMap:function(n){var r=this.options,o=r.retainZoomLevel,t=r.animateZoom,e=n.bounds?new u.LatLngBounds(n.bounds):new u.LatLng(n.y,n.x).toBounds(10),i=e.isValid()?e:this.markers.getBounds();
1!o&&e.isValid()&&!n.bounds||o||!e.isValid()?this.map.setView(i.getCenter(),this.getZoom(),{animate:t}):this.map.fitBounds(i,{animate:t})},getZoom:function(){var n=this.options,r=n.zoomLevel;return n.retainZoomLevel?this.map.getZoom():r}};function H(){if(!u)throw new Error(J);return B(u.Control.extend(re),[].slice.call(arguments))}(n=g||(g={}))[n.SEARCH=0]="SEARCH",n[n.REVERSE=1]="REVERSE";var h=function(){function n(o){void 0===o&&(o={}),this.options=void 0,this.options=o}var r=n.prototype;return r.getParamString=function(o){void 0===o&&(o={});var t=v({},this.options.params,o);return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")},r.getUrl=function(o,t){return o+"?"+this.getParamString(t)},r.search=function(o){try{var t=this,e=t.endpoint({query:o.query,type:g.SEARCH});return Promise.resolve(fetch(e)).then(function(i){return Promise.resolve(i.json()).then(function(s){return t.parse({data:s})})})}catch(i){return Promise.reject(i)}},n}(),ne=function(n){function r(){for(var t,e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return(t=n.call.apply(n,[this].concat(i))||this).searchUrl="https://restapi.amap.com/v3/geocode/geo",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,i="string"==typeof e?{address:e}:e;return i.output="JSON",this.getUrl(this.searchUrl,i)},o.parse=function(t){var e;return(null!=(e=t.data.geocodes)?e:[]).map(function(i){return{x:Number(i.location.substring(0,i.location.indexOf(","))),y:Number(i.location.substring(i.location.indexOf(",")+1)),label:i.formatted_address,bounds:null,raw:i}})},r}(h),oe=function(n){function r(){for(var t,e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return(t=n.call.apply(n,[this].concat(i))||this).searchUrl="https://dev.virtualearth.net/REST/v1/Locations",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,i="string"==typeof e?{q:e}:e;return i.jsonp=t.jsonp,this.getUrl(this.searchUrl,i)},o.parse=function(t){return 0===t.data.resourceSets.length?[]:t.data.resourceSets[0].resources.map(function(e){return{x:e.point.coordinates[1],y:e.point.coordinates[0],label:e.address.formattedAddress,bounds:[[e.bbox[0],e.bbox[1]],[e.bbox[2],e.bbox[3]]],raw:e}})},o.search=function(t){var e,i,s,a=t.query;try{var l=this,p="BING_JSONP_CB_"+Date.now();return Promise.resolve((e=l.endpoint({query:a,jsonp:p}),i=p,s=f("script",null,document.body),s.setAttribute("type","text/javascript"),new Promise(function(d){window[i]=function(w){s.remove(),delete window[i],d(w)},s.setAttribute("src",e)}))).then(function(d){return l.parse({data:d})})}catch(d){return Promise.reject(d)}},r}(h),ie=function(n){function r(t){var e;void 0===t&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var i="https://civildefense.fit.vutbr.cz";return e.searchUrl=t.searchUrl||i+"/search",e.reverseUrl=t.reverseUrl||i+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,i=t.type,s="string"==typeof e?{q:e}:e;return s.format="json",this.getUrl(i===g.REVERSE?this.reverseUrl:this.searchUrl,s)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(h),se=function(n){function r(){for(var t,e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return(t=n.call.apply(n,[this].concat(i))||this).searchUrl="https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,i="string"==typeof e?{text:e}:e;return i.f="json",this.getUrl(this.searchUrl,i)},o.parse=function(t){return t.data.locations.map(function(e){return{x:e.feature.geometry.x,y:e.feature.geometry.y,label:e.name,bounds:[[e.extent.ymin,e.extent.xmin],[e.extent.ymax,e.extent.xmax]],raw:e}})},r}(h),ae=function(n){function r(t){var e;void 0===t&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var i="https://api-adresse.data.gouv.fr";return e.searchUrl=t.searchUrl||i+"/search",e.reverseUrl=t.reverseUrl||i+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(t.type===g.REVERSE?this.reverseUrl:this.searchUrl,"string"==typeof e?{q:e}:e)},o.parse=function(t){return t.data.features.map(function(e){return{x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,boun
1ds:null,raw:e}})},r}(h),le=function(n){function r(t){var e;void 0===t&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var i="https://api.geoapify.com/v1/geocode";return e.searchUrl=t.searchUrl||i+"/search",e.reverseUrl=t.reverseUrl||i+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,i=t.type,s="string"==typeof e?{text:e}:e;return s.format="json",this.getUrl(i===g.REVERSE?this.reverseUrl:this.searchUrl,s)},o.parse=function(t){return(Array.isArray(t.data.results)?t.data.results:[t.data.results]).map(function(e){var i=null;return e.bbox&&(i=[[parseFloat(e.bbox.lat1),parseFloat(e.bbox.lon1)],[parseFloat(e.bbox.lat2),parseFloat(e.bbox.lon2)]]),{x:Number(e.lon),y:Number(e.lat),label:e.formatted,bounds:i,raw:e}})},r}(h),z=function(n){function r(t){var e;return void 0===t&&(t={}),(e=n.call(this,t)||this).host=void 0,e.host=t.host||"http://localhost:4000",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return t.type===g.REVERSE?this.getUrl(this.host+"/v1/reverse","string"==typeof e?{}:e):this.getUrl(this.host+"/v1/autocomplete","string"==typeof e?{text:e}:e)},o.parse=function(t){return t.data.features.map(function(e){var i={x:e.geometry.coordinates[0],y:e.geometry.coordinates[1],label:e.properties.label,bounds:null,raw:e};return Array.isArray(e.bbox)&&4===e.bbox.length&&(i.bounds=[[e.bbox[1],e.bbox[0]],[e.bbox[3],e.bbox[2]]]),i})},r}(h),ce=function(n){function r(o){return void 0===o&&(o={}),o.host="https://api.geocode.earth",n.call(this,o)||this}return c(r,n),r}(z);function ue(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}"function"==typeof SuppressedError&&SuppressedError;var U,he=ue(function n(r,o){if(r===o)return!0;if(r&&o&&"object"==typeof r&&"object"==typeof o){if(r.constructor!==o.constructor)return!1;var t,e,i;if(Array.isArray(r)){if((t=r.length)!=o.length)return!1;for(e=t;0!=e--;)if(!n(r[e],o[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===o.source&&r.flags===o.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===o.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===o.toString();if((t=(i=Object.keys(r)).length)!==Object.keys(o).length)return!1;for(e=t;0!=e--;)if(!Object.prototype.hasOwnProperty.call(o,i[e]))return!1;for(e=t;0!=e--;){var s=i[e];if(!n(r[s],o[s]))return!1}return!0}return r!=r&&o!=o});!function(n){n[n.INITIALIZED=0]="INITIALIZED",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.FAILURE=3]="FAILURE"}(U||(U={}));class E{constructor({apiKey:r,authReferrerPolicy:o,channel:t,client:e,id:i="__googleMapsScriptId",language:s,libraries:a=[],mapIds:l,nonce:p,region:d,retries:w=3,url:N="https://maps.googleapis.com/maps/api/js",version:k}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=r,this.authReferrerPolicy=o,this.channel=t,this.client=e,this.id=i||"__googleMapsScriptId",this.language=s,this.libraries=a,this.mapIds=l,this.nonce=p,this.region=d,this.retries=w,this.url=N,this.version=k,E.instance){if(!he(this.options,E.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(E.instance.options)}`);return E.instance}E.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?U.FAILURE:this.done?U.SUCCESS:this.loading?U.LOADING:U.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let r=this.url;return r+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(r+=`&key=${this.apiKey}`),this.channel&&(r+=`&channel=${this.channel}`),this.client&&(r+=`&client=${this.client}`),this.libraries.length>0&&(r+=`&libraries=${this.libraries.join(",")}`),this.language&&(r+=`&language=${this.language}`),this.region&&(r+=`®ion=${this.region}`),this.version&&(r+=`&v=${this.version}`),this.mapIds&&(r+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(r+=`&auth_referrer_policy=${this.authReferrerPolicy}`),r}deleteScript(){const r=document.getElementById(this.id);r&&r.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((r,o)=>{this.loadCallback(t=>{t?o(t.error):r(window.google)})})}importLibrary(r){return this.execute(),google.maps.importLibrary(r)}loadCallback(r){this.callbacks.push(r),this.execute()}setScript(){var r,o;
1if(document.getElementById(this.id))return void this.callback();const t={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(t).forEach(i=>!t[i]&&delete t[i]),null!==(o=null===(r=window?.google)||void 0===r?void 0:r.maps)&&void 0!==o&&o.importLibrary||(i=>{let s,a,l,p="The Google Maps JavaScript API",d="google",w="importLibrary",N="__ib__",k=document,L=window;L=L[d]||(L[d]={});const O=L.maps||(L.maps={}),Q=new Set,F=new URLSearchParams,ye=()=>s||(s=new Promise((M,T)=>{return X=this,S=function*(){var C;for(l in yield a=k.createElement("script"),a.id=this.id,F.set("libraries",[...Q]+""),i)F.set(l.replace(/[A-Z]/g,_=>"_"+_[0].toLowerCase()),i[l]);F.set("callback",d+".maps."+N),a.src=this.url+"?"+F,O[N]=M,a.onerror=()=>s=T(Error(p+" could not load.")),a.nonce=this.nonce||(null===(C=k.querySelector("script[nonce]"))||void 0===C?void 0:C.nonce)||"",k.head.append(a)},new((q=void 0)||(q=Promise))(function(C,_){function be(x){try{K(S.next(x))}catch(y){_(y)}}function Ee(x){try{K(S.throw(x))}catch(y){_(y)}}function K(x){var y;x.done?C(x.value):(y=x.value,y instanceof q?y:new q(function(we){we(y)})).then(be,Ee)}K((S=S.apply(X,[])).next())});var X,q,S}));O[w]?console.warn(p+" only loads once. Ignoring:",i):O[w]=(M,...T)=>Q.add(M)&&ye().then(()=>O[w](M,...T))})(t);const e=this.libraries.map(i=>this.importLibrary(i));e.length||e.push(this.importLibrary("core")),Promise.all(e).then(()=>this.callback(),i=>{const s=new ErrorEvent("error",{error:i});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(r){if(this.errors.push(r),this.errors.length<=this.retries){const o=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${o} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},o)}else this.onerrorEvent=r,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(r=>{r(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}var pe=function(n){function r(t){var e;return(e=n.call(this,t)||this).loader=null,e.geocoder=null,typeof window<"u"&&(e.loader=new E(t).load().then(function(i){var s=new i.maps.Geocoder;return e.geocoder=s,s})),e}c(r,n);var o=r.prototype;return o.endpoint=function(t){throw new Error("Method not implemented.")},o.parse=function(t){return t.data.results.map(function(e){var i=e.geometry.location.toJSON(),s=i.lat,a=i.lng,l=e.geometry.viewport.toJSON();return{x:a,y:s,label:e.formatted_address,bounds:[[l.south,l.west],[l.north,l.east]],raw:e}})},o.search=function(t){try{var e=function(a){if(!a)throw new Error("GoogleMaps GeoCoder is not loaded. Are you trying to run this server side?");return Promise.resolve(a.geocode({address:t.query},function(l){return{results:l}}).catch(function(l){return"ZERO_RESULTS"!==l.code&&console.error(l.code+": "+l.message),{results:[]}})).then(function(l){return i.parse({data:l})})},i=this,s=i.geocoder;return Promise.resolve(s?e(s):Promise.resolve(i.loader).then(e))}catch(a){return Promise.reject(a)}},r}(h),de=function(n){function r(){for(var t,e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return(t=n.call.apply(n,[this].concat(i))||this).searchUrl="https://maps.googleapis.com/maps/api/geocode/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,"string"==typeof e?{address:e}:e)},o.parse=function(t){return t.data.results.map(function(e){return{x:e.geometry.location.lng,y:e.geometry.location.lat,label:e.formatted_address,bounds:[[e.geometry.viewport.southwest.lat,e.geometry.viewport.southwest.lng],[e.geometry.viewport.northeast.lat,e.geometry.viewport.northeast.lng]],raw:e}})},r}(h),fe=function(n){function r(){for(var t,e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return(t=n.call.apply(n,[this].concat(i))||this).searchUrl="https://geocode.search.hereapi.com/v1/geocode",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query;return this.getUrl(this.searchUrl,"string"==typeof e?{q:e}:e)},o.parse=function(t){return t.data.items.filter(function(e){return void 0!==e.position}).map(function(e){return{x:e.position.lng,y:e.position.lat,label:e.address.label,boun
1ds:null,raw:e}})},r}(h),W=function(n){function r(t){var e;void 0===t&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.reverseUrl=void 0;var i="https://nominatim.openstreetmap.org";return e.searchUrl=t.searchUrl||i+"/search",e.reverseUrl=t.reverseUrl||i+"/reverse",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,i=t.type,s="string"==typeof e?{q:e}:e;return s.format="json",this.getUrl(i===g.REVERSE?this.reverseUrl:this.searchUrl,s)},o.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map(function(e){return{x:Number(e.lon),y:Number(e.lat),label:e.display_name,bounds:[[parseFloat(e.boundingbox[0]),parseFloat(e.boundingbox[2])],[parseFloat(e.boundingbox[1]),parseFloat(e.boundingbox[3])]],raw:e}})},r}(h),me=function(n){function r(o){return n.call(this,v({},o,{searchUrl:"https://locationiq.org/v1/search.php",reverseUrl:"https://locationiq.org/v1/reverse.php"}))||this}return c(r,n),r.prototype.parse=function(o){return o.data.error?[]:n.prototype.parse.call(this,o)},r}(W),ve=function(n){function r(t){var e;return void 0===t&&(t={}),(e=n.call(this,t)||this).searchUrl=void 0,e.searchUrl=t.searchUrl||"https://a.tiles.mapbox.com/v4/geocode/mapbox.places/",e}c(r,n);var o=r.prototype;return o.endpoint=function(t){return this.getUrl(""+this.searchUrl+t.query+".json")},o.parse=function(t){return(Array.isArray(t.data.features)?t.data.features:[]).map(function(e){var i=null;return e.bbox&&(i=[[parseFloat(e.bbox[1]),parseFloat(e.bbox[0])],[parseFloat(e.bbox[3]),parseFloat(e.bbox[2])]]),{x:Number(e.center[0]),y:Number(e.center[1]),label:e.place_name?e.place_name:e.text,bounds:i,raw:e}})},r}(h),ge=function(n){function r(){for(var t,e=arguments.length,i=new Array(e),s=0;s<e;s++)i[s]=arguments[s];return(t=n.call.apply(n,[this].concat(i))||this).searchUrl="https://api.opencagedata.com/geocode/v1/json",t}c(r,n);var o=r.prototype;return o.endpoint=function(t){var e=t.query,i="string"==typeof e?{q:e}:e;return i.format="json",this.getUrl(this.searchUrl,i)},o.parse=function(t){return t.data.results.map(function(e){var i=null;return e.bounds&&(i=[[e.bounds.southwest.lat,e.bounds.southwest.lng],[e.bounds.northeast.lat,e.bounds.northeast.lng]]),{x:e.geometry.lng,y:e.geometry.lat,label:e.formatted,bounds:i,raw:e}})},o.search=function(t){try{return Promise.resolve(t.query.length<2?[]:n.prototype.search.call(this,t))}catch(e){return Promise.reject(e)}},r}(h)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.