1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4850],{56689:t=>{t.exports=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;if(Array.isArray(e)){if((s=e.length)!=r.length)return!1;for(i=s;0!=i--;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((s=(o=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(i=s;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=s;0!=i--;){var s,i,o,n=o[i];if(!t(e[n],r[n]))return!1}return!0}return e!=e&&r!=r}},94850:(t,e,r)=>{let s;r.d(e,{w1:()=>L});var i,o,n=r(56689),a=r.n(n);let h=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class l{static from(t){if(!(t instanceof ArrayBuffer))throw Error("Data must be an instance of ArrayBuffer.");let[e,r]=new Uint8Array(t,0,2);if(219!==e)throw Error("Data does not appear to be in a KDBush format.");let s=r>>4;if(1!==s)throw Error(`Got v${s} data when expected v1.`);let i=h[15&r];if(!i)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[n]=new Uint32Array(t,4,1);return new l(n,o,i,t)}constructor(t,e=64,r=Float64Array,s){if(isNaN(t)||t<0)throw Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=h.indexOf(this.ArrayType),o=2*t*this.ArrayType.BYTES_PER_ELEMENT,n=t*this.IndexArrayType.BYTES_PER_ELEMENT,a=(8-n%8)%8;if(i<0)throw Error(`Unexpected typed array class: ${r}.`);s&&s instanceof ArrayBuffer?(this.data=s,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+n+a,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+o+n+a),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+n+a,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+i]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return function t(e,r,s,i,o,n){if(o-i<=s)return;let a=i+o>>1;(function t(e,r,s,i,o,n){for(;o>i;){if(o-i>600){let a=o-i+1,h=s-i+1,l=Math.log(a),u=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*u*(a-u)/a)*(h-a/2<0?-1:1),c=Math.max(i,Math.floor(s-h*u/a+p)),m=Math.min(o,Math.floor(s+(a-h)*u/a+p));t(e,r,s,c,m,n)}let a=r[2*s+n],h=i,l=o;for(u(e,r,i,s),r[2*o+n]>a&&u(e,r,i,o);h<l;){for(u(e,r,h,l),h++,l--;r[2*h+n]<a;)h++;for(;r[2*l+n]>a;)l--}r[2*i+n]===a?u(e,r,i,l):u(e,r,++l,o),l<=s&&(i=l+1),s<=l&&(o=l-1)}})(e,r,a,i,o,n),t(e,r,s,i,a-1,1-n),t(e,r,s,a+1,o,1-n)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,s){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:o,nodeSize:n}=this,a=[0,i.length-1,0],h=[];for(;a.length;){let l=a.pop()||0,u=a.pop()||0,p=a.pop()||0;if(u-p<=n){for(let n=p;n<=u;n++){let a=o[2*n],l=o[2*n+1];a>=t&&a<=r&&l>=e&&l<=s&&h.push(i[n])}continue}let c=p+u>>1,m=o[2*c],d=o[2*c+1];m>=t&&m<=r&&d>=e&&d<=s&&h.push(i[c]),(0===l?t<=m:e<=d)&&(a.push(p),a.push(c-1),a.push(1-l)),(0===l?r>=m:s>=d)&&(a.push(c+1),a.push(u),a.push(1-l))}return h}within(t,e,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:s,coords:i,nodeSize:o}=this,n=[0,s.length-1,0],a=[],h=r*r;for(;n.length;){let l=n.pop()||0,u=n.pop()||0,p=n.pop()||0;if(u-p<=o){for(let r=p;r<=u;r++)c(i[2*r],i[2*r+1],t,e)<=h&&a.push(s[r]);continue}let m=p+u>>1,d=i[2*m],f=i[2*m+1];c(d,f,t,e)<=h&&a.push(s[m]),(0===l?t-r<=d:e-r<=f)&&(n.push(p),n.push(m-1),n.push(1-l)),(0===l?t+r>=d:e+r>=f)&&(n.push(m+1),n.push(u),n.push(1-l))}return a}}function u(t,e,r,s){p(t,r,s),p(e,2*r,2*s),p(e,2*r+1,2*s+1)}function p(t,e,r){let s=t[e];t[e]=t[r],t[r]=s}function c(t,e,r,s){let i=t-r,o=e-s;return i*i+o*o}let m={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},d=Math.fround||(s=new Float32Array(1),t=>(s[0]=+t,s[0]));class f{constructor(t){this.options=Object.assign(Object.create(m),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){let{log:e,minZoom:r,maxZoom:s}=this.options;e&&console.time("total time");let i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let o=[];for(let e=0;e<t.length;e++){let r=t[e];if(!r.geometry)continue;let[s,i]=r.geometry.coordinates,n=d(k(s)),a=d(M(i));o.push(n,a,1/0,e,-1,1),this.options.reduce&&o.push(0)}let n=this.trees[s+1]=this._createTree(o);e&&console.timeEnd(i);for(let t=s;t>=r;t--){let r=+Date.now();n=this.trees[t]=this._createTree(this._cluster(n,t)),e&&console.log("z%d: %d clusters in %dms",t,n.numItems,Date.now()-r)}
1return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){let t=this.getClusters([r,s,180,o],e),n=this.getClusters([-180,s,i,o],e);return t.concat(n)}let n=this.trees[this._limitZoom(e)],a=n.range(k(r),M(o),k(i),M(s)),h=n.data,l=[];for(let t of a){let e=this.stride*t;l.push(h[e+5]>1?g(h,e,this.clusterProps):this.points[h[e+3]])}return l}getChildren(t){let e=this._getOriginId(t),r=this._getOriginZoom(t),s="No cluster with the specified id.",i=this.trees[r];if(!i)throw Error(s);let o=i.data;if(e*this.stride>=o.length)throw Error(s);let n=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=o[e*this.stride],h=o[e*this.stride+1],l=i.within(a,h,n),u=[];for(let e of l){let r=e*this.stride;o[r+4]===t&&u.push(o[r+5]>1?g(o,r,this.clusterProps):this.points[o[r+3]])}if(0===u.length)throw Error(s);return u}getLeaves(t,e,r){e=e||10,r=r||0;let s=[];return this._appendLeaves(s,t,e,r,0),s}getTile(t,e,r){let s=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:o,radius:n}=this.options,a=n/o,h=(r-a)/i,l=(r+1+a)/i,u={features:[]};return this._addTileFeatures(s.range((e-a)/i,h,(e+1+a)/i,l),s.data,e,r,i,u),0===e&&this._addTileFeatures(s.range(1-a/i,h,1,l),s.data,i,r,i,u),e===i-1&&this._addTileFeatures(s.range(0,h,a/i,l),s.data,-1,r,i,u),u.features.length?u:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){let r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,s,i){for(let o of this.getChildren(e)){let e=o.properties;if(e&&e.cluster?i+e.point_count<=s?i+=e.point_count:i=this._appendLeaves(t,e.cluster_id,r,s,i):i<s?i++:t.push(o),t.length===r)break}return i}_createTree(t){let e=new l(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,s,i,o){for(let n of t){let t,a,h,l,u=n*this.stride,p=e[u+5]>1;if(p)t=y(e,u,this.clusterProps),a=e[u],h=e[u+1];else{let r=this.points[e[u+3]];t=r.properties;let[s,i]=r.geometry.coordinates;a=k(s),h=M(i)}let c={type:1,geometry:[[Math.round(this.options.extent*(a*i-r)),Math.round(this.options.extent*(h*i-s))]],tags:t};void 0!==(l=p||this.options.generateId?e[u+3]:this.points[e[u+3]].id)&&(c.id=l),o.features.push(c)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){let{radius:r,extent:s,reduce:i,minPoints:o}=this.options,n=r/(s*Math.pow(2,e)),a=t.data,h=[],l=this.stride;for(let r=0;r<a.length;r+=l){if(a[r+2]<=e)continue;a[r+2]=e;let s=a[r],u=a[r+1],p=t.within(a[r],a[r+1],n),c=a[r+5],m=c;for(let t of p){let r=t*l;a[r+2]>e&&(m+=a[r+5])}if(m>c&&m>=o){let t,o=s*c,n=u*c,d=-1,f=(r/l<<5)+(e+1)+this.points.length;for(let s of p){let h=s*l;if(a[h+2]<=e)continue;a[h+2]=e;let u=a[h+5];o+=a[h]*u,n+=a[h+1]*u,a[h+4]=f,i&&(t||(t=this._map(a,r,!0),d=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(a,h)))}a[r+4]=f,h.push(o/m,n/m,1/0,f,-1,m),i&&h.push(d)}else{for(let t=0;t<l;t++)h.push(a[r+t]);if(m>1)for(let t of p){let r=t*l;if(!(a[r+2]<=e)){a[r+2]=e;for(let t=0;t<l;t++)h.push(a[r+t])}}}}return h}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+5]>1){let s=this.clusterProps[t[e+6]];return r?Object.assign({},s):s}let s=this.points[t[e+3]].properties,i=this.options.map(s);return r&&i===s?Object.assign({},i):i}}function g(t,e,r){return{type:"Feature",id:t[e+3],properties:y(t,e,r),geometry:{type:"Point",coordinates:[(t[e]-.5)*360,360*Math.atan(Math.exp((180-360*t[e+1])*Math.PI/180))/Math.PI-90]}}}function y(t,e,r){let s=t[e+5],i=s>=1e4?`${Math.round(s/1e3)}k`:s>=1e3?`${Math.round(s/100)/10}k`:s,o=t[e+6];return Object.assign(-1===o?{}:Object.assign({},r[o]),{cluster:!0,cluster_id:t[e+3],point_count:s,point_count_abbreviated:i})}function k(t){return t/360+.5}function M(t){let e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}class w{static isAdvancedMarkerAvailable(t){return google.maps.marker&&!0===t.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,e){this.isAdvancedMarker(t)?t.map=e:t.setMap(e)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(t.position.lat&&t.position.lng)return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return!!this.isAdvancedMarker(t)||t.getVisible()}}class _{constructor({markers:t,position:e}){this.markers=t,e&&(e instanceof google.maps.LatLng?this._position=e:this._position=new google.maps.LatLng(e))}get bounds(){if(0===this.markers.length&&!this._position)return;let t=new google.maps.LatLngBounds(this._position,this._position);for(let e of this.markers)t.extend(w.getPosition(e));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>w.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(w.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class x{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return A(t)}}let A=t=>t.map(t=>new _({position:w.getPosition(t),markers:[t]}));class v extends x{constructor(t){var{maxZoom:e,radius:r=60}=t,s=function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&0>e.indexOf(s)&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,s=Object.getOwnPropertySymbols(t);i<s.length;i++)0>e.indexOf(s[i])&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(r[s[i]]=t[s[i]]);return r}(t,["maxZoom","radius"]);super({maxZoom:e}),this.state={zoom:-1}
1,this.superCluster=new f(Object.assign({maxZoom:this.maxZoom,radius:r},s))}calculate(t){let e=!1,r={zoom:t.map.getZoom()};if(!a()(t.markers,this.markers)){e=!0,this.markers=[...t.markers];let r=this.markers.map(t=>{let e=w.getPosition(t);return{type:"Feature",geometry:{type:"Point",coordinates:[e.lng(),e.lat()]},properties:{marker:t}}});this.superCluster.load(r)}return!e&&(this.state.zoom<=this.maxZoom||r.zoom<=this.maxZoom)&&(e=!a()(this.state,r)),this.state=r,e&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:e}}cluster({map:t}){return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(t=>this.transformCluster(t))}transformCluster({geometry:{coordinates:[t,e]},properties:r}){if(r.cluster)return new _({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(t=>t.properties.marker),position:{lat:e,lng:t}});let s=r.marker;return new _({markers:[s],position:w.getPosition(s)})}}class E{constructor(t,e){this.markers={sum:t.length};const r=e.map(t=>t.count),s=r.reduce((t,e)=>t+e,0);this.clusters={count:e.length,markers:{mean:s/e.length,sum:s,min:Math.min(...r),max:Math.max(...r)}}}}class b{render({count:t,position:e},r,s){let i=t>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff",o=`<svg fill="${i}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50"> 2<circle cx="120" cy="120" opacity=".6" r="70" /> 3<circle cx="120" cy="120" opacity=".3" r="90" /> 4<circle cx="120" cy="120" opacity=".2" r="110" /> 5<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${t}</text> 6</svg>`,n=`Cluster of ${t} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+t;if(w.isAdvancedMarkerAvailable(s)){let t=new DOMParser().parseFromString(o,"image/svg+xml").documentElement;return t.setAttribute("transform","translate(0 25)"),new google.maps.marker.AdvancedMarkerElement({map:s,position:e,zIndex:a,title:n,content:t})}let h={position:e,zIndex:a,title:n,icon:{url:`data:image/svg+xml;base64,${btoa(o)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(h)}}class C{constructor(){!function(t,e){for(let r in e.prototype)t.prototype[r]=e.prototype[r]}(C,google.maps.OverlayView)}}(i=o||(o={})).CLUSTERING_BEGIN="clusteringbegin",i.CLUSTERING_END="clusteringend",i.CLUSTER_CLICK="click";let O=(t,e,r)=>{r.fitBounds(e.bounds)};class L extends C{constructor({map:t,markers:e=[],algorithmOptions:r={},algorithm:s=new v(r),renderer:i=new b,onClusterClick:o=O}){super(),this.markers=[...e],this.clusters=[],this.algorithm=s,this.renderer=i,this.onClusterClick=o,t&&this.setMap(t)}addMarker(t,e){!this.markers.includes(t)&&(this.markers.push(t),e||this.render())}addMarkers(t,e){t.forEach(t=>{this.addMarker(t,!0)}),e||this.render()}removeMarker(t,e){let r=this.markers.indexOf(t);return -1!==r&&(w.setMap(t,null),this.markers.splice(r,1),e||this.render(),!0)}removeMarkers(t,e){let r=!1;return t.forEach(t=>{r=this.removeMarker(t,!0)||r}),r&&!e&&this.render(),r}clearMarkers(t){this.markers.length=0,t||this.render()}render(){let t=this.getMap();if(t instanceof google.maps.Map&&t.getProjection()){google.maps.event.trigger(this,o.CLUSTERING_BEGIN,this);let{clusters:e,changed:r}=this.algorithm.calculate({markers:this.markers,map:t,mapCanvasProjection:this.getProjection()});if(r||void 0==r){let t=new Set;for(let r of e)1==r.markers.length&&t.add(r.markers[0]);let r=[];for(let e of this.clusters)null!=e.marker&&(1==e.markers.length?t.has(e.marker)||w.setMap(e.marker,null):r.push(e.marker));this.clusters=e,this.renderClusters(),requestAnimationFrame(()=>r.forEach(t=>w.setMap(t,null)))}google.maps.event.trigger(this,o.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(t=>w.setMap(t,null)),this.clusters.forEach(t=>t.delete()),this.clusters=[]}renderClusters(){let t=new E(this.markers,this.clusters),e=this.getMap();this.clusters.forEach(r=>{1===r.markers.length?r.marker=r.markers[0]:(r.marker=this.renderer.render(r,t,e),r.markers.forEac
6h(t=>w.setMap(t,null)),this.onClusterClick&&r.marker.addListener("click",t=>{google.maps.event.trigger(this,o.CLUSTER_CLICK,r),this.onClusterClick(t,r,e)})),w.setMap(r.marker,e)})}}}}]);
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.