PageSourceSearch

https://ibis-gear.com/_nuxt/CyArX5bC.js

js ibis-gear.com collected 2026-10-08 07:23:29 UTC 36,003 bytes, 1 lines download raw bytes

1import{_ as e,q as t,x as r,R as s,v as n,S as o,m as i,U as a,V as c,W as u}from"./DWaT-nfm.js";const l=e=>{let t,r=!1;return()=>(r||(r=!0,t=e()),t)};class p{static isServer(){return"undefined"==typeof document}}let h=!1;function d(e){if(!p.isServer()){if(h)throw new Error("You already started the loading of google maps");{h=!0;const t=function(e){const t=document.createElement("SCRIPT");if("object"!=typeof e)throw new Error("options should  be an object");Array.prototype.isPrototypeOf(e.libraries)&&(e.libraries=e.libraries.join(",")),e.v||(e.v=3.47),e.callback="vueGoogleMapsInit";let r="https://maps.googleapis.com/maps/api/js?"+Object.keys(e).map(t=>encodeURIComponent(t)+"="+encodeURIComponent(e[t])).join("&");return t.setAttribute("src",r),t.setAttribute("async",""),t.setAttribute("defer",""),t}(e);document.head.appendChild(t)}}}const m=(e,t,r)=>{for(let s of r){const r=`on${s.charAt(0).toUpperCase()}${s.slice(1)}`.replace(/[-_]+(.)?/g,(e,t)=>t?t.toUpperCase():"");(e.$props[r]||e.$attrs[r]||e.$gmapOptions.autobindAllEvents||e.$attrs[s])&&t.addListener(s,t=>{e.$emit(s,t)})}};function f(e,t,r,s=!1){let n=!1;function o(){n||(n=!0,e.$nextTick(()=>{n=!1,r()}))}for(let i of t)e.$watch(i,o,{immediate:s})}class g{static capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}}function y(e,t){return Object.keys(t).reduce((t,r)=>(void 0!==e[r]&&(t[r]=e[r]),t),{})}function b(e,t,r){for(let s in r){let{twoWay:n,type:o,trackProperties:i,noBind:a}=r[s];if(a)continue;const c="set"+g.capitalizeFirstLetter(s),u="get"+g.capitalizeFirstLetter(s),l=s.toLowerCase()+"_changed",p=e[s];if(void 0===t[c])throw new Error(`${c} is not a method of (the Maps object corresponding to) ${e.$options._componentTag}`);o===Object&&i?f(e,i.map(e=>`${s}.${e}`),()=>{t[c](e[s])},void 0!==e[s]):e.$watch(s,()=>{const r=e[s];t[c](r)},{immediate:void 0!==p,deep:o===Object}),n&&(e.$gmapOptions.autobindAllEvents||e.$attrs[l])&&t.addListener(l,()=>{e.$emit(l,t[u]())})}}const w={inject:{$mapPromise:{default:"abcdef"}},provide(){return this.$mapPromise.then(e=>{this.$map=e}),{}}};function v(e){const{mappedProps:t,name:r,ctr:s,ctrArgs:n,events:o,beforeCreate:i,afterCreate:a,props:c,...u}=e,l=`$${r}Promise`,p=`$${r}Object`;return function(e,t){if(!e)throw new Error(t)}(!(u.props instanceof Array),"`props` should be an object, not Array"),{..."undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},mixins:[w],props:{...c,...$(t)},render:()=>"",provide(){const e=this.$mapPromise.then(e=>{this.$map=e;const r={...this.options,map:e,...y(this,t)};if(delete r.options,i){const e=i.bind(this)(r);if(e instanceof Promise)return e.then(()=>({options:r}))}return{options:r}}).then(({options:e})=>{const r=s();return this[p]=n?new(Function.prototype.bind.call(r,null,...n(e,y(this,c||{})))):new r(e),b(this,this[p],t),m(this,this[p],o),a&&a.bind(this)(this[p]),this[p]});return this[l]=e,{[l]:e}},unmounted(){this[p]&&this[p].setMap&&this[p].setMap(null)},...u}}function $(e){return Object.entries(e).map(([e,t])=>{const r={};return"type"in t&&(r.type=t.type),"default"in t&&(r.default=t.default),"required"in t&&(r.required=t.required),[e,r]}).reduce((e,[t,r])=>(e[t]=r,e),{})}const k=v({mappedProps:{draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:()=>google.maps.Polyline,afterCreate(){let e=()=>{};this.$watch("path",t=>{if(t){e(),this.$polylineObject.setPath(t);const r=this.$polylineObject.getPath(),s=[],n=()=>{this.$emit("path_changed",this.$polylineObject.getPath())};s.push([r,r.addListener("insert_at",n)]),s.push([r,r.addListener("remove_at",n)]),s.push([r,r.addListener("set_at",n)]),e=()=>{s.map(([e,t])=>google.maps.event.removeListener(t))}}},{deep:this.deepWatch,immediate:!0})}}),O={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},j=v({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:O,name:"polygon",ctr:()=>google.maps.Polygon,beforeCreate(e){e.path||delete e.path,e.paths||delete e.paths},afterCreate(e){let t=()=>{};this.$watch("paths",r=>{if(r){t(),e.setPaths(r);const s=()=>{this.$emit("paths_changed",e.getPaths())},n=[],o=e.getPaths();for(let e=0;e<o.getLength();
1e++){let t=o.getAt(e);n.push([t,t.addListener("insert_at",s)]),n.push([t,t.addListener("remove_at",s)]),n.push([t,t.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)]),t=()=>{n.map(([e,t])=>google.maps.event.removeListener(t))}}},{deep:this.deepWatch,immediate:!0}),this.$watch("path",r=>{if(r){t(),e.setPaths(r);const s=e.getPath(),n=[],o=()=>{this.$emit("path_changed",e.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)]),t=()=>{n.map(([e,t])=>google.maps.event.removeListener(t))}}},{deep:this.deepWatch,immediate:!0})}}),_=v({mappedProps:{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}},name:"circle",ctr:()=>google.maps.Circle,events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]}),M=v({mappedProps:{bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},name:"rectangle",ctr:()=>google.maps.Rectangle,events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]}),E={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}},A=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"];const C=e(v({mappedProps:E,events:A,name:"marker",ctr:()=>google.maps.Marker,inject:{$clusterPromise:{default:null}},emits:A,unmounted(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate(e){A.forEach(t=>{e.addListener(t,e=>{this.$emit(t,e)})}),this.$clusterPromise&&this.$clusterPromise.then(t=>{this.$clusterObject=t,t.addMarker(e)})}}),[["render",function(e,n,o,i,a,c){return r(),t("div",{onClick:n[0]||(n[0]=()=>{})},[s(e.$slots,"default")])}]]);var P=Object.getOwnPropertyNames,L=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty;function z(e,t){return function(r,s,n){return e(r,s,n)&&t(r,s,n)}}function W(e){return function(t,r,s){if(!t||!r||"object"!=typeof t||"object"!=typeof r)return e(t,r,s);var n=s.cache,o=n.get(t),i=n.get(r);if(o&&i)return o===r&&i===t;n.set(t,r),n.set(r,t);var a=e(t,r,s);return n.delete(t),n.delete(r),a}}function B(e){return P(e).concat(L(e))}var I=Object.hasOwn||function(e,t){return x.call(e,t)};function q(e,t){return e===t||!e&&!t&&e!=e&&t!=t}var S=Object.getOwnPropertyDescriptor,R=Object.keys;function T(e,t,r){var s=e.length;if(t.length!==s)return!1;for(;s-- >0;)if(!r.equals(e[s],t[s],s,s,e,t,r))return!1;return!0}function N(e,t){return q(e.getTime(),t.getTime())}function U(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Z(e,t){return e===t}function F(e,t,r){var s=e.size;if(s!==t.size)return!1;if(!s)return!0;for(var n,o,i=new Array(s),a=e.entries(),c=0;(n=a.next())&&!n.done;){for(var u=t.entries(),l=!1,p=0;(o=u.next())&&!o.done;)if(i[p])p++;else{var h=n.value,d=o.value;if(r.equals(h[0],d[0],c,p,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){l=i[p]=!0;break}p++}if(!l)return!1;c++}return!0}var G=q;function D(e,t,r){var s=R(e),n=s.length;if(R(t).length!==n)return!1;for(;n-- >0;)if(!Q(e,t,r,s[n]))return!1;return!0}function V(e,t,r){var s,n,o,i=B(e),a=i.length;if(B(t).length!==a)return!1;for(;a-- >0;){if(!Q(e,t,r,s=i[a]))return!1;if(n=S(e,s),o=S(t,s),(n||o)&&(!n||!o||n.configurable!==o.configurable||n.enumerable!==o.enumerable||n.writable!==o.writable))return!1}return!0}function K(e,t){return q(e.valueOf(),t.valueOf())}function H(e,t){return e.source===t.source&&e.flags===t.flags}function Y(e,t,r){var s=e.size;if(s!==t.size)return!1;if(!s)return!0;for(var n,o,i=new Array(s),a=e.values();(n=a.next())&&!n.done;){for(var c=t.values(),u=!1,l=0;(o=c.next())&&!o.done;
vendor: 5,399 bytes, line 1
1){if(!i[l]&&r.equals(n.value,o.value,n.value,o.value,e,t,r)){u=i[l]=!0;break}l++}if(!u)return!1}return!0}function X(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function J(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Q(e,t,r,s){return!("_owner"!==s&&"__o"!==s&&"__v"!==s||!e.$$typeof&&!t.$$typeof)||I(t,s)&&r.equals(e[s],t[s],s,s,e,t,r)}var ee=Array.isArray,te="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,re=Object.assign,se=Object.prototype.toString.call.bind(Object.prototype.toString);var ne=oe();function oe(e){void 0===e&&(e={});var t,r=e.circular,s=void 0!==r&&r,n=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,c=function(e){var t=e.circular,r=e.createCustomConfig,s=e.strict,n={areArraysEqual:s?V:T,areDatesEqual:N,areErrorsEqual:U,areFunctionsEqual:Z,areMapsEqual:s?z(F,V):F,areNumbersEqual:G,areObjectsEqual:s?V:D,arePrimitiveWrappersEqual:K,areRegExpsEqual:H,areSetsEqual:s?z(Y,V):Y,areTypedArraysEqual:s?V:X,areUrlsEqual:J};if(r&&(n=re({},n,r(n))),t){var o=W(n.areArraysEqual),i=W(n.areMapsEqual),a=W(n.areObjectsEqual),c=W(n.areSetsEqual);n=re({},n,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:a,areSetsEqual:c})}return n}(e),u=function(e){var t=e.areArraysEqual,r=e.areDatesEqual,s=e.areErrorsEqual,n=e.areFunctionsEqual,o=e.areMapsEqual,i=e.areNumbersEqual,a=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,l=e.areSetsEqual,p=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(e,d,m){if(e===d)return!0;if(null==e||null==d)return!1;var f=typeof e;if(f!==typeof d)return!1;if("object"!==f)return"number"===f?i(e,d,m):"function"===f&&n(e,d,m);var g=e.constructor;if(g!==d.constructor)return!1;if(g===Object)return a(e,d,m);if(ee(e))return t(e,d,m);if(null!=te&&te(e))return p(e,d,m);if(g===Date)return r(e,d,m);if(g===RegExp)return u(e,d,m);if(g===Map)return o(e,d,m);if(g===Set)return l(e,d,m);var y=se(e);return"[object Date]"===y?r(e,d,m):"[object RegExp]"===y?u(e,d,m):"[object Map]"===y?o(e,d,m):"[object Set]"===y?l(e,d,m):"[object Object]"===y?"function"!=typeof e.then&&"function"!=typeof d.then&&a(e,d,m):"[object URL]"===y?h(e,d,m):"[object Error]"===y?s(e,d,m):"[object Arguments]"===y?a(e,d,m):("[object Boolean]"===y||"[object Number]"===y||"[object String]"===y)&&c(e,d,m)}}(c);return function(e){var t=e.circular,r=e.comparator,s=e.createState,n=e.equals,o=e.strict;if(s)return function(e,i){var a=s(),c=a.cache,u=void 0===c?t?new WeakMap:void 0:c,l=a.meta;return r(e,i,{cache:u,equals:n,meta:l,strict:o})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:n,meta:void 0,strict:o})};var i={cache:void 0,equals:n,meta:void 0,strict:o};return function(e,t){return r(e,t,i)}}({circular:s,comparator:u,createState:o,equals:n?n(u):(t=u,function(e,r,s,n,o,i,a){return t(e,r,a)}),strict:a})}oe({strict:!0}),oe({circular:!0}),oe({circular:!0,strict:!0}),oe({createInternalComparator:function(){return q}}),oe({strict:!0,createInternalComparator:function(){return q}}),oe({circular:!0,createInternalComparator:function(){return q}}),oe({circular:!0,createInternalComparator:function(){return q},strict:!0});const ie=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class ae{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(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const s=r>>4;if(1!==s)throw new Error(`Got v${s} data when expected v1.`);const n=ie[15&r];if(!n)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[i]=new Uint32Array(e,4,1);return new ae(i,o,n,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 n=ie.indexOf(this.ArrayType),o=2*e*this.ArrayType.BYTES_PER_ELEMENT,i=e*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-i%8)%8;if(n<0)throw new Error(`Unexpected typed array class: ${r}.`);s&&s instanceof ArrayBuffer?(this.data=s,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+i+a,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+o+i+a),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+i+a,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+n]),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 ce(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:n,coords:o,nodeSize:i}=this,a=[0,n.length-1,0],c=[];for(;a.length;){const u=a.pop()||0,l=a.pop()||0,p=a.pop()||0;if(l-p<=i){for(let i=p;i<=l;i++){const a=o[2*i],u=o[2*i+1];a>=e&&a<=r&&u>=t&&u<=s&&c.push(n[i])}continue}
vendor: 4,980 bytes, line 1
1const h=p+l>>1,d=o[2*h],m=o[2*h+1];d>=e&&d<=r&&m>=t&&m<=s&&c.push(n[h]),(0===u?e<=d:t<=m)&&(a.push(p),a.push(h-1),a.push(1-u)),(0===u?r>=d:s>=m)&&(a.push(h+1),a.push(l),a.push(1-u))}return c}within(e,t,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:s,coords:n,nodeSize:o}=this,i=[0,s.length-1,0],a=[],c=r*r;for(;i.length;){const u=i.pop()||0,l=i.pop()||0,p=i.pop()||0;if(l-p<=o){for(let r=p;r<=l;r++)he(n[2*r],n[2*r+1],e,t)<=c&&a.push(s[r]);continue}const h=p+l>>1,d=n[2*h],m=n[2*h+1];he(d,m,e,t)<=c&&a.push(s[h]),(0===u?e-r<=d:t-r<=m)&&(i.push(p),i.push(h-1),i.push(1-u)),(0===u?e+r>=d:t+r>=m)&&(i.push(h+1),i.push(l),i.push(1-u))}return a}}function ce(e,t,r,s,n,o){if(n-s<=r)return;const i=s+n>>1;ue(e,t,i,s,n,o),ce(e,t,r,s,i-1,1-o),ce(e,t,r,i+1,n,1-o)}function ue(e,t,r,s,n,o){for(;n>s;){if(n-s>600){const i=n-s+1,a=r-s+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);ue(e,t,r,Math.max(s,Math.floor(r-a*u/i+l)),Math.min(n,Math.floor(r+(i-a)*u/i+l)),o)}const i=t[2*r+o];let a=s,c=n;for(le(e,t,s,r),t[2*n+o]>i&&le(e,t,s,n);a<c;){for(le(e,t,a,c),a++,c--;t[2*a+o]<i;)a++;for(;t[2*c+o]>i;)c--}t[2*s+o]===i?le(e,t,s,c):(c++,le(e,t,c,n)),c<=r&&(s=c+1),r<=c&&(n=c-1)}}function le(e,t,r,s){pe(e,r,s),pe(t,2*r,2*s),pe(t,2*r+1,2*s+1)}function pe(e,t,r){const s=e[t];e[t]=e[r],e[r]=s}function he(e,t,r,s){const n=e-r,o=t-s;return n*n+o*o}const de={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},me=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1));class fe{constructor(e){this.options=Object.assign(Object.create(de),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;e.length;this.points=e;const n=[];for(let i=0;i<e.length;i++){const t=e[i];if(!t.geometry)continue;const[r,s]=t.geometry.coordinates,o=me(be(r)),a=me(we(s));n.push(o,a,1/0,i,-1,1),this.options.reduce&&n.push(0)}let o=this.trees[s+1]=this._createTree(n);for(let i=s;i>=r;i--){Date.now();o=this.trees[i]=this._createTree(this._cluster(o,i))}return this}getClusters(e,t){let r=((e[0]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[1]));let n=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)r=-180,n=180;else if(r>n){const e=this.getClusters([r,s,180,o],t),i=this.getClusters([-180,s,n,o],t);return e.concat(i)}const i=this.trees[this._limitZoom(t)],a=i.range(be(r),we(o),be(n),we(s)),c=i.data,u=[];for(const l of a){const e=this.stride*l;u.push(c[e+5]>1?ge(c,e,this.clusterProps):this.points[c[e+3]])}return u}getChildren(e){const t=this._getOriginId(e),r=this._getOriginZoom(e),s="No cluster with the specified id.",n=this.trees[r];if(!n)throw new Error(s);const o=n.data;if(t*this.stride>=o.length)throw new Error(s);const i=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=o[t*this.stride],c=o[t*this.stride+1],u=n.within(a,c,i),l=[];for(const p of u){const t=p*this.stride;o[t+4]===e&&l.push(o[t+5]>1?ge(o,t,this.clusterProps):this.points[o[t+3]])}if(0===l.length)throw new Error(s);return l}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)],n=Math.pow(2,e),{extent:o,radius:i}=this.options,a=i/o,c=(r-a)/n,u=(r+1+a)/n,l={features:[]};return this._addTileFeatures(s.range((t-a)/n,c,(t+1+a)/n,u),s.data,t,r,n,l),0===t&&this._addTileFeatures(s.range(1-a/n,c,1,u),s.data,n,r,n,l),t===n-1&&this._addTileFeatures(s.range(0,c,a/n,u),s.data,-1,r,n,l),l.features.length?l:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const r=this.getChildren(e);if(t++,1!==r.length)break;e=r[0].properties.cluster_id}return t}_appendLeaves(e,t,r,s,n){const o=this.getChildren(t);for(const i of o){const t=i.properties;if(t&&t.cluster?n+t.point_count<=s?n+=t.point_count:n=this._appendLeaves(e,t.cluster_id,r,s,n):n<s?n++:e.push(i),e.length===r)break}return n}_createTree(e){const t=new ae(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,n,o){for(const i of e){const e=i*this.stride,a=t[e+5]>1;let c,u,l;if(a)c=ye(t,e,this.clusterProps),u=t[e],l=t[e+1];else{const r=this.points[t[e+3]];c=r.properties;const[s,n]=r.geometry.coordinates;u=be(s),l=we(n)}const p={type:1,geometry:[[Math.round(this.options.extent*(u*n-r)),Math.round(this.options.extent*(l*n-s))]],tags:c};let h;h=a||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==h&&(p.id=h),o.features.push(p)}}_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:n,minPoints:o}=this.options,i=r/(s*Math.pow(2,t)),a=e.data,c=[],u=this.stride;for(let l=0;l<a.length;l+=u){if(a[l+2]<=t)continue;a[l+2]=t;
vendor: 4,118 bytes, line 1
1const r=a[l],s=a[l+1],p=e.within(a[l],a[l+1],i),h=a[l+5];let d=h;for(const e of p){const r=e*u;a[r+2]>t&&(d+=a[r+5])}if(d>h&&d>=o){let e,o=r*h,i=s*h,m=-1;const f=(l/u<<5)+(t+1)+this.points.length;for(const r of p){const s=r*u;if(a[s+2]<=t)continue;a[s+2]=t;const c=a[s+5];o+=a[s]*c,i+=a[s+1]*c,a[s+4]=f,n&&(e||(e=this._map(a,l,!0),m=this.clusterProps.length,this.clusterProps.push(e)),n(e,this._map(a,s)))}a[l+4]=f,c.push(o/d,i/d,1/0,f,-1,d),n&&c.push(m)}else{for(let e=0;e<u;e++)c.push(a[l+e]);if(d>1)for(const e of p){const r=e*u;if(!(a[r+2]<=t)){a[r+2]=t;for(let e=0;e<u;e++)c.push(a[r+e])}}}}return c}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,r){if(e[t+5]>1){const s=this.clusterProps[e[t+6]];return r?Object.assign({},s):s}const s=this.points[e[t+3]].properties,n=this.options.map(s);return r&&n===s?Object.assign({},n):n}}function ge(e,t,r){return{type:"Feature",id:e[t+3],properties:ye(e,t,r),geometry:{type:"Point",coordinates:[(s=e[t],360*(s-.5)),ve(e[t+1])]}};var s}function ye(e,t,r){const s=e[t+5],n=s>=1e4?`${Math.round(s/1e3)}k`:s>=1e3?Math.round(s/100)/10+"k":s,o=e[t+6],i=-1===o?{}:Object.assign({},r[o]);return Object.assign(i,{cluster:!0,cluster_id:e[t+3],point_count:s,point_count_abbreviated:n})}function be(e){return e/360+.5}function we(e){const t=Math.sin(e*Math.PI/180),r=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return r<0?0:r>1?1:r}function ve(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}"function"==typeof SuppressedError&&SuppressedError;class $e{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}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)||e.getVisible()}}class ke{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(0===this.markers.length&&!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 Oe(e,t="assertion failed"){if(null==e)throw Error(t)}class je{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return _e(e)}}const _e=e=>e.map(e=>new ke({position:$e.getPosition(e),markers:[e]}));class Me extends je{constructor(e){var{maxZoom:t,radius:r=60}=e,s=function(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]])}return r}(e,["maxZoom","radius"]);super({maxZoom:t}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new fe(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(e){let t=!1,r=e.map.getZoom();Oe(r),r=Math.round(r);const s={zoom:r};if(!ne(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const r=this.markers.map(e=>{const t=$e.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}});this.superCluster.load(r)}return t||(this.state.zoom<=this.maxZoom||s.zoom<=this.maxZoom)&&(t=!ne(this.state,s)),this.state=s,0===e.markers.length?(this.cluster
1s=[],{clusters:this.clusters,changed:t}):(t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t})}cluster({map:e}){const t=e.getZoom();return Oe(t),this.superCluster.getClusters([-180,-90,180,90],Math.round(t)).map(e=>this.transformCluster(e))}transformCluster({geometry:{coordinates:[e,t]},properties:r}){if(r.cluster)return new ke({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(e=>e.properties.marker),position:{lat:t,lng:e}});const s=r.marker;return new ke({markers:[s],position:$e.getPosition(s)})}}class Ee{constructor(e,t){this.markers={sum:e.length};const r=t.map(e=>e.count),s=r.reduce((e,t)=>e+t,0);this.clusters={count:t.length,markers:{mean:s/t.length,sum:s,min:Math.min(...r),max:Math.max(...r)}}}}class Ae{render({count:e,position:t},r,s){const n=`<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">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<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>\n</svg>`,o=`Cluster of ${e} markers`,i=Number(google.maps.Marker.MAX_ZINDEX)+e;if($e.isAdvancedMarkerAvailable(s)){const e=(new DOMParser).parseFromString(n,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const r={map:s,position:t,zIndex:i,title:o,content:e};return new google.maps.marker.AdvancedMarkerElement(r)}const a={position:t,zIndex:i,title:o,icon:{url:`data:image/svg+xml;base64,${btoa(n)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(a)}}class Ce{constructor(){!function(e,t){for(let r in t.prototype)e.prototype[r]=t.prototype[r]}(Ce,google.maps.OverlayView)}}var Pe,Le;(Le=Pe||(Pe={})).CLUSTERING_BEGIN="clusteringbegin",Le.CLUSTERING_END="clusteringend",Le.CLUSTER_CLICK="click",Le.GMP_CLICK="gmp-click";const xe=(e,t,r)=>{t.bounds&&r.fitBounds(t.bounds)};class ze extends Ce{constructor({map:e,markers:t=[],algorithmOptions:r={},algorithm:s=new Me(r),renderer:n=new Ae,onClusterClick:o=xe}){super(),this.map=null,this.idleListener=null,this.markers=[...t],this.clusters=[],this.algorithm=s,this.renderer=n,this.onClusterClick=o,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach(e=>{this.addMarker(e,!0)}),t||this.render()}removeMarker(e,t){const r=this.markers.indexOf(e);return-1!==r&&($e.setMap(e,null),this.markers.splice(r,1),t||this.render(),!0)}removeMarkers(e,t){let r=!1;return e.forEach(e=>{r=this.removeMarker(e,!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,Pe.CLUSTERING_BEGIN,this);const{clusters:t,changed:r}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(r||null==r){const e=new Set;for(const s of t)1==s.markers.length&&e.add(s.markers[0]);const r=[];for(const t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||$e.setMap(t.marker,null):r.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame(()=>r.forEach(e=>$e.setMap(e,null)))}google.maps.event.trigger(this,Pe.CLUSTERING_END,this)}}onAdd(){const e=this.getMap();Oe(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 Ee(this.markers,this.clusters),t=this.getMap();this.clusters.forEach(r=>{if(1===r.markers.length)r.marker=r.markers[0];else if(r.marker=this.renderer.render(r,e,t),r.markers.forEach(e=>$e.setMap(e,null)),this.onClusterClick){const e=$e.isAdvancedMarker(r.marker)?Pe.GMP_CLICK:Pe.CLUSTER_CLICK;r.marker.addListener(e,e=>{google.maps.event.trigger(this,Pe.CLUSTER_CLICK,r),this.onClusterClick(e,r,t)})}$e.setMap(r.marker,t)})}}const We={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}};const Be=e(v({mappedProps:We,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:()=>{if(void 0===ze){throw new Error("MarkerClusterer is not installed!")}return ze},ctrArgs:({map:e,...t})=>[e,[],t],afterCreate(e){const t=()=>{const t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};for(let r in We)We[r].twoWay&&this.$on(r.toLowerCase()+"_changed",t)},updated(){this.$clusterObject&&this.$clusterObject.repaint()},beforeUnmount(){this.$children&&this.$children.length&&this.$children.forEac
1h(e=>{e.$clusterObject===this.$clusterObject&&(e.$clusterObject=null)}),this.$clusterObject&&this.$clusterObject.clearMarkers()}}),[["render",function(e,n,o,i,a,c){return r(),t("div",null,[s(e.$slots,"default")])}]]),Ie=v({mappedProps:{options:{type:Object,required:!1,default:()=>({})},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},events:["domready","click","closeclick","content_changed"],name:"infoWindow",ctr:()=>google.maps.InfoWindow,props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted(){const e=this.$refs.infoWindow;e.parentNode.removeChild(e)},beforeCreate(e){if(e.content=this.$refs.infoWindow,this.$markerPromise)return delete e.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()})}}),qe={ref:"infoWindow"};const Se=e(Ie,[["render",function(e,n,o,i,a,c){return r(),t("div",qe,[s(e.$slots,"default")],512)}]]),Re={props:["resizeBus"],data:()=>({_actualResizeBus:null}),created(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback(){this.resize()},isFunction:e=>e&&"[object Function]"==={}.toString.call(e),_delayedResizeCallback(){this.$nextTick(()=>this._resizeCallback())}},watch:{resizeBus(e){this.$data._actualResizeBus=e},"$data._actualResizeBus"(e,t){t&&t.$off("resize",this._delayedResizeCallback)}},unmounted(){this.$data._actualResizeBus&&this.isFunction(this.$data._actualResizeBus.$off)&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}};const Te={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:()=>({})}},Ne=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],Ue=["panBy","panTo","panToBounds","fitBounds"].reduce((e,t)=>(e[t]=function(){this.$mapObject&&this.$mapObject[t].apply(this.$mapObject,arguments)},e),{}),Ze={resize(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter(){if(!this.$mapObject)return;const e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)},_resizeCallback(){this.resizePreserveCenter()}},Fe={mixins:[Re],props:$({...Te,...Ne.reduce((e,t)=>({...e,[`on${t.charAt(0).toUpperCase()}${t.slice(1)}`.replace(/[-_]+(.)?/g,(e,t)=>t?t.toUpperCase():"")]:Function}),{})}),inheritAttrs:!1,provide(){return this.$mapPromise=new Promise((e,t)=>{this.$mapPromiseDeferred={resolve:e,reject:t}}),{$mapPromise:this.$mapPromise}},emits:["center_changed","zoom_changed","bounds_changed"],computed:{finalLat(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom(e){this.$mapObject&&this.$mapObject.setZoom(e)}},mounted(){return this.$gmapApiPromiseLazy().then(()=>{const e=this.$refs["vue-map"],t={...this.options,...y(this,Te)};return delete t.options,this.$mapObject=new google.maps.Map(e,t),b(this,this.$mapObject,Te),m(this,this.$mapObject,Ne),function(e){let t=0;e(()=>{t+=1},()=>{t=Math.max(0,t-1)},()=>0===t)}((e,t,r)=>{this.$mapObject.addListener("center_changed",()=>{r()&&this.$emit("center_changed",this.$mapObject.getCenter()),t()});f(this,["finalLat","finalLng"],()=>{e(),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(e=>{throw e})},methods:{...Ze,...Ue}},Ge={class:"vue-map-hidden"};const De=e(Fe,[["render",function(e,a,c,u,l,p){return r(),t("div",{class:i(["vue-map-container",e.$attrs.class])},[n("div",{ref:"vue-map",class:"vue-map",style:o(e.$attrs.style?e.$attrs.style:"")},null,4),n("div",Ge,[s(e.$slots,"default")]),s(e.$slots,"visible")],2)}]]),Ve=v({mappedProps:{options:{type:Object,twoWay:!1,default:()=>{}},data:{type:Array,twoWay:!0}},name:"heatmap",ctr:()=>google.maps.visualization.HeatmapLayer,events:[]}
1),Ke={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},He={selectFirstOnEnter:{required:!1,type:Boolean,default:!1},options:{type:Object}};const Ye=e({mounted(){this.$gmapApiPromiseLazy().then(()=>{if(this.selectFirstOnEnter&&(e=>{const t=e.addEventListener?e.addEventListener:e.attachEvent;function r(r,s){if("keydown"===r){const t=s;s=function(r){const s=document.getElementsByClassName("pac-item-selected").length>0;if(13===r.which&&!s){const r=document.createEvent("Event");r.keyCode=40,r.which=40,t.apply(e,[r])}t.apply(e,[r])}}t.apply(e,[r,s])}e.addEventListener=r,e.attachEvent=r})(this.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");const e={...y(this,Ke),...this.options};this.$autocomplete=new google.maps.places.Autocomplete(this.$refs.input,e),b(this,this.$autocomplete,Ke),this.$watch("componentRestrictions",e=>{void 0!==e&&this.$autocomplete.setComponentRestrictions(e)}),this.$autocomplete.addListener("place_changed",()=>{this.$emit("place_changed",this.$autocomplete.getPlace())})})},props:{...$(Ke),...He}},[["render",function(e,s,n,o,i,u){return r(),t("input",a({ref:"input"},e.$attrs,c(e.$attrs,!0)),null,16)}]]);let Xe=null;function Je(e,t){t={installComponents:!0,autobindAllEvents:!1,...t},Xe=u({data:function(){return{gmapApi:null}}});const r=u();let s=function(e){function t(){return Xe.gmapApi={},window.google}if(e.load)return l(()=>p.isServer()?new Promise(()=>{}).then(t):new Promise((t,r)=>{try{window.vueGoogleMapsInit=t,d(e.load)}catch(s){r(s)}}).then(t));{const e=new Promise(e=>{p.isServer()||(window.vueGoogleMapsInit=e)}).then(t);return l(()=>e)}}(t);e.mixin({created(){this.$gmapDefaultResizeBus=r,this.$gmapOptions=t,this.$gmapApiPromiseLazy=s}}),e.$gmapDefaultResizeBus=r,e.$gmapApiPromiseLazy=s,t.installComponents&&(e.component("GMapMap",De),e.component("GMapMarker",C),e.component("GMapInfoWindow",Se),e.component("GMapCluster",Be),e.component("GMapPolyline",k),e.component("GMapPolygon",j),e.component("GMapCircle",_),e.component("GMapRectangle",M),e.component("GMapAutocomplete",Ye),e.component("GMapHeatmap",Ve))}export{Ye as Autocomplete,_ as Circle,Be as GMapCluster,Ve as Heatmap,Se as InfoWindow,De as Map,w as MapElementMixin,C as Marker,Re as MountableMixin,j as Polygon,k as Polyline,M as Rectangle,v as buildComponent,Je as default,d as loadGMapApi};

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.