vue3-google-map 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -58,7 +58,7 @@ All the map components are available on the `Vue3GoogleMap` global variable.
58
58
 
59
59
  ### Your First Map
60
60
 
61
- To construct a map using `vue3-google-map` you'll need to use the base `GoogleMap` component which receives your [Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key), styles (e.g. setting width and height), and any [MapOptions](https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions) to configure your map ([see this](https://github.com/inocan-group/vue3-google-map/blob/develop/src/components/GoogleMap.vue#L36-L244) for all the supported `MapOptions`).
61
+ To construct a map using `vue3-google-map` you'll need to use the base `GoogleMap` component which receives your [Google Maps API key](https://developers.google.com/maps/documentation/javascript/get-api-key), styles (e.g. setting width and height), and any [MapOptions](https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions) to configure your map ([see this](https://github.com/inocan-group/vue3-google-map/blob/develop/src/components/GoogleMap.vue#L34-L238) for all the supported `MapOptions`).
62
62
  Other map features can be added to your map by passing map subcomponents ([Marker](#marker), [Polyline](#polyline), [Polygon](#polygon), [Rectangle](#rectangle), [Circle](#circle), [InfoWindow](#info-window), [CustomMarker](#custom-marker), [CustomControl](#custom-control), or [MarkerCluster](#marker-cluster)) to the default slot of the `GoogleMap` component.
63
63
 
64
64
  The [the following events](https://developers.google.com/maps/documentation/javascript/reference/map#Map-Events) will be emitted by the `GoogleMap` component and can be listened to by using `@event_name`.
@@ -107,14 +107,20 @@ Use the `AdvancedMarker` component to draw markers, drop pins or any custom icon
107
107
  In order to use the `AdvancedMarker` component it is necessary to specify a MapId on declaring the `GoogleMap` component ([see more here](https://developers.google.com/maps/documentation/javascript/advanced-markers/start#create_a_map_id)).
108
108
 
109
109
  > [!IMPORTANT]
110
- > If you're using the `AdvancedMarker` component with an external loader (using the `apiPromise` prop), you must include the `marker` library in your loader configuration:
110
+ > If you're using the `AdvancedMarker` component with an external loader (using the `apiPromise` prop), you must include the `marker` library:
111
111
  >
112
112
  > ```js
113
- > const loader = new Loader({
114
- > apiKey: YOUR_GOOGLE_MAPS_API_KEY,
115
- > version: 'weekly',
116
- > libraries: ['marker'], // Required for AdvancedMarker component
113
+ > import { setOptions, importLibrary } from '@googlemaps/js-api-loader';
114
+ >
115
+ > setOptions({
116
+ > key: YOUR_GOOGLE_MAPS_API_KEY,
117
+ > v: 'weekly',
117
118
  > });
119
+ >
120
+ > const apiPromise = Promise.all([
121
+ > importLibrary('maps'),
122
+ > importLibrary('marker'), // Required for AdvancedMarker component
123
+ > ]).then(() => window.google);
118
124
  > ```
119
125
 
120
126
  #### Options
@@ -901,16 +907,26 @@ By default you would pass your API key as a prop to the `GoogleMap` component an
901
907
 
902
908
  ```vue
903
909
  <script setup>
904
- import { GoogleMap, Marker } from 'vue3-google-map';
905
- import { Loader } from '@googlemaps/js-api-loader';
910
+ import { GoogleMap, AdvancedMarker } from 'vue3-google-map';
911
+ import { setOptions, importLibrary } from '@googlemaps/js-api-loader';
906
912
 
907
- const loader = new Loader({
908
- apiKey: YOUR_GOOGLE_MAPS_API_KEY,
909
- version: 'weekly',
910
- libraries: ['places'],
913
+ // Configure the API loader (call once per app)
914
+ setOptions({
915
+ key: YOUR_GOOGLE_MAPS_API_KEY,
916
+ v: 'weekly',
911
917
  });
912
918
 
913
- const apiPromise = loader.load();
919
+ // Load required libraries in parallel
920
+ const apiPromise = Promise.all([
921
+ importLibrary('maps'),
922
+ importLibrary('places'),
923
+ importLibrary('marker'), // Required for AdvancedMarker
924
+ ]).then(() => {
925
+ if (window.google) {
926
+ return window.google;
927
+ }
928
+ throw new Error('Google Maps API not loaded');
929
+ });
914
930
 
915
931
  const center = { lat: 40.689247, lng: -74.044502 };
916
932
  </script>
@@ -918,11 +934,12 @@ const center = { lat: 40.689247, lng: -74.044502 };
918
934
  <template>
919
935
  <GoogleMap
920
936
  :api-promise="apiPromise"
937
+ mapId="DEMO_MAP_ID"
921
938
  style="width: 100%; height: 500px"
922
939
  :center="center"
923
940
  :zoom="15"
924
941
  >
925
- <Marker :options="{ position: center }" />
942
+ <AdvancedMarker :options="{ position: center }" />
926
943
  </GoogleMap>
927
944
  </template>
928
945
  ```
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".mapdiv[data-v-289550ca]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ab9120cd]{display:none}.mapdiv .custom-control-wrapper[data-v-ab9120cd]{display:inline-block}.info-window-wrapper[data-v-f0c09f6e]{display:none}.mapdiv .info-window-wrapper[data-v-f0c09f6e]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- "use strict";var Ve=Object.defineProperty;var Ge=(n,e,t)=>e in n?Ve(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var ee=(n,e,t)=>(Ge(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),T=Symbol("map"),L=Symbol("api"),ie=Symbol("marker"),ae=Symbol("markerCluster"),Y=Symbol("CustomMarker"),le=Symbol("mapTilesLoaded"),$=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];function ze(n,e,t,r){function s(o){return o instanceof t?o:new t(function(i){i(o)})}return new(t||(t=Promise))(function(o,i){function u(p){try{d(r.next(p))}catch(c){i(c)}}function a(p){try{d(r.throw(p))}catch(c){i(c)}}function d(p){p.done?o(p.value):s(p.value).then(u,a)}d((r=r.apply(n,e||[])).next())})}function We(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var te,fe;function He(){return fe||(fe=1,te=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,s,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(s=r;s--!==0;)if(!n(e[s],t[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[s]))return!1;for(s=r;s--!==0;){var i=o[s];if(!n(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}),te}var Ke=He(),Je=We(Ke);const he="__googleMapsScriptId";var B;(function(n){n[n.INITIALIZED=0]="INITIALIZED",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.FAILURE=3]="FAILURE"})(B||(B={}));class j{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:s,id:o=he,language:i,libraries:u=[],mapIds:a,nonce:d,region:p,retries:c=3,url:m="https://maps.googleapis.com/maps/api/js",version:g}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=s,this.id=o||he,this.language=i,this.libraries=u,this.mapIds=a,this.nonce=d,this.region=p,this.retries=c,this.url=m,this.version=g,j.instance){if(!Je(this.options,j.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(j.instance.options)}`);return j.instance}j.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?B.FAILURE:this.done?B.SUCCESS:this.loading?B.LOADING:B.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}const r={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(r).forEach(o=>!r[o]&&delete r[o]),!((t=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||t===void 0)&&t.importLibrary||(o=>{let i,u,a,d="The Google Maps JavaScript API",p="google",c="importLibrary",m="__ib__",g=document,f=window;f=f[p]||(f[p]={});const h=f.maps||(f.maps={}),v=new Set,y=new URLSearchParams,E=()=>i||(i=new Promise((w,M)=>ze(this,void 0,void 0,function*(){var C;yield u=g.createElement("script"),u.id=this.id,y.set("libraries",[...v]+"");for(a in o)y.set(a.replace(/[A-Z]/g,O=>"_"+O[0].toLowerCase()),o[a]);y.set("callback",p+".maps."+m),u.src=this.url+"?"+y,h[m]=w,u.onerror=()=>i=M(Error(d+" could not load.")),u.nonce=this.nonce||((C=g.querySelector("script[nonce]"))===null||C===void 0?void 0:C.nonce)||"",g.head.append(u)})));h[c]?console.warn(d+" only loads once. Ignoring:",o):h[c]=(w,...M)=>v.add(w)&&E().then(()=>h[c](w,...M))})(r);const s=this.libraries.map(o=>this.importLibrary(o));s.length||s.push(this.importLibrary("core")),Promise.all(s).then(()=>this.callback(),o=>{const i=new ErrorEvent("error",{error:o});this.loadErrorCallback(i)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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."),this.callback();return}this.loading=!0,this.setScript()}}}function Ye(n){return class extends n.OverlayView{constructor(r){super();ee(this,"element");ee(this,"opts");const{element:s,...o}=r;this.element=s,this.opts=o,this.opts.map&&this.setMap(this.opts.map)}getPosition(){return this.opts.position?this.opts.position instanceof n.LatLng?this.opts.position:new n.LatLng(this.opts.position):null}getVisible(){if(!this.element)return!1;const r=this.element;return r.style.display!=="none"&&r.style.visibility!=="hidden"&&(r.style.opacity===""||Number(r.style.opacity)>.01)}onAdd(){if(!this.element)return;const r=this.getPanes();r&&r.overlayMouseTarget.appendChild(this.element)}draw(){if(!this.element)return;const r=this.getProjection(),s=r==null?void 0:r.fromLatLngToDivPixel(this.getPosition());if(s){this.element.style.position="absolute";let o,i;switch(this.opts.anchorPoint){case"TOP_CENTER":o="-50%",i="-100%";break;case"BOTTOM_CENTER":o="-50%",i="0";break;case"LEFT_CENTER":o="-100%",i="-50%";break;case"RIGHT_CENTER":o="0",i="-50%";break;case"TOP_LEFT":o="-100%",i="-100%";break;case"TOP_RIGHT":o="0",i="-100%";break;case"BOTTOM_LEFT":o="-100%",i="0";break;case"BOTTOM_RIGHT":o="0",i="0";break;default:o="-50%",i="-50%"}const u=s.x+(this.opts.offsetX||0)+"px",a=s.y+(this.opts.offsetY||0)+"px";this.element.style.transform=`translateX(${o}) translateX(${u}) translateY(${i}) translateY(${a})`,this.opts.zIndex&&(this.element.style.zIndex=this.opts.zIndex.toString())}}onRemove(){this.element&&this.element.remove()}setOptions(r){const{element:s,...o}=r;this.element=s,this.opts=o,this.draw()}}}let me;const ge=["bounds_changed","center_changed","click","contextmenu","dblclick","drag","dragend","dragstart","heading_changed","idle","isfractionalzoomenabled_changed","mapcapabilities_changed","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","renderingtype_changed","rightclick","tilesloaded","tilt_changed","zoom_changed"],Xe=l.defineComponent({props:{apiPromise:{type:Promise},apiKey:{type:String,default:""},version:{type:String,default:"weekly"},libraries:{type:Array,default:()=>["places","marker"]},region:{type:String,required:!1},language:{type:String,required:!1},backgroundColor:{type:String,required:!1},center:{type:Object,default:()=>({lat:0,lng:0})},clickableIcons:{type:Boolean,required:!1,default:void 0},colorScheme:{type:String,required:!1},controlSize:{type:Number,required:!1},disableDefaultUi:{type:Boolean,required:!1,default:void 0},disableDoubleClickZoom:{type:Boolean,required:!1,default:void 0},draggable:{type:Boolean,required:!1,default:void 0},draggableCursor:{type:String,required:!1},draggingCursor:{type:String,required:!1},fullscreenControl:{type:Boolean,required:!1,default:void 0},fullscreenControlPosition:{type:String,required:!1},gestureHandling:{type:String,required:!1},heading:{type:Number,required:!1},isFractionalZoomEnabled:{type:Boolean,required:!1,default:void 0},keyboardShortcuts:{type:Boolean,required:!1,default:void 0},mapTypeControl:{type:Boolean,required:!1,default:void 0},mapTypeControlOptions:{type:Object,required:!1},mapTypeId:{type:[Number,String],required:!1},mapId:{type:String,required:!1},maxZoom:{type:Number,required:!1},minZoom:{type:Number,required:!1},noClear:{type:Boolean,required:!1,default:void 0},panControl:{type:Boolean,required:!1,default:void 0},panControlPosition:{type:String,required:!1},restriction:{type:Object,required:!1},rotateControl:{type:Boolean,required:!1,default:void 0},rotateControlPosition:{type:String,required:!1},scaleControl:{type:Boolean,required:!1,default:void 0},scaleControlStyle:{type:Number,required:!1},scrollwheel:{type:Boolean,required:!1,default:void 0},streetView:{type:Object,required:!1},streetViewControl:{type:Boolean,required:!1,default:void 0},streetViewControlPosition:{type:String,required:!1},styles:{type:Array,required:!1},tilt:{type:Number,required:!1},zoom:{type:Number,required:!1},zoomControl:{type:Boolean,required:!1,default:void 0},zoomControlPosition:{type:String,required:!1},cameraControl:{type:Boolean,required:!1,default:void 0},cameraControlPosition:{type:String,required:!1},nonce:{type:String,default:""}},emits:ge,setup(n,{emit:e}){const t=l.ref(),r=l.ref(!1),s=l.ref(),o=l.ref(),i=l.ref(!1);l.provide(T,s),l.provide(L,o),l.provide(le,i);const u=()=>{const c={...n};Object.keys(c).forEach(h=>{c[h]===void 0&&delete c[h]});const g=h=>{var v;return h?{position:(v=o.value)==null?void 0:v.ControlPosition[h]}:{}},f={scaleControlOptions:n.scaleControlStyle?{style:n.scaleControlStyle}:{},panControlOptions:g(n.panControlPosition),zoomControlOptions:g(n.zoomControlPosition),rotateControlOptions:g(n.rotateControlPosition),streetViewControlOptions:g(n.streetViewControlPosition),fullscreenControlOptions:g(n.fullscreenControlPosition),cameraControlOptions:g(n.cameraControlPosition),disableDefaultUI:n.disableDefaultUi};return{...c,...f}},a=l.watch([o,s],([c,m])=>{const g=c,f=m;g&&f&&(g.event.addListenerOnce(f,"tilesloaded",()=>{i.value=!0}),setTimeout(a,0))},{immediate:!0}),d=()=>{try{const{apiKey:c,region:m,version:g,language:f,libraries:h,nonce:v}=n;me=new j({apiKey:c,region:m,version:g,language:f,libraries:h,nonce:v})}catch(c){console.error(c)}},p=c=>{o.value=l.markRaw(c.maps),s.value=l.markRaw(new c.maps.Map(t.value,u()));const m=Ye(o.value);o.value[Y]=m,ge.forEach(f=>{var h;(h=s.value)==null||h.addListener(f,v=>e(f,v))}),r.value=!0;const g=Object.keys(n).filter(f=>!["apiPromise","apiKey","version","libraries","region","language","center","zoom","nonce"].includes(f)).map(f=>l.toRef(n,f));l.watch([()=>n.center,()=>n.zoom,...g],([f,h],[v,y])=>{var O,_,S;const{center:E,zoom:w,...M}=u();(O=s.value)==null||O.setOptions(M),h!==void 0&&h!==y&&((_=s.value)==null||_.setZoom(h));const C=!v||f.lng!==v.lng||f.lat!==v.lat;f&&C&&((S=s.value)==null||S.panTo(f))})};return l.onMounted(()=>{n.apiPromise&&n.apiPromise instanceof Promise?n.apiPromise.then(p):(d(),me.load().then(p))}),l.onBeforeUnmount(()=>{var c;i.value=!1,s.value&&((c=o.value)==null||c.event.clearInstanceListeners(s.value))}),{mapRef:t,ready:r,map:s,api:o,mapTilesLoaded:i}}});const G=(n,e)=>{const t=n.__vccOpts||n;for(const[r,s]of e)t[r]=s;return t},Qe={ref:"mapRef",class:"mapdiv"};function et(n,e,t,r,s,o){return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",Qe,null,512),l.renderSlot(n.$slots,"default",l.normalizeProps(l.guardReactiveProps({ready:n.ready,map:n.map,api:n.api,mapTilesLoaded:n.mapTilesLoaded})),void 0,!0)])}const tt=G(Xe,[["render",et],["__scopeId","data-v-289550ca"]]);function rt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var nt=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,s,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(s=r;s--!==0;)if(!n(e[s],t[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[s]))return!1;for(s=r;s--!==0;){var i=o[s];if(!n(e[i],t[i]))return!1}return!0}return e!==e&&t!==t};const F=rt(nt),ve=["click","drag","dragend","dragstart","gmp-click"],st=l.defineComponent({name:"AdvancedMarker",props:{options:{type:Object,required:!0},pinOptions:{type:Object,required:!1}},emits:ve,setup(n,{emit:e,expose:t,slots:r}){const s=l.ref(),o=l.computed(()=>{var g;return(g=r.content)==null?void 0:g.call(r).some(f=>f.type!==l.Comment)}),i=l.toRef(n,"options"),u=l.toRef(n,"pinOptions"),a=l.ref(),d=l.inject(T,l.ref()),p=l.inject(L,l.ref()),c=l.inject(ae,l.ref()),m=l.computed(()=>!!(c.value&&p.value&&a.value instanceof google.maps.marker.AdvancedMarkerElement));return l.watch([d,i,u,s],async(g,[f,h,v,y])=>{var _,S,pe;const E=!F(i.value,h)||!F(u.value,v),w=s.value!==y,M=E||w||d.value!==f;if(!d.value||!p.value||!M||o.value&&!s.value)return;const{AdvancedMarkerElement:C,PinElement:O}=p.value.marker;if(a.value){const{map:X,content:z,...Q}=i.value;Object.assign(a.value,{content:o.value?s.value:u.value?new O(u.value).element:z,...Q}),m.value&&((_=c.value)==null||_.removeMarker(a.value),(S=c.value)==null||S.addMarker(a.value))}else o.value?i.value.content=s.value:u.value&&(i.value.content=new O(u.value).element),a.value=l.markRaw(new C(i.value)),m.value?(pe=c.value)==null||pe.addMarker(a.value):a.value.map=d.value,ve.forEach(X=>{var z;(z=a.value)==null||z.addListener(X,Q=>e(X,Q))})},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var g,f;a.value&&((g=p.value)==null||g.event.clearInstanceListeners(a.value),m.value?(f=c.value)==null||f.removeMarker(a.value):a.value.map=null)}),l.provide(ie,a),t({marker:a}),{hasCustomSlotContent:o,markerRef:s}}});const ot={key:0,class:"advanced-marker-wrapper"};function it(n,e,t,r,s,o){return l.openBlock(),l.createElementBlock(l.Fragment,null,[n.hasCustomSlotContent?(l.openBlock(),l.createElementBlock("div",ot,[l.createElementVNode("div",l.mergeProps({ref:"markerRef"},n.$attrs),[l.renderSlot(n.$slots,"content")],16)])):l.createCommentVNode("",!0),l.renderSlot(n.$slots,"default")],64)}const at=G(st,[["render",it]]),ye=n=>n==="Marker",we=n=>n===Y,N=(n,e,t,r)=>{const s=l.ref(),o=l.inject(T,l.ref()),i=l.inject(L,l.ref()),u=l.inject(ae,l.ref()),a=l.computed(()=>!!(u.value&&i.value&&(s.value instanceof i.value.Marker||s.value instanceof i.value[Y])));return l.watch([o,t],(d,[p,c])=>{var g,f,h;const m=!F(t.value,c)||o.value!==p;if(!(!o.value||!i.value||!m))if(s.value)s.value.setOptions(t.value),a.value&&((g=u.value)==null||g.removeMarker(s.value),(f=u.value)==null||f.addMarker(s.value));else{if(ye(n))s.value=l.markRaw(new i.value[n](t.value));else if(we(n)){const v=t.value;v.element&&(s.value=l.markRaw(new i.value[n](v)))}else s.value=l.markRaw(new i.value[n]({...t.value,map:o.value}));s.value&&(a.value?(h=u.value)==null||h.addMarker(s.value):(ye(n)||we(n))&&s.value.setMap(o.value)),e.forEach(v=>{var y;(y=s.value)==null||y.addListener(v,E=>r(v,E))})}},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var d,p;s.value&&((d=i.value)==null||d.event.clearInstanceListeners(s.value),a.value?(p=u.value)==null||p.removeMarker(s.value):s.value.setMap(null))}),s},Ee=["animation_changed","click","dblclick","rightclick","dragstart","dragend","drag","mouseover","mousedown","mouseout","mouseup","draggable_changed","clickable_changed","contextmenu","cursor_changed","flat_changed","zindex_changed","icon_changed","position_changed","shape_changed","title_changed","visible_changed"],lt=l.defineComponent({name:"Marker",props:{options:{type:Object,required:!0}},emits:Ee,setup(n,{emit:e,expose:t,slots:r}){const s=l.toRef(n,"options"),o=N("Marker",Ee,s,e);return l.provide(ie,o),t({marker:o}),()=>{var i;return(i=r.default)==null?void 0:i.call(r)}}}),ut=l.defineComponent({name:"Polyline",props:{options:{type:Object,required:!0}},emits:$,setup(n,{emit:e}){const t=l.toRef(n,"options");return{polyline:N("Polyline",$,t,e)}},render:()=>null}),ct=l.defineComponent({name:"Polygon",props:{options:{type:Object,required:!0}},emits:$,setup(n,{emit:e}){const t=l.toRef(n,"options");return{polygon:N("Polygon",$,t,e)}},render:()=>null}),ke=$.concat(["bounds_changed"]),dt=l.defineComponent({name:"Rectangle",props:{options:{type:Object,required:!0}},emits:ke,setup(n,{emit:e}){const t=l.toRef(n,"options");return{rectangle:N("Rectangle",ke,t,e)}},render:()=>null}),_e=$.concat(["center_changed","radius_changed"]),pt=l.defineComponent({name:"Circle",props:{options:{type:Object,required:!0}},emits:_e,setup(n,{emit:e}){const t=l.toRef(n,"options");return{circle:N("Circle",_e,t,e)}},render:()=>null}),ft=l.defineComponent({props:{position:{type:String,required:!0},index:{type:Number,default:1}},emits:["content:loaded"],setup(n,{emit:e}){const t=l.ref(null),r=l.inject(T,l.ref()),s=l.inject(L,l.ref()),o=l.inject(le,l.ref(!1)),i=l.watch([o,s,t],([d,p,c])=>{p&&d&&c&&(u(n.position),e("content:loaded"),setTimeout(i,0))},{immediate:!0}),u=d=>{if(r.value&&s.value&&t.value){const p=s.value.ControlPosition[d];t.value.index=n.index,r.value.controls[p].push(t.value)}},a=d=>{if(r.value&&s.value){let p=null;const c=s.value.ControlPosition[d];r.value.controls[c].forEach((m,g)=>{m===t.value&&(p=g)}),p!==null&&r.value.controls[c].removeAt(p)}};return l.onBeforeUnmount(()=>a(n.position)),l.watch(()=>n.position,(d,p)=>{a(p),u(d)}),l.watch(()=>n.index,d=>{t.value&&(t.value.index=d)}),{controlRef:t}}});const ht={ref:"controlRef",class:"custom-control-wrapper"};function mt(n,e,t,r,s,o){return l.openBlock(),l.createElementBlock("div",ht,[l.renderSlot(n.$slots,"default",{},void 0,!0)],512)}const gt=G(ft,[["render",mt],["__scopeId","data-v-ab9120cd"]]),Ce=["closeclick","content_changed","domready","position_changed","visible","zindex_changed"],vt=l.defineComponent({inheritAttrs:!1,props:{options:{type:Object,default:()=>({})},modelValue:{type:Boolean}},emits:[...Ce,"update:modelValue"],setup(n,{slots:e,emit:t,expose:r}){const s=l.ref(),o=l.ref(),i=l.inject(T,l.ref()),u=l.inject(L,l.ref()),a=l.inject(ie,l.ref());let d,p=n.modelValue;const c=l.computed(()=>{var h;return(h=e.default)==null?void 0:h.call(e).some(v=>v.type!==l.Comment)}),m=h=>{p=h,t("update:modelValue",h)},g=h=>{s.value&&(s.value.open({map:i.value,anchor:a.value,...h}),m(!0))},f=()=>{s.value&&(s.value.close(),m(!1))};return l.onMounted(()=>{l.watch([i,()=>n.options],([h,v],[y,E])=>{var M;const w=!F(v,E)||i.value!==y;i.value&&u.value&&w&&(s.value?(s.value.setOptions({...v,content:c.value?o.value:v.content}),a.value||g()):(s.value=l.markRaw(new u.value.InfoWindow({...v,content:c.value?o.value:v.content})),a.value&&(d=a.value.addListener("click",()=>{g()})),(!a.value||p)&&g(),Ce.forEach(C=>{var O;(O=s.value)==null||O.addListener(C,_=>t(C,_))}),(M=s.value)==null||M.addListener("closeclick",()=>m(!1))))},{immediate:!0}),l.watch(()=>n.modelValue,h=>{h!==p&&(h?g():f())})}),l.onBeforeUnmount(()=>{var h;d&&d.remove(),s.value&&((h=u.value)==null||h.event.clearInstanceListeners(s.value),f())}),r({infoWindow:s,open:g,close:f}),{infoWindow:s,infoWindowRef:o,hasSlotContent:c,open:g,close:f}}});const yt={key:0,class:"info-window-wrapper"};function wt(n,e,t,r,s,o){return n.hasSlotContent?(l.openBlock(),l.createElementBlock("div",yt,[l.createElementVNode("div",l.mergeProps({ref:"infoWindowRef"},n.$attrs),[l.renderSlot(n.$slots,"default",{},void 0,!0)],16)])):l.createCommentVNode("",!0)}const Et=G(vt,[["render",wt],["__scopeId","data-v-f0c09f6e"]]);var kt=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty;function Me(n,e){return function(r,s,o){return n(r,s,o)&&e(r,s,o)}}function W(n){return function(t,r,s){if(!t||!r||typeof t!="object"||typeof r!="object")return n(t,r,s);var o=s.cache,i=o.get(t),u=o.get(r);if(i&&u)return i===r&&u===t;o.set(t,r),o.set(r,t);var a=n(t,r,s);return o.delete(t),o.delete(r),a}}function Oe(n){return kt(n).concat(_t(n))}var Mt=Object.hasOwn||function(n,e){return Ct.call(n,e)};function R(n,e){return n===e||!n&&!e&&n!==n&&e!==e}var Ot="__v",bt="__o",St="_owner",be=Object.getOwnPropertyDescriptor,Se=Object.keys;function Pt(n,e,t){var r=n.length;if(e.length!==r)return!1;for(;r-- >0;)if(!t.equals(n[r],e[r],r,r,n,e,t))return!1;return!0}function qt(n,e){return R(n.getTime(),e.getTime())}function At(n,e){return n.name===e.name&&n.message===e.message&&n.cause===e.cause&&n.stack===e.stack}function Tt(n,e){return n===e}function Pe(n,e,t){var r=n.size;if(r!==e.size)return!1;if(!r)return!0;for(var s=new Array(r),o=n.entries(),i,u,a=0;(i=o.next())&&!i.done;){for(var d=e.entries(),p=!1,c=0;(u=d.next())&&!u.done;){if(s[c]){c++;continue}var m=i.value,g=u.value;if(t.equals(m[0],g[0],a,c,n,e,t)&&t.equals(m[1],g[1],m[0],g[0],n,e,t)){p=s[c]=!0;break}c++}if(!p)return!1;a++}return!0}var Lt=R;function xt(n,e,t){var r=Se(n),s=r.length;if(Se(e).length!==s)return!1;for(;s-- >0;)if(!Be(n,e,t,r[s]))return!1;return!0}function D(n,e,t){var r=Oe(n),s=r.length;if(Oe(e).length!==s)return!1;for(var o,i,u;s-- >0;)if(o=r[s],!Be(n,e,t,o)||(i=be(n,o),u=be(e,o),(i||u)&&(!i||!u||i.configurable!==u.configurable||i.enumerable!==u.enumerable||i.writable!==u.writable)))return!1;return!0}function It(n,e){return R(n.valueOf(),e.valueOf())}function jt(n,e){return n.source===e.source&&n.flags===e.flags}function qe(n,e,t){var r=n.size;if(r!==e.size)return!1;if(!r)return!0;for(var s=new Array(r),o=n.values(),i,u;(i=o.next())&&!i.done;){for(var a=e.values(),d=!1,p=0;(u=a.next())&&!u.done;){if(!s[p]&&t.equals(i.value,u.value,i.value,u.value,n,e,t)){d=s[p]=!0;break}p++}if(!d)return!1}return!0}function Rt(n,e){var t=n.length;if(e.length!==t)return!1;for(;t-- >0;)if(n[t]!==e[t])return!1;return!0}function Bt(n,e){return n.hostname===e.hostname&&n.pathname===e.pathname&&n.protocol===e.protocol&&n.port===e.port&&n.hash===e.hash&&n.username===e.username&&n.password===e.password}function Be(n,e,t,r){return(r===St||r===bt||r===Ot)&&(n.$$typeof||e.$$typeof)?!0:Mt(e,r)&&t.equals(n[r],e[r],r,r,n,e,t)}var $t="[object Arguments]",Nt="[object Boolean]",Dt="[object Date]",Ut="[object Error]",Zt="[object Map]",Ft="[object Number]",Vt="[object Object]",Gt="[object RegExp]",zt="[object Set]",Wt="[object String]",Ht="[object URL]",Kt=Array.isArray,Ae=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Te=Object.assign,Jt=Object.prototype.toString.call.bind(Object.prototype.toString);function Yt(n){var e=n.areArraysEqual,t=n.areDatesEqual,r=n.areErrorsEqual,s=n.areFunctionsEqual,o=n.areMapsEqual,i=n.areNumbersEqual,u=n.areObjectsEqual,a=n.arePrimitiveWrappersEqual,d=n.areRegExpsEqual,p=n.areSetsEqual,c=n.areTypedArraysEqual,m=n.areUrlsEqual;return function(f,h,v){if(f===h)return!0;if(f==null||h==null)return!1;var y=typeof f;if(y!==typeof h)return!1;if(y!=="object")return y==="number"?i(f,h,v):y==="function"?s(f,h,v):!1;var E=f.constructor;if(E!==h.constructor)return!1;if(E===Object)return u(f,h,v);if(Kt(f))return e(f,h,v);if(Ae!=null&&Ae(f))return c(f,h,v);if(E===Date)return t(f,h,v);if(E===RegExp)return d(f,h,v);if(E===Map)return o(f,h,v);if(E===Set)return p(f,h,v);var w=Jt(f);return w===Dt?t(f,h,v):w===Gt?d(f,h,v):w===Zt?o(f,h,v):w===zt?p(f,h,v):w===Vt?typeof f.then!="function"&&typeof h.then!="function"&&u(f,h,v):w===Ht?m(f,h,v):w===Ut?r(f,h,v):w===$t?u(f,h,v):w===Nt||w===Ft||w===Wt?a(f,h,v):!1}}function Xt(n){var e=n.circular,t=n.createCustomConfig,r=n.strict,s={areArraysEqual:r?D:Pt,areDatesEqual:qt,areErrorsEqual:At,areFunctionsEqual:Tt,areMapsEqual:r?Me(Pe,D):Pe,areNumbersEqual:Lt,areObjectsEqual:r?D:xt,arePrimitiveWrappersEqual:It,areRegExpsEqual:jt,areSetsEqual:r?Me(qe,D):qe,areTypedArraysEqual:r?D:Rt,areUrlsEqual:Bt};if(t&&(s=Te({},s,t(s))),e){var o=W(s.areArraysEqual),i=W(s.areMapsEqual),u=W(s.areObjectsEqual),a=W(s.areSetsEqual);s=Te({},s,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:u,areSetsEqual:a})}return s}function Qt(n){return function(e,t,r,s,o,i,u){return n(e,t,u)}}function er(n){var e=n.circular,t=n.comparator,r=n.createState,s=n.equals,o=n.strict;if(r)return function(a,d){var p=r(),c=p.cache,m=c===void 0?e?new WeakMap:void 0:c,g=p.meta;return t(a,d,{cache:m,equals:s,meta:g,strict:o})};if(e)return function(a,d){return t(a,d,{cache:new WeakMap,equals:s,meta:void 0,strict:o})};var i={cache:void 0,equals:s,meta:void 0,strict:o};return function(a,d){return t(a,d,i)}}var J=x();x({strict:!0});x({circular:!0});x({circular:!0,strict:!0});x({createInternalComparator:function(){return R}});x({strict:!0,createInternalComparator:function(){return R}});x({circular:!0,createInternalComparator:function(){return R}});x({circular:!0,createInternalComparator:function(){return R},strict:!0});function x(n){n===void 0&&(n={});var e=n.circular,t=e===void 0?!1:e,r=n.createInternalComparator,s=n.createState,o=n.strict,i=o===void 0?!1:o,u=Xt(n),a=Yt(u),d=r?r(a):Qt(a);return er({circular:t,comparator:a,createState:s,equals:d,strict:i})}const Le=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],re=1,U=8;class ue{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,r]=new Uint8Array(e,0,2);if(t!==219)throw new Error("Data does not appear to be in a KDBush format.");const s=r>>4;if(s!==re)throw new Error(`Got v${s} data when expected v${re}.`);const o=Le[r&15];if(!o)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(e,2,1),[u]=new Uint32Array(e,4,1);return new ue(u,i,o,e)}constructor(e,t=64,r=Float64Array,s){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=r,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const o=Le.indexOf(this.ArrayType),i=e*2*this.ArrayType.BYTES_PER_ELEMENT,u=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-u%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${r}.`);s&&s instanceof ArrayBuffer?(this.data=s,this.ids=new this.IndexArrayType(this.data,U,e),this.coords=new this.ArrayType(this.data,U+u+a,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(U+i+u+a),this.ids=new this.IndexArrayType(this.data,U,e),this.coords=new this.ArrayType(this.data,U+u+a,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(re<<4)+o]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=e,this.coords[this._pos++]=t,r}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return oe(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,r,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:i,nodeSize:u}=this,a=[0,o.length-1,0],d=[];for(;a.length;){const p=a.pop()||0,c=a.pop()||0,m=a.pop()||0;if(c-m<=u){for(let v=m;v<=c;v++){const y=i[2*v],E=i[2*v+1];y>=e&&y<=r&&E>=t&&E<=s&&d.push(o[v])}continue}const g=m+c>>1,f=i[2*g],h=i[2*g+1];f>=e&&f<=r&&h>=t&&h<=s&&d.push(o[g]),(p===0?e<=f:t<=h)&&(a.push(m),a.push(g-1),a.push(1-p)),(p===0?r>=f:s>=h)&&(a.push(g+1),a.push(c),a.push(1-p))}return d}within(e,t,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:s,coords:o,nodeSize:i}=this,u=[0,s.length-1,0],a=[],d=r*r;for(;u.length;){const p=u.pop()||0,c=u.pop()||0,m=u.pop()||0;if(c-m<=i){for(let v=m;v<=c;v++)xe(o[2*v],o[2*v+1],e,t)<=d&&a.push(s[v]);continue}const g=m+c>>1,f=o[2*g],h=o[2*g+1];xe(f,h,e,t)<=d&&a.push(s[g]),(p===0?e-r<=f:t-r<=h)&&(u.push(m),u.push(g-1),u.push(1-p)),(p===0?e+r>=f:t+r>=h)&&(u.push(g+1),u.push(c),u.push(1-p))}return a}}function oe(n,e,t,r,s,o){if(s-r<=t)return;const i=r+s>>1;$e(n,e,i,r,s,o),oe(n,e,t,r,i-1,1-o),oe(n,e,t,i+1,s,1-o)}function $e(n,e,t,r,s,o){for(;s>r;){if(s-r>600){const d=s-r+1,p=t-r+1,c=Math.log(d),m=.5*Math.exp(2*c/3),g=.5*Math.sqrt(c*m*(d-m)/d)*(p-d/2<0?-1:1),f=Math.max(r,Math.floor(t-p*m/d+g)),h=Math.min(s,Math.floor(t+(d-p)*m/d+g));$e(n,e,t,f,h,o)}const i=e[2*t+o];let u=r,a=s;for(Z(n,e,r,t),e[2*s+o]>i&&Z(n,e,r,s);u<a;){for(Z(n,e,u,a),u++,a--;e[2*u+o]<i;)u++;for(;e[2*a+o]>i;)a--}e[2*r+o]===i?Z(n,e,r,a):(a++,Z(n,e,a,s)),a<=t&&(r=a+1),t<=a&&(s=a-1)}}function Z(n,e,t,r){ne(n,t,r),ne(e,2*t,2*r),ne(e,2*t+1,2*r+1)}function ne(n,e,t){const r=n[e];n[e]=n[t],n[t]=r}function xe(n,e,t,r){const s=n-t,o=e-r;return s*s+o*o}const tr={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:n=>n},Ie=Math.fround||(n=>e=>(n[0]=+e,n[0]))(new Float32Array(1)),I=2,q=3,se=4,P=5,Ne=6;class De{constructor(e){this.options=Object.assign(Object.create(tr),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:r,maxZoom:s}=this.options;t&&console.time("total time");const o=`prepare ${e.length} points`;t&&console.time(o),this.points=e;const i=[];for(let a=0;a<e.length;a++){const d=e[a];if(!d.geometry)continue;const[p,c]=d.geometry.coordinates,m=Ie(H(p)),g=Ie(K(c));i.push(m,g,1/0,a,-1,1),this.options.reduce&&i.push(0)}let u=this.trees[s+1]=this._createTree(i);t&&console.timeEnd(o);for(let a=s;a>=r;a--){const d=+Date.now();u=this.trees[a]=this._createTree(this._cluster(u,a)),t&&console.log("z%d: %d clusters in %dms",a,u.numItems,+Date.now()-d)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[1]));let o=e[2]===180?180:((e[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,o=180;else if(r>o){const c=this.getClusters([r,s,180,i],t),m=this.getClusters([-180,s,o,i],t);return c.concat(m)}const u=this.trees[this._limitZoom(t)],a=u.range(H(r),K(i),H(o),K(s)),d=u.data,p=[];for(const c of a){const m=this.stride*c;p.push(d[m+P]>1?je(d,m,this.clusterProps):this.points[d[m+q]])}return p}getChildren(e){const t=this._getOriginId(e),r=this._getOriginZoom(e),s="No cluster with the specified id.",o=this.trees[r];if(!o)throw new Error(s);const i=o.data;if(t*this.stride>=i.length)throw new Error(s);const u=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=i[t*this.stride],d=i[t*this.stride+1],p=o.within(a,d,u),c=[];for(const m of p){const g=m*this.stride;i[g+se]===e&&c.push(i[g+P]>1?je(i,g,this.clusterProps):this.points[i[g+q]])}if(c.length===0)throw new Error(s);return c}getLeaves(e,t,r){t=t||10,r=r||0;const s=[];return this._appendLeaves(s,e,t,r,0),s}getTile(e,t,r){const s=this.trees[this._limitZoom(e)],o=Math.pow(2,e),{extent:i,radius:u}=this.options,a=u/i,d=(r-a)/o,p=(r+1+a)/o,c={features:[]};return this._addTileFeatures(s.range((t-a)/o,d,(t+1+a)/o,p),s.data,t,r,o,c),t===0&&this._addTileFeatures(s.range(1-a/o,d,1,p),s.data,o,r,o,c),t===o-1&&this._addTileFeatures(s.range(0,d,a/o,p),s.data,-1,r,o,c),c.features.length?c:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const r=this.getChildren(e);if(t++,r.length!==1)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,s,o){const i=this.getChildren(t);for(const u of i){const a=u.properties;if(a&&a.cluster?o+a.point_count<=s?o+=a.point_count:o=this._appendLeaves(e,a.cluster_id,r,s,o):o<s?o++:e.push(u),e.length===r)break}return o}_createTree(e){const t=new ue(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<e.length;r+=this.stride)t.add(e[r],e[r+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,r,s,o,i){for(const u of e){const a=u*this.stride,d=t[a+P]>1;let p,c,m;if(d)p=Ue(t,a,this.clusterProps),c=t[a],m=t[a+1];else{const h=this.points[t[a+q]];p=h.properties;const[v,y]=h.geometry.coordinates;c=H(v),m=K(y)}const g={type:1,geometry:[[Math.round(this.options.extent*(c*o-r)),Math.round(this.options.extent*(m*o-s))]],tags:p};let f;d||this.options.generateId?f=t[a+q]:f=this.points[t[a+q]].id,f!==void 0&&(g.id=f),i.features.push(g)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:r,extent:s,reduce:o,minPoints:i}=this.options,u=r/(s*Math.pow(2,t)),a=e.data,d=[],p=this.stride;for(let c=0;c<a.length;c+=p){if(a[c+I]<=t)continue;a[c+I]=t;const m=a[c],g=a[c+1],f=e.within(a[c],a[c+1],u),h=a[c+P];let v=h;for(const y of f){const E=y*p;a[E+I]>t&&(v+=a[E+P])}if(v>h&&v>=i){let y=m*h,E=g*h,w,M=-1;const C=((c/p|0)<<5)+(t+1)+this.points.length;for(const O of f){const _=O*p;if(a[_+I]<=t)continue;a[_+I]=t;const S=a[_+P];y+=a[_]*S,E+=a[_+1]*S,a[_+se]=C,o&&(w||(w=this._map(a,c,!0),M=this.clusterProps.length,this.clusterProps.push(w)),o(w,this._map(a,_)))}a[c+se]=C,d.push(y/v,E/v,1/0,C,-1,v),o&&d.push(M)}else{for(let y=0;y<p;y++)d.push(a[c+y]);if(v>1)for(const y of f){const E=y*p;if(!(a[E+I]<=t)){a[E+I]=t;for(let w=0;w<p;w++)d.push(a[E+w])}}}}return d}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+P]>1){const i=this.clusterProps[e[t+Ne]];return r?Object.assign({},i):i}const s=this.points[e[t+q]].properties,o=this.options.map(s);return r&&o===s?Object.assign({},o):o}}function je(n,e,t){return{type:"Feature",id:n[e+q],properties:Ue(n,e,t),geometry:{type:"Point",coordinates:[rr(n[e]),nr(n[e+1])]}}}function Ue(n,e,t){const r=n[e+P],s=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,o=n[e+Ne],i=o===-1?{}:Object.assign({},t[o]);return Object.assign(i,{cluster:!0,cluster_id:n[e+q],point_count:r,point_count_abbreviated:s})}function H(n){return n/360+.5}function K(n){const e=Math.sin(n*Math.PI/180),t=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return t<0?0:t>1?1:t}function rr(n){return(n-.5)*360}function nr(n){const e=(180-n*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function ce(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(n);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(n,r[s])&&(t[r[s]]=n[r[s]]);return t}class k{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(Number.isFinite(e.position.lat)&&Number.isFinite(e.position.lng))return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}}class V{constructor({markers:e,position:t}){this.markers=[],e&&(this.markers=e),t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(this.markers.length===0&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(k.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>k.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(k.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function b(n,e="assertion failed"){if(n==null)throw Error(e)}const sr=(n,e,t,r)=>{const s=n.getBounds();b(s);const o=Ze(s,e,r);return t.filter(i=>o.contains(k.getPosition(i)))},Ze=(n,e,t)=>{const{northEast:r,southWest:s}=ir(n,e),o=ar({northEast:r,southWest:s},t);return lr(o,e)},or=(n,e,t)=>{const r=Ze(n,e,t),s=r.getNorthEast(),o=r.getSouthWest();return[o.lng(),o.lat(),s.lng(),s.lat()]},ir=(n,e)=>{const t=e.fromLatLngToDivPixel(n.getNorthEast()),r=e.fromLatLngToDivPixel(n.getSouthWest());return b(t),b(r),{northEast:t,southWest:r}},ar=({northEast:n,southWest:e},t)=>(n.x+=t,n.y-=t,e.x-=t,e.y+=t,{northEast:n,southWest:e}),lr=({northEast:n,southWest:e},t)=>{const r=t.fromDivPixelToLatLng(e),s=t.fromDivPixelToLatLng(n);return new google.maps.LatLngBounds(r,s)};class Fe{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return cr(e)}}class ur extends Fe{constructor(e){var{viewportPadding:t=60}=e,r=ce(e,["viewportPadding"]);super(r),this.viewportPadding=60,this.viewportPadding=t}calculate({markers:e,map:t,mapCanvasProjection:r}){const s=t.getZoom();return b(s),s>=this.maxZoom?{clusters:this.noop({markers:e}),changed:!1}:{clusters:this.cluster({markers:sr(t,r,e,this.viewportPadding),map:t,mapCanvasProjection:r})}}}const cr=n=>n.map(t=>new V({position:k.getPosition(t),markers:[t]}));class dr extends Fe{constructor(e){var{maxZoom:t,radius:r=60}=e,s=ce(e,["maxZoom","radius"]);super({maxZoom:t}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new De(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(e){let t=!1,r=e.map.getZoom();b(r),r=Math.round(r);const s={zoom:r};if(!J(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const o=this.markers.map(i=>{const u=k.getPosition(i);return{type:"Feature",geometry:{type:"Point",coordinates:[u.lng(),u.lat()]},properties:{marker:i}}});this.superCluster.load(o)}return t||(this.state.zoom<=this.maxZoom||s.zoom<=this.maxZoom)&&(t=!J(this.state,s)),this.state=s,e.markers.length===0?(this.clusters=[],{clusters:this.clusters,changed:t}):(t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t})}cluster({map:e}){const t=e.getZoom();return b(t),this.superCluster.getClusters([-180,-90,180,90],Math.round(t)).map(r=>this.transformCluster(r))}transformCluster({geometry:{coordinates:[e,t]},properties:r}){if(r.cluster)return new V({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(o=>o.properties.marker),position:{lat:t,lng:e}});const s=r.marker;return new V({markers:[s],position:k.getPosition(s)})}}class pr extends ur{constructor(e){var{maxZoom:t,radius:r=60,viewportPadding:s=60}=e,o=ce(e,["maxZoom","radius","viewportPadding"]);super({maxZoom:t,viewportPadding:s}),this.markers=[],this.clusters=[],this.superCluster=new De(Object.assign({maxZoom:this.maxZoom,radius:r},o)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(e){const t=this.getViewportState(e);let r=!J(this.state,t);if(!J(e.markers,this.markers)){r=!0,this.markers=[...e.markers];const s=this.markers.map(o=>{const i=k.getPosition(o);return{type:"Feature",geometry:{type:"Point",coordinates:[i.lng(),i.lat()]},properties:{marker:o}}});this.superCluster.load(s)}return r&&(this.clusters=this.cluster(e),this.state=t),{clusters:this.clusters,changed:r}}cluster(e){const t=this.getViewportState(e);return this.superCluster.getClusters(t.view,t.zoom).map(r=>this.transformCluster(r))}transformCluster({geometry:{coordinates:[e,t]},properties:r}){if(r.cluster)return new V({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(o=>o.properties.marker),position:{lat:t,lng:e}});const s=r.marker;return new V({markers:[s],position:k.getPosition(s)})}getViewportState(e){const t=e.map.getZoom(),r=e.map.getBounds();return b(t),b(r),{zoom:Math.round(t),view:or(r,e.mapCanvasProjection,this.viewportPadding)}}}class fr{constructor(e,t){this.markers={sum:e.length};const r=t.map(o=>o.count),s=r.reduce((o,i)=>o+i,0);this.clusters={count:t.length,markers:{mean:s/t.length,sum:s,min:Math.min(...r),max:Math.max(...r)}}}}class hr{render({count:e,position:t},r,s){const i=`<svg fill="${e>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".mapdiv[data-v-c63ff230]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ab9120cd]{display:none}.mapdiv .custom-control-wrapper[data-v-ab9120cd]{display:inline-block}.info-window-wrapper[data-v-135889a7]{display:none}.mapdiv .info-window-wrapper[data-v-135889a7]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(a)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
2
+ "use strict";var Ue=Object.defineProperty;var Ze=(r,e,t)=>e in r?Ue(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Q=(r,e,t)=>(Ze(r,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),T=Symbol("map"),L=Symbol("api"),se=Symbol("marker"),ae=Symbol("markerCluster"),Y=Symbol("CustomMarker"),ie=Symbol("mapTilesLoaded"),I=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];function Ve(r,e){r.src=e}const Ge=r=>{var e,t,n,o="The Google Maps JavaScript API",s="google",i="importLibrary",u="__ib__",a=document,p=window,f=p[s]||(p[s]={}),c=f.maps||(f.maps={}),m=new Set,g=new URLSearchParams,h=()=>e||(e=new Promise(async(d,v)=>{var y;await(t=a.createElement("script")),g.set("libraries",[...m]+"");for(n in r)g.set(n.replace(/[A-Z]/g,w=>"_"+w[0].toLowerCase()),r[n]);g.set("callback",s+".maps."+u),Ve(t,"https://maps.googleapis.com/maps/api/js?"+g),c[u]=d,t.onerror=()=>e=v(Error(o+" could not load.")),t.nonce=((y=a.querySelector("script[nonce]"))==null?void 0:y.nonce)||"",a.head.append(t)}));c[i]?console.warn(o+" only loads once. Ignoring:",r):c[i]=(d,...v)=>m.add(d)&&h().then(()=>c[i](d,...v))},Fe=r=>`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(r)}) will be ignored.`,ze=r=>`The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(r)}) will be ignored.`,We="No options were set before calling importLibrary. Make sure to configure the loader using setOptions().",He="There already is a script loading the Google Maps JavaScript API, and no google.maps.importLibrary function is defined. @googlemaps/js-api-loader will proceed to bootstrap the API with the specified options, but the existing script might cause problems using the API. Make sure to remove the script loading the API.",le=process.env.NODE_ENV!=="production"?r=>{console.warn(`[@googlemaps/js-api-loader] ${r}`)}:()=>{},Ke=process.env.NODE_ENV!=="production"?r=>{console.info(`[@googlemaps/js-api-loader] ${r}`)}:()=>{};let ne=!1;function Ye(r){if(ne){le(Fe(r));return}Xe(r),ne=!0}async function Je(r){var e,t;if(ne||le(We),!((t=(e=window==null?void 0:window.google)==null?void 0:e.maps)!=null&&t.importLibrary))throw new Error("google.maps.importLibrary is not installed.");return await google.maps.importLibrary(r)}function Xe(r){var t,n;const e=!!((n=(t=window.google)==null?void 0:t.maps)!=null&&n.importLibrary);e?Ke(ze(r)):process.env.NODE_ENV!=="production"&&document.querySelector('script[src*="maps.googleapis.com/maps/api/js"]')&&le(He),e||Ge(r)}function Qe(r){return class extends r.OverlayView{constructor(n){super();Q(this,"element");Q(this,"opts");const{element:o,...s}=n;this.element=o,this.opts=s,this.opts.map&&this.setMap(this.opts.map)}getPosition(){return this.opts.position?this.opts.position instanceof r.LatLng?this.opts.position:new r.LatLng(this.opts.position):null}getVisible(){if(!this.element)return!1;const n=this.element;return n.style.display!=="none"&&n.style.visibility!=="hidden"&&(n.style.opacity===""||Number(n.style.opacity)>.01)}onAdd(){if(!this.element)return;const n=this.getPanes();n&&n.overlayMouseTarget.appendChild(this.element)}draw(){if(!this.element)return;const n=this.getProjection(),o=n==null?void 0:n.fromLatLngToDivPixel(this.getPosition());if(o){this.element.style.position="absolute";let s,i;switch(this.opts.anchorPoint){case"TOP_CENTER":s="-50%",i="-100%";break;case"BOTTOM_CENTER":s="-50%",i="0";break;case"LEFT_CENTER":s="-100%",i="-50%";break;case"RIGHT_CENTER":s="0",i="-50%";break;case"TOP_LEFT":s="-100%",i="-100%";break;case"TOP_RIGHT":s="0",i="-100%";break;case"BOTTOM_LEFT":s="-100%",i="0";break;case"BOTTOM_RIGHT":s="0",i="0";break;default:s="-50%",i="-50%"}const u=o.x+(this.opts.offsetX||0)+"px",a=o.y+(this.opts.offsetY||0)+"px";this.element.style.transform=`translateX(${s}) translateX(${u}) translateY(${i}) translateY(${a})`,this.opts.zIndex&&(this.element.style.zIndex=this.opts.zIndex.toString())}}onRemove(){this.element&&this.element.remove()}setOptions(n){const{element:o,...s}=n;this.element=o,this.opts=s,this.draw()}}}let de=!1;const fe=["bounds_changed","center_changed","click","contextmenu","dblclick","drag","dragend","dragstart","heading_changed","idle","isfractionalzoomenabled_changed","mapcapabilities_changed","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","renderingtype_changed","rightclick","tilesloaded","tilt_changed","zoom_changed"],et=l.defineComponent({props:{apiPromise:{type:Promise},apiKey:{type:String,default:""},version:{type:String,default:"weekly"},libraries:{type:Array,default:()=>["places","marker"]},region:{type:String,required:!1},language:{type:String,required:!1},backgroundColor:{type:String,required:!1},center:{type:Object,default:()=>({lat:0,lng:0})},clickableIcons:{type:Boolean,required:!1,default:void 0},colorScheme:{type:String,required:!1},controlSize:{type:Number,required:!1},disableDefaultUi:{type:Boolean,required:!1,default:void 0},disableDoubleClickZoom:{type:Boolean,required:!1,default:void 0},draggable:{type:Boolean,required:!1,default:void 0},draggableCursor:{type:String,required:!1},draggingCursor:{type:String,required:!1},fullscreenControl:{type:Boolean,required:!1,default:void 0},fullscreenControlPosition:{type:String,required:!1},gestureHandling:{type:String,required:!1},heading:{type:Number,required:!1},isFractionalZoomEnabled:{type:Boolean,required:!1,default:void 0},keyboardShortcuts:{type:Boolean,required:!1,default:void 0},mapTypeControl:{type:Boolean,required:!1,default:void 0},mapTypeControlOptions:{type:Object,required:!1},mapTypeId:{type:[Number,String],required:!1},mapId:{type:String,required:!1},maxZoom:{type:Number,required:!1},minZoom:{type:Number,required:!1},noClear:{type:Boolean,required:!1,default:void 0},panControl:{type:Boolean,required:!1,default:void 0},panControlPosition:{type:String,required:!1},restriction:{type:Object,required:!1},rotateControl:{type:Boolean,required:!1,default:void 0},rotateControlPosition:{type:String,required:!1},scaleControl:{type:Boolean,required:!1,default:void 0},scaleControlStyle:{type:Number,required:!1},scrollwheel:{type:Boolean,required:!1,default:void 0},streetView:{type:Object,required:!1},streetViewControl:{type:Boolean,required:!1,default:void 0},streetViewControlPosition:{type:String,required:!1},styles:{type:Array,required:!1},tilt:{type:Number,required:!1},zoom:{type:Number,required:!1},zoomControl:{type:Boolean,required:!1,default:void 0},zoomControlPosition:{type:String,required:!1},cameraControl:{type:Boolean,required:!1,default:void 0},cameraControlPosition:{type:String,required:!1}},emits:fe,setup(r,{emit:e}){const t=l.ref(),n=l.ref(!1),o=l.ref(),s=l.ref(),i=l.ref(!1);l.provide(T,o),l.provide(L,s),l.provide(ie,i);const u=()=>{const c={...r};Object.keys(c).forEach(d=>{c[d]===void 0&&delete c[d]});const g=d=>{var v;return d?{position:(v=s.value)==null?void 0:v.ControlPosition[d]}:{}},h={scaleControlOptions:r.scaleControlStyle?{style:r.scaleControlStyle}:{},panControlOptions:g(r.panControlPosition),zoomControlOptions:g(r.zoomControlPosition),rotateControlOptions:g(r.rotateControlPosition),streetViewControlOptions:g(r.streetViewControlPosition),fullscreenControlOptions:g(r.fullscreenControlPosition),cameraControlOptions:g(r.cameraControlPosition),disableDefaultUI:r.disableDefaultUi};return{...c,...h}},a=l.watch([s,o],([c,m])=>{const g=c,h=m;g&&h&&(g.event.addListenerOnce(h,"tilesloaded",()=>{i.value=!0}),setTimeout(a,0))},{immediate:!0}),p=()=>{const{apiKey:c,region:m,version:g,language:h,libraries:d}=r;Ye({key:c,region:m,v:g,language:h,libraries:d})},f=c=>{const m=c?c.maps:google.maps;s.value=l.markRaw(m),o.value=l.markRaw(new m.Map(t.value,u()));const g=Qe(s.value);s.value[Y]=g,fe.forEach(d=>{var v;(v=o.value)==null||v.addListener(d,y=>e(d,y))}),n.value=!0;const h=Object.keys(r).filter(d=>!["apiPromise","apiKey","version","libraries","region","language","center","zoom"].includes(d)).map(d=>l.toRef(r,d));l.watch([()=>r.center,()=>r.zoom,...h],([d,v],[y,w])=>{var k,S,N;const{center:_,zoom:P,...C}=u();(k=o.value)==null||k.setOptions(C),v!==void 0&&v!==w&&((S=o.value)==null||S.setZoom(v));const M=!y||d.lng!==y.lng||d.lat!==y.lat;d&&M&&((N=o.value)==null||N.panTo(d))})};return l.onMounted(()=>{if(r.apiPromise&&r.apiPromise instanceof Promise)r.apiPromise.then(f);else{de||(p(),de=!0);const c=r.libraries&&r.libraries.length>0?r.libraries:["maps","marker"];Promise.all(c.map(m=>Je(m))).then(()=>f())}}),l.onBeforeUnmount(()=>{var c;i.value=!1,o.value&&((c=s.value)==null||c.event.clearInstanceListeners(o.value))}),{mapRef:t,ready:n,map:o,api:s,mapTilesLoaded:i}}});const G=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},tt={ref:"mapRef",class:"mapdiv"};function rt(r,e,t,n,o,s){return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",tt,null,512),l.renderSlot(r.$slots,"default",l.normalizeProps(l.guardReactiveProps({ready:r.ready,map:r.map,api:r.api,mapTilesLoaded:r.mapTilesLoaded})),void 0,!0)])}const nt=G(et,[["render",rt],["__scopeId","data-v-c63ff230"]]);function ot(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var st=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!r(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t};const Z=ot(st),me=["click","drag","dragend","dragstart","gmp-click"],at=l.defineComponent({name:"AdvancedMarker",props:{options:{type:Object,required:!0},pinOptions:{type:Object,required:!1}},emits:me,setup(r,{emit:e,expose:t,slots:n}){const o=l.ref(),s=l.computed(()=>{var g;return(g=n.content)==null?void 0:g.call(n).some(h=>h.type!==l.Comment)}),i=l.toRef(r,"options"),u=l.toRef(r,"pinOptions"),a=l.ref(),p=l.inject(T,l.ref()),f=l.inject(L,l.ref()),c=l.inject(ae,l.ref()),m=l.computed(()=>!!(c.value&&f.value&&a.value instanceof google.maps.marker.AdvancedMarkerElement));return l.watch([p,i,u,o],async(g,[h,d,v,y])=>{var k,S,N;const w=!Z(i.value,d)||!Z(u.value,v),_=o.value!==y,P=w||_||p.value!==h;if(!p.value||!f.value||!P||s.value&&!o.value)return;const{AdvancedMarkerElement:C,PinElement:M}=f.value.marker;if(a.value){const{map:J,content:F,...X}=i.value;Object.assign(a.value,{content:s.value?o.value:u.value?new M(u.value).element:F,...X}),m.value&&((k=c.value)==null||k.removeMarker(a.value),(S=c.value)==null||S.addMarker(a.value))}else s.value?i.value.content=o.value:u.value&&(i.value.content=new M(u.value).element),a.value=l.markRaw(new C(i.value)),m.value?(N=c.value)==null||N.addMarker(a.value):a.value.map=p.value,me.forEach(J=>{var F;(F=a.value)==null||F.addListener(J,X=>e(J,X))})},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var g,h;a.value&&((g=f.value)==null||g.event.clearInstanceListeners(a.value),m.value?(h=c.value)==null||h.removeMarker(a.value):a.value.map=null)}),l.provide(se,a),t({marker:a}),{hasCustomSlotContent:s,markerRef:o}}});const it={key:0,class:"advanced-marker-wrapper"};function lt(r,e,t,n,o,s){return l.openBlock(),l.createElementBlock(l.Fragment,null,[r.hasCustomSlotContent?(l.openBlock(),l.createElementBlock("div",it,[l.createElementVNode("div",l.mergeProps({ref:"markerRef"},r.$attrs),[l.renderSlot(r.$slots,"content")],16)])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],64)}const ut=G(at,[["render",lt]]),he=r=>r==="Marker",ge=r=>r===Y,B=(r,e,t,n)=>{const o=l.ref(),s=l.inject(T,l.ref()),i=l.inject(L,l.ref()),u=l.inject(ae,l.ref()),a=l.computed(()=>!!(u.value&&i.value&&(o.value instanceof i.value.Marker||o.value instanceof i.value[Y])));return l.watch([s,t],(p,[f,c])=>{var g,h,d;const m=!Z(t.value,c)||s.value!==f;if(!(!s.value||!i.value||!m))if(o.value)o.value.setOptions(t.value),a.value&&((g=u.value)==null||g.removeMarker(o.value),(h=u.value)==null||h.addMarker(o.value));else{if(he(r))o.value=l.markRaw(new i.value[r](t.value));else if(ge(r)){const v=t.value;v.element&&(o.value=l.markRaw(new i.value[r](v)))}else o.value=l.markRaw(new i.value[r]({...t.value,map:s.value}));o.value&&(a.value?(d=u.value)==null||d.addMarker(o.value):(he(r)||ge(r))&&o.value.setMap(s.value)),e.forEach(v=>{var y;(y=o.value)==null||y.addListener(v,w=>n(v,w))})}},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var p,f;o.value&&((p=i.value)==null||p.event.clearInstanceListeners(o.value),a.value?(f=u.value)==null||f.removeMarker(o.value):o.value.setMap(null))}),o},ve=["animation_changed","click","dblclick","rightclick","dragstart","dragend","drag","mouseover","mousedown","mouseout","mouseup","draggable_changed","clickable_changed","contextmenu","cursor_changed","flat_changed","zindex_changed","icon_changed","position_changed","shape_changed","title_changed","visible_changed"],ct=l.defineComponent({name:"Marker",props:{options:{type:Object,required:!0}},emits:ve,setup(r,{emit:e,expose:t,slots:n}){const o=l.toRef(r,"options"),s=B("Marker",ve,o,e);return l.provide(se,s),t({marker:s}),()=>{var i;return(i=n.default)==null?void 0:i.call(n)}}}),pt=l.defineComponent({name:"Polyline",props:{options:{type:Object,required:!0}},emits:I,setup(r,{emit:e}){const t=l.toRef(r,"options");return{polyline:B("Polyline",I,t,e)}},render:()=>null}),dt=l.defineComponent({name:"Polygon",props:{options:{type:Object,required:!0}},emits:I,setup(r,{emit:e}){const t=l.toRef(r,"options");return{polygon:B("Polygon",I,t,e)}},render:()=>null}),ye=I.concat(["bounds_changed"]),ft=l.defineComponent({name:"Rectangle",props:{options:{type:Object,required:!0}},emits:ye,setup(r,{emit:e}){const t=l.toRef(r,"options");return{rectangle:B("Rectangle",ye,t,e)}},render:()=>null}),we=I.concat(["center_changed","radius_changed"]),mt=l.defineComponent({name:"Circle",props:{options:{type:Object,required:!0}},emits:we,setup(r,{emit:e}){const t=l.toRef(r,"options");return{circle:B("Circle",we,t,e)}},render:()=>null}),ht=l.defineComponent({props:{position:{type:String,required:!0},index:{type:Number,default:1}},emits:["content:loaded"],setup(r,{emit:e}){const t=l.ref(null),n=l.inject(T,l.ref()),o=l.inject(L,l.ref()),s=l.inject(ie,l.ref(!1)),i=l.watch([s,o,t],([p,f,c])=>{f&&p&&c&&(u(r.position),e("content:loaded"),setTimeout(i,0))},{immediate:!0}),u=p=>{if(n.value&&o.value&&t.value){const f=o.value.ControlPosition[p];t.value.index=r.index,n.value.controls[f].push(t.value)}},a=p=>{if(n.value&&o.value){let f=null;const c=o.value.ControlPosition[p];n.value.controls[c].forEach((m,g)=>{m===t.value&&(f=g)}),f!==null&&n.value.controls[c].removeAt(f)}};return l.onBeforeUnmount(()=>a(r.position)),l.watch(()=>r.position,(p,f)=>{a(f),u(p)}),l.watch(()=>r.index,p=>{t.value&&(t.value.index=p)}),{controlRef:t}}});const gt={ref:"controlRef",class:"custom-control-wrapper"};function vt(r,e,t,n,o,s){return l.openBlock(),l.createElementBlock("div",gt,[l.renderSlot(r.$slots,"default",{},void 0,!0)],512)}const yt=G(ht,[["render",vt],["__scopeId","data-v-ab9120cd"]]),_e=["closeclick","content_changed","domready","position_changed","visible","zindex_changed"],wt=l.defineComponent({inheritAttrs:!1,props:{options:{type:Object,default:()=>({})},modelValue:{type:Boolean}},emits:[..._e,"update:modelValue"],setup(r,{slots:e,emit:t,expose:n}){const o=l.ref(),s=l.ref(),i=l.inject(T,l.ref()),u=l.inject(L,l.ref()),a=l.inject(se,l.ref());let p,f=r.modelValue;const c=l.computed(()=>{var d;return(d=e.default)==null?void 0:d.call(e).some(v=>v.type!==l.Comment)}),m=d=>{f=d,t("update:modelValue",d)},g=d=>{o.value&&(o.value.open({map:i.value,anchor:a.value,...d}),m(!0))},h=()=>{o.value&&(o.value.close(),m(!1))};return l.onMounted(()=>{l.watch([i,()=>r.options],([d,v],[y,w])=>{var P;const _=!Z(v,w)||i.value!==y;i.value&&u.value&&_&&(o.value?(o.value.setOptions({...v,content:c.value?s.value:v.content}),a.value||g()):(o.value=l.markRaw(new u.value.InfoWindow({...v,content:c.value?s.value:v.content})),a.value&&(p=a.value.addListener("click",()=>{g()})),(!a.value||f)&&g(),_e.forEach(C=>{var M;(M=o.value)==null||M.addListener(C,k=>t(C,k))}),(P=o.value)==null||P.addListener("closeclick",()=>m(!1))))},{immediate:!0,flush:"post"}),l.watch(()=>r.modelValue,d=>{d!==f&&(d?g():h())})}),l.onBeforeUnmount(()=>{var d;p&&p.remove(),o.value&&((d=u.value)==null||d.event.clearInstanceListeners(o.value),h())}),n({infoWindow:o,open:g,close:h}),{infoWindow:o,infoWindowRef:s,hasSlotContent:c,open:g,close:h}}});const _t={key:0,class:"info-window-wrapper"};function Et(r,e,t,n,o,s){return r.hasSlotContent?(l.openBlock(),l.createElementBlock("div",_t,[l.createElementVNode("div",l.mergeProps({ref:"infoWindowRef"},r.$attrs),[l.renderSlot(r.$slots,"default",{},void 0,!0)],16)])):l.createCommentVNode("",!0)}const kt=G(wt,[["render",Et],["__scopeId","data-v-135889a7"]]);var Ct=Object.getOwnPropertyNames,Mt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty;function Ee(r,e){return function(n,o,s){return r(n,o,s)&&e(n,o,s)}}function z(r){return function(t,n,o){if(!t||!n||typeof t!="object"||typeof n!="object")return r(t,n,o);var s=o.cache,i=s.get(t),u=s.get(n);if(i&&u)return i===n&&u===t;s.set(t,n),s.set(n,t);var a=r(t,n,o);return s.delete(t),s.delete(n),a}}function ke(r){return Ct(r).concat(Mt(r))}var Pt=Object.hasOwn||function(r,e){return Ot.call(r,e)};function j(r,e){return r===e||!r&&!e&&r!==r&&e!==e}var St="__v",bt="__o",At="_owner",Ce=Object.getOwnPropertyDescriptor,Me=Object.keys;function qt(r,e,t){var n=r.length;if(e.length!==n)return!1;for(;n-- >0;)if(!t.equals(r[n],e[n],n,n,r,e,t))return!1;return!0}function Tt(r,e){return j(r.getTime(),e.getTime())}function Lt(r,e){return r.name===e.name&&r.message===e.message&&r.cause===e.cause&&r.stack===e.stack}function xt(r,e){return r===e}function Oe(r,e,t){var n=r.size;if(n!==e.size)return!1;if(!n)return!0;for(var o=new Array(n),s=r.entries(),i,u,a=0;(i=s.next())&&!i.done;){for(var p=e.entries(),f=!1,c=0;(u=p.next())&&!u.done;){if(o[c]){c++;continue}var m=i.value,g=u.value;if(t.equals(m[0],g[0],a,c,r,e,t)&&t.equals(m[1],g[1],m[0],g[0],r,e,t)){f=o[c]=!0;break}c++}if(!f)return!1;a++}return!0}var Rt=j;function jt(r,e,t){var n=Me(r),o=n.length;if(Me(e).length!==o)return!1;for(;o-- >0;)if(!Re(r,e,t,n[o]))return!1;return!0}function $(r,e,t){var n=ke(r),o=n.length;if(ke(e).length!==o)return!1;for(var s,i,u;o-- >0;)if(s=n[o],!Re(r,e,t,s)||(i=Ce(r,s),u=Ce(e,s),(i||u)&&(!i||!u||i.configurable!==u.configurable||i.enumerable!==u.enumerable||i.writable!==u.writable)))return!1;return!0}function It(r,e){return j(r.valueOf(),e.valueOf())}function Bt(r,e){return r.source===e.source&&r.flags===e.flags}function Pe(r,e,t){var n=r.size;if(n!==e.size)return!1;if(!n)return!0;for(var o=new Array(n),s=r.values(),i,u;(i=s.next())&&!i.done;){for(var a=e.values(),p=!1,f=0;(u=a.next())&&!u.done;){if(!o[f]&&t.equals(i.value,u.value,i.value,u.value,r,e,t)){p=o[f]=!0;break}f++}if(!p)return!1}return!0}function Nt(r,e){var t=r.length;if(e.length!==t)return!1;for(;t-- >0;)if(r[t]!==e[t])return!1;return!0}function $t(r,e){return r.hostname===e.hostname&&r.pathname===e.pathname&&r.protocol===e.protocol&&r.port===e.port&&r.hash===e.hash&&r.username===e.username&&r.password===e.password}function Re(r,e,t,n){return(n===At||n===bt||n===St)&&(r.$$typeof||e.$$typeof)?!0:Pt(e,n)&&t.equals(r[n],e[n],n,n,r,e,t)}var Dt="[object Arguments]",Ut="[object Boolean]",Zt="[object Date]",Vt="[object Error]",Gt="[object Map]",Ft="[object Number]",zt="[object Object]",Wt="[object RegExp]",Ht="[object Set]",Kt="[object String]",Yt="[object URL]",Jt=Array.isArray,Se=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,be=Object.assign,Xt=Object.prototype.toString.call.bind(Object.prototype.toString);function Qt(r){var e=r.areArraysEqual,t=r.areDatesEqual,n=r.areErrorsEqual,o=r.areFunctionsEqual,s=r.areMapsEqual,i=r.areNumbersEqual,u=r.areObjectsEqual,a=r.arePrimitiveWrappersEqual,p=r.areRegExpsEqual,f=r.areSetsEqual,c=r.areTypedArraysEqual,m=r.areUrlsEqual;return function(h,d,v){if(h===d)return!0;if(h==null||d==null)return!1;var y=typeof h;if(y!==typeof d)return!1;if(y!=="object")return y==="number"?i(h,d,v):y==="function"?o(h,d,v):!1;var w=h.constructor;if(w!==d.constructor)return!1;if(w===Object)return u(h,d,v);if(Jt(h))return e(h,d,v);if(Se!=null&&Se(h))return c(h,d,v);if(w===Date)return t(h,d,v);if(w===RegExp)return p(h,d,v);if(w===Map)return s(h,d,v);if(w===Set)return f(h,d,v);var _=Xt(h);return _===Zt?t(h,d,v):_===Wt?p(h,d,v):_===Gt?s(h,d,v):_===Ht?f(h,d,v):_===zt?typeof h.then!="function"&&typeof d.then!="function"&&u(h,d,v):_===Yt?m(h,d,v):_===Vt?n(h,d,v):_===Dt?u(h,d,v):_===Ut||_===Ft||_===Kt?a(h,d,v):!1}}function er(r){var e=r.circular,t=r.createCustomConfig,n=r.strict,o={areArraysEqual:n?$:qt,areDatesEqual:Tt,areErrorsEqual:Lt,areFunctionsEqual:xt,areMapsEqual:n?Ee(Oe,$):Oe,areNumbersEqual:Rt,areObjectsEqual:n?$:jt,arePrimitiveWrappersEqual:It,areRegExpsEqual:Bt,areSetsEqual:n?Ee(Pe,$):Pe,areTypedArraysEqual:n?$:Nt,areUrlsEqual:$t};if(t&&(o=be({},o,t(o))),e){var s=z(o.areArraysEqual),i=z(o.areMapsEqual),u=z(o.areObjectsEqual),a=z(o.areSetsEqual);o=be({},o,{areArraysEqual:s,areMapsEqual:i,areObjectsEqual:u,areSetsEqual:a})}return o}function tr(r){return function(e,t,n,o,s,i,u){return r(e,t,u)}}function rr(r){var e=r.circular,t=r.comparator,n=r.createState,o=r.equals,s=r.strict;if(n)return function(a,p){var f=n(),c=f.cache,m=c===void 0?e?new WeakMap:void 0:c,g=f.meta;return t(a,p,{cache:m,equals:o,meta:g,strict:s})};if(e)return function(a,p){return t(a,p,{cache:new WeakMap,equals:o,meta:void 0,strict:s})};var i={cache:void 0,equals:o,meta:void 0,strict:s};return function(a,p){return t(a,p,i)}}var K=x();x({strict:!0});x({circular:!0});x({circular:!0,strict:!0});x({createInternalComparator:function(){return j}});x({strict:!0,createInternalComparator:function(){return j}});x({circular:!0,createInternalComparator:function(){return j}});x({circular:!0,createInternalComparator:function(){return j},strict:!0});function x(r){r===void 0&&(r={});var e=r.circular,t=e===void 0?!1:e,n=r.createInternalComparator,o=r.createState,s=r.strict,i=s===void 0?!1:s,u=er(r),a=Qt(u),p=n?n(a):tr(a);return rr({circular:t,comparator:a,createState:o,equals:p,strict:i})}const Ae=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],ee=1,D=8;class ue{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,n]=new Uint8Array(e,0,2);if(t!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=n>>4;if(o!==ee)throw new Error(`Got v${o} data when expected v${ee}.`);const s=Ae[n&15];if(!s)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(e,2,1),[u]=new Uint32Array(e,4,1);return new ue(u,i,s,e)}constructor(e,t=64,n=Float64Array,o){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const s=Ae.indexOf(this.ArrayType),i=e*2*this.ArrayType.BYTES_PER_ELEMENT,u=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-u%8)%8;if(s<0)throw new Error(`Unexpected typed array class: ${n}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,D,e),this.coords=new this.ArrayType(this.data,D+u+a,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(D+i+u+a),this.ids=new this.IndexArrayType(this.data,D,e),this.coords=new this.ArrayType(this.data,D+u+a,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(ee<<4)+s]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return oe(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:s,coords:i,nodeSize:u}=this,a=[0,s.length-1,0],p=[];for(;a.length;){const f=a.pop()||0,c=a.pop()||0,m=a.pop()||0;if(c-m<=u){for(let v=m;v<=c;v++){const y=i[2*v],w=i[2*v+1];y>=e&&y<=n&&w>=t&&w<=o&&p.push(s[v])}continue}const g=m+c>>1,h=i[2*g],d=i[2*g+1];h>=e&&h<=n&&d>=t&&d<=o&&p.push(s[g]),(f===0?e<=h:t<=d)&&(a.push(m),a.push(g-1),a.push(1-f)),(f===0?n>=h:o>=d)&&(a.push(g+1),a.push(c),a.push(1-f))}return p}within(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:s,nodeSize:i}=this,u=[0,o.length-1,0],a=[],p=n*n;for(;u.length;){const f=u.pop()||0,c=u.pop()||0,m=u.pop()||0;if(c-m<=i){for(let v=m;v<=c;v++)qe(s[2*v],s[2*v+1],e,t)<=p&&a.push(o[v]);continue}const g=m+c>>1,h=s[2*g],d=s[2*g+1];qe(h,d,e,t)<=p&&a.push(o[g]),(f===0?e-n<=h:t-n<=d)&&(u.push(m),u.push(g-1),u.push(1-f)),(f===0?e+n>=h:t+n>=d)&&(u.push(g+1),u.push(c),u.push(1-f))}return a}}function oe(r,e,t,n,o,s){if(o-n<=t)return;const i=n+o>>1;je(r,e,i,n,o,s),oe(r,e,t,n,i-1,1-s),oe(r,e,t,i+1,o,1-s)}function je(r,e,t,n,o,s){for(;o>n;){if(o-n>600){const p=o-n+1,f=t-n+1,c=Math.log(p),m=.5*Math.exp(2*c/3),g=.5*Math.sqrt(c*m*(p-m)/p)*(f-p/2<0?-1:1),h=Math.max(n,Math.floor(t-f*m/p+g)),d=Math.min(o,Math.floor(t+(p-f)*m/p+g));je(r,e,t,h,d,s)}const i=e[2*t+s];let u=n,a=o;for(U(r,e,n,t),e[2*o+s]>i&&U(r,e,n,o);u<a;){for(U(r,e,u,a),u++,a--;e[2*u+s]<i;)u++;for(;e[2*a+s]>i;)a--}e[2*n+s]===i?U(r,e,n,a):(a++,U(r,e,a,o)),a<=t&&(n=a+1),t<=a&&(o=a-1)}}function U(r,e,t,n){te(r,t,n),te(e,2*t,2*n),te(e,2*t+1,2*n+1)}function te(r,e,t){const n=r[e];r[e]=r[t],r[t]=n}function qe(r,e,t,n){const o=r-t,s=e-n;return o*o+s*s}const nr={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:r=>r},Te=Math.fround||(r=>e=>(r[0]=+e,r[0]))(new Float32Array(1)),R=2,A=3,re=4,b=5,Ie=6;class Be{constructor(e){this.options=Object.assign(Object.create(nr),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:n,maxZoom:o}=this.options;t&&console.time("total time");const s=`prepare ${e.length} points`;t&&console.time(s),this.points=e;const i=[];for(let a=0;a<e.length;a++){const p=e[a];if(!p.geometry)continue;const[f,c]=p.geometry.coordinates,m=Te(W(f)),g=Te(H(c));i.push(m,g,1/0,a,-1,1),this.options.reduce&&i.push(0)}let u=this.trees[o+1]=this._createTree(i);t&&console.timeEnd(s);for(let a=o;a>=n;a--){const p=+Date.now();u=this.trees[a]=this._createTree(this._cluster(u,a)),t&&console.log("z%d: %d clusters in %dms",a,u.numItems,+Date.now()-p)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[1]));let s=e[2]===180?180:((e[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,s=180;else if(n>s){const c=this.getClusters([n,o,180,i],t),m=this.getClusters([-180,o,s,i],t);return c.concat(m)}const u=this.trees[this._limitZoom(t)],a=u.range(W(n),H(i),W(s),H(o)),p=u.data,f=[];for(const c of a){const m=this.stride*c;f.push(p[m+b]>1?Le(p,m,this.clusterProps):this.points[p[m+A]])}return f}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),o="No cluster with the specified id.",s=this.trees[n];if(!s)throw new Error(o);const i=s.data;if(t*this.stride>=i.length)throw new Error(o);const u=this.options.radius/(this.options.extent*Math.pow(2,n-1)),a=i[t*this.stride],p=i[t*this.stride+1],f=s.within(a,p,u),c=[];for(const m of f){const g=m*this.stride;i[g+re]===e&&c.push(i[g+b]>1?Le(i,g,this.clusterProps):this.points[i[g+A]])}if(c.length===0)throw new Error(o);return c}getLeaves(e,t,n){t=t||10,n=n||0;const o=[];return this._appendLeaves(o,e,t,n,0),o}getTile(e,t,n){const o=this.trees[this._limitZoom(e)],s=Math.pow(2,e),{extent:i,radius:u}=this.options,a=u/i,p=(n-a)/s,f=(n+1+a)/s,c={features:[]};return this._addTileFeatures(o.range((t-a)/s,p,(t+1+a)/s,f),o.data,t,n,s,c),t===0&&this._addTileFeatures(o.range(1-a/s,p,1,f),o.data,s,n,s,c),t===s-1&&this._addTileFeatures(o.range(0,p,a/s,f),o.data,-1,n,s,c),c.features.length?c:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,n.length!==1)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,o,s){const i=this.getChildren(t);for(const u of i){const a=u.properties;if(a&&a.cluster?s+a.point_count<=o?s+=a.point_count:s=this._appendLeaves(e,a.cluster_id,n,o,s):s<o?s++:e.push(u),e.length===n)break}return s}_createTree(e){const t=new ue(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,n,o,s,i){for(const u of e){const a=u*this.stride,p=t[a+b]>1;let f,c,m;if(p)f=Ne(t,a,this.clusterProps),c=t[a],m=t[a+1];else{const d=this.points[t[a+A]];f=d.properties;const[v,y]=d.geometry.coordinates;c=W(v),m=H(y)}const g={type:1,geometry:[[Math.round(this.options.extent*(c*s-n)),Math.round(this.options.extent*(m*s-o))]],tags:f};let h;p||this.options.generateId?h=t[a+A]:h=this.points[t[a+A]].id,h!==void 0&&(g.id=h),i.features.push(g)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:n,extent:o,reduce:s,minPoints:i}=this.options,u=n/(o*Math.pow(2,t)),a=e.data,p=[],f=this.stride;for(let c=0;c<a.length;c+=f){if(a[c+R]<=t)continue;a[c+R]=t;const m=a[c],g=a[c+1],h=e.within(a[c],a[c+1],u),d=a[c+b];let v=d;for(const y of h){const w=y*f;a[w+R]>t&&(v+=a[w+b])}if(v>d&&v>=i){let y=m*d,w=g*d,_,P=-1;const C=((c/f|0)<<5)+(t+1)+this.points.length;for(const M of h){const k=M*f;if(a[k+R]<=t)continue;a[k+R]=t;const S=a[k+b];y+=a[k]*S,w+=a[k+1]*S,a[k+re]=C,s&&(_||(_=this._map(a,c,!0),P=this.clusterProps.length,this.clusterProps.push(_)),s(_,this._map(a,k)))}a[c+re]=C,p.push(y/v,w/v,1/0,C,-1,v),s&&p.push(P)}else{for(let y=0;y<f;y++)p.push(a[c+y]);if(v>1)for(const y of h){const w=y*f;if(!(a[w+R]<=t)){a[w+R]=t;for(let _=0;_<f;_++)p.push(a[w+_])}}}}return p}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,n){if(e[t+b]>1){const i=this.clusterProps[e[t+Ie]];return n?Object.assign({},i):i}const o=this.points[e[t+A]].properties,s=this.options.map(o);return n&&s===o?Object.assign({},s):s}}function Le(r,e,t){return{type:"Feature",id:r[e+A],properties:Ne(r,e,t),geometry:{type:"Point",coordinates:[or(r[e]),sr(r[e+1])]}}}function Ne(r,e,t){const n=r[e+b],o=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?`${Math.round(n/100)/10}k`:n,s=r[e+Ie],i=s===-1?{}:Object.assign({},t[s]);return Object.assign(i,{cluster:!0,cluster_id:r[e+A],point_count:n,point_count_abbreviated:o})}function W(r){return r/360+.5}function H(r){const e=Math.sin(r*Math.PI/180),t=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return t<0?0:t>1?1:t}function or(r){return(r-.5)*360}function sr(r){const e=(180-r*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}function ce(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}class E{static isAdvancedMarkerAvailable(e){return google.maps.marker&&e.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(Number.isFinite(e.position.lat)&&Number.isFinite(e.position.lng))return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return this.isAdvancedMarker(e)?!0:e.getVisible()}}class V{constructor({markers:e,position:t}){this.markers=[],e&&(this.markers=e),t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(this.markers.length===0&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(E.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>E.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&(E.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function O(r,e="assertion failed"){if(r==null)throw Error(e)}const ar=(r,e,t,n)=>{const o=r.getBounds();O(o);const s=$e(o,e,n);return t.filter(i=>s.contains(E.getPosition(i)))},$e=(r,e,t)=>{const{northEast:n,southWest:o}=lr(r,e),s=ur({northEast:n,southWest:o},t);return cr(s,e)},ir=(r,e,t)=>{const n=$e(r,e,t),o=n.getNorthEast(),s=n.getSouthWest();return[s.lng(),s.lat(),o.lng(),o.lat()]},lr=(r,e)=>{const t=e.fromLatLngToDivPixel(r.getNorthEast()),n=e.fromLatLngToDivPixel(r.getSouthWest());return O(t),O(n),{northEast:t,southWest:n}},ur=({northEast:r,southWest:e},t)=>(r.x+=t,r.y-=t,e.x-=t,e.y+=t,{northEast:r,southWest:e}),cr=({northEast:r,southWest:e},t)=>{const n=t.fromDivPixelToLatLng(e),o=t.fromDivPixelToLatLng(r);return new google.maps.LatLngBounds(n,o)};class De{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return dr(e)}}class pr extends De{constructor(e){var{viewportPadding:t=60}=e,n=ce(e,["viewportPadding"]);super(n),this.viewportPadding=60,this.viewportPadding=t}calculate({markers:e,map:t,mapCanvasProjection:n}){const o=t.getZoom();return O(o),o>=this.maxZoom?{clusters:this.noop({markers:e}),changed:!1}:{clusters:this.cluster({markers:ar(t,n,e,this.viewportPadding),map:t,mapCanvasProjection:n})}}}const dr=r=>r.map(t=>new V({position:E.getPosition(t),markers:[t]}));class fr extends De{constructor(e){var{maxZoom:t,radius:n=60}=e,o=ce(e,["maxZoom","radius"]);super({maxZoom:t}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new Be(Object.assign({maxZoom:this.maxZoom,radius:n},o))}calculate(e){let t=!1,n=e.map.getZoom();O(n),n=Math.round(n);const o={zoom:n};if(!K(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const s=this.markers.map(i=>{const u=E.getPosition(i);return{type:"Feature",geometry:{type:"Point",coordinates:[u.lng(),u.lat()]},properties:{marker:i}}});this.superCluster.load(s)}return t||(this.state.zoom<=this.maxZoom||o.zoom<=this.maxZoom)&&(t=!K(this.state,o)),this.state=o,e.markers.length===0?(this.clusters=[],{clusters:this.clusters,changed:t}):(t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t})}cluster({map:e}){const t=e.getZoom();return O(t),this.superCluster.getClusters([-180,-90,180,90],Math.round(t)).map(n=>this.transformCluster(n))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new V({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map(s=>s.properties.marker),position:{lat:t,lng:e}});const o=n.marker;return new V({markers:[o],position:E.getPosition(o)})}}class mr extends pr{constructor(e){var{maxZoom:t,radius:n=60,viewportPadding:o=60}=e,s=ce(e,["maxZoom","radius","viewportPadding"]);super({maxZoom:t,viewportPadding:o}),this.markers=[],this.clusters=[],this.superCluster=new Be(Object.assign({maxZoom:this.maxZoom,radius:n},s)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(e){const t=this.getViewportState(e);let n=!K(this.state,t);if(!K(e.markers,this.markers)){n=!0,this.markers=[...e.markers];const o=this.markers.map(s=>{const i=E.getPosition(s);return{type:"Feature",geometry:{type:"Point",coordinates:[i.lng(),i.lat()]},properties:{marker:s}}});this.superCluster.load(o)}return n&&(this.clusters=this.cluster(e),this.state=t),{clusters:this.clusters,changed:n}}cluster(e){const t=this.getViewportState(e);return this.superCluster.getClusters(t.view,t.zoom).map(n=>this.transformCluster(n))}transformCluster({geometry:{coordinates:[e,t]},properties:n}){if(n.cluster)return new V({markers:this.superCluster.getLeaves(n.cluster_id,1/0).map(s=>s.properties.marker),position:{lat:t,lng:e}});const o=n.marker;return new V({markers:[o],position:E.getPosition(o)})}getViewportState(e){const t=e.map.getZoom(),n=e.map.getBounds();return O(t),O(n),{zoom:Math.round(t),view:ir(n,e.mapCanvasProjection,this.viewportPadding)}}}class hr{constructor(e,t){this.markers={sum:e.length};const n=t.map(s=>s.count),o=n.reduce((s,i)=>s+i,0);this.clusters={count:t.length,markers:{mean:o/t.length,sum:o,min:Math.min(...n),max:Math.max(...n)}}}}class gr{render({count:e,position:t},n,o){const i=`<svg fill="${e>Math.max(10,n.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
3
3
  <circle cx="120" cy="120" opacity=".6" r="70" />
4
4
  <circle cx="120" cy="120" opacity=".3" r="90" />
5
5
  <circle cx="120" cy="120" opacity=".2" r="110" />
6
6
  <text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>
7
- </svg>`,u=`Cluster of ${e} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+e;if(k.isAdvancedMarkerAvailable(s)){const c=new DOMParser().parseFromString(i,"image/svg+xml").documentElement;c.setAttribute("transform","translate(0 25)");const m={map:s,position:t,zIndex:a,title:u,content:c};return new google.maps.marker.AdvancedMarkerElement(m)}const d={position:t,zIndex:a,title:u,icon:{url:`data:image/svg+xml;base64,${btoa(i)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(d)}}function mr(n,e){for(let t in e.prototype)n.prototype[t]=e.prototype[t]}class de{constructor(){mr(de,google.maps.OverlayView)}}var A;(function(n){n.CLUSTERING_BEGIN="clusteringbegin",n.CLUSTERING_END="clusteringend",n.CLUSTER_CLICK="click",n.GMP_CLICK="gmp-click"})(A||(A={}));const gr=(n,e,t)=>{e.bounds&&t.fitBounds(e.bounds)};class vr extends de{constructor({map:e,markers:t=[],algorithmOptions:r={},algorithm:s=new dr(r),renderer:o=new hr,onClusterClick:i=gr}){super(),this.map=null,this.idleListener=null,this.markers=[...t],this.clusters=[],this.algorithm=s,this.renderer=o,this.onClusterClick=i,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(r=>{this.addMarker(r,!0)}),t||this.render()}removeMarker(e,t){const r=this.markers.indexOf(e);return r===-1?!1:(k.setMap(e,null),this.markers.splice(r,1),t||this.render(),!0)}removeMarkers(e,t){let r=!1;return e.forEach(s=>{r=this.removeMarker(s,!0)||r}),r&&!t&&this.render(),r}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,A.CLUSTERING_BEGIN,this);const{clusters:t,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||r==null){const s=new Set;for(const i of t)i.markers.length==1&&s.add(i.markers[0]);const o=[];for(const i of this.clusters)i.marker!=null&&(i.markers.length==1?s.has(i.marker)||k.setMap(i.marker,null):o.push(i.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>o.forEach(i=>k.setMap(i,null)))}google.maps.event.trigger(this,A.CLUSTERING_END,this)}}onAdd(){const e=this.getMap();b(e),this.idleListener=e.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>k.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new fr(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(r=>{if(r.markers.length===1)r.marker=r.markers[0];else if(r.marker=this.renderer.render(r,e,t),r.markers.forEach(s=>k.setMap(s,null)),this.onClusterClick){const s=k.isAdvancedMarker(r.marker)?A.GMP_CLICK:A.CLUSTER_CLICK;r.marker.addListener(s,o=>{google.maps.event.trigger(this,A.CLUSTER_CLICK,r),this.onClusterClick(o,r,t)})}k.setMap(r.marker,t)})}}const Re=Object.values(A),yr=l.defineComponent({name:"MarkerCluster",props:{options:{type:Object,default:()=>({})}},emits:Re,setup(n,{emit:e,expose:t,slots:r}){const s=l.ref(),o=l.inject(T,l.ref()),i=l.inject(L,l.ref());return l.provide(ae,s),l.watch(o,()=>{o.value&&(s.value=l.markRaw(new vr({map:o.value,algorithm:new pr(n.options.algorithmOptions??{}),...n.options})),Re.forEach(u=>{var a;(a=s.value)==null||a.addListener(u,d=>e(u,d))}))},{immediate:!0}),l.onBeforeUnmount(()=>{var u;s.value&&((u=i.value)==null||u.event.clearInstanceListeners(s.value),s.value.clearMarkers(),s.value.setMap(null))}),t({markerCluster:s}),()=>{var u;return(u=r.default)==null?void 0:u.call(r)}}}),wr=l.defineComponent({inheritAttrs:!1,props:{options:{type:Object,required:!0}},setup(n,{slots:e,emit:t,expose:r}){const s=l.ref(),o=l.computed(()=>{var a;return(a=e.default)==null?void 0:a.call(e).some(d=>d.type!==l.Comment)}),i=l.computed(()=>({...n.options,element:s.value})),u=N(Y,[],i,t);return r({customMarker:u}),{customMarkerRef:s,customMarker:u,hasSlotContent:o}}});const Er={key:0,class:"custom-marker-wrapper"};function kr(n,e,t,r,s,o){return n.hasSlotContent?(l.openBlock(),l.createElementBlock("div",Er,[l.createElementVNode("div",l.mergeProps({ref:"customMarkerRef",style:{cursor:n.$attrs.onClick?"pointer":void 0}},n.$attrs),[l.renderSlot(n.$slots,"default",{},void 0,!0)],16)])):l.createCommentVNode("",!0)}const _r=G(wr,[["render",kr],["__scopeId","data-v-2d2d343a"]]),Cr=l.defineComponent({name:"HeatmapLayer",props:{options:{type:Object,default:()=>({})}},setup(n){const e=l.ref(),t=l.inject(T,l.ref()),r=l.inject(L,l.ref());return l.watch([t,()=>n.options],([s,o],[i,u])=>{const a=!F(o,u)||t.value!==i;if(t.value&&r.value&&a){let d;if(o.data&&!(o.data instanceof r.value.MVCArray)){const p=r.value.LatLng,c=o.data.map(m=>m instanceof p||"location"in m&&(m.location instanceof p||m.location===null)?m:"location"in m?{...m,location:new p(m.location)}:new p(m));d={...o,data:c}}else d=o;e.value?e.value.setOptions(d):e.value=l.markRaw(new r.value.visualization.HeatmapLayer({...d,map:t.value}))}},{immediate:!0}),l.onBeforeUnmount(()=>{e.value&&e.value.setMap(null)}),{heatmapLayer:e}},render:()=>null});exports.AdvancedMarker=at;exports.Circle=pt;exports.CustomControl=gt;exports.CustomMarker=_r;exports.GoogleMap=tt;exports.HeatmapLayer=Cr;exports.InfoWindow=Et;exports.Marker=lt;exports.MarkerCluster=yr;exports.Polygon=ct;exports.Polyline=ut;exports.Rectangle=dt;exports.apiSymbol=L;exports.mapSymbol=T;exports.mapTilesLoadedSymbol=le;
7
+ </svg>`,u=`Cluster of ${e} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+e;if(E.isAdvancedMarkerAvailable(o)){const c=new DOMParser().parseFromString(i,"image/svg+xml").documentElement;c.setAttribute("transform","translate(0 25)");const m={map:o,position:t,zIndex:a,title:u,content:c};return new google.maps.marker.AdvancedMarkerElement(m)}const p={position:t,zIndex:a,title:u,icon:{url:`data:image/svg+xml;base64,${btoa(i)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(p)}}function vr(r,e){for(let t in e.prototype)r.prototype[t]=e.prototype[t]}class pe{constructor(){vr(pe,google.maps.OverlayView)}}var q;(function(r){r.CLUSTERING_BEGIN="clusteringbegin",r.CLUSTERING_END="clusteringend",r.CLUSTER_CLICK="click",r.GMP_CLICK="gmp-click"})(q||(q={}));const yr=(r,e,t)=>{e.bounds&&t.fitBounds(e.bounds)};class wr extends pe{constructor({map:e,markers:t=[],algorithmOptions:n={},algorithm:o=new fr(n),renderer:s=new gr,onClusterClick:i=yr}){super(),this.map=null,this.idleListener=null,this.markers=[...t],this.clusters=[],this.algorithm=o,this.renderer=s,this.onClusterClick=i,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(n=>{this.addMarker(n,!0)}),t||this.render()}removeMarker(e,t){const n=this.markers.indexOf(e);return n===-1?!1:(E.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)}removeMarkers(e,t){let n=!1;return e.forEach(o=>{n=this.removeMarker(o,!0)||n}),n&&!t&&this.render(),n}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,q.CLUSTERING_BEGIN,this);const{clusters:t,changed:n}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(n||n==null){const o=new Set;for(const i of t)i.markers.length==1&&o.add(i.markers[0]);const s=[];for(const i of this.clusters)i.marker!=null&&(i.markers.length==1?o.has(i.marker)||E.setMap(i.marker,null):s.push(i.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>s.forEach(i=>E.setMap(i,null)))}google.maps.event.trigger(this,q.CLUSTERING_END,this)}}onAdd(){const e=this.getMap();O(e),this.idleListener=e.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>E.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}renderClusters(){const e=new hr(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(n=>{if(n.markers.length===1)n.marker=n.markers[0];else if(n.marker=this.renderer.render(n,e,t),n.markers.forEach(o=>E.setMap(o,null)),this.onClusterClick){const o=E.isAdvancedMarker(n.marker)?q.GMP_CLICK:q.CLUSTER_CLICK;n.marker.addListener(o,s=>{google.maps.event.trigger(this,q.CLUSTER_CLICK,n),this.onClusterClick(s,n,t)})}E.setMap(n.marker,t)})}}const xe=Object.values(q),_r=l.defineComponent({name:"MarkerCluster",props:{options:{type:Object,default:()=>({})}},emits:xe,setup(r,{emit:e,expose:t,slots:n}){const o=l.ref(),s=l.inject(T,l.ref()),i=l.inject(L,l.ref());return l.provide(ae,o),l.watch(s,()=>{s.value&&(o.value=l.markRaw(new wr({map:s.value,algorithm:new mr(r.options.algorithmOptions??{}),...r.options})),xe.forEach(u=>{var a;(a=o.value)==null||a.addListener(u,p=>e(u,p))}))},{immediate:!0}),l.onBeforeUnmount(()=>{var u;o.value&&((u=i.value)==null||u.event.clearInstanceListeners(o.value),o.value.clearMarkers(),o.value.setMap(null))}),t({markerCluster:o}),()=>{var u;return(u=n.default)==null?void 0:u.call(n)}}}),Er=l.defineComponent({inheritAttrs:!1,props:{options:{type:Object,required:!0}},setup(r,{slots:e,emit:t,expose:n}){const o=l.ref(),s=l.computed(()=>{var a;return(a=e.default)==null?void 0:a.call(e).some(p=>p.type!==l.Comment)}),i=l.computed(()=>({...r.options,element:o.value})),u=B(Y,[],i,t);return n({customMarker:u}),{customMarkerRef:o,customMarker:u,hasSlotContent:s}}});const kr={key:0,class:"custom-marker-wrapper"};function Cr(r,e,t,n,o,s){return r.hasSlotContent?(l.openBlock(),l.createElementBlock("div",kr,[l.createElementVNode("div",l.mergeProps({ref:"customMarkerRef",style:{cursor:r.$attrs.onClick?"pointer":void 0}},r.$attrs),[l.renderSlot(r.$slots,"default",{},void 0,!0)],16)])):l.createCommentVNode("",!0)}const Mr=G(Er,[["render",Cr],["__scopeId","data-v-2d2d343a"]]),Or=l.defineComponent({name:"HeatmapLayer",props:{options:{type:Object,default:()=>({})}},setup(r){const e=l.ref(),t=l.inject(T,l.ref()),n=l.inject(L,l.ref());return l.watch([t,()=>r.options],([o,s],[i,u])=>{const a=!Z(s,u)||t.value!==i;if(t.value&&n.value&&a){let p;if(s.data&&!(s.data instanceof n.value.MVCArray)){const f=n.value.LatLng,c=s.data.map(m=>m instanceof f||"location"in m&&(m.location instanceof f||m.location===null)?m:"location"in m?{...m,location:new f(m.location)}:new f(m));p={...s,data:c}}else p=s;e.value?e.value.setOptions(p):e.value=l.markRaw(new n.value.visualization.HeatmapLayer({...p,map:t.value}))}},{immediate:!0}),l.onBeforeUnmount(()=>{e.value&&e.value.setMap(null)}),{heatmapLayer:e}},render:()=>null});exports.AdvancedMarker=ut;exports.Circle=mt;exports.CustomControl=yt;exports.CustomMarker=Mr;exports.GoogleMap=nt;exports.HeatmapLayer=Or;exports.InfoWindow=kt;exports.Marker=ct;exports.MarkerCluster=_r;exports.Polygon=dt;exports.Polyline=pt;exports.Rectangle=ft;exports.apiSymbol=L;exports.mapSymbol=T;exports.mapTilesLoadedSymbol=ie;