google.maps.__gjsload__('infowindow', function(_){var zOa=function(a,b){if(a.qh.size===1){let c=Array.from(a.qh.values())[0];c.Us!==b.Us&&(c.set("map",null),a.qh.delete(c))}a.qh.add(b)},BOa=function(a,b,c=!1){var d=a.__gm;a=d.get("panes");d=d.get("innerContainer");b={mn:a,Mj:_.hB.Mj(),HA:d,shouldFocus:b,Us:c};return new AOa(b)},fL=function(a,b){a.container.style.visibility=b?"":"hidden";b&&a.shouldFocus&&(a.focus(),a.shouldFocus=!1);b?COa(a):a.Dh=!1},DOa=function(a){a.Rj.setAttribute("aria-labelledby",a.th.id)},EOa=function(a){var b=!!a.get("open"), c=a.get("content");c=b?c:null;if(c===a.xh)fL(a,b&&a.get("position"));else{if(a.xh){let d=a.xh.parentNode;d===a.qh&&d.removeChild(a.xh)}c&&(a.Bh=!1,a.qh.appendChild(c));fL(a,b&&a.get("position"));a.xh=c;gL(a)}},hL=function(a){var b=!!a.get("open"),c=a.get("headerContent"),d=!!a.get("ariaLabel"),e=a.get("headerDisabled"),f=!!a.get("isPoi"),g=!e;b=b?c:null;c=f&&e;a.Rj.style.paddingTop=!f&&e?"12px":"0";e=a.Rj;c?_.Wv(e,"gm-style-iw-poi"):_.ZE(e,"gm-style-iw-poi");_.rp.qh&&!_.rp.yh&&(a.qh.style.overflow= c?"auto":"scroll");b===a.yh?a.sh.style.display=g?"":"none":(a.yh&&(e=a.yh.parentNode,e===a.th&&e.removeChild(a.yh)),b&&(a.Bh=!1,a.th.appendChild(b),g&&!d&&DOa(a)),a.sh.style.display=g?"":"none",a.yh=b,gL(a))},iL=function(a,b){var c=!!a.get("isPoi");a=!!a.get("headerDisabled");c&&a&&b instanceof HTMLElement&&(b.style.outline="none");return _.yp(b,!0)},gL=function(a){var b=a.getSize();if(b){var c=b.ho;b=b.minWidth;a.Rj.style.maxWidth=_.Ll(c.width);a.Rj.style.maxHeight=_.Ll(c.height);a.Rj.style.minWidth= _.Ll(b);b=!!a.get("headerDisabled");b=!!a.get("isPoi")&&b;a.qh.style.maxHeight=_.rp.qh?_.Ll(c.height-(b?0:18)):_.Ll(c.height-(b?0:36));jL(a);a.Ah.start()}},FOa=function(a){var b=a.get("pixelOffset")||new _.In(0,0),c=new _.In(a.Rj.offsetWidth,a.Rj.offsetHeight);a=-b.height+c.height+11+60;var d=b.height+60,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}},COa=function(a){!a.Dh&&a.get("open")&&a.get("visible")&&a.get("position")&&(_.Tm(a, "visible"),a.Dh=!0)},jL=function(a){var b=a.get("position");if(b&&a.get("pixelOffset")){var c=FOa(a);let d=b.x-c.left,e=b.y-c.top,f=b.x+c.right;c=b.y+c.bottom;_.$v(a.anchor,b);b=a.get("zIndex");_.bw(a.container,_.Fl(b)?b:e+60);a.set("pixelBounds",_.ao(d,e,f,c))}},HOa=function(a,b,c){return b instanceof _.hn?new GOa(a,b,c):new GOa(a,b)},JOa=function(a){a.qh&&a.Ri.push(_.Rm(a.qh,"pixelposition_changed",()=>{IOa(a)}))},IOa=function(a){var b=a.model.get("pixelPosition")||a.qh&&a.qh.get("pixelPosition"); a.th.set("position",b)},LOa=function(a){a=a.__gm;a.get("IW_AUTO_CLOSER")||a.set("IW_AUTO_CLOSER",new KOa);return a.get("IW_AUTO_CLOSER")},KOa=class{constructor(){this.qh=new Set}};var AOa=class extends _.Vm{constructor(a){super();this.xh=this.yh=this.zh=null;this.Dh=this.Bh=!1;this.HA=a.HA;this.shouldFocus=a.shouldFocus;this.container=document.createElement("div");this.container.style.cursor="default";this.container.style.position="absolute";this.container.style.left=this.container.style.top="0";a.mn.floatPane.appendChild(this.container);this.anchor=document.createElement("div");this.container.appendChild(this.anchor);this.wh=document.createElement("div");this.anchor.appendChild(this.wh); this.Rj=document.createElement("div");this.wh.appendChild(this.Rj);this.Rj.setAttribute("role","dialog");this.Rj.tabIndex=-1;this.sh=document.createElement("div");this.Rj.appendChild(this.sh);this.th=document.createElement("div");this.sh.appendChild(this.th);this.Fh=document.createElement("div");this.wh.appendChild(this.Fh);this.qh=document.createElement("div");this.Rj.appendChild(this.qh);_.jFa(this.container);_.Wv(this.Rj,"gm-style-iw");_.Wv(this.anchor,"gm-style-iw-a");_.Wv(this.wh,"gm-style-iw-t"); _.Wv(this.Fh,"gm-style-iw-tc");_.Wv(this.Rj,"gm-style-iw-c");_.Wv(this.sh,"gm-style-iw-chr");_.Wv(this.th,"gm-style-iw-ch");_.Wv(this.qh,"gm-style-iw-d");this.set("isPoi",a.Us);this.th.setAttribute("id",_.gn());_.rp.qh&&!_.rp.yh&&(this.Rj.style.paddingInlineEnd="0",this.Rj.style.paddingBottom="0",this.qh.style.overflow="scroll");fL(this,!1);_.Nm(this.container,"mousedown",_.Fm);_.Nm(this.container,"mouseup",_.Fm);_.Nm(this.container,"mousemove",_.Fm);_.Nm(this.container,"pointerdown",_.Fm);_.Nm(this.container, "pointerup",_.Fm);_.Nm(this.container,"pointermove",_.Fm);_.Nm(this.container,"dblclick",_.Fm);_.Nm(this.container,"click",_.Fm);_.Nm(this.container,"touchstart",_.Fm);_.Nm(this.container,"touchend",_.Fm);_.Nm(this.container,"touchmove",_.Fm);_.Nv(this.container,"contextmenu",this,this.Gh);_.Nv(this.container,"wheel",this,_.Fm);a=new _.En(12,12);var b=new _.In(24,24);this.rh=new _.tq({Ss:a,Cu:b,offset:new _.En(-6,-6),nF:!0,ownerElement:this.sh});this.sh.appendChild(this.rh.element);_.Nm(this.rh.element, "click",c=>{_.Fm(c);_.Tm(this,"closeclick");this.set("open",!1)});this.Ah=new _.ep(()=>{!this.Bh&&this.get("content")&&this.get("visible")&&(_.Tm(this,"domready"),this.Bh=!0)},0);this.Eh=_.Nm(this.container,"keydown",c=>{c.key!=="Escape"&&c.key!=="Esc"||!this.Rj.contains(document.activeElement)||(c.stopPropagation(),_.Tm(this,"closeclick"),this.set("open",!1))})}ariaLabel_changed(){var a=this.get("ariaLabel");a?this.Rj.setAttribute("aria-label",a):(this.Rj.removeAttribute("aria-label"),this.get("headerDisabled")|| DOa(this))}open_changed(){EOa(this);hL(this)}headerContent_changed(){hL(this)}headerDisabled_changed(){hL(this)}content_changed(){EOa(this)}pendingFocus_changed(){this.get("pendingFocus")&&(this.get("open")&&this.get("visible")&&this.get("position")?iL(this,this.Rj):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.zh&&this.zh!==document.body?iL(this,this.zh)||iL(this,this.HA):iL(this,this.HA))});this.Eh&&_.Jm(this.Eh);this.container.parentNode.removeChild(this.container);this.Ah.stop();this.Ah.dispose()}getSize(){var a=this.get("layoutPixelBounds"),b=this.get("pixelOffset"),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{ho:new _.In(a,b),minWidth:d}}pixelOffset_changed(){var a=this.get("pixelOffset")||new _.In(0,0);this.wh.style.right=_.Ll(-a.width);this.wh.style.bottom=_.Ll(-a.height+11);gL(this)}layoutPixelBounds_changed(){gL(this)}position_changed(){this.get("position")?(jL(this),fL(this,!!this.get("open"))):fL(this,!1)}zIndex_changed(){jL(this)}visible_changed(){this.container.style.display=this.get("visible")?"":"none";this.Ah.start();if(this.get("visible")){let a=this.rh.element.style.display;this.rh.element.style.display= "none";this.rh.element.getBoundingClientRect();this.rh.element.style.display=a;COa(this)}else this.Dh=!1}Gh(a){for(var b=!1,c=this.get("content"),d=a.target;!b&&d;)b=d===c,d=d.parentNode;b?_.Cm(a):_.Em(a)}focus(){this.zh=document.activeElement;var a;_.rp.Bh&&(a=this.qh.getBoundingClientRect());if(this.get("disableAutoPan"))iL(this,this.Rj);else{var b=_.fw(this.qh);if(b.length){b=b[0];a=a||this.qh.getBoundingClientRect();var c=b.getBoundingClientRect();iL(this,c.bottom<=a.bottom&&c.right<=a.right? b:this.Rj)}else iL(this,this.rh.element)}}};var GOa=class{constructor(a,b,c){this.model=a;this.isOpen=!0;this.qh=this.sh=this.Sh=null;this.Ri=[];var d=a.get("shouldFocus");this.th=BOa(b,d,a.Us);var e=b.__gm;(d=b instanceof _.hn)&&c?c.then(h=>{this.isOpen&&(this.Sh=h,this.qh=new _.WI(k=>{this.sh=new _.EA(b,h,k,()=>{});h.Qj(this.sh);return this.sh}),this.qh.bindTo("latLngPosition",a,"position"),JOa(this))}):(this.qh=new _.WI,this.qh.bindTo("latLngPosition",a,"position"),this.qh.bindTo("center",e,"projectionCenterQ"),this.qh.bindTo("zoom",e), this.qh.bindTo("offset",e),this.qh.bindTo("projection",b),this.qh.bindTo("focus",b,"position"),JOa(this));this.wh=d?a.infoWindow.get("logAsInternal")?148284:148285:null;var f=new _.JI(["scale"],"visible",h=>h==null||h>=.3);this.qh&&f.bindTo("scale",this.qh);var g=this.th;g.set("logAsInternal",!!a.infoWindow.get("logAsInternal"));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.rh=new _.ep(()=>{if(b instanceof _.hn)if(this.Sh){var h=a.get("position");h&&_.Zna(b,this.Sh,new _.tn(h),FOa(g))}else c.then(()=>{this.rh.start()});else(h=g.get("pixelBounds"))?_.Tm(e,"pantobounds",h):this.rh.start()},150);if(d){let h=null;this.Ri.push(_.Rm(a,"position_changed",()=>{var k=a.get("position");!k||a.get("disableAutoPan")||k.equals(h)|| (this.rh.start(),h=k)}))}else a.get("disableAutoPan")||this.rh.start();g.set("open",!0);this.Ri.push(_.Hm(g,"domready",()=>{a.trigger("domready")}));this.Ri.push(_.Hm(g,"visible",()=>{a.trigger("visible")}));this.Ri.push(_.Hm(g,"closeclick",()=>{a.close();a.trigger("closeclick")}));this.Ri.push(_.Rm(a,"pixelposition_changed",()=>{IOa(this)}));this.wh&&_.M(b,this.wh)}close(){if(this.isOpen){this.isOpen=!1;this.model.trigger("close");for(var a of this.Ri)_.Jm(a);this.Ri.length=0;this.rh.stop();this.rh.dispose(); this.Sh&&this.sh&&this.Sh.ym(this.sh);a=this.th;a.unbindAll();a.set("open",!1);a.dispose();this.qh&&this.qh.unbindAll()}}};_.el("infowindow",{wL:function(a){var b=null;_.Rm(a,"map_changed",function d(){var e=a.get("map");b&&(b.zG.qh.delete(a),b.pP.close(),b=null);if(e){let f=e.__gm;f.get("panes")?f.get("innerContainer")?(b={pP:HOa(a,e,e instanceof _.hn?f.rh.then(({Sh:g})=>g):void 0),zG:LOa(e)},zOa(b.zG,a)):_.Qm(f,"innercontainer_changed",d):_.Qm(f,"panes_changed",d)}})}});});