google.maps.__gjsload__('search', function(_){var Rua=function(){},mB=function(a){this.setValues(a);_.nj("search_impl")},Tua=function(a){let b=_.Nl,c=-1;a.tiles.forEach(e=>{e.zoom>c&&(b=e.mi,c=e.zoom)});if(c===-1)return[];const d=[];a.Mu().forEach(e=>{e.a&&e.a.length>=2&&d.push(new Sua(e,b,c))});return d},Uua=function(a){const b=[];a.data.forEach(c=>{b.push(...Tua(c))});return b};_.Ja(Rua,_.Mk);var Vua={["1"]:{}},Sua=class{constructor(a,b,c){this.qn=b;this.zoom=c;this.bounds=this.anchor=null;this.Eg=Vua;this.source=a;this.featureId=this.source.id||"0";this.infoWindowOffset=(this.source.io||[]).length===2?new google.maps.Point(this.source.io[0],this.source.io[1]):null}getAnchor(){if(!this.anchor){const a=1<{a.extendByBounds(b);return a},_.rm(0,0,0,0))}getBounds(){if(this.bounds===null){this.bounds=[];const a=this.source.bb||[];if(a.length%4===0)for(let b=0;b{d.TG(a);c&&(d=c.get("blockingLayerCount")||0,c.set("blockingLayerCount",d-1))})}; mB.enableFeatureMapEventsRasterOnly=function(a){if(_.cn[15]){var b=a.__gm.Xg;if(!Wua.has(a)){Wua.add(a);var c=[],d=(f,g)=>{f=Tua(f);f.length&&_.Jk(a,g,f)},e=()=>{for(;c.length>0;)c.pop().remove();b.forEach(f=>{if(f=f.data)c.push(_.xk(f,"insert",g=>d(g,"addfeatures"))),c.push(_.xk(f,"remove",g=>d(g,"removefeatures")))})};b.addListener("insert_at",e);b.addListener("remove_at",e);b.addListener("set_at",e);e()}(()=>{const f=[];b.forEach(g=>{f.push(...Uua(g))});f.length&&_.Jk(a,"addfeatures",f)})()}}; _.Ha("module$contents$mapsapi$onionLayers$search$googleLayer_GoogleLayer.enableFeatureMapEventsRasterOnly",mB.enableFeatureMapEventsRasterOnly);_.pl(mB.prototype,{map:_.hp});_.ra.google.maps.search={GoogleLayer:mB};_.oj("search",{});});