google.maps.__gjsload__('search', function(_){var Kua=function(){},aB=function(a){this.setValues(a);_.rj("search_impl")},Mua=function(a){let b=_.Rl,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 Lua(e,b,c))});return d},Nua=function(a){const b=[];a.data.forEach(c=>{b.push(...Mua(c))});return b};_.Ja(Kua,_.Qk);var Oua={["1"]:{}},Lua=class{constructor(a,b,c){this.pn=b;this.zoom=c;this.bounds=this.anchor=null;this.Eg=Oua;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},_.vm(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))})}; aB.enableFeatureMapEventsRasterOnly=function(a){if(_.gn[15]){var b=a.__gm.Xg;if(!Pua.has(a)){Pua.add(a);var c=[],d=(f,g)=>{f=Mua(f);f.length&&_.Nk(a,g,f)},e=()=>{for(;c.length>0;)c.pop().remove();b.forEach(f=>{if(f=f.data)c.push(_.Bk(f,"insert",g=>d(g,"addfeatures"))),c.push(_.Bk(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(...Nua(g))});f.length&&_.Nk(a,"addfeatures",f)})()}}; _.Ha("module$contents$mapsapi$onionLayers$search$googleLayer_GoogleLayer.enableFeatureMapEventsRasterOnly",aB.enableFeatureMapEventsRasterOnly);_.tl(aB.prototype,{map:_.lp});_.ra.google.maps.search={GoogleLayer:aB};_.sj("search",{});});