google.maps.__gjsload__('infowindow', function(_){var lO=function(a){return!!a.infoWindow.get("logAsInternal")},tKa=function(a,b){if(a.Eg.size===1){const c=Array.from(a.Eg.values())[0];c.du!==b.du&&(c.set("map",null),a.Eg.delete(c))}a.Eg.add(b)},vKa=function(a,b){var c=a.__gm;a=c.get("panes");c=c.get("innerContainer");b={pl:a,vj:_.XA.vj(),Nv:c,shouldFocus:b};return new uKa(b)},mO=function(a,b){a.gh.style.visibility=b?"":"hidden";b&&a.shouldFocus&&(a.focus(),a.shouldFocus=!1);b?wKa(a):a.Pg=!1},xKa=function(a){a.Hi.setAttribute("aria-labelledby",a.Kg.id)}, yKa=function(a){const b=!!a.get("open");var c=a.get("content");c=b?c:null;if(c==a.Ig)mO(a,b&&a.get("position"));else{if(a.Ig){const d=a.Ig.parentNode;d==a.Eg&&d.removeChild(a.Ig)}c&&(a.Ng=!1,a.Eg.appendChild(c));mO(a,b&&a.get("position"));a.Ig=c;nO(a)}},oO=function(a){var b=!!a.get("open"),c=a.get("headerContent");const d=!!a.get("ariaLabel"),e=!a.get("headerDisabled");b=b?c:null;a.Hi.style.paddingTop=e?"0":"12px";b===a.Jg?a.Gg.style.display=e?"":"none":(a.Jg&&(c=a.Jg.parentNode,c===a.Kg&&c.removeChild(a.Jg)), b&&(a.Ng=!1,a.Kg.appendChild(b),e&&!d&&xKa(a)),a.Gg.style.display=e?"":"none",a.Jg=b,nO(a))},nO=function(a){var b=a.getSize();if(b){var c=b.Nl;b=b.minWidth;a.Hi.style.maxWidth=_.vu(c.width);a.Hi.style.maxHeight=_.vu(c.height);a.Hi.style.minWidth=_.vu(b);a.Eg.style.maxHeight=_.Wn.Eg?_.vu(c.height-18):_.vu(c.height-36);pO(a);a.Mg.start()}},zKa=function(a){const b=a.get("pixelOffset")||new _.Yl(0,0);var c=new _.Yl(a.Hi.offsetWidth,a.Hi.offsetHeight);a=-b.height+c.height+11+60;let d=b.height+60;const e= -b.width+c.width/2+60;c=b.width+c.width/2+60;b.height<0&&(d-=b.height);return{top:a,bottom:d,left:e,right:c}},wKa=function(a){!a.Pg&&a.get("open")&&a.get("visible")&&a.get("position")&&(_.Rk(a,"visible"),a.Pg=!0)},pO=function(a){var b=a.get("position");if(b&&a.get("pixelOffset")){var c=zKa(a);const d=b.x-c.left,e=b.y-c.top,f=b.x+c.right;c=b.y+c.bottom;_.Su(a.anchor,b);b=a.get("zIndex");_.Uu(a.gh,_.qj(b)?b:e+60);a.set("pixelBounds",_.bn(d,e,f,c))}},BKa=function(a,b,c){return b instanceof _.al?new AKa(a, b,c):new AKa(a,b)},DKa=function(a){a.Eg&&a.ji.push(_.Ok(a.Eg,"pixelposition_changed",()=>{CKa(a)}))},CKa=function(a){const b=a.model.get("pixelPosition")||a.Eg&&a.Eg.get("pixelPosition");a.Ig.set("position",b)},FKa=function(a){a=a.__gm;a.get("IW_AUTO_CLOSER")||a.set("IW_AUTO_CLOSER",new EKa);return a.get("IW_AUTO_CLOSER")},EKa=class{constructor(){this.Eg=new Set}};var uKa=class extends _.Vk{constructor(a){super();this.Ig=this.Jg=this.Og=null;this.Pg=this.Ng=!1;this.Nv=a.Nv;this.shouldFocus=a.shouldFocus;this.gh=document.createElement("div");this.gh.style.cursor="default";this.gh.style.position="absolute";this.gh.style.left=this.gh.style.top="0";a.pl.floatPane.appendChild(this.gh);this.anchor=_.Tu("div",this.gh);this.Lg=_.Tu("div",this.anchor);this.Hi=_.Tu("div",this.Lg);this.Hi.setAttribute("role","dialog");this.Hi.tabIndex=-1;this.Gg=_.Tu("div",this.Hi);this.Kg= _.Tu("div",this.Gg);this.Sg=_.Tu("div",this.Lg);this.Eg=_.Tu("div",this.Hi);_.mBa(this.gh);_.Nu(this.Hi,"gm-style-iw");_.Nu(this.anchor,"gm-style-iw-a");_.Nu(this.Lg,"gm-style-iw-t");_.Nu(this.Sg,"gm-style-iw-tc");_.Nu(this.Hi,"gm-style-iw-c");_.Nu(this.Gg,"gm-style-iw-chr");_.Nu(this.Kg,"gm-style-iw-ch");_.Nu(this.Eg,"gm-style-iw-d");this.Kg.setAttribute("id",_.Cp());_.Wn.Eg&&!_.Wn.Lg&&(this.Hi.style.paddingInlineEnd="0",this.Hi.style.paddingBottom="0",this.Eg.style.overflow="scroll");mO(this,!1); _.Kk(this.gh,"mousedown",_.Bk);_.Kk(this.gh,"mouseup",_.Bk);_.Kk(this.gh,"mousemove",_.Bk);_.Kk(this.gh,"pointerdown",_.Bk);_.Kk(this.gh,"pointerup",_.Bk);_.Kk(this.gh,"pointermove",_.Bk);_.Kk(this.gh,"dblclick",_.Bk);_.Kk(this.gh,"click",_.Bk);_.Kk(this.gh,"touchstart",_.Bk);_.Kk(this.gh,"touchend",_.Bk);_.Kk(this.gh,"touchmove",_.Bk);_.yu(this.gh,"contextmenu",this,this.Rg);_.yu(this.gh,"wheel",this,_.Bk);_.yu(this.gh,"mousewheel",this,_.yk);_.yu(this.gh,"MozMousePixelScroll",this,_.yk);this.Fg= new _.yA({Rp:new _.Wl(12,12),cr:new _.Yl(24,24),offset:new _.Wl(-6,-6),Bz:!0,ownerElement:this.Gg});this.Gg.appendChild(this.Fg.element);_.Kk(this.Fg.element,"click",b=>{_.Bk(b);_.Rk(this,"closeclick");this.set("open",!1)});this.Mg=new _.En(()=>{!this.Ng&&this.get("content")&&this.get("visible")&&(_.Rk(this,"domready"),this.Ng=!0)},0);this.Qg=_.Kk(this.gh,"keydown",b=>{b.key!=="Escape"&&b.key!=="Esc"||!this.Hi.contains(document.activeElement)||(b.stopPropagation(),_.Rk(this,"closeclick"),this.set("open", !1))})}ariaLabel_changed(){const a=this.get("ariaLabel");a?this.Hi.setAttribute("aria-label",a):(this.Hi.removeAttribute("aria-label"),this.get("headerDisabled")||xKa(this))}open_changed(){yKa(this);oO(this)}headerContent_changed(){oO(this)}headerDisabled_changed(){oO(this)}content_changed(){yKa(this)}pendingFocus_changed(){this.get("pendingFocus")&&(this.get("open")&&this.get("visible")&&this.get("position")?_.ho(this.Hi,!0):console.warn("Setting focus on InfoWindow was ignored. This is most likely due to InfoWindow not being visible yet."), this.set("pendingFocus",!1))}dispose(){setTimeout(()=>{document.activeElement&&document.activeElement!==document.body||(this.Og&&this.Og!==document.body?_.ho(this.Og,!0)||_.ho(this.Nv,!0):_.ho(this.Nv,!0))});this.Qg&&_.Fk(this.Qg);this.gh.parentNode.removeChild(this.gh);this.Mg.stop();this.Mg.dispose()}getSize(){var a=this.get("layoutPixelBounds"),b=this.get("pixelOffset");const c=this.get("maxWidth")||648,d=this.get("minWidth")||0;if(!b)return null;a?(b=a.maxY-a.minY-(11+-b.height),a=a.maxX-a.minX- 6,a>=240&&(a-=120),b>=240&&(b-=120)):(a=648,b=654);a=Math.min(a,c);a=Math.max(d,a);a=Math.max(0,a);b=Math.max(0,b);return{Nl:new _.Yl(a,b),minWidth:d}}pixelOffset_changed(){const a=this.get("pixelOffset")||new _.Yl(0,0);this.Lg.style.right=_.vu(-a.width);this.Lg.style.bottom=_.vu(-a.height+11);nO(this)}layoutPixelBounds_changed(){nO(this)}position_changed(){this.get("position")?(pO(this),mO(this,!!this.get("open"))):mO(this,!1)}zIndex_changed(){pO(this)}visible_changed(){this.gh.style.display=this.get("visible")? "":"none";this.Mg.start();if(this.get("visible")){const a=this.Fg.element.style.display;this.Fg.element.style.display="none";this.Fg.element.getBoundingClientRect();this.Fg.element.style.display=a;wKa(this)}else this.Pg=!1}Rg(a){let b=!1;const c=this.get("content");let d=a.target;for(;!b&&d;)b=d==c,d=d.parentNode;b?_.yk(a):_.Ak(a)}focus(){this.Og=document.activeElement;let a;_.Wn.Mg&&(a=this.Eg.getBoundingClientRect());if(this.get("disableAutoPan"))_.ho(this.Hi,!0);else{var b=_.Zu(this.Eg);if(b.length){b= b[0];a=a||this.Eg.getBoundingClientRect();var c=b.getBoundingClientRect();_.ho(c.bottom<=a.bottom&&c.right<=a.right?b:this.Hi,!0)}else _.ho(this.Fg.element,!0)}}};var AKa=class{constructor(a,b,c){this.model=a;this.isOpen=!0;this.Eg=this.Gg=this.kh=null;this.ji=[];var d=a.get("shouldFocus");this.Ig=vKa(b,d);const e=b.__gm;(d=b instanceof _.al)&&c?c.then(h=>{this.isOpen&&(this.kh=h,this.Eg=new _.KK(k=>{this.Gg=new _.sA(b,h,k,()=>{});h.Bi(this.Gg);return this.Gg}),this.Eg.bindTo("latLngPosition",a,"position"),DKa(this))}):(this.Eg=new _.KK,this.Eg.bindTo("latLngPosition",a,"position"),this.Eg.bindTo("center",e,"projectionCenterQ"),this.Eg.bindTo("zoom",e),this.Eg.bindTo("offset", e),this.Eg.bindTo("projection",b),this.Eg.bindTo("focus",b,"position"),DKa(this));this.Jg=d?lO(a)?"Ia":"Id":null;this.Kg=d?lO(a)?148284:148285:null;const f=new _.LK(["scale"],"visible",h=>h==null||h>=.3);this.Eg&&f.bindTo("scale",this.Eg);const g=this.Ig;g.set("logAsInternal",lO(a));g.bindTo("ariaLabel",a);g.bindTo("zIndex",a);g.bindTo("layoutPixelBounds",e,"pixelBounds");g.bindTo("disableAutoPan",a);g.bindTo("pendingFocus",a);g.bindTo("maxWidth",a);g.bindTo("minWidth",a);g.bindTo("content",a);g.bindTo("headerContent", a);g.bindTo("headerDisabled",a);g.bindTo("pixelOffset",a);g.bindTo("visible",f);this.Fg=new _.En(()=>{if(b instanceof _.al)if(this.kh){var h=a.get("position");h&&_.wfa(b,this.kh,new _.yl(h),zKa(g))}else c.then(()=>{this.Fg.start()});else(h=g.get("pixelBounds"))?_.Rk(e,"pantobounds",h):this.Fg.start()},150);if(d){let h=null;this.ji.push(_.Ok(a,"position_changed",()=>{const k=a.get("position");!k||a.get("disableAutoPan")||k.equals(h)||(this.Fg.start(),h=k)}))}else a.get("disableAutoPan")||this.Fg.start(); g.set("open",!0);this.ji.push(_.Dk(g,"domready",()=>{a.trigger("domready")}));this.ji.push(_.Dk(g,"visible",()=>{a.trigger("visible")}));this.ji.push(_.Dk(g,"closeclick",()=>{a.close();a.trigger("closeclick")}));this.ji.push(_.Ok(a,"pixelposition_changed",()=>{CKa(this)}));this.Jg&&_.Pl(b,this.Jg);this.Kg&&_.Nl(b,this.Kg)}close(){if(this.isOpen){this.isOpen=!1;this.model.trigger("close");for(var a of this.ji)_.Fk(a);this.ji.length=0;this.Fg.stop();this.Fg.dispose();this.kh&&this.Gg&&this.kh.sm(this.Gg); a=this.Ig;a.unbindAll();a.set("open",!1);a.dispose();this.Eg&&this.Eg.unbindAll()}}};_.vk("infowindow",{vE:function(a){let b=null;_.Ok(a,"map_changed",function d(){const e=a.get("map");b&&(b.EA.Eg.delete(a),b.lI.close(),b=null);if(e){const f=e.__gm;f.get("panes")?f.get("innerContainer")?(b={lI:BKa(a,e,e instanceof _.al?f.Fg.then(({kh:g})=>g):void 0),EA:FKa(e)},tKa(b.EA,a)):_.Nk(f,"innercontainer_changed",d):_.Nk(f,"panes_changed",d)}})}});});