diff --git a/assets/index-CGJSXf1t.js b/assets/index-CPMLOr2u.js similarity index 98% rename from assets/index-CGJSXf1t.js rename to assets/index-CPMLOr2u.js index 1052764..beab9b6 100644 --- a/assets/index-CGJSXf1t.js +++ b/assets/index-CPMLOr2u.js @@ -142,8 +142,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann `,mk=C.forwardRef(function(t,n){const r=Po({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:l={},className:s,...a}=r,[u,c]=C.useState([]),f=C.useRef(0),d=C.useRef(null);C.useEffect(()=>{d.current&&(d.current(),d.current=null)},[u]);const p=C.useRef(!1),y=JS(),w=C.useRef(null),x=C.useRef(null),E=C.useCallback(S=>{const{pulsate:k,rippleX:b,rippleY:P,rippleSize:T,cb:O}=S;c(h=>[...h,A.jsx(hk,{classes:{ripple:me(l.ripple,St.ripple),rippleVisible:me(l.rippleVisible,St.rippleVisible),ripplePulsate:me(l.ripplePulsate,St.ripplePulsate),child:me(l.child,St.child),childLeaving:me(l.childLeaving,St.childLeaving),childPulsate:me(l.childPulsate,St.childPulsate)},timeout:nc,pulsate:k,rippleX:b,rippleY:P,rippleSize:T},f.current)]),f.current+=1,d.current=O},[l]),g=C.useCallback((S={},k={},b=()=>{})=>{const{pulsate:P=!1,center:T=o||k.pulsate,fakeElement:O=!1}=k;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const h=O?null:x.current,$=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};let _,R,L;if(T||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)_=Math.round($.width/2),R=Math.round($.height/2);else{const{clientX:U,clientY:H}=S.touches&&S.touches.length>0?S.touches[0]:S;_=Math.round(U-$.left),R=Math.round(H-$.top)}if(T)L=Math.sqrt((2*$.width**2+$.height**2)/3),L%2===0&&(L+=1);else{const U=Math.max(Math.abs((h?h.clientWidth:0)-_),_)*2+2,H=Math.max(Math.abs((h?h.clientHeight:0)-R),R)*2+2;L=Math.sqrt(U**2+H**2)}S!=null&&S.touches?w.current===null&&(w.current=()=>{E({pulsate:P,rippleX:_,rippleY:R,rippleSize:L,cb:b})},y.start(uk,()=>{w.current&&(w.current(),w.current=null)})):E({pulsate:P,rippleX:_,rippleY:R,rippleSize:L,cb:b})},[o,E,y]),m=C.useCallback(()=>{g({},{pulsate:!0})},[g]),v=C.useCallback((S,k)=>{if(y.clear(),(S==null?void 0:S.type)==="touchend"&&w.current){w.current(),w.current=null,y.start(0,()=>{v(S,k)});return}w.current=null,c(b=>b.length>0?b.slice(1):b),d.current=k},[y]);return C.useImperativeHandle(n,()=>({pulsate:m,start:g,stop:v}),[m,g,v]),A.jsx(pk,{className:me(St.root,l.root,s),ref:x,...a,children:A.jsx(Rf,{component:null,exit:!0,children:u})})});function gk(e){return $r("MuiButtonBase",e)}const yk=Xn("MuiButtonBase",["root","disabled","focusVisible"]),vk=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Eo({root:["root",t&&"disabled",n&&"focusVisible"]},gk,o);return n&&r&&(s.root+=` ${r}`),s},wk=qe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${yk.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c0=C.forwardRef(function(t,n){const r=Po({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:l=!1,children:s,className:a,component:u="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:y,LinkComponent:w="a",onBlur:x,onClick:E,onContextMenu:g,onDragLeave:m,onFocus:v,onFocusVisible:S,onKeyDown:k,onKeyUp:b,onMouseDown:P,onMouseLeave:T,onMouseUp:O,onTouchEnd:h,onTouchMove:$,onTouchStart:_,tabIndex:R=0,TouchRippleProps:L,touchRippleRef:U,type:H,...K}=r,N=C.useRef(null),j=JC(),D=as(j.ref,U),[W,Q]=C.useState(!1);c&&W&&Q(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),N.current.focus()}}),[]);const Ie=j.shouldMount&&!f&&!c;C.useEffect(()=>{W&&p&&!f&&j.pulsate()},[f,p,W,j]);function Y(V,Cn,Mr=d){return fr(er=>(Cn&&Cn(er),Mr||j[V](er),!0))}const se=Y("start",P),oe=Y("stop",g),Re=Y("stop",m),ze=Y("stop",O),_t=Y("stop",V=>{W&&V.preventDefault(),T&&T(V)}),on=Y("start",_),Wt=Y("stop",h),Tr=Y("stop",$),Rr=Y("stop",V=>{Cp(V.target)||Q(!1),x&&x(V)},!1),Ar=fr(V=>{N.current||(N.current=V.currentTarget),Cp(V.target)&&(Q(!0),S&&S(V)),v&&v(V)}),qn=()=>{const V=N.current;return u&&u!=="button"&&!(V.tagName==="A"&&V.href)},Zn=fr(V=>{p&&!V.repeat&&W&&V.key===" "&&j.stop(V,()=>{j.start(V)}),V.target===V.currentTarget&&qn()&&V.key===" "&&V.preventDefault(),k&&k(V),V.target===V.currentTarget&&qn()&&V.key==="Enter"&&!c&&(V.preventDefault(),E&&E(V))}),Ze=fr(V=>{p&&V.key===" "&&W&&!V.defaultPrevented&&j.stop(V,()=>{j.pulsate(V)}),b&&b(V),E&&V.target===V.currentTarget&&qn()&&V.key===" "&&!V.defaultPrevented&&E(V)});let Je=u;Je==="button"&&(K.href||K.to)&&(Je=w);const Ut={};Je==="button"?(Ut.type=H===void 0?"button":H,Ut.disabled=c):(!K.href&&!K.to&&(Ut.role="button"),c&&(Ut["aria-disabled"]=c));const Ke=as(n,N),It={...r,centerRipple:l,component:u,disabled:c,disableRipple:f,disableTouchRipple:d,focusRipple:p,tabIndex:R,focusVisible:W},Jn=vk(It);return A.jsxs(wk,{as:Je,className:me(Jn.root,a),ownerState:It,onBlur:Rr,onClick:E,onContextMenu:oe,onFocus:Ar,onKeyDown:Zn,onKeyUp:Ze,onMouseDown:se,onMouseLeave:_t,onMouseUp:ze,onDragLeave:Re,onTouchEnd:Wt,onTouchMove:Tr,onTouchStart:on,ref:Ke,tabIndex:c?-1:R,type:H,...Ut,...K,children:[s,Ie?A.jsx(mk,{ref:D,center:l,...L}):null]})});function xk(e){return $r("MuiTabScrollButton",e)}const Sk=Xn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ck=e=>{const{classes:t,orientation:n,disabled:r}=e;return Eo({root:["root",n,r&&"disabled"]},xk,t)},kk=qe(c0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Sk.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Ek=C.forwardRef(function(t,n){const r=Po({props:t,name:"MuiTabScrollButton"}),{className:o,slots:l={},slotProps:s={},direction:a,orientation:u,disabled:c,...f}=r,d=Rg(),p={isRtl:d,...r},y=Ck(p),w=l.StartScrollButtonIcon??qC,x=l.EndScrollButtonIcon??ZC,E=us({elementType:w,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),g=us({elementType:x,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return A.jsx(kk,{component:"div",className:me(y.root,o),ref:n,role:null,ownerState:p,tabIndex:null,...f,style:{...f.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?A.jsx(w,{...E}):A.jsx(x,{...g})})});function bk(e){return $r("MuiTabs",e)}const Ya=Xn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Op=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,_p=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,gl=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const l=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||l)o=n(e,o);else{o.focus();return}}},Pk=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:l,centered:s,scrollButtonsHideMobile:a,classes:u}=e;return Eo({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",l&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},bk,u)},$k=qe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ya.scrollButtons}`]:t.scrollButtons},{[`& .${Ya.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(ma(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Ya.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Tk=qe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Rk=qe("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Ak=qe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(ma(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Mk=qe(YC)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ip={},Ok=C.forwardRef(function(t,n){const r=Po({props:t,name:"MuiTabs"}),o=FC(),l=Rg(),{"aria-label":s,"aria-labelledby":a,action:u,centered:c=!1,children:f,className:d,component:p="div",allowScrollButtonsMobile:y=!1,indicatorColor:w="primary",onChange:x,orientation:E="horizontal",ScrollButtonComponent:g=Ek,scrollButtons:m="auto",selectionFollowsFocus:v,slots:S={},slotProps:k={},TabIndicatorProps:b={},TabScrollButtonProps:P={},textColor:T="primary",value:O,variant:h="standard",visibleScrollbar:$=!1,..._}=r,R=h==="scrollable",L=E==="vertical",U=L?"scrollTop":"scrollLeft",H=L?"top":"left",K=L?"bottom":"right",N=L?"clientHeight":"clientWidth",j=L?"height":"width",D={...r,component:p,allowScrollButtonsMobile:y,indicatorColor:w,orientation:E,vertical:L,scrollButtons:m,textColor:T,variant:h,visibleScrollbar:$,fixed:!R,hideScrollbar:R&&!$,scrollableX:R&&!L,scrollableY:R&&L,centered:c&&!R,scrollButtonsHideMobile:!y},W=Pk(D),Q=us({elementType:S.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:D}),Ie=us({elementType:S.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:D}),[Y,se]=C.useState(!1),[oe,Re]=C.useState(Ip),[ze,_t]=C.useState(!1),[on,Wt]=C.useState(!1),[Tr,Rr]=C.useState(!1),[Ar,qn]=C.useState({overflow:"hidden",scrollbarWidth:0}),Zn=new Map,Ze=C.useRef(null),Je=C.useRef(null),Ut=()=>{const B=Ze.current;let F;if(B){const q=B.getBoundingClientRect();F={clientWidth:B.clientWidth,scrollLeft:B.scrollLeft,scrollTop:B.scrollTop,scrollWidth:B.scrollWidth,top:q.top,bottom:q.bottom,left:q.left,right:q.right}}let ee;if(B&&O!==!1){const q=Je.current.children;if(q.length>0){const ve=q[Zn.get(O)];ee=ve?ve.getBoundingClientRect():null}}return{tabsMeta:F,tabMeta:ee}},Ke=fr(()=>{const{tabsMeta:B,tabMeta:F}=Ut();let ee=0,q;L?(q="top",F&&B&&(ee=F.top-B.top+B.scrollTop)):(q=l?"right":"left",F&&B&&(ee=(l?-1:1)*(F[q]-B[q]+B.scrollLeft)));const ve={[q]:ee,[j]:F?F[j]:0};if(typeof oe[q]!="number"||typeof oe[j]!="number")Re(ve);else{const Vt=Math.abs(oe[q]-ve[q]),tr=Math.abs(oe[j]-ve[j]);(Vt>=1||tr>=1)&&Re(ve)}}),It=(B,{animation:F=!0}={})=>{F?HC(U,Ze.current,B,{duration:o.transitions.duration.standard}):Ze.current[U]=B},Jn=B=>{let F=Ze.current[U];L?F+=B:F+=B*(l?-1:1),It(F)},V=()=>{const B=Ze.current[N];let F=0;const ee=Array.from(Je.current.children);for(let q=0;qB){q===0&&(F=B);break}F+=ve[N]}return F},Cn=()=>{Jn(-1*V())},Mr=()=>{Jn(V())},er=C.useCallback(B=>{qn({overflow:null,scrollbarWidth:B})},[]),$o=()=>{const B={};B.scrollbarSizeListener=R?A.jsx(Mk,{onChange:er,className:me(W.scrollableX,W.hideScrollbar)}):null;const ee=R&&(m==="auto"&&(ze||on)||m===!0);return B.scrollButtonStart=ee?A.jsx(g,{slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:E,direction:l?"right":"left",onClick:Cn,disabled:!ze,...P,className:me(W.scrollButtons,P.className)}):null,B.scrollButtonEnd=ee?A.jsx(g,{slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ie},orientation:E,direction:l?"left":"right",onClick:Mr,disabled:!on,...P,className:me(W.scrollButtons,P.className)}):null,B},To=fr(B=>{const{tabsMeta:F,tabMeta:ee}=Ut();if(!(!ee||!F)){if(ee[H]F[K]){const q=F[U]+(ee[K]-F[K]);It(q,{animation:B})}}}),Ki=fr(()=>{R&&m!==!1&&Rr(!Tr)});C.useEffect(()=>{const B=e0(()=>{Ze.current&&Ke()});let F;const ee=Vt=>{Vt.forEach(tr=>{tr.removedNodes.forEach(Ro=>{F==null||F.unobserve(Ro)}),tr.addedNodes.forEach(Ro=>{F==null||F.observe(Ro)})}),B(),Ki()},q=Ef(Ze.current);q.addEventListener("resize",B);let ve;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(B),Array.from(Je.current.children).forEach(Vt=>{F.observe(Vt)})),typeof MutationObserver<"u"&&(ve=new MutationObserver(ee),ve.observe(Je.current,{childList:!0})),()=>{B.clear(),q.removeEventListener("resize",B),ve==null||ve.disconnect(),F==null||F.disconnect()}},[Ke,Ki]),C.useEffect(()=>{const B=Array.from(Je.current.children),F=B.length;if(typeof IntersectionObserver<"u"&&F>0&&R&&m!==!1){const ee=B[0],q=B[F-1],ve={root:Ze.current,threshold:.99},Vt=wa=>{_t(!wa[0].isIntersecting)},tr=new IntersectionObserver(Vt,ve);tr.observe(ee);const Ro=wa=>{Wt(!wa[0].isIntersecting)},Kf=new IntersectionObserver(Ro,ve);return Kf.observe(q),()=>{tr.disconnect(),Kf.disconnect()}}},[R,m,Tr,f==null?void 0:f.length]),C.useEffect(()=>{se(!0)},[]),C.useEffect(()=>{Ke()}),C.useEffect(()=>{To(Ip!==oe)},[To,oe]),C.useImperativeHandle(u,()=>({updateIndicator:Ke,updateScrollButtons:Ki}),[Ke,Ki]);const Hf=A.jsx(Ak,{...b,className:me(W.indicator,b.className),ownerState:D,style:{...oe,...b.style}});let Gi=0;const ry=C.Children.map(f,B=>{if(!C.isValidElement(B))return null;const F=B.props.value===void 0?Gi:B.props.value;Zn.set(F,Gi);const ee=F===O;return Gi+=1,C.cloneElement(B,{fullWidth:h==="fullWidth",indicator:ee&&!Y&&Hf,selected:ee,selectionFollowsFocus:v,onChange:x,textColor:T,value:F,...Gi===1&&O===!1&&!B.props.tabIndex?{tabIndex:0}:{}})}),oy=B=>{const F=Je.current,ee=t0(F).activeElement;if(ee.getAttribute("role")!=="tab")return;let ve=E==="horizontal"?"ArrowLeft":"ArrowUp",Vt=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&l&&(ve="ArrowRight",Vt="ArrowLeft"),B.key){case ve:B.preventDefault(),gl(F,ee,_p);break;case Vt:B.preventDefault(),gl(F,ee,Op);break;case"Home":B.preventDefault(),gl(F,null,Op);break;case"End":B.preventDefault(),gl(F,null,_p);break}},va=$o();return A.jsxs($k,{className:me(W.root,d),ownerState:D,ref:n,as:p,..._,children:[va.scrollButtonStart,va.scrollbarSizeListener,A.jsxs(Tk,{className:W.scroller,ownerState:D,style:{overflow:Ar.overflow,[L?`margin${l?"Left":"Right"}`:"marginBottom"]:$?void 0:-Ar.scrollbarWidth},ref:Ze,children:[A.jsx(Rk,{"aria-label":s,"aria-labelledby":a,"aria-orientation":E==="vertical"?"vertical":null,className:W.flexContainer,ownerState:D,onKeyDown:oy,ref:Je,role:"tablist",children:ry}),Y&&Hf]}),va.scrollButtonEnd]})});function _k(e){return $r("MuiTab",e)}const xt=Xn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Ik=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:l,label:s,selected:a,disabled:u}=e,c={root:["root",l&&s&&"labelIcon",`textColor${Wn(n)}`,r&&"fullWidth",o&&"wrapped",a&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return Eo(c,_k,t)},Lk=qe(c0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Wn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${xt.iconWrapper}`]:t.iconWrapper},{[`& .${xt.icon}`]:t.icon}]}})(ma(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${xt.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${xt.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${xt.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${xt.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${xt.selected}`]:{opacity:1},[`&.${xt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${xt.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${xt.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${xt.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${xt.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Lp=C.forwardRef(function(t,n){const r=Po({props:t,name:"MuiTab"}),{className:o,disabled:l=!1,disableFocusRipple:s=!1,fullWidth:a,icon:u,iconPosition:c="top",indicator:f,label:d,onChange:p,onClick:y,onFocus:w,selected:x,selectionFollowsFocus:E,textColor:g="inherit",value:m,wrapped:v=!1,...S}=r,k={...r,disabled:l,disableFocusRipple:s,selected:x,icon:!!u,iconPosition:c,label:!!d,fullWidth:a,textColor:g,wrapped:v},b=Ik(k),P=u&&d&&C.isValidElement(u)?C.cloneElement(u,{className:me(b.icon,u.props.className)}):u,T=h=>{!x&&p&&p(h,m),y&&y(h)},O=h=>{E&&!x&&p&&p(h,m),w&&w(h)};return A.jsxs(Lk,{focusRipple:!s,className:me(b.root,o),ref:n,role:"tab","aria-selected":x,disabled:l,onClick:T,onFocus:O,ownerState:k,tabIndex:x?0:-1,...S,children:[c==="top"||c==="start"?A.jsxs(C.Fragment,{children:[P,d]}):A.jsxs(C.Fragment,{children:[d,P]}),f]})});function Nk({props:e,name:t}){return FS({props:e,name:t,defaultTheme:$f,themeId:ha})}const jk=(e,t,n)=>{const r=C.useRef({displayError:!1,initialCompute:!0,computeRun:0}),o=C.useRef(null),[l,s]=C.useState(0),[a,u]=C.useState(0),c=C.useCallback(()=>{const f=o==null?void 0:o.current;if(!f)return{};const p=Ef(f).getComputedStyle(f),y=Math.floor(parseFloat(p.height))||0,w=Math.floor(parseFloat(p.width))||0;return s(w),u(y),{width:w,height:y}},[]);return C.useEffect(()=>{r.current.displayError=!0},[]),ps(()=>{},[l,a,c,n]),ps(()=>{if(e!==void 0&&t!==void 0)return()=>{};c();const f=o.current;if(typeof ResizeObserver>"u")return()=>{};let d;const p=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{c()})});return f&&p.observe(f),()=>{d&&cancelAnimationFrame(d),f&&p.unobserve(f)}},[c,t,e]),{containerRef:o,width:e??l,height:t??a}},Dk=C.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null});function zk(e){return e.bandwidth!==void 0}const Bk={top:50,bottom:50,left:50,right:50},Fk=(e,t,n)=>{const r=Oe({},Bk,n);return C.useMemo(()=>({left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:Math.max(0,e-r.left-r.right),height:Math.max(0,t-r.top-r.bottom)}),[e,t,r.top,r.bottom,r.left,r.right])},f0=C.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1}),d0=C.createContext({isInitialized:!1,data:{current:null}});function Wk(e){const{width:t,height:n,margin:r,svgRef:o,children:l}=e,s=Fk(t,n,r),a=YS(),u=C.useCallback(({x:d,y:p},y)=>{if(y!=null&&y.targetElement&&(y!=null&&y.targetElement.closest("[data-drawing-container]")))return!0;const w=d>=s.left-1&&d<=s.left+s.width,x=p>=s.top-1&&p<=s.top+s.height;return(y==null?void 0:y.direction)==="x"?w:((y==null?void 0:y.direction)==="y"||w)&&x},[s]),c=C.useMemo(()=>Oe({chartId:a??""},s,{isPointInside:u}),[a,s,u]),f=C.useMemo(()=>({isInitialized:!0,data:o}),[o]);return A.jsx(d0.Provider,{value:f,children:A.jsx(f0.Provider,{value:c,children:l})})}function p0(){const{left:e,top:t,width:n,height:r,bottom:o,right:l,isPointInside:s}=C.useContext(f0);return C.useMemo(()=>({left:e,top:t,width:n,height:r,bottom:o,right:l,isPointInside:s}),[r,e,t,n,o,l,s])}function En(e){return function(){return e}}const Np=Math.abs,We=Math.atan2,nr=Math.cos,Uk=Math.max,qa=Math.min,Gt=Math.sin,Jr=Math.sqrt,et=1e-12,Ai=Math.PI,gs=Ai/2,Vk=2*Ai;function Hk(e){return e>1?0:e<-1?Ai:Math.acos(e)}function jp(e){return e>=1?gs:e<=-1?-gs:Math.asin(e)}const rc=Math.PI,oc=2*rc,lr=1e-6,Kk=oc-lr;function h0(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return h0;const n=10**t;return function(r){this._+=r[0];for(let o=1,l=r.length;olr)if(!(Math.abs(d*u-c*f)>lr)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-s,w=o-a,x=u*u+c*c,E=y*y+w*w,g=Math.sqrt(x),m=Math.sqrt(p),v=l*Math.tan((rc-Math.acos((x+p-E)/(2*g*m)))/2),S=v/m,k=v/g;Math.abs(S-1)>lr&&this._append`L${t+S*f},${n+S*d}`,this._append`A${l},${l},0,0,${+(d*y>f*w)},${this._x1=t+k*u},${this._y1=n+k*c}`}}arc(t,n,r,o,l,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(o),u=r*Math.sin(o),c=t+a,f=n+u,d=1^s,p=s?o-l:l-o;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>lr||Math.abs(this._y1-f)>lr)&&this._append`L${c},${f}`,r&&(p<0&&(p=p%oc+oc),p>Kk?this._append`A${r},${r},0,1,${d},${t-a},${n-u}A${r},${r},0,1,${d},${this._x1=c},${this._y1=f}`:p>lr&&this._append`A${r},${r},0,${+(p>=rc)},${d},${this._x1=t+r*Math.cos(l)},${this._y1=n+r*Math.sin(l)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function Xk(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Qk(t)}function Yk(e){return e.innerRadius}function qk(e){return e.outerRadius}function Zk(e){return e.startAngle}function Jk(e){return e.endAngle}function e2(e){return e&&e.padAngle}function t2(e,t,n,r,o,l,s,a){var u=n-e,c=r-t,f=s-o,d=a-l,p=d*u-f*c;if(!(p*pL*L+U*U&&(T=h,O=$),{cx:T,cy:O,x01:-f,y01:-d,x11:T*(o/k-1),y11:O*(o/k-1)}}function m0(){var e=Yk,t=qk,n=En(0),r=null,o=Zk,l=Jk,s=e2,a=null,u=Xk(c);function c(){var f,d,p=+e.apply(this,arguments),y=+t.apply(this,arguments),w=o.apply(this,arguments)-gs,x=l.apply(this,arguments)-gs,E=Np(x-w),g=x>w;if(a||(a=f=u()),yet))a.moveTo(0,0);else if(E>Vk-et)a.moveTo(y*nr(w),y*Gt(w)),a.arc(0,0,y,w,x,!g),p>et&&(a.moveTo(p*nr(x),p*Gt(x)),a.arc(0,0,p,x,w,g));else{var m=w,v=x,S=w,k=x,b=E,P=E,T=s.apply(this,arguments)/2,O=T>et&&(r?+r.apply(this,arguments):Jr(p*p+y*y)),h=qa(Np(y-p)/2,+n.apply(this,arguments)),$=h,_=h,R,L;if(O>et){var U=jp(O/p*Gt(T)),H=jp(O/y*Gt(T));(b-=U*2)>et?(U*=g?1:-1,S+=U,k-=U):(b=0,S=k=(w+x)/2),(P-=H*2)>et?(H*=g?1:-1,m+=H,v-=H):(P=0,m=v=(w+x)/2)}var K=y*nr(m),N=y*Gt(m),j=p*nr(k),D=p*Gt(k);if(h>et){var W=y*nr(v),Q=y*Gt(v),Ie=p*nr(S),Y=p*Gt(S),se;if(Eet?_>et?(R=yl(Ie,Y,K,N,y,_,g),L=yl(W,Q,j,D,y,_,g),a.moveTo(R.cx+R.x01,R.cy+R.y01),_et)||!(b>et)?a.lineTo(j,D):$>et?(R=yl(j,D,W,Q,p,-$,g),L=yl(K,N,Ie,Y,p,-$,g),a.lineTo(R.cx+R.x01,R.cy+R.y01),${const{data:e}=C.useContext(n2);return e};function o2(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}function i2(){const{isInitialized:e,data:t}=C.useContext(d0);if(!e)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join(` `));return t}function Dr(e){return e instanceof Date?e.getTime():e}const l2=e=>{const t=i2(),n=p0(),{xAxis:r,yAxis:o,xAxisIds:l,yAxisIds:s}=r2(),{dispatch:a}=C.useContext(Dk),u=l[0],c=s[0],f=C.useRef({isInChart:!1,x:-1,y:-1});C.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function p(E,g){const{scale:m,data:v,reverse:S}=E;if(!zk(m)){const b=m.invert(g);if(v===void 0)return{value:b,index:-1};const P=Dr(b),T=v==null?void 0:v.findIndex((O,h)=>{const $=Dr(O);return $>P&&(h===0||Math.abs(P-$)<=Math.abs(P-Dr(v[h-1])))||$<=P&&(h===v.length-1||Math.abs(Dr(b)-$)=0?v[T]:b,index:T}}const k=m.bandwidth()===0?Math.floor((g-Math.min(...m.range())+m.step()/2)/m.step()):Math.floor((g-Math.min(...m.range()))/m.step());if(k<0||k>=v.length)return null;if(S){const b=v.length-1-k;return{index:b,value:v[b]}}return{index:k,value:v[k]}}const y=()=>{f.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},w=E=>{const g="targetTouches"in E?E.targetTouches[0]:E,m=o2(d,g);if(f.current.x=m.x,f.current.y=m.y,!n.isPointInside(m,{targetElement:E.target})){f.current.isInChart&&(a({type:"exitChart"}),f.current.isInChart=!1);return}f.current.isInChart=!0;const v=p(r[u],m.x),S=p(o[c],m.y);a({type:"updateAxis",data:{x:v,y:S}})},x=E=>{const g=E.currentTarget;g&&g.hasPointerCapture(E.pointerId)&&g.releasePointerCapture(E.pointerId)};return d.addEventListener("pointerdown",x),d.addEventListener("pointermove",w),d.addEventListener("pointerout",y),d.addEventListener("pointercancel",y),d.addEventListener("pointerleave",y),()=>{d.removeEventListener("pointerdown",x),d.removeEventListener("pointermove",w),d.removeEventListener("pointerout",y),d.removeEventListener("pointercancel",y),d.removeEventListener("pointerleave",y)}},[t,a,c,o,u,r,e,n])},s2=["children","width","height","viewBox","disableAxisListener","className","title","desc"],a2=qe("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),u2=C.forwardRef(function(t,n){const r=Nk({props:t,name:"MuiChartsSurface"}),{children:o,width:l,height:s,viewBox:a,disableAxisListener:u=!1,className:c,title:f,desc:d}=r,p=Vn(r,s2),y=Oe({width:l,height:s,x:0,y:0},a);return l2(u),A.jsxs(a2,Oe({width:l,height:s,viewBox:`${y.x} ${y.y} ${y.width} ${y.height}`,ref:n,className:c},p,{children:[A.jsx("title",{children:f}),A.jsx("desc",{children:d}),o]}))});function Fo(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw new Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function c2(e){return Math.PI*e/180}function Za(e){const t=c2(e);return[Math.sin(t),-Math.cos(t)]}function f2(e,t){const n=[[0,0],Za(e),Za(t)],r=Math.min(e,t),o=Math.max(e,t),l=Math.floor(r/90)*90;for(let f=1;f<=4;f+=1){const d=l+f*90;df)),a=Math.max(...n.map(([f])=>f)),u=Math.min(...n.map(([,f])=>f)),c=Math.max(...n.map(([,f])=>f));return{cx:-s/(a-s),cy:-u/(c-u),minX:s,maxX:a,minY:u,maxY:c}}function d2(e,t,n,r,{minX:o,maxX:l,minY:s,maxY:a}){return Math.min(...[{ratio:Math.abs(o),space:e},{ratio:Math.abs(l),space:n-e},{ratio:Math.abs(s),space:t},{ratio:Math.abs(a),space:r-t}].map(({ratio:u,space:c})=>u<1e-5?1/0:c/u))}const g0=C.createContext({value:null,valueMin:0,valueMax:0,startAngle:0,endAngle:0,innerRadius:0,outerRadius:0,cornerRadius:0,cx:0,cy:0,maxRadius:0,valueAngle:null});function p2(e){const{value:t=null,valueMin:n=0,valueMax:r=100,startAngle:o=0,endAngle:l=360,outerRadius:s,innerRadius:a,cornerRadius:u,cx:c,cy:f,children:d}=e,{left:p,top:y,width:w,height:x}=p0(),E=f2(o,l),g=c?Fo(c,w):E.cx*w,m=f?Fo(f,x):E.cy*x;let v=p+g,S=y+m;const k=d2(g,m,w,x,E);if(c===void 0){const h=k*(E.maxX-E.minX);v=p+(w-h)/2+E.cx*h}if(f===void 0){const h=k*(E.maxY-E.minY);S=y+(x-h)/2+E.cy*h}const b=Fo(s??k,k),P=Fo(a??"80%",k),T=Fo(u??0,b-P),O=C.useMemo(()=>{const h=Math.PI*o/180,$=Math.PI*l/180;return{value:t,valueMin:n,valueMax:r,startAngle:h,endAngle:$,outerRadius:b,innerRadius:P,cornerRadius:T,cx:v,cy:S,maxRadius:k,valueAngle:t===null?null:h+($-h)*(t-n)/(r-n)}},[t,n,r,o,l,b,P,T,v,S,k]);return A.jsx(g0.Provider,{value:O,children:d})}function Af(){return C.useContext(g0)}const h2=["width","height","margin","title","desc","value","valueMin","valueMax","startAngle","endAngle","outerRadius","innerRadius","cornerRadius","cx","cy","children"],m2=qe("div",{name:"MuiGauge",slot:"Container"})(({ownerState:e,theme:t})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"},"& text":{fill:(t.vars||t).palette.text.primary}})),g2=C.forwardRef(function(t,n){const{width:r,height:o,margin:l,title:s,desc:a,value:u,valueMin:c=0,valueMax:f=100,startAngle:d,endAngle:p,outerRadius:y,innerRadius:w,cornerRadius:x,cx:E,cy:g,children:m}=t,v=Vn(t,h2),{containerRef:S,width:k,height:b}=jk(r,o),P=C.useRef(null),T=as(n,P);return A.jsx(m2,Oe({ref:S,ownerState:{width:r,height:o},role:"meter","aria-valuenow":u===null?void 0:u,"aria-valuemin":c,"aria-valuemax":f},v,{children:k&&b?A.jsx(Wk,{width:k,height:b,margin:Oe({left:10,right:10,top:10,bottom:10},l),svgRef:P,children:A.jsx(p2,{value:u,valueMin:c,valueMax:f,startAngle:d,endAngle:p,outerRadius:y,innerRadius:w,cornerRadius:x,cx:E,cy:g,children:A.jsx(u2,{width:k,height:b,ref:T,title:s,desc:a,disableAxisListener:!0,"aria-hidden":"true",children:m})})}):null}))}),y2=qe("path",{name:"MuiGauge",slot:"ReferenceArc",overridesResolver:(e,t)=>t.referenceArc})(({theme:e})=>({fill:(e.vars||e).palette.primary.main}));function v2(e){const{value:t,valueMin:n,valueMax:r,startAngle:o,endAngle:l,outerRadius:s,innerRadius:a,cornerRadius:u,cx:c,cy:f}=Af();if(t===null)return null;const d=o+(t-n)/(r-n)*(l-o);return A.jsx(y2,Oe({transform:`translate(${c}, ${f})`,d:m0().cornerRadius(u)({startAngle:o,endAngle:d,innerRadius:a,outerRadius:s})},e))}const w2=qe("path",{name:"MuiGauge",slot:"ReferenceArc",overridesResolver:(e,t)=>t.referenceArc})(({theme:e})=>({fill:(e.vars||e).palette.divider}));function x2(e){const{startAngle:t,endAngle:n,outerRadius:r,innerRadius:o,cornerRadius:l,cx:s,cy:a}=Af();return A.jsx(w2,Oe({transform:`translate(${s}, ${a})`,d:m0().cornerRadius(l)({startAngle:t,endAngle:n,innerRadius:o,outerRadius:r})},e))}function S2(e){return $r("MuiGauge",e)}const Dp=Xn("MuiGauge",["root","valueArc","referenceArc","valueText"]);function C2(){return typeof window>"u"}const rr={widthCache:{},cacheCount:0},k2=2e3,E2={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},b2=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],zp="mui_measurement_span";function y0(e,t){return b2.indexOf(e)>=0&&t===+t?`${t}px`:t}function v0(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const P2=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${v0(n)}:${y0(n,e[n])};`,"");let Ja;const $2=(e,t={})=>{if(e==null||C2())return{width:0,height:0};const n=`${e}`,r=P2(t),o=`${n}-${r}`;if(rr.widthCache[o])return rr.widthCache[o];try{let l=document.getElementById(zp);l===null&&(l=document.createElement("span"),l.setAttribute("id",zp),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));const s=Oe({},E2,t);Object.keys(s).map(c=>(l.style[v0(c)]=y0(c,s[c]),c)),l.textContent=n;const a=l.getBoundingClientRect(),u={width:a.width,height:a.height};return rr.widthCache[o]=u,rr.cacheCount+1>k2?(rr.cacheCount=0,rr.widthCache={}):rr.cacheCount+=1,Ja&&clearTimeout(Ja),Ja=setTimeout(()=>{l.textContent=""},0),u}catch{return{width:0,height:0}}};function T2({style:e,needsComputation:t,text:n}){return n.split(` `).map(r=>Oe({text:r},t?$2(r,e):{width:0,height:0}))}const R2=["x","y","style","text","ownerState"],A2=["angle","textAnchor","dominantBaseline"];function M2(e){const{x:t,y:n,style:r,text:o}=e,l=Vn(e,R2),s=r??{},{angle:a,textAnchor:u,dominantBaseline:c}=s,f=Vn(s,A2),d=C.useMemo(()=>T2({style:f,needsComputation:o.includes(` -`),text:o}),[f,o]);let p;switch(c){case"hanging":p=0;break;case"central":p=(d.length-1)/2*-d[0].height;break;default:p=(d.length-1)*-d[0].height;break}const y=[];return a&&y.push(`rotate(${a}, ${t}, ${n})`),A.jsx("text",Oe({},l,{transform:y.length>0?y.join(" "):void 0,x:t,y:n,textAnchor:u,dominantBaseline:c,style:f,children:d.map((w,x)=>A.jsx("tspan",{x:t,dy:`${x===0?p:d[0].height}px`,dominantBaseline:c,children:w.text},x))}))}const O2=["text","className"];function _2({value:e}){return e===null?null:e.toLocaleString()}function I2(e){const{text:t=_2,className:n}=e,r=Vn(e,O2),{value:o,valueMin:l,valueMax:s,cx:a,cy:u}=Af(),c=typeof t=="function"?t({value:o,valueMin:l,valueMax:s}):t;return c===null?null:A.jsx("g",{className:n,children:A.jsx(M2,Oe({x:a,y:u,text:c,style:{textAnchor:"middle",dominantBaseline:"central"}},r))})}const L2=["text","children","classes","className"],N2=e=>{const{classes:t}=e;return Eo({root:["root"],valueArc:["valueArc"],referenceArc:["referenceArc"],valueText:["valueText"]},S2,t)},j2=C.forwardRef(function(t,n){const{text:r,children:o,className:l}=t,s=Vn(t,L2),a=N2(t);return A.jsxs(g2,Oe({},s,{className:me(a.root,l),ref:n,children:[A.jsx(x2,{className:a.referenceArc}),A.jsx(v2,{className:a.valueArc}),A.jsx(I2,{className:a.valueText,text:r}),o]}))});function D2({percent:e}){return A.jsx(j2,{value:e,startAngle:0,endAngle:360,width:100,height:100,sx:{[`& .${Dp.valueText}`]:{fontSize:15,transform:"translate(0px, 0px)"},[`& .${Dp.valueArc}`]:{fill:e>80?"red":e>50?"orange":"green"}},text:({value:t,valueMax:n})=>`${e}%`})}var lt="top",Rt="bottom",At="right",st="left",Mf="auto",Ui=[lt,Rt,At,st],yo="start",Mi="end",z2="clippingParents",w0="viewport",Wo="popper",B2="reference",Bp=Ui.reduce(function(e,t){return e.concat([t+"-"+yo,t+"-"+Mi])},[]),x0=[].concat(Ui,[Mf]).reduce(function(e,t){return e.concat([t,t+"-"+yo,t+"-"+Mi])},[]),F2="beforeRead",W2="read",U2="afterRead",V2="beforeMain",H2="main",K2="afterMain",G2="beforeWrite",Q2="write",X2="afterWrite",Y2=[F2,W2,U2,V2,H2,K2,G2,Q2,X2];function Hn(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Er(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function nn(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Of(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rn(e){return e.split("-")[0]}var gr=Math.max,ys=Math.min,vo=Math.round;function ic(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function S0(){return!/^((?!chrome|android).)*safari/i.test(ic())}function wo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,l=1;t&&nn(e)&&(o=e.offsetWidth>0&&vo(r.width)/e.offsetWidth||1,l=e.offsetHeight>0&&vo(r.height)/e.offsetHeight||1);var s=Er(e)?gt(e):window,a=s.visualViewport,u=!S0()&&n,c=(r.left+(u&&a?a.offsetLeft:0))/o,f=(r.top+(u&&a?a.offsetTop:0))/l,d=r.width/o,p=r.height/l;return{width:d,height:p,top:f,right:c+d,bottom:f+p,left:c,x:c,y:f}}function _f(e){var t=wo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Of(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vn(e){return gt(e).getComputedStyle(e)}function q2(e){return["table","td","th"].indexOf(Hn(e))>=0}function Yn(e){return((Er(e)?e.ownerDocument:e.document)||window.document).documentElement}function ga(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(Of(e)?e.host:null)||Yn(e)}function Fp(e){return!nn(e)||vn(e).position==="fixed"?null:e.offsetParent}function Z2(e){var t=/firefox/i.test(ic()),n=/Trident/i.test(ic());if(n&&nn(e)){var r=vn(e);if(r.position==="fixed")return null}var o=ga(e);for(Of(o)&&(o=o.host);nn(o)&&["html","body"].indexOf(Hn(o))<0;){var l=vn(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function Vi(e){for(var t=gt(e),n=Fp(e);n&&q2(n)&&vn(n).position==="static";)n=Fp(n);return n&&(Hn(n)==="html"||Hn(n)==="body"&&vn(n).position==="static")?t:n||Z2(e)||t}function If(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ii(e,t,n){return gr(e,ys(t,n))}function J2(e,t,n){var r=ii(e,t,n);return r>n?n:r}function k0(){return{top:0,right:0,bottom:0,left:0}}function E0(e){return Object.assign({},k0(),e)}function b0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var eE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E0(typeof t!="number"?t:b0(t,Ui))};function tE(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,s=n.modifiersData.popperOffsets,a=rn(n.placement),u=If(a),c=[st,At].indexOf(a)>=0,f=c?"height":"width";if(!(!l||!s)){var d=eE(o.padding,n),p=_f(l),y=u==="y"?lt:st,w=u==="y"?Rt:At,x=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],E=s[u]-n.rects.reference[u],g=Vi(l),m=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,v=x/2-E/2,S=d[y],k=m-p[f]-d[w],b=m/2-p[f]/2+v,P=ii(S,b,k),T=u;n.modifiersData[r]=(t={},t[T]=P,t.centerOffset=P-b,t)}}function nE(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||C0(t.elements.popper,o)&&(t.elements.arrow=o))}const rE={name:"arrow",enabled:!0,phase:"main",fn:tE,effect:nE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xo(e){return e.split("-")[1]}var oE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iE(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:vo(n*o)/o||0,y:vo(r*o)/o||0}}function Wp(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,s=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=s.x,y=p===void 0?0:p,w=s.y,x=w===void 0?0:w,E=typeof f=="function"?f({x:y,y:x}):{x:y,y:x};y=E.x,x=E.y;var g=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),v=st,S=lt,k=window;if(c){var b=Vi(n),P="clientHeight",T="clientWidth";if(b===gt(n)&&(b=Yn(n),vn(b).position!=="static"&&a==="absolute"&&(P="scrollHeight",T="scrollWidth")),b=b,o===lt||(o===st||o===At)&&l===Mi){S=Rt;var O=d&&b===k&&k.visualViewport?k.visualViewport.height:b[P];x-=O-r.height,x*=u?1:-1}if(o===st||(o===lt||o===Rt)&&l===Mi){v=At;var h=d&&b===k&&k.visualViewport?k.visualViewport.width:b[T];y-=h-r.width,y*=u?1:-1}}var $=Object.assign({position:a},c&&oE),_=f===!0?iE({x:y,y:x},gt(n)):{x:y,y:x};if(y=_.x,x=_.y,u){var R;return Object.assign({},$,(R={},R[S]=m?"0":"",R[v]=g?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",R))}return Object.assign({},$,(t={},t[S]=m?x+"px":"",t[v]=g?y+"px":"",t.transform="",t))}function lE(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,l=n.adaptive,s=l===void 0?!0:l,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:rn(t.placement),variation:xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wp(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wp(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const sE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lE,data:{}};var vl={passive:!0};function aE(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,u=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(f){f.addEventListener("scroll",n.update,vl)}),a&&u.addEventListener("resize",n.update,vl),function(){l&&c.forEach(function(f){f.removeEventListener("scroll",n.update,vl)}),a&&u.removeEventListener("resize",n.update,vl)}}const uE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aE,data:{}};var cE={left:"right",right:"left",bottom:"top",top:"bottom"};function Nl(e){return e.replace(/left|right|bottom|top/g,function(t){return cE[t]})}var fE={start:"end",end:"start"};function Up(e){return e.replace(/start|end/g,function(t){return fE[t]})}function Lf(e){var t=gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nf(e){return wo(Yn(e)).left+Lf(e).scrollLeft}function dE(e,t){var n=gt(e),r=Yn(e),o=n.visualViewport,l=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){l=o.width,s=o.height;var c=S0();(c||!c&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:l,height:s,x:a+Nf(e),y:u}}function pE(e){var t,n=Yn(e),r=Lf(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=gr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=gr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Nf(e),u=-r.scrollTop;return vn(o||n).direction==="rtl"&&(a+=gr(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:s,x:a,y:u}}function jf(e){var t=vn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function P0(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:nn(e)&&jf(e)?e:P0(ga(e))}function li(e,t){var n;t===void 0&&(t=[]);var r=P0(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),l=gt(r),s=o?[l].concat(l.visualViewport||[],jf(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(li(ga(s)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hE(e,t){var n=wo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vp(e,t,n){return t===w0?lc(dE(e,n)):Er(t)?hE(t,n):lc(pE(Yn(e)))}function mE(e){var t=li(ga(e)),n=["absolute","fixed"].indexOf(vn(e).position)>=0,r=n&&nn(e)?Vi(e):e;return Er(r)?t.filter(function(o){return Er(o)&&C0(o,r)&&Hn(o)!=="body"}):[]}function gE(e,t,n,r){var o=t==="clippingParents"?mE(e):[].concat(t),l=[].concat(o,[n]),s=l[0],a=l.reduce(function(u,c){var f=Vp(e,c,r);return u.top=gr(f.top,u.top),u.right=ys(f.right,u.right),u.bottom=ys(f.bottom,u.bottom),u.left=gr(f.left,u.left),u},Vp(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function $0(e){var t=e.reference,n=e.element,r=e.placement,o=r?rn(r):null,l=r?xo(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(o){case lt:u={x:s,y:t.y-n.height};break;case Rt:u={x:s,y:t.y+t.height};break;case At:u={x:t.x+t.width,y:a};break;case st:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=o?If(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(l){case yo:u[c]=u[c]-(t[f]/2-n[f]/2);break;case Mi:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function Oi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,l=n.strategy,s=l===void 0?e.strategy:l,a=n.boundary,u=a===void 0?z2:a,c=n.rootBoundary,f=c===void 0?w0:c,d=n.elementContext,p=d===void 0?Wo:d,y=n.altBoundary,w=y===void 0?!1:y,x=n.padding,E=x===void 0?0:x,g=E0(typeof E!="number"?E:b0(E,Ui)),m=p===Wo?B2:Wo,v=e.rects.popper,S=e.elements[w?m:p],k=gE(Er(S)?S:S.contextElement||Yn(e.elements.popper),u,f,s),b=wo(e.elements.reference),P=$0({reference:b,element:v,strategy:"absolute",placement:o}),T=lc(Object.assign({},v,P)),O=p===Wo?T:b,h={top:k.top-O.top+g.top,bottom:O.bottom-k.bottom+g.bottom,left:k.left-O.left+g.left,right:O.right-k.right+g.right},$=e.modifiersData.offset;if(p===Wo&&$){var _=$[o];Object.keys(h).forEach(function(R){var L=[At,Rt].indexOf(R)>=0?1:-1,U=[lt,Rt].indexOf(R)>=0?"y":"x";h[R]+=_[U]*L})}return h}function yE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,l=n.rootBoundary,s=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?x0:u,f=xo(r),d=f?a?Bp:Bp.filter(function(w){return xo(w)===f}):Ui,p=d.filter(function(w){return c.indexOf(w)>=0});p.length===0&&(p=d);var y=p.reduce(function(w,x){return w[x]=Oi(e,{placement:x,boundary:o,rootBoundary:l,padding:s})[rn(x)],w},{});return Object.keys(y).sort(function(w,x){return y[w]-y[x]})}function vE(e){if(rn(e)===Mf)return[];var t=Nl(e);return[Up(e),t,Up(t)]}function wE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,w=y===void 0?!0:y,x=n.allowedAutoPlacements,E=t.options.placement,g=rn(E),m=g===E,v=u||(m||!w?[Nl(E)]:vE(E)),S=[E].concat(v).reduce(function(Y,se){return Y.concat(rn(se)===Mf?yE(t,{placement:se,boundary:f,rootBoundary:d,padding:c,flipVariations:w,allowedAutoPlacements:x}):se)},[]),k=t.rects.reference,b=t.rects.popper,P=new Map,T=!0,O=S[0],h=0;h=0,U=L?"width":"height",H=Oi(t,{placement:$,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),K=L?R?At:st:R?Rt:lt;k[U]>b[U]&&(K=Nl(K));var N=Nl(K),j=[];if(l&&j.push(H[_]<=0),a&&j.push(H[K]<=0,H[N]<=0),j.every(function(Y){return Y})){O=$,T=!1;break}P.set($,j)}if(T)for(var D=w?3:1,W=function(se){var oe=S.find(function(Re){var ze=P.get(Re);if(ze)return ze.slice(0,se).every(function(_t){return _t})});if(oe)return O=oe,"break"},Q=D;Q>0;Q--){var Ie=W(Q);if(Ie==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const xE={name:"flip",enabled:!0,phase:"main",fn:wE,requiresIfExists:["offset"],data:{_skip:!1}};function Hp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kp(e){return[lt,At,Rt,st].some(function(t){return e[t]>=0})}function SE(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,s=Oi(t,{elementContext:"reference"}),a=Oi(t,{altBoundary:!0}),u=Hp(s,r),c=Hp(a,o,l),f=Kp(u),d=Kp(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const CE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SE};function kE(e,t,n){var r=rn(e),o=[st,lt].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=l[0],a=l[1];return s=s||0,a=(a||0)*o,[st,At].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function EE(e){var t=e.state,n=e.options,r=e.name,o=n.offset,l=o===void 0?[0,0]:o,s=x0.reduce(function(f,d){return f[d]=kE(d,t.rects,l),f},{}),a=s[t.placement],u=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const bE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EE};function PE(e){var t=e.state,n=e.name;t.modifiersData[n]=$0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $E={name:"popperOffsets",enabled:!0,phase:"read",fn:PE,data:{}};function TE(e){return e==="x"?"y":"x"}function RE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,y=p===void 0?!0:p,w=n.tetherOffset,x=w===void 0?0:w,E=Oi(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),g=rn(t.placement),m=xo(t.placement),v=!m,S=If(g),k=TE(S),b=t.modifiersData.popperOffsets,P=t.rects.reference,T=t.rects.popper,O=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,h=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(b){if(l){var R,L=S==="y"?lt:st,U=S==="y"?Rt:At,H=S==="y"?"height":"width",K=b[S],N=K+E[L],j=K-E[U],D=y?-T[H]/2:0,W=m===yo?P[H]:T[H],Q=m===yo?-T[H]:-P[H],Ie=t.elements.arrow,Y=y&&Ie?_f(Ie):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k0(),oe=se[L],Re=se[U],ze=ii(0,P[H],Y[H]),_t=v?P[H]/2-D-ze-oe-h.mainAxis:W-ze-oe-h.mainAxis,on=v?-P[H]/2+D+ze+Re+h.mainAxis:Q+ze+Re+h.mainAxis,Wt=t.elements.arrow&&Vi(t.elements.arrow),Tr=Wt?S==="y"?Wt.clientTop||0:Wt.clientLeft||0:0,Rr=(R=$==null?void 0:$[S])!=null?R:0,Ar=K+_t-Rr-Tr,qn=K+on-Rr,Zn=ii(y?ys(N,Ar):N,K,y?gr(j,qn):j);b[S]=Zn,_[S]=Zn-K}if(a){var Ze,Je=S==="x"?lt:st,Ut=S==="x"?Rt:At,Ke=b[k],It=k==="y"?"height":"width",Jn=Ke+E[Je],V=Ke-E[Ut],Cn=[lt,st].indexOf(g)!==-1,Mr=(Ze=$==null?void 0:$[k])!=null?Ze:0,er=Cn?Jn:Ke-P[It]-T[It]-Mr+h.altAxis,$o=Cn?Ke+P[It]+T[It]-Mr-h.altAxis:V,To=y&&Cn?J2(er,Ke,$o):ii(y?er:Jn,Ke,y?$o:V);b[k]=To,_[k]=To-Ke}t.modifiersData[r]=_}}const AE={name:"preventOverflow",enabled:!0,phase:"main",fn:RE,requiresIfExists:["offset"]};function ME(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function OE(e){return e===gt(e)||!nn(e)?Lf(e):ME(e)}function _E(e){var t=e.getBoundingClientRect(),n=vo(t.width)/e.offsetWidth||1,r=vo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function IE(e,t,n){n===void 0&&(n=!1);var r=nn(t),o=nn(t)&&_E(t),l=Yn(t),s=wo(e,o,n),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Hn(t)!=="body"||jf(l))&&(a=OE(t)),nn(t)?(u=wo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Nf(l))),{x:s.left+a.scrollLeft-u.x,y:s.top+a.scrollTop-u.y,width:s.width,height:s.height}}function LE(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var s=[].concat(l.requires||[],l.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var u=t.get(a);u&&o(u)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),r}function NE(e){var t=LE(e);return Y2.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Gp={placement:"bottom",modifiers:[],strategy:"absolute"};function Qp(){for(var e=arguments.length,t=new Array(e),n=0;n{r(y)};return A.jsxs("div",{className:"flex flex-col items-center border-black border-2 bg-white rounded-lg max-w-[90%]",children:[A.jsxs("div",{className:" m-6 text-lg font-bold",children:["Flood Report for ",e]}),A.jsx("div",{className:"w-full h-[1px] bg-black"}),A.jsx(T0,{sx:{borderBottom:1,borderColor:"divider"},children:A.jsxs(Ok,{value:n,onChange:d,"aria-label":"basic tabs example",children:[A.jsx(Lp,{label:"Present",...qp(0)}),A.jsx(Lp,{label:"Future (Predicted)",...qp(1)})]})}),A.jsx(Yp,{value:n,index:0,children:A.jsx(Xp,{graphHref:f,expectedFloods:l,precipitation:o,danger:s})}),A.jsx(Yp,{value:n,index:1,children:A.jsx(Xp,{graphHref:f,expectedFloods:u,precipitation:a,danger:c})})]})}const Df=C.createContext(),UE=({children:e})=>{const[t,n]=C.useState(!1),[r,o]=C.useState(0);return A.jsx(Df.Provider,{value:{reportView:t,setReportView:n,activeReport:r,setActiveReport:o},children:e})};var R0={exports:{}};/*! +`),text:o}),[f,o]);let p;switch(c){case"hanging":p=0;break;case"central":p=(d.length-1)/2*-d[0].height;break;default:p=(d.length-1)*-d[0].height;break}const y=[];return a&&y.push(`rotate(${a}, ${t}, ${n})`),A.jsx("text",Oe({},l,{transform:y.length>0?y.join(" "):void 0,x:t,y:n,textAnchor:u,dominantBaseline:c,style:f,children:d.map((w,x)=>A.jsx("tspan",{x:t,dy:`${x===0?p:d[0].height}px`,dominantBaseline:c,children:w.text},x))}))}const O2=["text","className"];function _2({value:e}){return e===null?null:e.toLocaleString()}function I2(e){const{text:t=_2,className:n}=e,r=Vn(e,O2),{value:o,valueMin:l,valueMax:s,cx:a,cy:u}=Af(),c=typeof t=="function"?t({value:o,valueMin:l,valueMax:s}):t;return c===null?null:A.jsx("g",{className:n,children:A.jsx(M2,Oe({x:a,y:u,text:c,style:{textAnchor:"middle",dominantBaseline:"central"}},r))})}const L2=["text","children","classes","className"],N2=e=>{const{classes:t}=e;return Eo({root:["root"],valueArc:["valueArc"],referenceArc:["referenceArc"],valueText:["valueText"]},S2,t)},j2=C.forwardRef(function(t,n){const{text:r,children:o,className:l}=t,s=Vn(t,L2),a=N2(t);return A.jsxs(g2,Oe({},s,{className:me(a.root,l),ref:n,children:[A.jsx(x2,{className:a.referenceArc}),A.jsx(v2,{className:a.valueArc}),A.jsx(I2,{className:a.valueText,text:r}),o]}))});function D2({percent:e}){return A.jsx(j2,{value:e,startAngle:0,endAngle:360,width:100,height:100,sx:{[`& .${Dp.valueText}`]:{fontSize:15,transform:"translate(0px, 0px)"},[`& .${Dp.valueArc}`]:{fill:e>80?"red":e>50?"orange":"green"}},text:({value:t,valueMax:n})=>`${e}%`})}var lt="top",Rt="bottom",At="right",st="left",Mf="auto",Ui=[lt,Rt,At,st],yo="start",Mi="end",z2="clippingParents",w0="viewport",Wo="popper",B2="reference",Bp=Ui.reduce(function(e,t){return e.concat([t+"-"+yo,t+"-"+Mi])},[]),x0=[].concat(Ui,[Mf]).reduce(function(e,t){return e.concat([t,t+"-"+yo,t+"-"+Mi])},[]),F2="beforeRead",W2="read",U2="afterRead",V2="beforeMain",H2="main",K2="afterMain",G2="beforeWrite",Q2="write",X2="afterWrite",Y2=[F2,W2,U2,V2,H2,K2,G2,Q2,X2];function Hn(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Er(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function nn(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Of(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rn(e){return e.split("-")[0]}var gr=Math.max,ys=Math.min,vo=Math.round;function ic(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function S0(){return!/^((?!chrome|android).)*safari/i.test(ic())}function wo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,l=1;t&&nn(e)&&(o=e.offsetWidth>0&&vo(r.width)/e.offsetWidth||1,l=e.offsetHeight>0&&vo(r.height)/e.offsetHeight||1);var s=Er(e)?gt(e):window,a=s.visualViewport,u=!S0()&&n,c=(r.left+(u&&a?a.offsetLeft:0))/o,f=(r.top+(u&&a?a.offsetTop:0))/l,d=r.width/o,p=r.height/l;return{width:d,height:p,top:f,right:c+d,bottom:f+p,left:c,x:c,y:f}}function _f(e){var t=wo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function C0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Of(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vn(e){return gt(e).getComputedStyle(e)}function q2(e){return["table","td","th"].indexOf(Hn(e))>=0}function Yn(e){return((Er(e)?e.ownerDocument:e.document)||window.document).documentElement}function ga(e){return Hn(e)==="html"?e:e.assignedSlot||e.parentNode||(Of(e)?e.host:null)||Yn(e)}function Fp(e){return!nn(e)||vn(e).position==="fixed"?null:e.offsetParent}function Z2(e){var t=/firefox/i.test(ic()),n=/Trident/i.test(ic());if(n&&nn(e)){var r=vn(e);if(r.position==="fixed")return null}var o=ga(e);for(Of(o)&&(o=o.host);nn(o)&&["html","body"].indexOf(Hn(o))<0;){var l=vn(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function Vi(e){for(var t=gt(e),n=Fp(e);n&&q2(n)&&vn(n).position==="static";)n=Fp(n);return n&&(Hn(n)==="html"||Hn(n)==="body"&&vn(n).position==="static")?t:n||Z2(e)||t}function If(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ii(e,t,n){return gr(e,ys(t,n))}function J2(e,t,n){var r=ii(e,t,n);return r>n?n:r}function k0(){return{top:0,right:0,bottom:0,left:0}}function E0(e){return Object.assign({},k0(),e)}function b0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var eE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E0(typeof t!="number"?t:b0(t,Ui))};function tE(e){var t,n=e.state,r=e.name,o=e.options,l=n.elements.arrow,s=n.modifiersData.popperOffsets,a=rn(n.placement),u=If(a),c=[st,At].indexOf(a)>=0,f=c?"height":"width";if(!(!l||!s)){var d=eE(o.padding,n),p=_f(l),y=u==="y"?lt:st,w=u==="y"?Rt:At,x=n.rects.reference[f]+n.rects.reference[u]-s[u]-n.rects.popper[f],E=s[u]-n.rects.reference[u],g=Vi(l),m=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,v=x/2-E/2,S=d[y],k=m-p[f]-d[w],b=m/2-p[f]/2+v,P=ii(S,b,k),T=u;n.modifiersData[r]=(t={},t[T]=P,t.centerOffset=P-b,t)}}function nE(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||C0(t.elements.popper,o)&&(t.elements.arrow=o))}const rE={name:"arrow",enabled:!0,phase:"main",fn:tE,effect:nE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xo(e){return e.split("-")[1]}var oE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iE(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:vo(n*o)/o||0,y:vo(r*o)/o||0}}function Wp(e){var t,n=e.popper,r=e.popperRect,o=e.placement,l=e.variation,s=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=s.x,y=p===void 0?0:p,w=s.y,x=w===void 0?0:w,E=typeof f=="function"?f({x:y,y:x}):{x:y,y:x};y=E.x,x=E.y;var g=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),v=st,S=lt,k=window;if(c){var b=Vi(n),P="clientHeight",T="clientWidth";if(b===gt(n)&&(b=Yn(n),vn(b).position!=="static"&&a==="absolute"&&(P="scrollHeight",T="scrollWidth")),b=b,o===lt||(o===st||o===At)&&l===Mi){S=Rt;var O=d&&b===k&&k.visualViewport?k.visualViewport.height:b[P];x-=O-r.height,x*=u?1:-1}if(o===st||(o===lt||o===Rt)&&l===Mi){v=At;var h=d&&b===k&&k.visualViewport?k.visualViewport.width:b[T];y-=h-r.width,y*=u?1:-1}}var $=Object.assign({position:a},c&&oE),_=f===!0?iE({x:y,y:x},gt(n)):{x:y,y:x};if(y=_.x,x=_.y,u){var R;return Object.assign({},$,(R={},R[S]=m?"0":"",R[v]=g?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+x+"px)":"translate3d("+y+"px, "+x+"px, 0)",R))}return Object.assign({},$,(t={},t[S]=m?x+"px":"",t[v]=g?y+"px":"",t.transform="",t))}function lE(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,l=n.adaptive,s=l===void 0?!0:l,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:rn(t.placement),variation:xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wp(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wp(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const sE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lE,data:{}};var vl={passive:!0};function aE(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,l=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,u=gt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(f){f.addEventListener("scroll",n.update,vl)}),a&&u.addEventListener("resize",n.update,vl),function(){l&&c.forEach(function(f){f.removeEventListener("scroll",n.update,vl)}),a&&u.removeEventListener("resize",n.update,vl)}}const uE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aE,data:{}};var cE={left:"right",right:"left",bottom:"top",top:"bottom"};function Nl(e){return e.replace(/left|right|bottom|top/g,function(t){return cE[t]})}var fE={start:"end",end:"start"};function Up(e){return e.replace(/start|end/g,function(t){return fE[t]})}function Lf(e){var t=gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Nf(e){return wo(Yn(e)).left+Lf(e).scrollLeft}function dE(e,t){var n=gt(e),r=Yn(e),o=n.visualViewport,l=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){l=o.width,s=o.height;var c=S0();(c||!c&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}return{width:l,height:s,x:a+Nf(e),y:u}}function pE(e){var t,n=Yn(e),r=Lf(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=gr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=gr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Nf(e),u=-r.scrollTop;return vn(o||n).direction==="rtl"&&(a+=gr(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:s,x:a,y:u}}function jf(e){var t=vn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function P0(e){return["html","body","#document"].indexOf(Hn(e))>=0?e.ownerDocument.body:nn(e)&&jf(e)?e:P0(ga(e))}function li(e,t){var n;t===void 0&&(t=[]);var r=P0(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),l=gt(r),s=o?[l].concat(l.visualViewport||[],jf(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(li(ga(s)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hE(e,t){var n=wo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Vp(e,t,n){return t===w0?lc(dE(e,n)):Er(t)?hE(t,n):lc(pE(Yn(e)))}function mE(e){var t=li(ga(e)),n=["absolute","fixed"].indexOf(vn(e).position)>=0,r=n&&nn(e)?Vi(e):e;return Er(r)?t.filter(function(o){return Er(o)&&C0(o,r)&&Hn(o)!=="body"}):[]}function gE(e,t,n,r){var o=t==="clippingParents"?mE(e):[].concat(t),l=[].concat(o,[n]),s=l[0],a=l.reduce(function(u,c){var f=Vp(e,c,r);return u.top=gr(f.top,u.top),u.right=ys(f.right,u.right),u.bottom=ys(f.bottom,u.bottom),u.left=gr(f.left,u.left),u},Vp(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function $0(e){var t=e.reference,n=e.element,r=e.placement,o=r?rn(r):null,l=r?xo(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(o){case lt:u={x:s,y:t.y-n.height};break;case Rt:u={x:s,y:t.y+t.height};break;case At:u={x:t.x+t.width,y:a};break;case st:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=o?If(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(l){case yo:u[c]=u[c]-(t[f]/2-n[f]/2);break;case Mi:u[c]=u[c]+(t[f]/2-n[f]/2);break}}return u}function Oi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,l=n.strategy,s=l===void 0?e.strategy:l,a=n.boundary,u=a===void 0?z2:a,c=n.rootBoundary,f=c===void 0?w0:c,d=n.elementContext,p=d===void 0?Wo:d,y=n.altBoundary,w=y===void 0?!1:y,x=n.padding,E=x===void 0?0:x,g=E0(typeof E!="number"?E:b0(E,Ui)),m=p===Wo?B2:Wo,v=e.rects.popper,S=e.elements[w?m:p],k=gE(Er(S)?S:S.contextElement||Yn(e.elements.popper),u,f,s),b=wo(e.elements.reference),P=$0({reference:b,element:v,strategy:"absolute",placement:o}),T=lc(Object.assign({},v,P)),O=p===Wo?T:b,h={top:k.top-O.top+g.top,bottom:O.bottom-k.bottom+g.bottom,left:k.left-O.left+g.left,right:O.right-k.right+g.right},$=e.modifiersData.offset;if(p===Wo&&$){var _=$[o];Object.keys(h).forEach(function(R){var L=[At,Rt].indexOf(R)>=0?1:-1,U=[lt,Rt].indexOf(R)>=0?"y":"x";h[R]+=_[U]*L})}return h}function yE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,l=n.rootBoundary,s=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?x0:u,f=xo(r),d=f?a?Bp:Bp.filter(function(w){return xo(w)===f}):Ui,p=d.filter(function(w){return c.indexOf(w)>=0});p.length===0&&(p=d);var y=p.reduce(function(w,x){return w[x]=Oi(e,{placement:x,boundary:o,rootBoundary:l,padding:s})[rn(x)],w},{});return Object.keys(y).sort(function(w,x){return y[w]-y[x]})}function vE(e){if(rn(e)===Mf)return[];var t=Nl(e);return[Up(e),t,Up(t)]}function wE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,w=y===void 0?!0:y,x=n.allowedAutoPlacements,E=t.options.placement,g=rn(E),m=g===E,v=u||(m||!w?[Nl(E)]:vE(E)),S=[E].concat(v).reduce(function(Y,se){return Y.concat(rn(se)===Mf?yE(t,{placement:se,boundary:f,rootBoundary:d,padding:c,flipVariations:w,allowedAutoPlacements:x}):se)},[]),k=t.rects.reference,b=t.rects.popper,P=new Map,T=!0,O=S[0],h=0;h=0,U=L?"width":"height",H=Oi(t,{placement:$,boundary:f,rootBoundary:d,altBoundary:p,padding:c}),K=L?R?At:st:R?Rt:lt;k[U]>b[U]&&(K=Nl(K));var N=Nl(K),j=[];if(l&&j.push(H[_]<=0),a&&j.push(H[K]<=0,H[N]<=0),j.every(function(Y){return Y})){O=$,T=!1;break}P.set($,j)}if(T)for(var D=w?3:1,W=function(se){var oe=S.find(function(Re){var ze=P.get(Re);if(ze)return ze.slice(0,se).every(function(_t){return _t})});if(oe)return O=oe,"break"},Q=D;Q>0;Q--){var Ie=W(Q);if(Ie==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const xE={name:"flip",enabled:!0,phase:"main",fn:wE,requiresIfExists:["offset"],data:{_skip:!1}};function Hp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kp(e){return[lt,At,Rt,st].some(function(t){return e[t]>=0})}function SE(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,s=Oi(t,{elementContext:"reference"}),a=Oi(t,{altBoundary:!0}),u=Hp(s,r),c=Hp(a,o,l),f=Kp(u),d=Kp(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const CE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SE};function kE(e,t,n){var r=rn(e),o=[st,lt].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=l[0],a=l[1];return s=s||0,a=(a||0)*o,[st,At].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function EE(e){var t=e.state,n=e.options,r=e.name,o=n.offset,l=o===void 0?[0,0]:o,s=x0.reduce(function(f,d){return f[d]=kE(d,t.rects,l),f},{}),a=s[t.placement],u=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const bE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EE};function PE(e){var t=e.state,n=e.name;t.modifiersData[n]=$0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $E={name:"popperOffsets",enabled:!0,phase:"read",fn:PE,data:{}};function TE(e){return e==="x"?"y":"x"}function RE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,l=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,y=p===void 0?!0:p,w=n.tetherOffset,x=w===void 0?0:w,E=Oi(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:f}),g=rn(t.placement),m=xo(t.placement),v=!m,S=If(g),k=TE(S),b=t.modifiersData.popperOffsets,P=t.rects.reference,T=t.rects.popper,O=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,h=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(b){if(l){var R,L=S==="y"?lt:st,U=S==="y"?Rt:At,H=S==="y"?"height":"width",K=b[S],N=K+E[L],j=K-E[U],D=y?-T[H]/2:0,W=m===yo?P[H]:T[H],Q=m===yo?-T[H]:-P[H],Ie=t.elements.arrow,Y=y&&Ie?_f(Ie):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:k0(),oe=se[L],Re=se[U],ze=ii(0,P[H],Y[H]),_t=v?P[H]/2-D-ze-oe-h.mainAxis:W-ze-oe-h.mainAxis,on=v?-P[H]/2+D+ze+Re+h.mainAxis:Q+ze+Re+h.mainAxis,Wt=t.elements.arrow&&Vi(t.elements.arrow),Tr=Wt?S==="y"?Wt.clientTop||0:Wt.clientLeft||0:0,Rr=(R=$==null?void 0:$[S])!=null?R:0,Ar=K+_t-Rr-Tr,qn=K+on-Rr,Zn=ii(y?ys(N,Ar):N,K,y?gr(j,qn):j);b[S]=Zn,_[S]=Zn-K}if(a){var Ze,Je=S==="x"?lt:st,Ut=S==="x"?Rt:At,Ke=b[k],It=k==="y"?"height":"width",Jn=Ke+E[Je],V=Ke-E[Ut],Cn=[lt,st].indexOf(g)!==-1,Mr=(Ze=$==null?void 0:$[k])!=null?Ze:0,er=Cn?Jn:Ke-P[It]-T[It]-Mr+h.altAxis,$o=Cn?Ke+P[It]+T[It]-Mr-h.altAxis:V,To=y&&Cn?J2(er,Ke,$o):ii(y?er:Jn,Ke,y?$o:V);b[k]=To,_[k]=To-Ke}t.modifiersData[r]=_}}const AE={name:"preventOverflow",enabled:!0,phase:"main",fn:RE,requiresIfExists:["offset"]};function ME(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function OE(e){return e===gt(e)||!nn(e)?Lf(e):ME(e)}function _E(e){var t=e.getBoundingClientRect(),n=vo(t.width)/e.offsetWidth||1,r=vo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function IE(e,t,n){n===void 0&&(n=!1);var r=nn(t),o=nn(t)&&_E(t),l=Yn(t),s=wo(e,o,n),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Hn(t)!=="body"||jf(l))&&(a=OE(t)),nn(t)?(u=wo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Nf(l))),{x:s.left+a.scrollLeft-u.x,y:s.top+a.scrollTop-u.y,width:s.width,height:s.height}}function LE(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var s=[].concat(l.requires||[],l.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var u=t.get(a);u&&o(u)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),r}function NE(e){var t=LE(e);return Y2.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Gp={placement:"bottom",modifiers:[],strategy:"absolute"};function Qp(){for(var e=arguments.length,t=new Array(e),n=0;n{r(y)};return A.jsxs("div",{className:"flex flex-col items-center border-black border-2 bg-white rounded-lg max-w-[90%]",children:[A.jsxs("div",{className:" m-6 text-lg font-bold",children:["Flood Report for ",e]}),A.jsx("div",{className:"w-full h-[1px] bg-black"}),A.jsx(T0,{sx:{borderBottom:1,borderColor:"divider"},children:A.jsxs(Ok,{value:n,onChange:d,"aria-label":"basic tabs example",children:[A.jsx(Lp,{label:"Present",...qp(0)}),A.jsx(Lp,{label:"Future (Predicted)",...qp(1)})]})}),A.jsx(Yp,{value:n,index:0,children:A.jsx(Xp,{graphHref:f,expectedFloods:l,precipitation:o,danger:s})}),A.jsx(Yp,{value:n,index:1,children:A.jsx(Xp,{graphHref:f,expectedFloods:u,precipitation:a,danger:c})})]})}const Df=C.createContext(),UE=({children:e})=>{const[t,n]=C.useState(!1),[r,o]=C.useState(0);return A.jsx(Df.Provider,{value:{reportView:t,setReportView:n,activeReport:r,setActiveReport:o},children:e})};var R0={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s{e=Sn(e,"spinner");const u=`${e}-${n}`;return A.jsx(o,{ref:a,...s,className:xn(l,u,r&&`${u}-${r}`,t&&`text-${t}`)})});M0.displayName="Spinner";function QE(){return A.jsx(M0,{animation:"border",role:"status",children:A.jsx("span",{className:"visually-hidden",children:"Loading..."})})}var XE=Function.prototype.bind.call(Function.prototype.call,[].slice);function Zp(e,t){return XE(e.querySelectorAll(t))}const O0=!!(typeof window<"u"&&window.document&&window.document.createElement);var sc=!1,ac=!1;try{var eu={get passive(){return sc=!0},get once(){return ac=sc=!0}};O0&&(window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,!0))}catch{}function _0(e,t,n,r){if(r&&typeof r!="boolean"&&!ac){var o=r.once,l=r.capture,s=n;!ac&&o&&(s=n.__once||function a(u){this.removeEventListener(t,a,l),n.call(this,u)},n.__once=s),e.addEventListener(t,s,sc?r:l)}e.addEventListener(t,n,r)}function YE(e,t,n){const r=C.useRef(e!==void 0),[o,l]=C.useState(t),s=e!==void 0,a=r.current;return r.current=s,!s&&a&&o!==t&&l(t),[s?e:o,C.useCallback((...u)=>{const[c,...f]=u;let d=n==null?void 0:n(c,...f);return l(c),d},[n])]}function qE(e){const t=C.useRef(null);return C.useEffect(()=>{t.current=e}),t.current}function ZE(){const[,e]=C.useReducer(t=>!t,!1);return e}function JE(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function dn(e){const t=JE(e);return C.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function eb(e,t,n,r=!1){const o=dn(n);C.useEffect(()=>{const l=typeof e=="function"?e():e;return l.addEventListener(t,o,r),()=>l.removeEventListener(t,o,r)},[e])}const ya=C.createContext(null);function tb(){return C.useState(null)}var Jp=Object.prototype.hasOwnProperty;function eh(e,t,n){for(n of e.keys())if(si(n,t))return n}function si(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&si(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=eh(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=eh(t,o),!o)||!si(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Jp.call(e,n)&&++r&&!Jp.call(t,n)||!(n in t)||!si(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function nb(){const e=C.useRef(!0),t=C.useRef(()=>e.current);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function rb(e){const t=nb();return[e[0],C.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}const ob=zE({defaultModifiers:[CE,$E,sE,uE,bE,xE,AE,rE]}),ib=["enabled","placement","strategy","modifiers"];function lb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const sb={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},ab={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const l=r.getAttribute("aria-describedby");if(l&&l.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",l?`${l},${n.id}`:n.id)}}},ub=[];function cb(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:l="absolute",modifiers:s=ub}=n,a=lb(n,ib);const u=C.useRef(s),c=C.useRef(),f=C.useCallback(()=>{var E;(E=c.current)==null||E.update()},[]),d=C.useCallback(()=>{var E;(E=c.current)==null||E.forceUpdate()},[]),[p,y]=rb(C.useState({placement:o,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),w=C.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const g={},m={};Object.keys(E.elements).forEach(v=>{g[v]=E.styles[v],m[v]=E.attributes[v]}),y({state:E,styles:g,attributes:m,update:f,forceUpdate:d,placement:E.placement})}}),[f,d,y]),x=C.useMemo(()=>(si(u.current,s)||(u.current=s),u.current),[s]);return C.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:o,strategy:l,modifiers:[...x,w,sb]})},[l,o,w,r,x]),C.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=ob(e,t,Object.assign({},a,{placement:o,strategy:l,modifiers:[...x,ab,w]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,y(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),p}function th(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function fb(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function wl(e,t,n,r){return _0(e,t,n,r),function(){fb(e,t,n,r)}}function db(e){return e&&e.ownerDocument||document}var pb=function(){},hb=pb;const mb=ws(hb),nh=()=>{};function gb(e){return e.button===0}function yb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const tu=e=>e&&("current"in e?e.current:e),rh={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function vb(e,t=nh,{disabled:n,clickTrigger:r="click"}={}){const o=C.useRef(!1),l=C.useRef(!1),s=C.useCallback(c=>{const f=tu(e);mb(!!f,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!f||yb(c)||!gb(c)||!!th(f,c.target)||l.current,l.current=!1},[e]),a=dn(c=>{const f=tu(e);f&&th(f,c.target)&&(l.current=!0)}),u=dn(c=>{o.current||t(c)});C.useEffect(()=>{var c,f;if(n||e==null)return;const d=db(tu(e)),p=d.defaultView||window;let y=(c=p.event)!=null?c:(f=p.parent)==null?void 0:f.event,w=null;rh[r]&&(w=wl(d,rh[r],a,!0));const x=wl(d,r,s,!0),E=wl(d,r,m=>{if(m===y){y=void 0;return}u(m)});let g=[];return"ontouchstart"in d.documentElement&&(g=[].slice.call(d.body.children).map(m=>wl(m,"mousemove",nh))),()=>{w==null||w(),x(),E(),g.forEach(m=>m())}},[e,n,r,s,a,u])}function wb(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function xb(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Sb({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:l,containerPadding:s,arrowElement:a,popperConfig:u={}}){var c,f,d,p,y;const w=wb(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:l?"fixed":u.strategy,modifiers:xb(Object.assign({},w,{eventListeners:{enabled:t,options:(c=w.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},w.preventOverflow,{options:s?Object.assign({padding:s},(f=w.preventOverflow)==null?void 0:f.options):(d=w.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(p=w.offset)==null?void 0:p.options)},arrow:Object.assign({},w.arrow,{enabled:!!a,options:Object.assign({},(y=w.arrow)==null?void 0:y.options,{element:a})}),flip:Object.assign({enabled:!!r},w.flip)}))})}const Cb=["children","usePopper"];function kb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Eb=()=>{};function I0(e={}){const t=C.useContext(ya),[n,r]=tb(),o=C.useRef(!1),{flip:l,offset:s,rootCloseEvent:a,fixed:u=!1,placement:c,popperConfig:f={},enableEventListeners:d=!0,usePopper:p=!!t}=e,y=(t==null?void 0:t.show)==null?!!e.show:t.show;y&&!o.current&&(o.current=!0);const w=b=>{t==null||t.toggle(!1,b)},{placement:x,setMenu:E,menuElement:g,toggleElement:m}=t||{},v=cb(m,g,Sb({placement:c||x||"bottom-start",enabled:p,enableEvents:d??y,offset:s,flip:l,fixed:u,arrowElement:n,popperConfig:f})),S=Object.assign({ref:E||Eb,"aria-labelledby":m==null?void 0:m.id},v.attributes.popper,{style:v.styles.popper}),k={show:y,placement:x,hasShown:o.current,toggle:t==null?void 0:t.toggle,popper:p?v:null,arrowProps:p?Object.assign({ref:r},v.attributes.arrow,{style:v.styles.arrow}):{}};return vb(g,w,{clickTrigger:a,disabled:!y}),[S,k]}function L0(e){let{children:t,usePopper:n=!0}=e,r=kb(e,Cb);const[o,l]=I0(Object.assign({},r,{usePopper:n}));return A.jsx(A.Fragment,{children:t(o,l)})}L0.displayName="DropdownMenu";const vs={prefix:String(Math.round(Math.random()*1e10)),current:0},N0=pe.createContext(vs),bb=pe.createContext(!1);let Pb=!!(typeof window<"u"&&window.document&&window.document.createElement),nu=new WeakMap;function $b(e=!1){let t=C.useContext(N0),n=C.useRef(null);if(n.current===null&&!e){var r,o;let l=(o=pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let s=nu.get(l);s==null?nu.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==s.state&&(t.current=s.id,nu.delete(l))}n.current=++t.current}return n.current}function Tb(e){let t=C.useContext(N0);t===vs&&!Pb&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=$b(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Rb(e){let t=pe.useId(),[n]=C.useState(Ib()),r=n?"react-aria":`react-aria${vs.prefix}`;return e||`${r}-${t}`}const Ab=typeof pe.useId=="function"?Rb:Tb;function Mb(){return!1}function Ob(){return!0}function _b(e){return()=>{}}function Ib(){return typeof pe.useSyncExternalStore=="function"?pe.useSyncExternalStore(_b,Mb,Ob):C.useContext(bb)}const j0=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},oh=()=>{};function D0(){const e=Ab(),{show:t=!1,toggle:n=oh,setToggle:r,menuElement:o}=C.useContext(ya)||{},l=C.useCallback(a=>{n(!t,a)},[t,n]),s={id:e,ref:r||oh,onClick:l,"aria-expanded":!!t};return o&&j0(o)&&(s["aria-haspopup"]=!0),[s,{show:t,toggle:n}]}function z0({children:e}){const[t,n]=D0();return A.jsx(A.Fragment,{children:e(t,n)})}z0.displayName="DropdownToggle";const uc=C.createContext(null),ih=(e,t=null)=>e!=null?String(e):t||null,B0=C.createContext(null);B0.displayName="NavContext";const Lb=["as","disabled"];function Nb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jb(e){return!e||e.trim()==="#"}function zf({tagName:e,disabled:t,href:n,target:r,rel:o,role:l,onClick:s,tabIndex:a=0,type:u}){e||(n!=null||r!=null||o!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const f=p=>{if((t||e==="a"&&jb(n))&&p.preventDefault(),t){p.stopPropagation();return}s==null||s(p)},d=p=>{p.key===" "&&(p.preventDefault(),f(p))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:l??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:f,onKeyDown:d},c]}const F0=C.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=Nb(e,Lb);const[l,{tagName:s}]=zf(Object.assign({tagName:n,disabled:r},o));return A.jsx(s,Object.assign({},o,l,{ref:t}))});F0.displayName="Button";const Db="data-rr-ui-";function W0(e){return`${Db}${e}`}const zb=["eventKey","disabled","onClick","active","as"];function Bb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function U0({key:e,href:t,active:n,disabled:r,onClick:o}){const l=C.useContext(uc),s=C.useContext(B0),{activeKey:a}=s||{},u=ih(e,t),c=n==null&&e!=null?ih(a)===u:n;return[{onClick:dn(d=>{r||(o==null||o(d),l&&!d.isPropagationStopped()&&l(u,d))}),"aria-disabled":r||void 0,"aria-selected":c,[W0("dropdown-item")]:""},{isActive:c}]}const V0=C.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:l,as:s=F0}=e,a=Bb(e,zb);const[u]=U0({key:n,href:a.href,disabled:r,onClick:o,active:l});return A.jsx(s,Object.assign({},a,{ref:t},u))});V0.displayName="DropdownItem";const H0=C.createContext(O0?window:void 0);H0.Provider;function Fb(){return C.useContext(H0)}function lh(){const e=ZE(),t=C.useRef(null),n=C.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Hi({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:o=`* [${W0("dropdown-item")}]`,focusFirstItemOnShow:l,placement:s="bottom-start",children:a}){const u=Fb(),[c,f]=YE(t,e,r),[d,p]=lh(),y=d.current,[w,x]=lh(),E=w.current,g=qE(c),m=C.useRef(null),v=C.useRef(!1),S=C.useContext(uc),k=C.useCallback(($,_,R=_==null?void 0:_.type)=>{f($,{originalEvent:_,source:R})},[f]),b=dn(($,_)=>{n==null||n($,_),k(!1,_,"select"),_.isPropagationStopped()||S==null||S($,_)}),P=C.useMemo(()=>({toggle:k,placement:s,show:c,menuElement:y,toggleElement:E,setMenu:p,setToggle:x}),[k,s,c,y,E,p,x]);y&&g&&!c&&(v.current=y.contains(y.ownerDocument.activeElement));const T=dn(()=>{E&&E.focus&&E.focus()}),O=dn(()=>{const $=m.current;let _=l;if(_==null&&(_=d.current&&j0(d.current)?"keyboard":!1),_===!1||_==="keyboard"&&!/^key.+$/.test($))return;const R=Zp(d.current,o)[0];R&&R.focus&&R.focus()});C.useEffect(()=>{c?O():v.current&&(v.current=!1,T())},[c,v,T,O]),C.useEffect(()=>{m.current=null});const h=($,_)=>{if(!d.current)return null;const R=Zp(d.current,o);let L=R.indexOf($)+_;return L=Math.max(0,Math.min(L,R.length)),R[L]};return eb(C.useCallback(()=>u.document,[u]),"keydown",$=>{var _,R;const{key:L}=$,U=$.target,H=(_=d.current)==null?void 0:_.contains(U),K=(R=w.current)==null?void 0:R.contains(U);if(/input|textarea/i.test(U.tagName)&&(L===" "||L!=="Escape"&&H||L==="Escape"&&U.type==="search")||!H&&!K||L==="Tab"&&(!d.current||!c))return;m.current=$.type;const j={originalEvent:$,source:$.type};switch(L){case"ArrowUp":{const D=h(U,-1);D&&D.focus&&D.focus(),$.preventDefault();return}case"ArrowDown":if($.preventDefault(),!c)f(!0,j);else{const D=h(U,1);D&&D.focus&&D.focus()}return;case"Tab":_0(U.ownerDocument,"keyup",D=>{var W;(D.key==="Tab"&&!D.target||!((W=d.current)!=null&&W.contains(D.target)))&&f(!1,j)},{once:!0});break;case"Escape":L==="Escape"&&($.preventDefault(),$.stopPropagation()),f(!1,j);break}}),A.jsx(uc.Provider,{value:b,children:A.jsx(ya.Provider,{value:P,children:a})})}Hi.displayName="Dropdown";Hi.Menu=L0;Hi.Toggle=z0;Hi.Item=V0;function sh(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Wb(e){var t=Ub(e,"string");return typeof t=="symbol"?t:String(t)}function Ub(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vb(e,t,n){var r=C.useRef(e!==void 0),o=C.useState(t),l=o[0],s=o[1],a=e!==void 0,u=r.current;return r.current=a,!a&&u&&l!==t&&s(t),[a?e:l,C.useCallback(function(c){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p(t=Sn(t,"dropdown-divider"),A.jsx(n,{ref:l,className:xn(e,t),role:r,...o})));K0.displayName="DropdownDivider";const G0=C.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...o},l)=>(t=Sn(t,"dropdown-header"),A.jsx(n,{ref:l,className:xn(e,t),role:r,...o})));G0.displayName="DropdownHeader";const Kb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Gb=typeof document<"u",Qb=Gb||Kb?C.useLayoutEffect:C.useEffect,Xb=["onKeyDown"];function Yb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qb(e){return!e||e.trim()==="#"}const Q0=C.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=Yb(e,Xb);const[o]=zf(Object.assign({tagName:"a"},r)),l=dn(s=>{o.onKeyDown(s),n==null||n(s)});return qb(r.href)||r.role==="button"?A.jsx("a",Object.assign({ref:t},r,o,{onKeyDown:l})):A.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Q0.displayName="Anchor";const X0=C.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:o,active:l,as:s=Q0,...a},u)=>{const c=Sn(e,"dropdown-item"),[f,d]=U0({key:n,href:a.href,disabled:r,onClick:o,active:l});return A.jsx(s,{...a,...f,ref:u,className:xn(t,c,d.isActive&&"active",r&&"disabled")})});X0.displayName="DropdownItem";const Y0=C.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=Sn(t,"dropdown-item-text"),A.jsx(n,{ref:o,className:xn(e,t),...r})));Y0.displayName="DropdownItemText";const ah=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Zb(e,t){const n=ah(e),r=ah(t);return o=>{n&&n(o),r&&r(o)}}function q0(e,t){return C.useMemo(()=>Zb(e,t),[e,t])}const Ff=C.createContext(null);Ff.displayName="InputGroupContext";const Z0=C.createContext(null);Z0.displayName="NavbarContext";function J0(e,t){return e}const zr=Ce.oneOf(["start","end"]),Jb=Ce.oneOfType([zr,Ce.shape({sm:zr}),Ce.shape({md:zr}),Ce.shape({lg:zr}),Ce.shape({xl:zr}),Ce.shape({xxl:zr}),Ce.object]);function ey(e,t,n){const r=n?"top-end":"top-start",o=n?"top-start":"top-end",l=n?"bottom-end":"bottom-start",s=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",u=n?"right-end":"left-end",c=n?"left-start":"right-start",f=n?"left-end":"right-end";let d=e?s:l;return t==="up"?d=e?o:r:t==="end"?d=e?f:c:t==="start"?d=e?u:a:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Wf=C.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:o=!0,show:l,renderOnMount:s,as:a="div",popperConfig:u,variant:c,...f},d)=>{let p=!1;const y=C.useContext(Z0),w=Sn(e,"dropdown-menu"),{align:x,drop:E,isRTL:g}=C.useContext(Bf);n=n||x;const m=C.useContext(Ff),v=[];if(n)if(typeof n=="object"){const $=Object.keys(n);if($.length){const _=$[0],R=n[_];p=R==="start",v.push(`${w}-${_}-${R}`)}}else n==="end"&&(p=!0);const S=ey(p,E,g),[k,{hasShown:b,popper:P,show:T,toggle:O}]=I0({flip:o,rootCloseEvent:r,show:l,usePopper:!y&&v.length===0,offset:[0,2],popperConfig:u,placement:S});if(k.ref=q0(J0(d),k.ref),Qb(()=>{T&&(P==null||P.update())},[T]),!b&&!s&&!m)return null;typeof a!="string"&&(k.show=T,k.close=()=>O==null?void 0:O(!1),k.align=n);let h=f.style;return P!=null&&P.placement&&(h={...f.style,...k.style},f["x-placement"]=P.placement),A.jsx(a,{...f,...k,style:h,...(v.length||y)&&{"data-bs-popper":"static"},className:xn(t,w,T&&"show",p&&`${w}-end`,c&&`${w}-${c}`,...v)})});Wf.displayName="DropdownMenu";const ty=C.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:l=!1,className:s,...a},u)=>{const c=Sn(t,"btn"),[f,{tagName:d}]=zf({tagName:e,disabled:l,...a}),p=d;return A.jsx(p,{...f,...a,ref:u,disabled:l,className:xn(s,c,o&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,a.href&&l&&"disabled")})});ty.displayName="Button";const Uf=C.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:o=ty,...l},s)=>{const a=Sn(e,"dropdown-toggle"),u=C.useContext(ya);r!==void 0&&(l.bsPrefix=r);const[c]=D0();return c.ref=q0(c.ref,J0(s)),A.jsx(o,{className:xn(n,a,t&&`${a}-split`,(u==null?void 0:u.show)&&"show"),...c,...l})});Uf.displayName="DropdownToggle";const ny=C.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:o,className:l,align:s="start",onSelect:a,onToggle:u,focusFirstItemOnShow:c,as:f="div",navbar:d,autoClose:p=!0,...y}=Hb(e,{show:"onToggle"}),w=C.useContext(Ff),x=Sn(n,"dropdown"),E=GE(),g=P=>p===!1?P==="click":p==="inside"?P!=="rootClose":p==="outside"?P!=="select":!0,m=dn((P,T)=>{var O;!((O=T.originalEvent)==null||(O=O.target)==null)&&O.classList.contains("dropdown-toggle")&&T.source==="mousedown"||(T.originalEvent.currentTarget===document&&(T.source!=="keydown"||T.originalEvent.key==="Escape")&&(T.source="rootClose"),g(T.source)&&(u==null||u(P,T)))}),S=ey(s==="end",r,E),k=C.useMemo(()=>({align:s,drop:r,isRTL:E}),[s,r,E]),b={down:x,"down-centered":`${x}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return A.jsx(Bf.Provider,{value:k,children:A.jsx(Hi,{placement:S,show:o,onSelect:a,onToggle:m,focusFirstItemOnShow:c,itemSelector:`.${x}-item:not(.disabled):not(:disabled)`,children:w?y.children:A.jsx(f,{...y,ref:t,className:xn(l,o&&"show",b[r])})})})});ny.displayName="Dropdown";const jl=Object.assign(ny,{Toggle:Uf,Menu:Wf,Item:X0,ItemText:Y0,Divider:K0,Header:G0}),eP={id:Ce.string,href:Ce.string,onClick:Ce.func,title:Ce.node.isRequired,disabled:Ce.bool,align:Jb,menuRole:Ce.string,renderMenuOnMount:Ce.bool,rootCloseEvent:Ce.string,menuVariant:Ce.oneOf(["dark"]),flip:Ce.bool,bsPrefix:Ce.string,variant:Ce.string,size:Ce.string},Vf=C.forwardRef(({title:e,children:t,bsPrefix:n,rootCloseEvent:r,variant:o,size:l,menuRole:s,renderMenuOnMount:a,disabled:u,href:c,id:f,menuVariant:d,flip:p,...y},w)=>A.jsxs(jl,{ref:w,...y,children:[A.jsx(Uf,{id:f,href:c,size:l,variant:o,disabled:u,childBsPrefix:n,children:e}),A.jsx(Wf,{role:s,renderOnMount:a,rootCloseEvent:r,variant:d,flip:p,children:t})]}));Vf.displayName="DropdownButton";Vf.propTypes=eP;const tP="http://localhost:1234/get-data",nP=[{featureType:"all",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"transit",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"poi",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"geometry",stylers:[{visibility:"on"}]}];function rP(){const[e,t]=C.useState(!1);let n=0;const[r,o]=C.useState({}),l=C.useContext(Df),s=l.reportView,a=l.setReportView,u=l.setActiveReport;l.activeReport;const c=C.useRef(null),[f,d]=C.useState(""),[p,y]=C.useState(""),w=C.useRef(null),[x,E]=C.useState(null),[g,m]=C.useState(null),[v,S]=C.useState("SSP245"),k=T=>{d(T.target.value)};async function b(T){let O={lat:T.lat(),lon:T.lng(),addr:f,scenario:v};console.log(O);const $=await(await fetch(tP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(O)})).json();return console.log($),o($),t(!1),$}const P=()=>{window.google&&window.google.maps&&f&&new window.google.maps.Geocoder().geocode({address:f},(O,h)=>{if(h==="OK"&&O[0]){console.log(O[0]);const $=O[0].geometry.location,_=O[0].formatted_address;if(a(!0),t(!0),b($),d(_),y(_),mapInstance){console.log("test"),mapInstance.panTo($),mapInstance.setZoom(15),g&&g.setMap(null);const R=new window.google.maps.Marker({id:n,position:$,map:mapInstance,label:{text:_,className:"map-label",fontSize:"16px",fontWeight:"bold"}});i+=1,m(R),R.addListener("click",()=>{u(R.id)})}}else console.error("Geocode was not successful for the following reason: "+h)})};return C.useEffect(()=>{new sr({apiKey:"AIzaSyD7nKTP-BuFskqfyroaasPKelA5k71LcsQ",version:"weekly",libraries:["places"]}).load().then(()=>{if(w.current){const O=new window.google.maps.Map(w.current,{center:{lat:43.6532,lng:-79.3832},zoom:13,mapTypeId:"hybrid",mapTypeControl:!1,styles:nP});E(O);const h=new window.google.maps.places.Autocomplete(c.current);h.bindTo("bounds",O),h.addListener("place_changed",()=>{const $=h.getPlace();if(!$.geometry||!$.geometry.location){console.log("No details available for input: "+$.name);return}const _=$.geometry.location;a(!0),t(!0),b(_);const R=$.formatted_address;if(y(R),d(R),O){console.log("test"),O.panTo(_),O.setZoom(15),g&&g.setMap(null);const L=new window.google.maps.Marker({id:n,position:_,map:O,label:{text:R,className:"map-label",fontSize:"16px",fontWeight:"bold"}});i+=1,m(L),L.addListener("click",()=>{u(L.id)})}})}}).catch(O=>{console.error("Error loading Google Maps API:",O)})},[w]),A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"bg-white backdrop-blur-sm m-2 px-5 pb-5 rounded-lg border-black border-[1px] left-0",children:[A.jsxs("div",{className:"flex justify-left items-center",children:[A.jsx("input",{className:"mx-4 p-2 z-10 relative bg-slate-500 border-black border-2 text-black",ref:c,type:"text",placeholder:"Type in an address!",onChange:k}),A.jsxs(Vf,{id:"dropdown-basic-button",title:v,className:"relative",children:[A.jsx(jl.Item,{onClick:()=>S("SSP126"),children:"SSP126"}),A.jsx(jl.Item,{onClick:()=>S("SSP245"),children:"SSP245"}),A.jsx(jl.Item,{onClick:()=>S("SSP585"),children:"SSP585"})]}),A.jsx("button",{className:"relative border-black border-1 m-2 rounded-lg",onClick:P,children:" Search! "})]}),A.jsx("div",{ref:w,style:{width:"60vw",height:"70vh"}})]}),s&&A.jsx("div",{className:"flex w-full h-full justify-center items-center",children:e?A.jsx(QE,{}):A.jsx(WE,{name:p,data:r})})]})}function oP(){return A.jsx("div",{id:"app",className:"w-[100vw] bg-slate-300 ",children:A.jsx(UE,{children:A.jsxs(U1,{apiKey:"AIzaSyD7nKTP-BuFskqfyroaasPKelA5k71LcsQ",onLoad:()=>console.log("Maps API has loaded."),children:[A.jsx(I1,{}),A.jsxs("div",{className:"flex items-center w-[100%] relative justify-left",children:[A.jsx(rP,{}),A.jsx(iP,{})]})]})})})}const iP=()=>{const{reportView:e}=pe.useContext(Df);return!e&&A.jsx("div",{className:"relative text-white w-[200px] p-6 rounded-xl bg-purple-950 font-bold border-black border-4",children:"Welcome to Flood Fill! Enter a location to generate a report of its expected flood risk in the future!"})};Cg(document.getElementById("root")).render(A.jsx(C.StrictMode,{children:A.jsx(oP,{})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s{e=Sn(e,"spinner");const u=`${e}-${n}`;return A.jsx(o,{ref:a,...s,className:xn(l,u,r&&`${u}-${r}`,t&&`text-${t}`)})});M0.displayName="Spinner";function QE(){return A.jsx(M0,{animation:"border",role:"status",children:A.jsx("span",{className:"visually-hidden",children:"Loading..."})})}var XE=Function.prototype.bind.call(Function.prototype.call,[].slice);function Zp(e,t){return XE(e.querySelectorAll(t))}const O0=!!(typeof window<"u"&&window.document&&window.document.createElement);var sc=!1,ac=!1;try{var eu={get passive(){return sc=!0},get once(){return ac=sc=!0}};O0&&(window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,!0))}catch{}function _0(e,t,n,r){if(r&&typeof r!="boolean"&&!ac){var o=r.once,l=r.capture,s=n;!ac&&o&&(s=n.__once||function a(u){this.removeEventListener(t,a,l),n.call(this,u)},n.__once=s),e.addEventListener(t,s,sc?r:l)}e.addEventListener(t,n,r)}function YE(e,t,n){const r=C.useRef(e!==void 0),[o,l]=C.useState(t),s=e!==void 0,a=r.current;return r.current=s,!s&&a&&o!==t&&l(t),[s?e:o,C.useCallback((...u)=>{const[c,...f]=u;let d=n==null?void 0:n(c,...f);return l(c),d},[n])]}function qE(e){const t=C.useRef(null);return C.useEffect(()=>{t.current=e}),t.current}function ZE(){const[,e]=C.useReducer(t=>!t,!1);return e}function JE(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function dn(e){const t=JE(e);return C.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function eb(e,t,n,r=!1){const o=dn(n);C.useEffect(()=>{const l=typeof e=="function"?e():e;return l.addEventListener(t,o,r),()=>l.removeEventListener(t,o,r)},[e])}const ya=C.createContext(null);function tb(){return C.useState(null)}var Jp=Object.prototype.hasOwnProperty;function eh(e,t,n){for(n of e.keys())if(si(n,t))return n}function si(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&si(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(o=r,o&&typeof o=="object"&&(o=eh(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(o=r[0],o&&typeof o=="object"&&(o=eh(t,o),!o)||!si(r[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Jp.call(e,n)&&++r&&!Jp.call(t,n)||!(n in t)||!si(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function nb(){const e=C.useRef(!0),t=C.useRef(()=>e.current);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function rb(e){const t=nb();return[e[0],C.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}const ob=zE({defaultModifiers:[CE,$E,sE,uE,bE,xE,AE,rE]}),ib=["enabled","placement","strategy","modifiers"];function lb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const sb={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},ab={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(o=>o.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&o==="tooltip"&&"setAttribute"in r){const l=r.getAttribute("aria-describedby");if(l&&l.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",l?`${l},${n.id}`:n.id)}}},ub=[];function cb(e,t,n={}){let{enabled:r=!0,placement:o="bottom",strategy:l="absolute",modifiers:s=ub}=n,a=lb(n,ib);const u=C.useRef(s),c=C.useRef(),f=C.useCallback(()=>{var E;(E=c.current)==null||E.update()},[]),d=C.useCallback(()=>{var E;(E=c.current)==null||E.forceUpdate()},[]),[p,y]=rb(C.useState({placement:o,update:f,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),w=C.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const g={},m={};Object.keys(E.elements).forEach(v=>{g[v]=E.styles[v],m[v]=E.attributes[v]}),y({state:E,styles:g,attributes:m,update:f,forceUpdate:d,placement:E.placement})}}),[f,d,y]),x=C.useMemo(()=>(si(u.current,s)||(u.current=s),u.current),[s]);return C.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:o,strategy:l,modifiers:[...x,w,sb]})},[l,o,w,r,x]),C.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=ob(e,t,Object.assign({},a,{placement:o,strategy:l,modifiers:[...x,ab,w]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,y(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),p}function th(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function fb(e,t,n,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function wl(e,t,n,r){return _0(e,t,n,r),function(){fb(e,t,n,r)}}function db(e){return e&&e.ownerDocument||document}var pb=function(){},hb=pb;const mb=ws(hb),nh=()=>{};function gb(e){return e.button===0}function yb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const tu=e=>e&&("current"in e?e.current:e),rh={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function vb(e,t=nh,{disabled:n,clickTrigger:r="click"}={}){const o=C.useRef(!1),l=C.useRef(!1),s=C.useCallback(c=>{const f=tu(e);mb(!!f,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!f||yb(c)||!gb(c)||!!th(f,c.target)||l.current,l.current=!1},[e]),a=dn(c=>{const f=tu(e);f&&th(f,c.target)&&(l.current=!0)}),u=dn(c=>{o.current||t(c)});C.useEffect(()=>{var c,f;if(n||e==null)return;const d=db(tu(e)),p=d.defaultView||window;let y=(c=p.event)!=null?c:(f=p.parent)==null?void 0:f.event,w=null;rh[r]&&(w=wl(d,rh[r],a,!0));const x=wl(d,r,s,!0),E=wl(d,r,m=>{if(m===y){y=void 0;return}u(m)});let g=[];return"ontouchstart"in d.documentElement&&(g=[].slice.call(d.body.children).map(m=>wl(m,"mousemove",nh))),()=>{w==null||w(),x(),E(),g.forEach(m=>m())}},[e,n,r,s,a,u])}function wb(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function xb(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Sb({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:l,containerPadding:s,arrowElement:a,popperConfig:u={}}){var c,f,d,p,y;const w=wb(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:l?"fixed":u.strategy,modifiers:xb(Object.assign({},w,{eventListeners:{enabled:t,options:(c=w.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},w.preventOverflow,{options:s?Object.assign({padding:s},(f=w.preventOverflow)==null?void 0:f.options):(d=w.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:o},(p=w.offset)==null?void 0:p.options)},arrow:Object.assign({},w.arrow,{enabled:!!a,options:Object.assign({},(y=w.arrow)==null?void 0:y.options,{element:a})}),flip:Object.assign({enabled:!!r},w.flip)}))})}const Cb=["children","usePopper"];function kb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Eb=()=>{};function I0(e={}){const t=C.useContext(ya),[n,r]=tb(),o=C.useRef(!1),{flip:l,offset:s,rootCloseEvent:a,fixed:u=!1,placement:c,popperConfig:f={},enableEventListeners:d=!0,usePopper:p=!!t}=e,y=(t==null?void 0:t.show)==null?!!e.show:t.show;y&&!o.current&&(o.current=!0);const w=b=>{t==null||t.toggle(!1,b)},{placement:x,setMenu:E,menuElement:g,toggleElement:m}=t||{},v=cb(m,g,Sb({placement:c||x||"bottom-start",enabled:p,enableEvents:d??y,offset:s,flip:l,fixed:u,arrowElement:n,popperConfig:f})),S=Object.assign({ref:E||Eb,"aria-labelledby":m==null?void 0:m.id},v.attributes.popper,{style:v.styles.popper}),k={show:y,placement:x,hasShown:o.current,toggle:t==null?void 0:t.toggle,popper:p?v:null,arrowProps:p?Object.assign({ref:r},v.attributes.arrow,{style:v.styles.arrow}):{}};return vb(g,w,{clickTrigger:a,disabled:!y}),[S,k]}function L0(e){let{children:t,usePopper:n=!0}=e,r=kb(e,Cb);const[o,l]=I0(Object.assign({},r,{usePopper:n}));return A.jsx(A.Fragment,{children:t(o,l)})}L0.displayName="DropdownMenu";const vs={prefix:String(Math.round(Math.random()*1e10)),current:0},N0=pe.createContext(vs),bb=pe.createContext(!1);let Pb=!!(typeof window<"u"&&window.document&&window.document.createElement),nu=new WeakMap;function $b(e=!1){let t=C.useContext(N0),n=C.useRef(null);if(n.current===null&&!e){var r,o;let l=(o=pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(l){let s=nu.get(l);s==null?nu.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==s.state&&(t.current=s.id,nu.delete(l))}n.current=++t.current}return n.current}function Tb(e){let t=C.useContext(N0);t===vs&&!Pb&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=$b(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function Rb(e){let t=pe.useId(),[n]=C.useState(Ib()),r=n?"react-aria":`react-aria${vs.prefix}`;return e||`${r}-${t}`}const Ab=typeof pe.useId=="function"?Rb:Tb;function Mb(){return!1}function Ob(){return!0}function _b(e){return()=>{}}function Ib(){return typeof pe.useSyncExternalStore=="function"?pe.useSyncExternalStore(_b,Mb,Ob):C.useContext(bb)}const j0=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},oh=()=>{};function D0(){const e=Ab(),{show:t=!1,toggle:n=oh,setToggle:r,menuElement:o}=C.useContext(ya)||{},l=C.useCallback(a=>{n(!t,a)},[t,n]),s={id:e,ref:r||oh,onClick:l,"aria-expanded":!!t};return o&&j0(o)&&(s["aria-haspopup"]=!0),[s,{show:t,toggle:n}]}function z0({children:e}){const[t,n]=D0();return A.jsx(A.Fragment,{children:e(t,n)})}z0.displayName="DropdownToggle";const uc=C.createContext(null),ih=(e,t=null)=>e!=null?String(e):t||null,B0=C.createContext(null);B0.displayName="NavContext";const Lb=["as","disabled"];function Nb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jb(e){return!e||e.trim()==="#"}function zf({tagName:e,disabled:t,href:n,target:r,rel:o,role:l,onClick:s,tabIndex:a=0,type:u}){e||(n!=null||r!=null||o!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:u||"button",disabled:t},c];const f=p=>{if((t||e==="a"&&jb(n))&&p.preventDefault(),t){p.stopPropagation();return}s==null||s(p)},d=p=>{p.key===" "&&(p.preventDefault(),f(p))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:l??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:f,onKeyDown:d},c]}const F0=C.forwardRef((e,t)=>{let{as:n,disabled:r}=e,o=Nb(e,Lb);const[l,{tagName:s}]=zf(Object.assign({tagName:n,disabled:r},o));return A.jsx(s,Object.assign({},o,l,{ref:t}))});F0.displayName="Button";const Db="data-rr-ui-";function W0(e){return`${Db}${e}`}const zb=["eventKey","disabled","onClick","active","as"];function Bb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function U0({key:e,href:t,active:n,disabled:r,onClick:o}){const l=C.useContext(uc),s=C.useContext(B0),{activeKey:a}=s||{},u=ih(e,t),c=n==null&&e!=null?ih(a)===u:n;return[{onClick:dn(d=>{r||(o==null||o(d),l&&!d.isPropagationStopped()&&l(u,d))}),"aria-disabled":r||void 0,"aria-selected":c,[W0("dropdown-item")]:""},{isActive:c}]}const V0=C.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:l,as:s=F0}=e,a=Bb(e,zb);const[u]=U0({key:n,href:a.href,disabled:r,onClick:o,active:l});return A.jsx(s,Object.assign({},a,{ref:t},u))});V0.displayName="DropdownItem";const H0=C.createContext(O0?window:void 0);H0.Provider;function Fb(){return C.useContext(H0)}function lh(){const e=ZE(),t=C.useRef(null),n=C.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Hi({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:o=`* [${W0("dropdown-item")}]`,focusFirstItemOnShow:l,placement:s="bottom-start",children:a}){const u=Fb(),[c,f]=YE(t,e,r),[d,p]=lh(),y=d.current,[w,x]=lh(),E=w.current,g=qE(c),m=C.useRef(null),v=C.useRef(!1),S=C.useContext(uc),k=C.useCallback(($,_,R=_==null?void 0:_.type)=>{f($,{originalEvent:_,source:R})},[f]),b=dn(($,_)=>{n==null||n($,_),k(!1,_,"select"),_.isPropagationStopped()||S==null||S($,_)}),P=C.useMemo(()=>({toggle:k,placement:s,show:c,menuElement:y,toggleElement:E,setMenu:p,setToggle:x}),[k,s,c,y,E,p,x]);y&&g&&!c&&(v.current=y.contains(y.ownerDocument.activeElement));const T=dn(()=>{E&&E.focus&&E.focus()}),O=dn(()=>{const $=m.current;let _=l;if(_==null&&(_=d.current&&j0(d.current)?"keyboard":!1),_===!1||_==="keyboard"&&!/^key.+$/.test($))return;const R=Zp(d.current,o)[0];R&&R.focus&&R.focus()});C.useEffect(()=>{c?O():v.current&&(v.current=!1,T())},[c,v,T,O]),C.useEffect(()=>{m.current=null});const h=($,_)=>{if(!d.current)return null;const R=Zp(d.current,o);let L=R.indexOf($)+_;return L=Math.max(0,Math.min(L,R.length)),R[L]};return eb(C.useCallback(()=>u.document,[u]),"keydown",$=>{var _,R;const{key:L}=$,U=$.target,H=(_=d.current)==null?void 0:_.contains(U),K=(R=w.current)==null?void 0:R.contains(U);if(/input|textarea/i.test(U.tagName)&&(L===" "||L!=="Escape"&&H||L==="Escape"&&U.type==="search")||!H&&!K||L==="Tab"&&(!d.current||!c))return;m.current=$.type;const j={originalEvent:$,source:$.type};switch(L){case"ArrowUp":{const D=h(U,-1);D&&D.focus&&D.focus(),$.preventDefault();return}case"ArrowDown":if($.preventDefault(),!c)f(!0,j);else{const D=h(U,1);D&&D.focus&&D.focus()}return;case"Tab":_0(U.ownerDocument,"keyup",D=>{var W;(D.key==="Tab"&&!D.target||!((W=d.current)!=null&&W.contains(D.target)))&&f(!1,j)},{once:!0});break;case"Escape":L==="Escape"&&($.preventDefault(),$.stopPropagation()),f(!1,j);break}}),A.jsx(uc.Provider,{value:b,children:A.jsx(ya.Provider,{value:P,children:a})})}Hi.displayName="Dropdown";Hi.Menu=L0;Hi.Toggle=z0;Hi.Item=V0;function sh(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Wb(e){var t=Ub(e,"string");return typeof t=="symbol"?t:String(t)}function Ub(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vb(e,t,n){var r=C.useRef(e!==void 0),o=C.useState(t),l=o[0],s=o[1],a=e!==void 0,u=r.current;return r.current=a,!a&&u&&l!==t&&s(t),[a?e:l,C.useCallback(function(c){for(var f=arguments.length,d=new Array(f>1?f-1:0),p=1;p(t=Sn(t,"dropdown-divider"),A.jsx(n,{ref:l,className:xn(e,t),role:r,...o})));K0.displayName="DropdownDivider";const G0=C.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...o},l)=>(t=Sn(t,"dropdown-header"),A.jsx(n,{ref:l,className:xn(e,t),role:r,...o})));G0.displayName="DropdownHeader";const Kb=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Gb=typeof document<"u",Qb=Gb||Kb?C.useLayoutEffect:C.useEffect,Xb=["onKeyDown"];function Yb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qb(e){return!e||e.trim()==="#"}const Q0=C.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=Yb(e,Xb);const[o]=zf(Object.assign({tagName:"a"},r)),l=dn(s=>{o.onKeyDown(s),n==null||n(s)});return qb(r.href)||r.role==="button"?A.jsx("a",Object.assign({ref:t},r,o,{onKeyDown:l})):A.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Q0.displayName="Anchor";const X0=C.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:o,active:l,as:s=Q0,...a},u)=>{const c=Sn(e,"dropdown-item"),[f,d]=U0({key:n,href:a.href,disabled:r,onClick:o,active:l});return A.jsx(s,{...a,...f,ref:u,className:xn(t,c,d.isActive&&"active",r&&"disabled")})});X0.displayName="DropdownItem";const Y0=C.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=Sn(t,"dropdown-item-text"),A.jsx(n,{ref:o,className:xn(e,t),...r})));Y0.displayName="DropdownItemText";const ah=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Zb(e,t){const n=ah(e),r=ah(t);return o=>{n&&n(o),r&&r(o)}}function q0(e,t){return C.useMemo(()=>Zb(e,t),[e,t])}const Ff=C.createContext(null);Ff.displayName="InputGroupContext";const Z0=C.createContext(null);Z0.displayName="NavbarContext";function J0(e,t){return e}const zr=Ce.oneOf(["start","end"]),Jb=Ce.oneOfType([zr,Ce.shape({sm:zr}),Ce.shape({md:zr}),Ce.shape({lg:zr}),Ce.shape({xl:zr}),Ce.shape({xxl:zr}),Ce.object]);function ey(e,t,n){const r=n?"top-end":"top-start",o=n?"top-start":"top-end",l=n?"bottom-end":"bottom-start",s=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",u=n?"right-end":"left-end",c=n?"left-start":"right-start",f=n?"left-end":"right-end";let d=e?s:l;return t==="up"?d=e?o:r:t==="end"?d=e?f:c:t==="start"?d=e?u:a:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Wf=C.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:o=!0,show:l,renderOnMount:s,as:a="div",popperConfig:u,variant:c,...f},d)=>{let p=!1;const y=C.useContext(Z0),w=Sn(e,"dropdown-menu"),{align:x,drop:E,isRTL:g}=C.useContext(Bf);n=n||x;const m=C.useContext(Ff),v=[];if(n)if(typeof n=="object"){const $=Object.keys(n);if($.length){const _=$[0],R=n[_];p=R==="start",v.push(`${w}-${_}-${R}`)}}else n==="end"&&(p=!0);const S=ey(p,E,g),[k,{hasShown:b,popper:P,show:T,toggle:O}]=I0({flip:o,rootCloseEvent:r,show:l,usePopper:!y&&v.length===0,offset:[0,2],popperConfig:u,placement:S});if(k.ref=q0(J0(d),k.ref),Qb(()=>{T&&(P==null||P.update())},[T]),!b&&!s&&!m)return null;typeof a!="string"&&(k.show=T,k.close=()=>O==null?void 0:O(!1),k.align=n);let h=f.style;return P!=null&&P.placement&&(h={...f.style,...k.style},f["x-placement"]=P.placement),A.jsx(a,{...f,...k,style:h,...(v.length||y)&&{"data-bs-popper":"static"},className:xn(t,w,T&&"show",p&&`${w}-end`,c&&`${w}-${c}`,...v)})});Wf.displayName="DropdownMenu";const ty=C.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:l=!1,className:s,...a},u)=>{const c=Sn(t,"btn"),[f,{tagName:d}]=zf({tagName:e,disabled:l,...a}),p=d;return A.jsx(p,{...f,...a,ref:u,disabled:l,className:xn(s,c,o&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,a.href&&l&&"disabled")})});ty.displayName="Button";const Uf=C.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:o=ty,...l},s)=>{const a=Sn(e,"dropdown-toggle"),u=C.useContext(ya);r!==void 0&&(l.bsPrefix=r);const[c]=D0();return c.ref=q0(c.ref,J0(s)),A.jsx(o,{className:xn(n,a,t&&`${a}-split`,(u==null?void 0:u.show)&&"show"),...c,...l})});Uf.displayName="DropdownToggle";const ny=C.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:o,className:l,align:s="start",onSelect:a,onToggle:u,focusFirstItemOnShow:c,as:f="div",navbar:d,autoClose:p=!0,...y}=Hb(e,{show:"onToggle"}),w=C.useContext(Ff),x=Sn(n,"dropdown"),E=GE(),g=P=>p===!1?P==="click":p==="inside"?P!=="rootClose":p==="outside"?P!=="select":!0,m=dn((P,T)=>{var O;!((O=T.originalEvent)==null||(O=O.target)==null)&&O.classList.contains("dropdown-toggle")&&T.source==="mousedown"||(T.originalEvent.currentTarget===document&&(T.source!=="keydown"||T.originalEvent.key==="Escape")&&(T.source="rootClose"),g(T.source)&&(u==null||u(P,T)))}),S=ey(s==="end",r,E),k=C.useMemo(()=>({align:s,drop:r,isRTL:E}),[s,r,E]),b={down:x,"down-centered":`${x}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return A.jsx(Bf.Provider,{value:k,children:A.jsx(Hi,{placement:S,show:o,onSelect:a,onToggle:m,focusFirstItemOnShow:c,itemSelector:`.${x}-item:not(.disabled):not(:disabled)`,children:w?y.children:A.jsx(f,{...y,ref:t,className:xn(l,o&&"show",b[r])})})})});ny.displayName="Dropdown";const jl=Object.assign(ny,{Toggle:Uf,Menu:Wf,Item:X0,ItemText:Y0,Divider:K0,Header:G0}),eP={id:Ce.string,href:Ce.string,onClick:Ce.func,title:Ce.node.isRequired,disabled:Ce.bool,align:Jb,menuRole:Ce.string,renderMenuOnMount:Ce.bool,rootCloseEvent:Ce.string,menuVariant:Ce.oneOf(["dark"]),flip:Ce.bool,bsPrefix:Ce.string,variant:Ce.string,size:Ce.string},Vf=C.forwardRef(({title:e,children:t,bsPrefix:n,rootCloseEvent:r,variant:o,size:l,menuRole:s,renderMenuOnMount:a,disabled:u,href:c,id:f,menuVariant:d,flip:p,...y},w)=>A.jsxs(jl,{ref:w,...y,children:[A.jsx(Uf,{id:f,href:c,size:l,variant:o,disabled:u,childBsPrefix:n,children:e}),A.jsx(Wf,{role:s,renderOnMount:a,rootCloseEvent:r,variant:d,flip:p,children:t})]}));Vf.displayName="DropdownButton";Vf.propTypes=eP;const tP="http://localhost:1234/get-data",nP=[{featureType:"all",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"transit",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels",stylers:[{visibility:"on"}]},{featureType:"poi",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"geometry",stylers:[{visibility:"on"}]}];function rP(){const[e,t]=C.useState(!1);let n=0;const[r,o]=C.useState({}),l=C.useContext(Df),s=l.reportView,a=l.setReportView,u=l.setActiveReport;l.activeReport;const c=C.useRef(null),[f,d]=C.useState(""),[p,y]=C.useState(""),w=C.useRef(null),[x,E]=C.useState(null),[g,m]=C.useState(null),[v,S]=C.useState("SSP245"),k=T=>{d(T.target.value)};async function b(T){let O={lat:T.lat(),lon:T.lng(),addr:f,scenario:v};console.log(O);try{const $=await(await fetch(tP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(O)})).json();return console.log($),o($),t(!1),$}catch(h){return console.error("Error:",h),null}}const P=()=>{window.google&&window.google.maps&&f&&new window.google.maps.Geocoder().geocode({address:f},(O,h)=>{if(h==="OK"&&O[0]){console.log(O[0]);const $=O[0].geometry.location,_=O[0].formatted_address;if(a(!0),t(!0),b($),d(_),y(_),mapInstance){console.log("test"),mapInstance.panTo($),mapInstance.setZoom(15),g&&g.setMap(null);const R=new window.google.maps.Marker({id:n,position:$,map:mapInstance,label:{text:_,className:"map-label",fontSize:"16px",fontWeight:"bold"}});i+=1,m(R),R.addListener("click",()=>{u(R.id)})}}else console.error("Geocode was not successful for the following reason: "+h)})};return C.useEffect(()=>{new sr({apiKey:"AIzaSyD7nKTP-BuFskqfyroaasPKelA5k71LcsQ",version:"weekly",libraries:["places"]}).load().then(()=>{if(w.current){const O=new window.google.maps.Map(w.current,{center:{lat:43.6532,lng:-79.3832},zoom:13,mapTypeId:"hybrid",mapTypeControl:!1,styles:nP});E(O);const h=new window.google.maps.places.Autocomplete(c.current);h.bindTo("bounds",O),h.addListener("place_changed",()=>{const $=h.getPlace();if(!$.geometry||!$.geometry.location){console.log("No details available for input: "+$.name);return}const _=$.geometry.location;a(!0),t(!0),b(_);const R=$.formatted_address;if(y(R),d(R),O){console.log("test"),O.panTo(_),O.setZoom(15),g&&g.setMap(null);const L=new window.google.maps.Marker({id:n,position:_,map:O,label:{text:R,className:"map-label",fontSize:"16px",fontWeight:"bold"}});i+=1,m(L),L.addListener("click",()=>{u(L.id)})}})}}).catch(O=>{console.error("Error loading Google Maps API:",O)})},[w]),A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"bg-white backdrop-blur-sm m-2 px-5 pb-5 rounded-lg border-black border-[1px] left-0",children:[A.jsxs("div",{className:"flex justify-left items-center",children:[A.jsx("input",{className:"mx-4 p-2 z-10 relative bg-slate-500 border-black border-2 text-black",ref:c,type:"text",placeholder:"Type in an address!",onChange:k}),A.jsxs(Vf,{id:"dropdown-basic-button",title:v,className:"relative",children:[A.jsx(jl.Item,{onClick:()=>S("SSP126"),children:"SSP126"}),A.jsx(jl.Item,{onClick:()=>S("SSP245"),children:"SSP245"}),A.jsx(jl.Item,{onClick:()=>S("SSP585"),children:"SSP585"})]}),A.jsx("button",{className:"relative border-black border-1 m-2 rounded-lg",onClick:P,children:" Search! "})]}),A.jsx("div",{ref:w,style:{width:"60vw",height:"70vh"}})]}),s&&A.jsx("div",{className:"flex w-full h-full justify-center items-center",children:e?A.jsx(QE,{}):A.jsx(WE,{name:p,data:r})})]})}function oP(){return A.jsx("div",{id:"app",className:"w-[100vw] bg-slate-300 ",children:A.jsx(UE,{children:A.jsxs(U1,{apiKey:"AIzaSyD7nKTP-BuFskqfyroaasPKelA5k71LcsQ",onLoad:()=>console.log("Maps API has loaded."),children:[A.jsx(I1,{}),A.jsxs("div",{className:"flex items-center w-[100%] relative justify-left",children:[A.jsx(rP,{}),A.jsx(iP,{})]})]})})})}const iP=()=>{const{reportView:e}=pe.useContext(Df);return!e&&A.jsx("div",{className:"relative text-white m-2 p-6 rounded-xl bg-purple-950 font-bold border-black border-4",children:"Welcome to Flood Fill! Enter a location to generate a report of its expected flood risk in the future!"})};Cg(document.getElementById("root")).render(A.jsx(C.StrictMode,{children:A.jsx(oP,{})})); diff --git a/assets/index-DtsQqpQv.css b/assets/index-CVHgiA4T.css similarity index 98% rename from assets/index-DtsQqpQv.css rename to assets/index-CVHgiA4T.css index 283d915..8da0f4a 100644 --- a/assets/index-DtsQqpQv.css +++ b/assets/index-CVHgiA4T.css @@ -1,4 +1,4 @@ -@charset "UTF-8";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.relative{position:relative}.left-0{left:0}.z-10{z-index:10}.m-2{margin:.5rem}.m-6{margin:1.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.flex{display:flex}.hidden{display:none}.h-\[1px\]{height:1px}.h-\[40\%\]{height:40%}.h-\[500px\]{height:500px}.h-full{height:100%}.w-\[100\%\]{width:100%}.w-\[1000px\]{width:1000px}.w-\[100vw\]{width:100vw}.w-\[200px\]{width:200px}.w-\[40\%\]{width:40%}.w-\[60\%\]{width:60%}.w-full{width:100%}.max-w-\[90\%\]{max-width:90%}.translate-y-\[-10px\]{--tw-translate-y: -10px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\[1px\]{border-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bg-\[\#0a1627\]{--tw-bg-opacity: 1;background-color:rgb(10 22 39 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-purple-950{--tw-bg-opacity: 1;background-color:rgb(59 7 100 / var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.pb-5{padding-bottom:1.25rem}.text-\[3em\]{font-size:3em}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.danger-gradient{background:linear-gradient(-90deg,red,red 20%,#ff0 75%,#0f0)}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#tsparticles{z-index:-1}.map-label{position:absolute;top:0;left:0;transform:translate(-50%);padding:.5em;background-color:#fff;color:#fff;font-size:1.2em;font-weight:500;border-radius:0 0 0 8px}/*! +@charset "UTF-8";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.relative{position:relative}.left-0{left:0}.z-10{z-index:10}.m-2{margin:.5rem}.m-6{margin:1.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.flex{display:flex}.hidden{display:none}.h-\[1px\]{height:1px}.h-\[40\%\]{height:40%}.h-\[500px\]{height:500px}.h-full{height:100%}.w-\[100\%\]{width:100%}.w-\[1000px\]{width:1000px}.w-\[100vw\]{width:100vw}.w-\[40\%\]{width:40%}.w-\[60\%\]{width:60%}.w-full{width:100%}.max-w-\[90\%\]{max-width:90%}.translate-y-\[-10px\]{--tw-translate-y: -10px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-\[1px\]{border-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.bg-\[\#0a1627\]{--tw-bg-opacity: 1;background-color:rgb(10 22 39 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-purple-950{--tw-bg-opacity: 1;background-color:rgb(59 7 100 / var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3b82f6 var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-2{padding:.5rem}.p-6{padding:1.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.pb-5{padding-bottom:1.25rem}.text-\[3em\]{font-size:3em}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.danger-gradient{background:linear-gradient(-90deg,red,red 20%,#ff0 75%,#0f0)}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#tsparticles{z-index:-1}.map-label{position:absolute;top:0;left:0;transform:translate(-50%);padding:.5em;background-color:#fff;color:#fff;font-size:1.2em;font-weight:500;border-radius:0 0 0 8px}/*! * Bootstrap v5.3.3 (https://getbootstrap.com/) * Copyright 2011-2024 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) diff --git a/index.html b/index.html index 38a7d01..1ef4b0d 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Flood Fill - - + +