google.maps.__gjsload__('infowindow', function(_){var GOa=function(a,b){if(a.mh.size===1){const c=Array.from(a.mh.values())[0];c.qw!==b.qw&&(c.set("map",null),a.mh.delete(c))}a.mh.add(b)},IOa=function(a,b){var c=a.__gm;a=c.get("panes");c=c.get("innerContainer");b={xm:a,Hj:_.pC.Hj(),Dy:c,shouldFocus:b};return new HOa(b)},gP=function(a,b){a.container.style.visibility=b?"":"hidden";b&&a.shouldFocus&&(a.focus(),a.shouldFocus=!1);b?JOa(a):a.xh=!1},KOa=function(a){a.Fj.setAttribute("aria-labelledby",a.ph.id)},LOa=function(a){const b=!!a.get("open");var c=
a.get("content");c=b?c:null;if(c===a.rh)gP(a,b&&a.get("position"));else{if(a.rh){const d=a.rh.parentNode;d===a.mh&&d.removeChild(a.rh)}c&&(a.wh=!1,a.mh.appendChild(c));gP(a,b&&a.get("position"));a.rh=c;hP(a)}},iP=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.Fj.style.paddingTop=e?"0":"12px";b===a.sh?a.oh.style.display=e?"":"none":(a.sh&&(c=a.sh.parentNode,c===a.ph&&c.removeChild(a.sh)),b&&(a.wh=!1,a.ph.appendChild(b),
e&&!d&&KOa(a)),a.oh.style.display=e?"":"none",a.sh=b,hP(a))},hP=function(a){var b=a.getSize();if(b){var c=b.mn;b=b.minWidth;a.Fj.style.maxWidth=_.Dm(c.width);a.Fj.style.maxHeight=_.Dm(c.height);a.Fj.style.minWidth=_.Dm(b);a.mh.style.maxHeight=_.Lq.mh?_.Dm(c.height-18):_.Dm(c.height-36);jP(a);a.uh.start()}},MOa=function(a){const b=a.get("pixelOffset")||new _.Lo(0,0);var c=new _.Lo(a.Fj.offsetWidth,a.Fj.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}},JOa=function(a){!a.xh&&a.get("open")&&a.get("visible")&&a.get("position")&&(_.Un(a,"visible"),a.xh=!0)},jP=function(a){var b=a.get("position");if(b&&a.get("pixelOffset")){var c=MOa(a);const d=b.x-c.left,e=b.y-c.top,f=b.x+c.right;c=b.y+c.bottom;_.wx(a.anchor,b);b=a.get("zIndex");_.yx(a.container,_.um(b)?b:e+60);a.set("pixelBounds",_.up(d,e,f,c))}},OOa=function(a,b,c){return b instanceof _.no?new NOa(a,b,c):new NOa(a,b)},
QOa=function(a){a.mh&&a.aj.push(_.Rn(a.mh,"pixelposition_changed",()=>{POa(a)}))},POa=function(a){const b=a.model.get("pixelPosition")||a.mh&&a.mh.get("pixelPosition");a.ph.set("position",b)},SOa=function(a){a=a.__gm;a.get("IW_AUTO_CLOSER")||a.set("IW_AUTO_CLOSER",new ROa);return a.get("IW_AUTO_CLOSER")},ROa=class{constructor(){this.mh=new Set}};var HOa=class extends _.Yn{constructor(a){super();this.rh=this.sh=this.th=null;this.xh=this.wh=!1;this.Dy=a.Dy;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.xm.floatPane.appendChild(this.container);this.anchor=document.createElement("div");this.container.appendChild(this.anchor);this.qh=document.createElement("div");this.anchor.appendChild(this.qh);
this.Fj=document.createElement("div");this.qh.appendChild(this.Fj);this.Fj.setAttribute("role","dialog");this.Fj.tabIndex=-1;this.oh=document.createElement("div");this.Fj.appendChild(this.oh);this.ph=document.createElement("div");this.oh.appendChild(this.ph);this.zh=document.createElement("div");this.qh.appendChild(this.zh);this.mh=document.createElement("div");this.Fj.appendChild(this.mh);_.rFa(this.container);_.rx(this.Fj,"gm-style-iw");_.rx(this.anchor,"gm-style-iw-a");_.rx(this.qh,"gm-style-iw-t");
_.rx(this.zh,"gm-style-iw-tc");_.rx(this.Fj,"gm-style-iw-c");_.rx(this.oh,"gm-style-iw-chr");_.rx(this.ph,"gm-style-iw-ch");_.rx(this.mh,"gm-style-iw-d");this.ph.setAttribute("id",_.mo());_.Lq.mh&&!_.Lq.uh&&(this.Fj.style.paddingInlineEnd="0",this.Fj.style.paddingBottom="0",this.mh.style.overflow="scroll");gP(this,!1);_.Nn(this.container,"mousedown",_.Dn);_.Nn(this.container,"mouseup",_.Dn);_.Nn(this.container,"mousemove",_.Dn);_.Nn(this.container,"pointerdown",_.Dn);_.Nn(this.container,"pointerup",
_.Dn);_.Nn(this.container,"pointermove",_.Dn);_.Nn(this.container,"dblclick",_.Dn);_.Nn(this.container,"click",_.Dn);_.Nn(this.container,"touchstart",_.Dn);_.Nn(this.container,"touchend",_.Dn);_.Nn(this.container,"touchmove",_.Dn);_.ex(this.container,"contextmenu",this,this.Ah);_.ex(this.container,"wheel",this,_.Dn);this.nh=new _.Rr({Ir:new _.Ho(12,12),Xs:new _.Lo(24,24),offset:new _.Ho(-6,-6),iD:!0,ownerElement:this.oh});this.oh.appendChild(this.nh.element);_.Nn(this.nh.element,"click",b=>{_.Dn(b);
_.Un(this,"closeclick");this.set("open",!1)});this.uh=new _.xq(()=>{!this.wh&&this.get("content")&&this.get("visible")&&(_.Un(this,"domready"),this.wh=!0)},0);this.yh=_.Nn(this.container,"keydown",b=>{b.key!=="Escape"&&b.key!=="Esc"||!this.Fj.contains(document.activeElement)||(b.stopPropagation(),_.Un(this,"closeclick"),this.set("open",!1))})}ariaLabel_changed(){const a=this.get("ariaLabel");a?this.Fj.setAttribute("aria-label",a):(this.Fj.removeAttribute("aria-label"),this.get("headerDisabled")||
KOa(this))}open_changed(){LOa(this);iP(this)}headerContent_changed(){iP(this)}headerDisabled_changed(){iP(this)}content_changed(){LOa(this)}pendingFocus_changed(){this.get("pendingFocus")&&(this.get("open")&&this.get("visible")&&this.get("position")?_.Sq(this.Fj,!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.th&&this.th!==document.body?_.Sq(this.th,!0)||_.Sq(this.Dy,!0):_.Sq(this.Dy,!0))});this.yh&&_.Hn(this.yh);this.container.parentNode.removeChild(this.container);this.uh.stop();this.uh.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{mn:new _.Lo(a,b),minWidth:d}}pixelOffset_changed(){const a=this.get("pixelOffset")||new _.Lo(0,0);this.qh.style.right=_.Dm(-a.width);this.qh.style.bottom=_.Dm(-a.height+11);hP(this)}layoutPixelBounds_changed(){hP(this)}position_changed(){this.get("position")?(jP(this),gP(this,!!this.get("open"))):gP(this,!1)}zIndex_changed(){jP(this)}visible_changed(){this.container.style.display=this.get("visible")?"":"none";this.uh.start();if(this.get("visible")){const a=this.nh.element.style.display;
this.nh.element.style.display="none";this.nh.element.getBoundingClientRect();this.nh.element.style.display=a;JOa(this)}else this.xh=!1}Ah(a){let b=!1;const c=this.get("content");let d=a.target;for(;!b&&d;)b=d===c,d=d.parentNode;b?_.An(a):_.Cn(a)}focus(){this.th=document.activeElement;let a;_.Lq.wh&&(a=this.mh.getBoundingClientRect());if(this.get("disableAutoPan"))_.Sq(this.Fj,!0);else{var b=_.Fx(this.mh);if(b.length){b=b[0];a=a||this.mh.getBoundingClientRect();var c=b.getBoundingClientRect();_.Sq(c.bottom<=
a.bottom&&c.right<=a.right?b:this.Fj,!0)}else _.Sq(this.nh.element,!0)}}};var NOa=class{constructor(a,b,c){this.model=a;this.isOpen=!0;this.mh=this.oh=this.Kh=null;this.aj=[];var d=a.get("shouldFocus");this.ph=IOa(b,d);const e=b.__gm;(d=b instanceof _.no)&&c?c.then(h=>{this.isOpen&&(this.Kh=h,this.mh=new _.XM(k=>{this.oh=new _.LB(b,h,k,()=>{});h.zj(this.oh);return this.oh}),this.mh.bindTo("latLngPosition",a,"position"),QOa(this))}):(this.mh=new _.XM,this.mh.bindTo("latLngPosition",a,"position"),this.mh.bindTo("center",e,"projectionCenterQ"),this.mh.bindTo("zoom",e),this.mh.bindTo("offset",
e),this.mh.bindTo("projection",b),this.mh.bindTo("focus",b,"position"),QOa(this));this.qh=d?a.infoWindow.get("logAsInternal")?148284:148285:null;const f=new _.MM(["scale"],"visible",h=>h==null||h>=.3);this.mh&&f.bindTo("scale",this.mh);const g=this.ph;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.nh=new _.xq(()=>{if(b instanceof _.no)if(this.Kh){var h=a.get("position");h&&(0,_.ipa.OG)(b,this.Kh,new _.uo(h),MOa(g))}else c.then(()=>{this.nh.start()});else(h=g.get("pixelBounds"))?_.Un(e,"pantobounds",h):this.nh.start()},150);if(d){let h=null;this.aj.push(_.Rn(a,"position_changed",()=>{const k=a.get("position");!k||a.get("disableAutoPan")||k.equals(h)||(this.nh.start(),
h=k)}))}else a.get("disableAutoPan")||this.nh.start();g.set("open",!0);this.aj.push(_.Fn(g,"domready",()=>{a.trigger("domready")}));this.aj.push(_.Fn(g,"visible",()=>{a.trigger("visible")}));this.aj.push(_.Fn(g,"closeclick",()=>{a.close();a.trigger("closeclick")}));this.aj.push(_.Rn(a,"pixelposition_changed",()=>{POa(this)}));this.qh&&_.N(b,this.qh)}close(){if(this.isOpen){this.isOpen=!1;this.model.trigger("close");for(var a of this.aj)_.Hn(a);this.aj.length=0;this.nh.stop();this.nh.dispose();this.Kh&&
this.oh&&this.Kh.Ol(this.oh);a=this.ph;a.unbindAll();a.set("open",!1);a.dispose();this.mh&&this.mh.unbindAll()}}};_.Rl("infowindow",{mJ:function(a){let b=null;_.Rn(a,"map_changed",function d(){const e=a.get("map");b&&(b.BE.mh.delete(a),b.aN.close(),b=null);if(e){const f=e.__gm;f.get("panes")?f.get("innerContainer")?(b={aN:OOa(a,e,e instanceof _.no?f.nh.then(({Kh:g})=>g):void 0),BE:SOa(e)},GOa(b.BE,a)):_.Qn(f,"innercontainer_changed",d):_.Qn(f,"panes_changed",d)}})}});});
