PageSourceSearch

https://itimlabina.co.il/assets/googleMaps.40caa5eb.js

js itimlabina.co.il collected 2026-10-03 02:51:07 UTC 32,288 bytes, 19 lines download raw bytes

1import{e as $e,_ as E,o as L,f as x,r as C,h as V,n as we,j as be,m as ve,t as _e,k as ee,b as ke,c as Oe}from"./index.8b2eb276.js";var Me=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 s,n,o;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(n=s;n--!==0;)if(!r(e[n],t[n]))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),s=o.length,s!==Object.keys(t).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=s;n--!==0;){var a=o[n];if(!r(e[a],t[a]))return!1}return!0}return e!==e&&t!==t},te=$e(Me),se=r=>{let e=!1,t;return()=>(e||(e=!0,t=r()),t)};class G{static isServer(){return typeof document=="undefined"}}function Pe(r){const e=document.createElement("SCRIPT");if(typeof r!="object")throw new Error("options should  be an object");Array.prototype.isPrototypeOf(r.libraries)&&(r.libraries=r.libraries.join(",")),r.v||(r.v=3.47),r.callback="vueGoogleMapsInit";let s="https://maps.googleapis.com/maps/api/js?"+Object.keys(r).map(n=>encodeURIComponent(n)+"="+encodeURIComponent(r[n])).join("&");return e.setAttribute("src",s),e.setAttribute("async",""),e.setAttribute("defer",""),e}let re=!1;function Ae(r){if(!G.isServer()){if(re)throw new Error("You already started the loading of google maps");{re=!0;const e=Pe(r);document.head.appendChild(e)}}}var ue=(r,e,t)=>{for(let s of t){const n=`on${s.charAt(0).toUpperCase()}${s.slice(1)}`.replace(/[-_]+(.)?/g,(o,a)=>a?a.toUpperCase():"");r.$props[n]||r.$attrs[n]?e.addListener(s,o=>{r.$emit(s,o)}):(r.$gmapOptions.autobindAllEvents||r.$attrs[s])&&e.addListener(s,o=>{r.$emit(s,o)})}};function he(r,e,t,s=!1){let n=!1;function o(){n||(n=!0,r.$nextTick(()=>{n=!1,t()}))}for(let a of e)r.$watch(a,o,{immediate:s})}class ne{static capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}}function z(r,e){return Object.keys(e).reduce((t,s)=>(r[s]!==void 0&&(t[s]=r[s]),t),{})}function q(r,e,t){for(let s in t){let{twoWay:n,type:o,trackProperties:a,noBind:c}=t[s];if(c)continue;const i="set"+ne.capitalizeFirstLetter(s),p="get"+ne.capitalizeFirstLetter(s),u=s.toLowerCase()+"_changed",l=r[s];if(typeof e[i]=="undefined")throw new Error(`${i} is not a method of (the Maps object corresponding to) ${r.$options._componentTag}`);o!==Object||!a?r.$watch(s,()=>{const h=r[s];e[i](h)},{immediate:typeof l!="undefined",deep:o===Object}):he(r,a.map(h=>`${s}.${h}`),()=>{e[i](r[s])},r[s]!==void 0),n&&(r.$gmapOptions.autobindAllEvents||r.$attrs[u])&&e.addListener(u,()=>{r.$emit(u,e[p]())})}}var je={inject:{$mapPromise:{default:"abcdef"}},provide(){return this.$mapPromise.then(r=>{this.$map=r}),{}}};function k(r){const{mappedProps:e,name:t,ctr:s,ctrArgs:n,events:o,beforeCreate:a,afterCreate:c,props:i,...p}=r,u=`$${t}Promise`,l=`$${t}Object`;return Ce(!(p.props instanceof Array),"`props` should be an object, not Array"),{...typeof GENERATE_DOC!="undefined"?{$vgmOptions:r}:{},mixins:[je],props:{...i,...K(e)},render(){return""},provide(){const h=this.$mapPromise.then(d=>{this.$map=d;const m={...this.options,map:d,...z(this,e)};if(delete m.options,a){const f=a.bind(this)(m);if(f instanceof Promise)return f.then(()=>({options:m}))}return{options:m}}).then(({options:d})=>{const m=s();return this[l]=n?new(Function.prototype.bind.call(m,null,...n(d,z(this,i||{})))):new m(d),q(this,this[l],e),ue(this,this[l],o),c&&c.bind(this)(this[l]),this[l]});return this[u]=h,{[u]:h}},unmounted(){this[l]&&this[l].setMap&&this[l].setMap(null)},...p}}function Ce(r,e){if(!r)throw new Error(e)}function K(r){return Object.entries(r).map(([e,t])=>{const s={};return"type"in t&&(s.type=t.type),"default"in t&&(s.default=t.default),"required"in t&&(s.required=t.required),[e,s]}).reduce((e,[t,s])=>(e[t]=s,e),{})}const Ee={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},Le=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];var xe=k({mappedProps:Ee,props:{deepWatch:{type:Boolean,default:!1}},events:Le,name:"polyline",ctr:()=>google.maps.Polyline,afterCreate(){let r=()=>{};this.$watch("path",e=>{if(e){r(),this.$polylineObject.setPath(e);const t=this.$polylineObject.getPath(),s=[],n=()=>{this.$emit("path_changed",this.$polylineObject.getPath())};s.push([t,t.addListener("insert_at",n)]),s.push([t,t.addListener("remove_at",n)]),s.push([t,t.addListener("set_at",n)]),r
1=()=>{s.map(([o,a])=>google.maps.event.removeListener(a))}}},{deep:this.deepWatch,immediate:!0})}});const We={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},Be=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];var ze=k({props:{deepWatch:{type:Boolean,default:!1}},events:Be,mappedProps:We,name:"polygon",ctr:()=>google.maps.Polygon,beforeCreate(r){r.path||delete r.path,r.paths||delete r.paths},afterCreate(r){let e=()=>{};this.$watch("paths",t=>{if(t){e(),r.setPaths(t);const s=()=>{this.$emit("paths_changed",r.getPaths())},n=[],o=r.getPaths();for(let a=0;a<o.getLength();a++){let c=o.getAt(a);n.push([c,c.addListener("insert_at",s)]),n.push([c,c.addListener("remove_at",s)]),n.push([c,c.addListener("set_at",s)])}n.push([o,o.addListener("insert_at",s)]),n.push([o,o.addListener("remove_at",s)]),n.push([o,o.addListener("set_at",s)]),e=()=>{n.map(([a,c])=>google.maps.event.removeListener(c))}}},{deep:this.deepWatch,immediate:!0}),this.$watch("path",t=>{if(t){e(),r.setPaths(t);const s=r.getPath(),n=[],o=()=>{this.$emit("path_changed",r.getPath())};n.push([s,s.addListener("insert_at",o)]),n.push([s,s.addListener("remove_at",o)]),n.push([s,s.addListener("set_at",o)]),e=()=>{n.map(([a,c])=>google.maps.event.removeListener(c))}}},{deep:this.deepWatch,immediate:!0})}});const Se={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},Te=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];var Re=k({mappedProps:Se,name:"circle",ctr:()=>google.maps.Circle,events:Te});const Ne={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},Fe=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];var Ue=k({mappedProps:Ne,name:"rectangle",ctr:()=>google.maps.Rectangle,events:Fe});const Ze={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},T=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],Ie=k({mappedProps:Ze,events:T,n
1ame:"marker",ctr:()=>google.maps.Marker,inject:{$clusterPromise:{default:null}},emits:T,unmounted(){!this.$markerObject||(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate(r){return this.$clusterPromise&&(r.map=null),this.$clusterPromise},afterCreate(r){T.forEach(e=>{r.addListener(e,t=>{this.$emit(e,t)})}),this.$clusterPromise&&this.$clusterPromise.then(e=>{this.$clusterObject=e,e.addMarker(r)})}});function Ge(r,e,t,s,n,o){return L(),x("div",{onClick:e[0]||(e[0]=()=>{console.log("sdfsd")})},[C(r.$slots,"default")])}var De=E(Ie,[["render",Ge]]);const oe=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],R=1,P=8;class Y{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,s]=new Uint8Array(e,0,2);if(t!==219)throw new Error("Data does not appear to be in a KDBush format.");const n=s>>4;if(n!==R)throw new Error(`Got v${n} data when expected v${R}.`);const o=oe[s&15];if(!o)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[c]=new Uint32Array(e,4,1);return new Y(c,a,o,e)}constructor(e,t=64,s=Float64Array,n){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=s,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const o=oe.indexOf(this.ArrayType),a=e*2*this.ArrayType.BYTES_PER_ELEMENT,c=e*this.IndexArrayType.BYTES_PER_ELEMENT,i=(8-c%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${s}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,P,e),this.coords=new this.ArrayType(this.data,P+c+i,e*2),this._pos=e*2,this._finished=!0):(this.data=new ArrayBuffer(P+a+c+i),this.ids=new this.IndexArrayType(this.data,P,e),this.coords=new this.ArrayType(this.data,P+c+i,e*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(R<<4)+o]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const s=this._pos>>1;return this.ids[s]=s,this.coords[this._pos++]=e,this.coords[this._pos++]=t,s}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return D(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,s,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:a,nodeSize:c}=this,i=[0,o.length-1,0],p=[];for(;i.length;){const u=i.pop()||0,l=i.pop()||0,h=i.pop()||0;if(l-h<=c){for(let g=h;g<=l;g++){const y=a[2*g],w=a[2*g+1];y>=e&&y<=s&&w>=t&&w<=n&&p.push(o[g])}continue}const d=h+l>>1,m=a[2*d],f=a[2*d+1];m>=e&&m<=s&&f>=t&&f<=n&&p.push(o[d]),(u===0?e<=m:t<=f)&&(i.push(h),i.push(d-1),i.push(1-u)),(u===0?s>=m:n>=f)&&(i.push(d+1),i.push(l),i.push(1-u))}return p}within(e,t,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:a}=this,c=[0,n.length-1,0],i=[],p=s*s;for(;c.length;){const u=c.pop()||0,l=c.pop()||0,h=c.pop()||0;if(l-h<=a){for(let g=h;g<=l;g++)ie(o[2*g],o[2*g+1],e,t)<=p&&i.push(n[g]);continue}const d=h+l>>1,m=o[2*d],f=o[2*d+1];ie(m,f,e,t)<=p&&i.push(n[d]),(u===0?e-s<=m:t-s<=f)&&(c.push(h),c.push(d-1),c.push(1-u)),(u===0?e+s>=m:t+s>=f)&&(c.push(d+1),c.push(l),c.push(1-u))}return i}}function D(r,e,t,s,n,o){if(n-s<=t)return;const a=s+n>>1;de(r,e,a,s,n,o),D(r,e,t,s,a-1,1-o),D(r,e,t,a+1,n,1-o)}function de(r,e,t,s,n,o){for(;n>s;){if(n-s>600){const p=n-s+1,u=t-s+1,l=Math.log(p),h=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*h*(p-h)/p)*(u-p/2<0?-1:1),m=Math.max(s,Math.floor(t-u*h/p+d)),f=Math.min(n,Math.floor(t+(p-u)*h/p+d));de(r,e,t,m,f,o)}const a=e[2*t+o];let c=s,i=n;for(A(r,e,s,t),e[2*n+o]>a&&A(r,e,s,n);c<i;){for(A(r,e,c,i),c++,i--;e[2*c+o]<a;)c++;for(;e[2*i+o]>a;)i--}e[2*s+o]===a?A(r,e,s,i):(i++,A(r,e,i,n)),i<=t&&(s=i+1),t<=i&&(n=i-1)}}function A(r,e,t,s){N(r,t,s),N(e,2*t,2*s),N(e,2*t+1,2*s+1)}function N(r,e,t){const s=r[e];r[e]=r[t],r[t]=s}function ie(r,e,t,s){const n=r-t,o=e-s;return n*n+o*o}const He={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:r=>r},ae=Math.fround||(r=>e=>(r[0]=+e,r[0]))(new Float32Array(1)),M=2,_=3,F=4,v=5,me=6;class qe{constructor(e){this.options=Object.assign(Object.create(He),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:s,maxZoom:n}=this.options;t&&console.time("total time");const o=`prepare ${e.length} points`;t&&console.time(o),this.points=e;const a=[];for(let i=0;i<e.length;i++){const p=e[i];if(!p.geometry)continue;const[u,l]=p.geometry.coordinates,h=ae(W(u)),d=ae(B(l));a.push(h,d,1/0,i,-1,1),this.options.reduce&&a.push(0)}let c=this.trees[n+1]=this._createTree(a);t&&console.timeEnd(o);for(let i=n;i>=s;i--){const p=+Date.now();c=this.trees[i]=this._createTree(this._cluster(c,i)),t&&console.log("z%d: %d clusters in %dms",i,c.numItems,+Date.now()-p)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let s=((e[0]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,e[1]));let o=e[2]===180?180:((e[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)s=-180,o=180;else if(s>o){const l=this.getClusters([s,n,180,a],t),h=this.getClusters([-180,n,o,a],t);return l.concat(h)}const c=this.trees[this._limitZoom(t)],i=c.range(W(s),B(a),W(o),B(n)),p=c.data,u=[];for(const l of i){const h=this.stride*l;u.push(p[h+v]>1?ce(p,h,this.clusterProps):this.points[p[h+_]])}return u}getChildren(e){const t=this._getOriginId(e),s=this._getOriginZoom(e),n="No cluster with the specified id.",o=this.trees[s];if(!o)throw new Error(n);const a=o.data;if(t*this.stride>=a.length)throw new Error(n);const c=this.options.radius/(this.options.extent*Math.pow(2,s-1)),i=a[t*this.stride],p=a[t*this.stride+1],u=o.within(i,p,c),l=[];for(const h of u){const d=h*this.stride;a[d+F]===e&&l.push(a[d+v]>1?ce(a,d,this.clusterProps):this.points[a[d+_]])}if(l.length===0)throw new Error(n);return l}getLeaves(e,t,s){t=t||10,s=s||0;const n=[];return this._appendLeaves(n,e,t,s,0),n}getTile(e,t,s){const n=this.trees[this._limitZoom(e)],o=Math.pow(2,e),{extent:a,radius:c}=this.options,i=c/a,p=(s-i)/o,u=(s+1+i)/o,l={features:[]};
1return this._addTileFeatures(n.range((t-i)/o,p,(t+1+i)/o,u),n.data,t,s,o,l),t===0&&this._addTileFeatures(n.range(1-i/o,p,1,u),n.data,o,s,o,l),t===o-1&&this._addTileFeatures(n.range(0,p,i/o,u),n.data,-1,s,o,l),l.features.length?l:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const s=this.getChildren(e);if(t++,s.length!==1)break;e=s[0].properties.cluster_id}return t}_appendLeaves(e,t,s,n,o){const a=this.getChildren(t);for(const c of a){const i=c.properties;if(i&&i.cluster?o+i.point_count<=n?o+=i.point_count:o=this._appendLeaves(e,i.cluster_id,s,n,o):o<n?o++:e.push(c),e.length===s)break}return o}_createTree(e){const t=new Y(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let s=0;s<e.length;s+=this.stride)t.add(e[s],e[s+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,s,n,o,a){for(const c of e){const i=c*this.stride,p=t[i+v]>1;let u,l,h;if(p)u=fe(t,i,this.clusterProps),l=t[i],h=t[i+1];else{const f=this.points[t[i+_]];u=f.properties;const[g,y]=f.geometry.coordinates;l=W(g),h=B(y)}const d={type:1,geometry:[[Math.round(this.options.extent*(l*o-s)),Math.round(this.options.extent*(h*o-n))]],tags:u};let m;p||this.options.generateId?m=t[i+_]:m=this.points[t[i+_]].id,m!==void 0&&(d.id=m),a.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:s,extent:n,reduce:o,minPoints:a}=this.options,c=s/(n*Math.pow(2,t)),i=e.data,p=[],u=this.stride;for(let l=0;l<i.length;l+=u){if(i[l+M]<=t)continue;i[l+M]=t;const h=i[l],d=i[l+1],m=e.within(i[l],i[l+1],c),f=i[l+v];let g=f;for(const y of m){const w=y*u;i[w+M]>t&&(g+=i[w+v])}if(g>f&&g>=a){let y=h*f,w=d*f,b,Q=-1;const S=((l/u|0)<<5)+(t+1)+this.points.length;for(const ye of m){const O=ye*u;if(i[O+M]<=t)continue;i[O+M]=t;const X=i[O+v];y+=i[O]*X,w+=i[O+1]*X,i[O+F]=S,o&&(b||(b=this._map(i,l,!0),Q=this.clusterProps.length,this.clusterProps.push(b)),o(b,this._map(i,O)))}i[l+F]=S,p.push(y/g,w/g,1/0,S,-1,g),o&&p.push(Q)}else{for(let y=0;y<u;y++)p.push(i[l+y]);if(g>1)for(const y of m){const w=y*u;if(!(i[w+M]<=t)){i[w+M]=t;for(let b=0;b<u;b++)p.push(i[w+b])}}}}return p}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,s){if(e[t+v]>1){const a=this.clusterProps[e[t+me]];return s?Object.assign({},a):a}const n=this.points[e[t+_]].properties,o=this.options.map(n);return s&&o===n?Object.assign({},o):o}}function ce(r,e,t){return{type:"Feature",id:r[e+_],properties:fe(r,e,t),geometry:{type:"Point",coordinates:[Ke(r[e]),Ye(r[e+1])]}}}function fe(r,e,t){const s=r[e+v],n=s>=1e4?`${Math.round(s/1e3)}k`:s>=1e3?`${Math.round(s/100)/10}k`:s,o=r[e+me],a=o===-1?{}:Object.assign({},t[o]);return Object.assign(a,{cluster:!0,cluster_id:r[e+_],point_count:s,point_count_abbreviated:n})}function W(r){return r/360+.5}function B(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 Ke(r){return(r-.5)*360}function Ye(r){const e=(180-r*360)*Math.PI/180;return 360*Math.atan(Math.exp(e))/Math.PI-90}/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */function Je(r,e){var t={};for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&e.indexOf(s)<0&&(t[s]=r[s]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,s=Object.getOwnPropertySymbols(r);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(r,s[n])&&(t[s[n]]=r[s[n]]);return t}class ${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(e.position.lat&&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 H{constructor({markers:e,position:t}){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($.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(e=>$.getVisible(e)).length}push(e){this.markers.push(e)}delete(){this.marker&&($.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class Qe{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return Xe(e)}}const Xe=r=>r.map(t=>new H({position:$.getPosition(t),markers:[t]}));class Ve extends Qe{constructor(e){var{maxZoom:t,radius:s=60}=e,n=Je(e,["maxZoom","radius"]);super({maxZoom:t}),this.state={zoom:-1}
14,this.superCluster=new qe(Object.assign({maxZoom:this.maxZoom,radius:s},n))}calculate(e){let t=!1;const s={zoom:e.map.getZoom()};if(!te(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const n=this.markers.map(o=>{const a=$.getPosition(o),c=[a.lng(),a.lat()];return{type:"Feature",geometry:{type:"Point",coordinates:c},properties:{marker:o}}});this.superCluster.load(n)}return t||(this.state.zoom<=this.maxZoom||s.zoom<=this.maxZoom)&&(t=!te(this.state,s)),this.state=s,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}}cluster({map:e}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(e.getZoom())).map(t=>this.transformCluster(t))}transformCluster({geometry:{coordinates:[e,t]},properties:s}){if(s.cluster)return new H({markers:this.superCluster.getLeaves(s.cluster_id,1/0).map(o=>o.properties.marker),position:{lat:t,lng:e}});const n=s.marker;return new H({markers:[n],position:$.getPosition(n)})}}class et{constructor(e,t){this.markers={sum:e.length};const s=t.map(o=>o.count),n=s.reduce((o,a)=>o+a,0);this.clusters={count:t.length,markers:{mean:n/t.length,sum:n,min:Math.min(...s),max:Math.max(...s)}}}}class tt{render({count:e,position:t},s,n){const a=`<svg fill="${e>Math.max(10,s.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
15<circle cx="120" cy="120" opacity=".6" r="70" />
16<circle cx="120" cy="120" opacity=".3" r="90" />
17<circle cx="120" cy="120" opacity=".2" r="110" />
18<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>
19</svg>`,c=`Cluster of ${e} markers`,i=Number(google.maps.Marker.MAX_ZINDEX)+e;if($.isAdvancedMarkerAvailable(n)){const l=new DOMParser().parseFromString(a,"image/svg+xml").documentElement;l.setAttribute("transform","translate(0 25)");const h={map:n,position:t,zIndex:i,title:c,content:l};return new google.maps.marker.AdvancedMarkerElement(h)}const p={position:t,zIndex:i,title:c,icon:{url:`data:image/svg+xml;base64,${btoa(a)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(p)}}function st(r,e){for(let t in e.prototype)r.prototype[t]=e.prototype[t]}class J{constructor(){st(J,google.maps.OverlayView)}}var j;(function(r){r.CLUSTERING_BEGIN="clusteringbegin",r.CLUSTERING_END="clusteringend",r.CLUSTER_CLICK="click"})(j||(j={}));const rt=(r,e,t)=>{t.fitBounds(e.bounds)};class le extends J{constructor({map:e,markers:t=[],algorithmOptions:s={},algorithm:n=new Ve(s),renderer:o=new tt,onClusterClick:a=rt}){super(),this.markers=[...t],this.clusters=[],this.algorithm=n,this.renderer=o,this.onClusterClick=a,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(s=>{this.addMarker(s,!0)}),t||this.render()}removeMarker(e,t){const s=this.markers.indexOf(e);return s===-1?!1:($.setMap(e,null),this.markers.splice(s,1),t||this.render(),!0)}removeMarkers(e,t){let s=!1;return e.forEach(n=>{s=this.removeMarker(n,!0)||s}),s&&!t&&this.render(),s}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,j.CLUSTERING_BEGIN,this);const{clusters:t,changed:s}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(s||s==null){const n=new Set;for(const a of t)a.markers.length==1&&n.add(a.markers[0]);const o=[];for(const a of this.clusters)a.marker!=null&&(a.markers.length==1?n.has(a.marker)||$.setMap(a.marker,null):o.push(a.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>o.forEach(a=>$.setMap(a,null)))}google.maps.event.trigger(this,j.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(e=>$.setMap(e,null)),this.clusters.forEach(e=>e.delete()),this.clusters=[]}
19renderClusters(){const e=new et(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(s=>{s.markers.length===1?s.marker=s.markers[0]:(s.marker=this.renderer.render(s,e,t),s.markers.forEach(n=>$.setMap(n,null)),this.onClusterClick&&s.marker.addListener("click",n=>{google.maps.event.trigger(this,j.CLUSTER_CLICK,s),this.onClusterClick(n,s,t)})),$.setMap(s.marker,t)})}}const U={maxZoom:{type:Number,twoWay:!1},batchSizeIE:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},enableRetinaIcons:{type:Boolean,twoWay:!1},gridSize:{type:Number,twoWay:!1},ignoreHidden:{type:Boolean,twoWay:!1},imageExtension:{type:String,twoWay:!1},imagePath:{type:String,twoWay:!1},imageSizes:{type:Array,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}},nt=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],ot=k({mappedProps:U,events:nt,name:"cluster",ctr:()=>{if(typeof le=="undefined"){const r="MarkerClusterer is not installed!";throw console.error(r),new Error(r)}return le},ctrArgs:({map:r,...e})=>[r,[],e],afterCreate(r){const e=()=>{const t=r.getMarkers();r.clearMarkers(),r.addMarkers(t)};for(let t in U)U[t].twoWay&&this.$on(t.toLowerCase()+"_changed",e)},updated(){this.$clusterObject&&this.$clusterObject.repaint()},beforeUnmount(){this.$children&&this.$children.length&&this.$children.forEach(r=>{r.$clusterObject===this.$clusterObject&&(r.$clusterObject=null)}),this.$clusterObject&&this.$clusterObject.clearMarkers()}});function it(r,e,t,s,n,o){return L(),x("div",null,[C(r.$slots,"default")])}var at=E(ot,[["render",it]]);const ct={options:{type:Object,required:!1,default(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},lt=["domready","click","closeclick","content_changed"],pt=k({mappedProps:ct,events:lt,name:"infoWindow",ctr:()=>google.maps.InfoWindow,props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted(){const r=this.$refs.infoWindow;r.parentNode.removeChild(r)},beforeCreate(r){if(r.content=this.$refs.infoWindow,this.$markerPromise)return delete r.position,this.$markerPromise.then(e=>(this.$markerObject=e,e))},emits:["closeclick"],methods:{_openInfoWindow(){this.$infoWindowObject.close(),this.opened?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$emit("closeclick")}},afterCreate(){this._openInfoWindow(),this.$watch("opened",()=>{this._openInfoWindow()})}}),ut={ref:"infoWindow"};function ht(r,e,t,s,n,o){return L(),x("div",ut,[C(r.$slots,"default")],512)}var dt=E(pt,[["render",ht]]),mt={props:["resizeBus"],data(){return{_actualResizeBus:null}},created(){typeof this.resizeBus=="undefined"?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback(){this.resize()},isFunction(r){return r&&{}.toString.call(r)==="[object Function]"},_delayedResizeCallback(){this.$nextTick(()=>this._resizeCallback())}},watch:{resizeBus(r){this.$data._actualResizeBus=r},"$data._actualResizeBus"(r,e){e&&e.$off("resize",this._delayedResizeCallback)}},unmounted(){this.$data._actualResizeBus&&this.isFunction(this.$data._actualResizeBus.$off)&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}};function ft(r){let e=0;r(()=>{e+=1},()=>{e=Math.max(0,e-1)},()=>e===0)}const Z={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default(){return{}}}},pe=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],gt=["panBy","panTo","panToBounds","fitBounds"].reduce((r,e)=>(r[e]=function(){this.$mapObject&&this.$mapObject[e].apply(this.$mapObject,arguments)},r),{}),yt={resize(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter(){if(!this.$mapObject)return;const r=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(r)},_resizeCallback(){this.resizePreserveCenter()}},$t={mixins:[mt],props:K({...Z,...pe.reduce((r,e)=>({...r,[`on${e.charAt(0).toUpperCase()}${e.slice(1)}`.replace(/[-_]+(.)?/g,(t,s)=>s?s.toUpperCase():"")]:Function}),{})}),inheritAttrs:!1,provide(){return this.$mapPromise=new Promise((r,e)=>{this.$mapPromiseDeferred={resolve:r,reject:e}}),{$mapPromise:this.$mapPromise}}
19,emits:["center_changed","zoom_changed","bounds_changed"],computed:{finalLat(){return this.center&&typeof this.center.lat=="function"?this.center.lat():this.center.lat},finalLng(){return this.center&&typeof this.center.lng=="function"?this.center.lng():this.center.lng},finalLatLng(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom(r){this.$mapObject&&this.$mapObject.setZoom(r)}},mounted(){return this.$gmapApiPromiseLazy().then(()=>{const r=this.$refs["vue-map"],e={...this.options,...z(this,Z)};return delete e.options,this.$mapObject=new google.maps.Map(r,e),q(this,this.$mapObject,Z),ue(this,this.$mapObject,pe),ft((t,s,n)=>{this.$mapObject.addListener("center_changed",()=>{n()&&this.$emit("center_changed",this.$mapObject.getCenter()),s()}),he(this,["finalLat","finalLng"],()=>{t(),this.$mapObject.setCenter(this.finalLatLng)})}),this.$mapObject.addListener("zoom_changed",()=>{this.$emit("zoom_changed",this.$mapObject.getZoom())}),this.$mapObject.addListener("bounds_changed",()=>{this.$emit("bounds_changed",this.$mapObject.getBounds())}),this.$mapPromiseDeferred.resolve(this.$mapObject),this.$mapObject}).catch(r=>{throw r})},methods:{...yt,...gt}},wt={class:"vue-map-hidden"};function bt(r,e,t,s,n,o){return L(),x("div",{class:be(["vue-map-container",r.$attrs.class])},[V("div",{ref:"vue-map",class:"vue-map",style:we(r.$attrs.style?r.$attrs.style:"")},null,4),V("div",wt,[C(r.$slots,"default")]),C(r.$slots,"visible")],2)}var vt=E($t,[["render",bt]]);const _t={options:{type:Object,twoWay:!1,default:()=>{}},data:{type:Array,twoWay:!0}},kt=[];var Ot=k({mappedProps:_t,name:"heatmap",ctr:()=>google.maps.visualization.HeatmapLayer,events:kt}),Mt=r=>{const e=r.addEventListener?r.addEventListener:r.attachEvent;function t(s,n){if(s==="keydown"){const o=n;n=function(a){const c=document.getElementsByClassName("pac-item-selected").length>0;if(a.which===13&&!c){const i=document.createEvent("Event");i.keyCode=40,i.which=40,o.apply(r,[i])}o.apply(r,[a])}}e.apply(r,[s,n])}r.addEventListener=t,r.attachEvent=t};const I={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},Pt={selectFirstOnEnter:{required:!1,type:Boolean,default:!1},options:{type:Object}},At={mounted(){this.$gmapApiPromiseLazy().then(()=>{if(this.selectFirstOnEnter&&Mt(this.$refs.input),typeof google.maps.places.Autocomplete!="function")throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");const r={...z(this,I),...this.options};this.$autocomplete=new google.maps.places.Autocomplete(this.$refs.input,r),q(this,this.$autocomplete,I),this.$watch("componentRestrictions",e=>{e!==void 0&&this.$autocomplete.setComponentRestrictions(e)}),this.$autocomplete.addListener("place_changed",()=>{this.$emit("place_changed",this.$autocomplete.getPlace())})})},props:{...K(I),...Pt}};function jt(r,e,t,s,n,o){return L(),x("input",ve({ref:"input"},r.$attrs,_e(r.$attrs,!0)),null,16)}var Ct=E(At,[["render",jt]]);let ge=null;function Et(r,e){e={installComponents:!0,autobindAllEvents:!1,...e},ge=ee({data:function(){return{gmapApi:null}}});const t=ee();let s=Lt(e);r.mixin({created(){this.$gmapDefaultResizeBus=t,this.$gmapOptions=e,this.$gmapApiPromiseLazy=s}}),r.$gmapDefaultResizeBus=t,r.$gmapApiPromiseLazy=s,e.installComponents&&(r.component("GMapMap",vt),r.component("GMapMarker",De),r.component("GMapInfoWindow",dt),r.component("GMapCluster",at),r.component("GMapPolyline",xe),r.component("GMapPolygon",ze),r.component("GMapCircle",Re),r.component("GMapRectangle",Ue),r.component("GMapAutocomplete",Ct),r.component("GMapHeatmap",Ot))}function Lt(r){function e(){return ge.gmapApi={},window.google}if(r.load)return se(()=>G.isServer()?new Promise(()=>{}).then(e):new Promise((t,s)=>{try{window.vueGoogleMapsInit=t,Ae(r.load)}catch(n){s(n)}}).then(e));{const t=new Promise(s=>{G.isServer()||(window.vueGoogleMapsInit=s)}).then(e);return se(()=>t)}}var Wt=ke(({app:r})=>{r.use(Et,{load:{key:Oe.gmApikey,libraries:"places,geometry"}})});export{Wt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.