@riddix/hamh 2.1.0-alpha.596 → 2.1.0-alpha.598
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -195,7 +195,7 @@ export default theme;`}function XF(e){return typeof e=="number"?`${(e*100).toFix
|
|
|
195
195
|
}
|
|
196
196
|
`,g6e=typeof PD!="string"?i0`
|
|
197
197
|
animation: ${PD} 3s infinite linear;
|
|
198
|
-
`:null,y6e=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${ve(r)}`,n],dashed:["dashed",`dashedColor${ve(r)}`],bar1:["bar","bar1",`barColor${ve(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ve(r)}`,n==="buffer"&&`color${ve(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return nt(i,h6e,t)},HO=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),b6e=ge("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ve(n.color)}`],t[n.variant]]}})(Ye(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{backgroundColor:HO(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),v6e=ge("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ve(n.color)}`]]}})(Ye(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Gn()).map(([t])=>{const n=HO(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),g6e||{animation:`${PD} 3s infinite linear`}),x6e=ge("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ve(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${jD}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${jD}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:p6e||{animation:`${RD} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),S6e=ge("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ve(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:HO(e,t),transition:`transform .${jD}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:m6e||{animation:`${ID} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),UO=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:a,variant:l="indeterminate",...c}=r,u={...r,color:o,variant:l},d=y6e(u),p=Lc(),g={},y={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let b=s-100;p&&(b=-b),y.bar1.transform=`translateX(${b}%)`}if(l==="buffer"&&a!==void 0){let b=(a||0)-100;p&&(b=-b),y.bar2.transform=`translateX(${b}%)`}return h.jsxs(b6e,{className:_e(d.root,i),ownerState:u,role:"progressbar",...g,ref:n,...c,children:[l==="buffer"?h.jsx(v6e,{className:d.dashed,ownerState:u}):null,h.jsx(x6e,{className:d.bar1,ownerState:u,style:y.bar1}),l==="determinate"?null:h.jsx(S6e,{className:d.bar2,ownerState:u,style:y.bar2})]})}),Wt=e5e({createStyledComponent:ge("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ct({props:e,name:"MuiStack"})});function Mr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,s=i?{}:p4(n,r),{props:a,internalRef:l}=QZ({...o,externalSlotProps:s}),c=Br(l,s?.ref,e.additionalProps?.ref);return XZ(t,{...a,ref:c},r)}const w6e=Ee(h.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),C6e=ge(ss,{name:"MuiBreadcrumbCollapsed"})(Ye(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:yb(e.palette.grey[200],.12)}:{backgroundColor:yb(e.palette.grey[600],.12)}}}))),k6e=ge(w6e)({width:24,height:16});function E6e(e){const{slots:t={},slotProps:n={},...r}=e,i=e;return h.jsx("li",{children:h.jsx(C6e,{focusRipple:!0,...r,ownerState:i,children:h.jsx(k6e,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function A6e(e){return tt("MuiBreadcrumbs",e)}const D6e=st("MuiBreadcrumbs",["root","ol","li","separator"]),_6e=e=>{const{classes:t}=e;return nt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},A6e,t)},T6e=ge(re,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${D6e.li}`]:t.li},t.root]})({}),O6e=ge("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),M6e=ge("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function j6e(e,t,n,r){return e.reduce((i,o,s)=>(s<e.length-1?i=i.concat(o,h.jsx(M6e,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):i.push(o),i),[])}const R6e=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiBreadcrumbs"}),{children:i,className:o,component:s="nav",slots:a={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:d=1,maxItems:p=8,separator:g="/",...y}=r,[b,v]=A.useState(!1),S={...r,component:s,expanded:b,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:d,maxItems:p,separator:g},C=_6e(S),w=Mr({elementType:a.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:S}),E=A.useRef(null),k=_=>{const O=()=>{v(!0);const R=E.current.querySelector("a[href],button,[tabindex]");R&&R.focus()};return d+u>=_.length?_:[..._.slice(0,d),h.jsx(E6e,{"aria-label":c,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:O},"ellipsis"),..._.slice(_.length-u,_.length)]},T=A.Children.toArray(i).filter(_=>A.isValidElement(_)).map((_,O)=>h.jsx("li",{className:C.li,children:_},`child-${O}`));return h.jsx(T6e,{ref:n,component:s,color:"textSecondary",className:_e(C.root,o),ownerState:S,...y,children:h.jsx(O6e,{className:C.ol,ref:E,ownerState:S,children:j6e(b||p&&T.length<=p?T:k(T),C.separator,g,S)})})});function I6e(e){return tt("MuiLink",e)}const P6e=st("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),N6e=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const o=Jl(e,`palette.${n}.main`)||Jl(e,`palette.${n}`)||t.color;return e.alpha(o,.4)}const r=Jl(e,`palette.${n}.main`,!1)||Jl(e,`palette.${n}`,!1)||t.color,i=Jl(e,`palette.${n}.mainChannel`)||Jl(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:lc(r,.4)},Qz={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},$6e=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ve(i)}`,n==="button"&&"button",r&&"focusVisible"]};return nt(o,I6e,t)},L6e=ge(re,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ve(n.underline)}`],n.component==="button"&&t.button]}})(Ye(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${P6e.focusVisible}`]:{outline:"auto"}}}]}))),V2=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiLink"}),i=Ki(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:g,...y}=r,[b,v]=A.useState(!1),S=k=>{mf(k.target)||v(!1),l&&l(k)},C=k=>{mf(k.target)&&v(!0),c&&c(k)},w={...r,color:s,component:a,focusVisible:b,underline:d,variant:p},E=$6e(w);return h.jsx(L6e,{color:s,className:_e(E.root,o),classes:u,component:a,onBlur:S,onFocus:C,ref:n,ownerState:w,variant:p,...y,sx:[...Qz[s]===void 0?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...d==="always"&&s!=="inherit"&&!Qz[s]&&{"--Link-underlineColor":N6e({theme:i,ownerState:w})}}})}),F6e=({name:e,to:t})=>h.jsx(V2,{color:"inherit",underline:"hover",component:Oc,to:t,children:e}),W2=({items:e})=>h.jsx(R6e,{separator:"›",children:e.map((t,n)=>h.jsx(F6e,{...t},n.toString()))});function Fc(){return{show:A.useContext(iX).show}}const z6e={apple_home:"🍏",google_home:"🏠",alexa:"🔵",multi_controller:"🔀"},B6e={light:"💡",switch:"🔌",sensor:"📊",binary_sensor:"📊",climate:"🌡️",cover:"🪟",fan:"🌬️",lock:"🔒",media_player:"🎵",vacuum:"🤖",valve:"🚰",humidifier:"💧"},H6e=()=>{const{t:e}=en(),t=$c(),n=Fc(),r=Rs(),[i,o]=A.useState([]),[s,a]=A.useState(!0),[l,c]=A.useState(new Set),[u,d]=A.useState(),[p,g]=A.useState(!1),[y,b]=A.useState(0),[v,S]=A.useState([]);A.useEffect(()=>{(async()=>{try{const _=await fetch("api/matter/areas/summary");if(_.ok){const O=await _.json();o(O.filter(R=>R.entityCount>0))}}catch{n.show({message:e("areaSetup.loadFailed"),severity:"error"})}finally{a(!1)}})()},[n,e]);const C=A.useCallback(T=>{c(_=>{const O=new Set(_);return O.has(T)?O.delete(T):O.add(T),O})},[]),w=A.useCallback(()=>{c(new Set(i.map(T=>T.area_id)))},[i]),E=A.useCallback(()=>{c(new Set)},[]),k=A.useCallback(async()=>{if(l.size===0)return;g(!0),b(0),S([]);const T=i.filter(M=>l.has(M.area_id)),_=[];let O;try{const M=await fetch("api/matter/next-port");M.ok&&(O=await M.json())}catch{}let R=O?.port??5540;for(let M=0;M<T.length;M++){const N=T[M];b((M+1)/T.length*100);const $={autoBatteryMapping:!0,autoHumidityMapping:!0,autoPressureMapping:!0,...u?.featureFlags??{}},B={name:N.name,port:R++,filter:{include:[{type:Tr.Area,value:N.name}],exclude:[]},featureFlags:$};try{await zO(B),_.push({area:N.name,success:!0})}catch(F){_.push({area:N.name,success:!1,error:F instanceof Error?F.message:e("areaSetup.unknownError")})}}S(_),g(!1),r(Lo());const P=_.filter(M=>M.success).length,L=_.filter(M=>!M.success).length;L===0?n.show({message:e("areaSetup.createdSuccess",{count:P}),severity:"success"}):n.show({message:e("areaSetup.createdPartial",{succeeded:P,failed:L}),severity:"warning"})},[l,i,u,r,n,e]);return s?h.jsx(se,{display:"flex",justifyContent:"center",p:4,children:h.jsx(Xn,{})}):h.jsxs(Wt,{spacing:3,children:[h.jsx(W2,{items:[{name:e("nav.bridges"),to:Mt.bridges},{name:e("areaSetup.title"),to:Mt.areaSetup}]}),h.jsx(re,{variant:"h5",children:e("areaSetup.heading")}),h.jsx(re,{variant:"body2",color:"text.secondary",children:e("areaSetup.description")}),i.length===0?h.jsx(zt,{severity:"info",children:e("areaSetup.noAreas")}):h.jsxs(h.Fragment,{children:[h.jsxs(se,{children:[h.jsx(re,{variant:"subtitle1",fontWeight:600,gutterBottom:!0,children:e("areaSetup.selectController")}),h.jsx(ht,{container:!0,spacing:1.5,children:PX.map(T=>{const _=u?.id===T.id;return h.jsx(ht,{size:{xs:6,sm:3},children:h.jsx(Mn,{variant:"outlined",sx:{borderColor:_?"primary.main":"divider",borderWidth:_?2:1,bgcolor:_?"action.selected":"background.paper",transition:"all 0.15s ease"},children:h.jsx(zu,{onClick:()=>d(_?void 0:T),children:h.jsx(Qn,{sx:{p:1.5,"&:last-child":{pb:1.5}},children:h.jsxs(se,{display:"flex",alignItems:"center",gap:.5,children:[h.jsx(re,{fontSize:18,children:z6e[T.id]??"🏠"}),h.jsx(re,{variant:"body2",fontWeight:500,children:T.name}),_&&h.jsx(Za,{color:"primary",sx:{fontSize:16,ml:"auto"}})]})})})})},T.id)})})]}),h.jsxs(se,{children:[h.jsxs(se,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,children:[h.jsx(re,{variant:"subtitle1",fontWeight:600,children:e("areaSetup.selectAreas",{selected:l.size,total:i.length})}),h.jsxs(se,{display:"flex",gap:1,children:[h.jsx(Ue,{size:"small",onClick:w,children:e("common.all")}),h.jsx(Ue,{size:"small",onClick:E,children:e("areaSetup.clear")})]})]}),h.jsx(ht,{container:!0,spacing:1,children:i.map(T=>{const _=l.has(T.area_id),O=Object.entries(T.domains).sort(([,R],[,P])=>P-R).slice(0,4);return h.jsx(ht,{size:{xs:12,sm:6,md:4},children:h.jsx(Mn,{variant:"outlined",sx:{borderColor:_?"primary.main":"divider",borderWidth:_?2:1,bgcolor:_?"action.selected":"background.paper",transition:"all 0.15s ease"},children:h.jsx(zu,{onClick:()=>C(T.area_id),sx:{p:0,display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start"},children:h.jsxs(Qn,{sx:{p:1.5,"&:last-child":{pb:1.5},width:"100%"},children:[h.jsxs(se,{display:"flex",alignItems:"center",gap:1,children:[h.jsx(Ro,{control:h.jsx(ws,{checked:_,size:"small",sx:{p:.5}}),label:"",sx:{m:0,mr:-.5}}),h.jsx(re,{variant:"subtitle2",sx:{flexGrow:1},children:T.name}),h.jsx(ot,{label:`${T.entityCount}`,size:"small",sx:{fontSize:"0.7rem",height:20}})]}),h.jsx(se,{display:"flex",gap:.5,flexWrap:"wrap",mt:.5,ml:4,children:O.map(([R,P])=>h.jsx(ot,{label:`${B6e[R]??""} ${R} (${P})`,size:"small",variant:"outlined",sx:{fontSize:"0.6rem",height:18}},R))})]})})})},T.area_id)})})]}),h.jsxs(se,{display:"flex",gap:2,alignItems:"center",children:[h.jsx(Ue,{onClick:()=>t(Mt.bridges),startIcon:h.jsx(NX,{}),disabled:p,children:e("common.back")}),h.jsx(se,{sx:{flex:1}}),h.jsx(Ue,{variant:"contained",onClick:k,startIcon:p?h.jsx(Xn,{size:16}):h.jsx(c0,{}),disabled:l.size===0||p,children:p?e("areaSetup.creating"):e("areaSetup.createBridges",{count:l.size})})]}),p&&h.jsx(UO,{variant:"determinate",value:y}),v.length>0&&h.jsxs(se,{children:[h.jsx(re,{variant:"subtitle2",gutterBottom:!0,children:e("areaSetup.results")}),v.map(T=>h.jsxs(zt,{severity:T.success?"success":"error",sx:{mb:.5},children:[T.area,": ",T.success?e("areaSetup.created"):T.error]},T.area)),h.jsx(Ue,{variant:"outlined",onClick:()=>t(Mt.bridges),sx:{mt:1},children:e("areaSetup.goToBridges")})]})]})]})},VO=Ee(h.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),u0=Ee(h.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function U6e(e){return tt("MuiAlertTitle",e)}st("MuiAlertTitle",["root"]);const V6e=e=>{const{classes:t}=e;return nt({root:["root"]},U6e,t)},W6e=ge(re,{name:"MuiAlertTitle",slot:"Root"})(Ye(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Cb=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiAlertTitle"}),{className:i,...o}=r,s=r,a=V6e(s);return h.jsx(W6e,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:_e(a.root,i),...o})});function q6e(e){return tt("MuiCollapse",e)}st("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const K6e=e=>{const{orientation:t,classes:n}=e;return nt({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},q6e,n)},G6e=ge("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ye(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Y6e=ge("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),J6e=ge("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),is=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:g,onExit:y,onExited:b,onExiting:v,orientation:S="vertical",slots:C={},slotProps:w={},style:E,timeout:k=qZ.standard,TransitionComponent:T=Ja,..._}=r,O={...r,orientation:S,collapsedSize:a},R=K6e(O),P=Ki(),L=Kd(),M=A.useRef(null),N=A.useRef(),$=typeof a=="number"?`${a}px`:a,B=S==="horizontal",F=B?"width":"height",V=A.useRef(null),W=Br(n,V),q=fe=>ye=>{if(fe){const Me=V.current;ye===void 0?fe(Me):fe(Me,ye)}},Z=()=>M.current?M.current[B?"clientWidth":"clientHeight"]:0,z=q((fe,ye)=>{M.current&&B&&(M.current.style.position="absolute"),fe.style[F]=$,d&&d(fe,ye)}),U=q((fe,ye)=>{const Me=Z();M.current&&B&&(M.current.style.position="");const{duration:ue,easing:we}=gf({style:E,timeout:k,easing:c},{mode:"enter"});if(k==="auto"){const Oe=P.transitions.getAutoHeightDuration(Me);fe.style.transitionDuration=`${Oe}ms`,N.current=Oe}else fe.style.transitionDuration=typeof ue=="string"?ue:`${ue}ms`;fe.style[F]=`${Me}px`,fe.style.transitionTimingFunction=we,g&&g(fe,ye)}),Y=q((fe,ye)=>{fe.style[F]="auto",p&&p(fe,ye)}),H=q(fe=>{fe.style[F]=`${Z()}px`,y&&y(fe)}),K=q(b),Q=q(fe=>{const ye=Z(),{duration:Me,easing:ue}=gf({style:E,timeout:k,easing:c},{mode:"exit"});if(k==="auto"){const we=P.transitions.getAutoHeightDuration(ye);fe.style.transitionDuration=`${we}ms`,N.current=we}else fe.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;fe.style[F]=$,fe.style.transitionTimingFunction=ue,v&&v(fe)}),ie=fe=>{k==="auto"&&L.start(N.current||0,fe),i&&i(V.current,fe)},te={slots:C,slotProps:w,component:l},[ce,ee]=ft("root",{ref:W,className:_e(R.root,s),elementType:G6e,externalForwardedProps:te,ownerState:O,additionalProps:{style:{[B?"minWidth":"minHeight"]:$,...E}}}),[J,X]=ft("wrapper",{ref:M,className:R.wrapper,elementType:Y6e,externalForwardedProps:te,ownerState:O}),[oe,le]=ft("wrapperInner",{className:R.wrapperInner,elementType:J6e,externalForwardedProps:te,ownerState:O});return h.jsx(T,{in:u,onEnter:z,onEntered:Y,onEntering:U,onExit:H,onExited:K,onExiting:Q,addEndListener:ie,nodeRef:V,timeout:k==="auto"?null:k,..._,children:(fe,{ownerState:ye,...Me})=>{const ue={...O,state:fe};return h.jsx(ce,{...ee,className:_e(ee.className,{entered:R.entered,exited:!u&&$==="0px"&&R.hidden}[fe]),ownerState:ue,...Me,children:h.jsx(J,{...X,ownerState:ue,children:h.jsx(oe,{...le,ownerState:ue,children:o})})})}})});is&&(is.muiSupportAuto=!0);const gl=A.createContext({});function Z6e(e){return tt("MuiList",e)}st("MuiList",["root","padding","dense","subheader"]);const X6e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return nt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Z6e,t)},Q6e=ge("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Fo=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=A.useMemo(()=>({dense:a}),[a]),p={...r,component:s,dense:a,disablePadding:l},g=X6e(p);return h.jsx(gl.Provider,{value:d,children:h.jsxs(Q6e,{as:s,className:_e(g.root,o),ref:n,ownerState:p,...u,children:[c,i]})})});function eCe(e){return tt("MuiListItem",e)}st("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tCe(e){return tt("MuiListItemButton",e)}const Mm=st("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nCe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rCe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,c=nt({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},tCe,n);return{...n,...c}},iCe=ge(ss,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nCe})(Ye(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Mm.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Mm.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Mm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),oCe=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:g,...y}=r,b=A.useContext(gl),v=A.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),S=A.useRef(null);Bo(()=>{o&&S.current&&S.current.focus()},[o]);const C={...r,alignItems:i,dense:v.dense,disableGutters:c,divider:u,selected:p},w=rCe(C),E=Br(S,n);return h.jsx(gl.Provider,{value:v,children:h.jsx(iCe,{ref:E,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:_e(w.focusVisible,d),ownerState:C,className:_e(w.root,g),...y,classes:w,children:a})})});function sCe(e){return tt("MuiListItemSecondaryAction",e)}st("MuiListItemSecondaryAction",["root","disableGutters"]);const aCe=e=>{const{disableGutters:t,classes:n}=e;return nt({root:["root",t&&"disableGutters"]},sCe,n)},lCe=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),WO=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,s=A.useContext(gl),a={...r,disableGutters:s.disableGutters},l=aCe(a);return h.jsx(lCe,{className:_e(l.root,i),ownerState:a,ref:n,...o})});WO.muiName="ListItemSecondaryAction";const cCe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},uCe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return nt({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},eCe,n)},dCe=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:cCe})(Ye(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Mm.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),fCe=ge("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Es=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:v=!1,secondaryAction:S,slotProps:C={},slots:w={},...E}=r,k=A.useContext(gl),T=A.useMemo(()=>({dense:g||k.dense||!1,alignItems:i,disableGutters:y}),[i,k.dense,g,y]),_=A.useRef(null),O=A.Children.toArray(o),R=O.length&&Ty(O[O.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:i,dense:T.dense,disableGutters:y,disablePadding:b,divider:v,hasSecondaryAction:R},L=uCe(P),M=Br(_,n),N={slots:w,slotProps:C},[$,B]=ft("secondaryAction",{elementType:WO,externalForwardedProps:N,ownerState:P,className:L.secondaryAction}),F=w.root||l.Root||dCe,V=C.root||c.root||{},W={className:_e(L.root,V.className,s),...E};let q=a||"li";return R?(q=!W.component&&!a?"div":q,u==="li"&&(q==="li"?q="div":W.component==="li"&&(W.component="div")),h.jsx(gl.Provider,{value:T,children:h.jsxs(fCe,{as:u,className:_e(L.container,d),ref:M,ownerState:P,...p,children:[h.jsx(F,{...V,...!wc(F)&&{as:q,ownerState:{...P,...V.ownerState}},...W,children:O}),O.pop()]})})):h.jsx(gl.Provider,{value:T,children:h.jsxs(F,{...V,as:q,ref:M,...!wc(F)&&{ownerState:{...P,...V.ownerState}},...W,children:[O,S&&h.jsx($,{...B,children:S})]})})});function hCe(e){return tt("MuiListItemIcon",e)}const eB=st("MuiListItemIcon",["root","alignItemsFlexStart"]),pCe=e=>{const{alignItems:t,classes:n}=e;return nt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hCe,n)},mCe=ge("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ye(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Io=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,s=A.useContext(gl),a={...r,alignItems:s.alignItems},l=pCe(a);return h.jsx(mCe,{className:_e(l.root,i),ownerState:a,ref:n,...o})});function gCe(e){return tt("MuiListItemText",e)}const $m=st("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yCe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return nt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gCe,t)},bCe=ge("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$m.primary}`]:t.primary},{[`& .${$m.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Zz.root}:where(& .${$m.primary})`]:{display:"block"},[`.${Zz.root}:where(& .${$m.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ao=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:g={},...y}=r,{dense:b}=A.useContext(gl);let v=l??i,S=u;const C={...r,disableTypography:s,inset:a,primary:!!v,secondary:!!S,dense:b},w=yCe(C),E={slots:p,slotProps:{primary:c,secondary:d,...g}},[k,T]=ft("root",{className:_e(w.root,o),elementType:bCe,externalForwardedProps:{...E,...y},ownerState:C,ref:n}),[_,O]=ft("primary",{className:w.primary,elementType:re,externalForwardedProps:E,ownerState:C}),[R,P]=ft("secondary",{className:w.secondary,elementType:re,externalForwardedProps:E,ownerState:C});return v!=null&&v.type!==re&&!s&&(v=h.jsx(_,{variant:b?"body2":"body1",component:O?.variant?void 0:"span",...O,children:v})),S!=null&&S.type!==re&&!s&&(S=h.jsx(R,{variant:"body2",color:"textSecondary",...P,children:S})),h.jsxs(k,{...T,children:[v,S]})});var As="top",Fa="bottom",za="right",Ds="left",qO="auto",q2=[As,Fa,za,Ds],Dg="start",kb="end",vCe="clippingParents",LX="viewport",I1="popper",xCe="reference",tB=q2.reduce(function(e,t){return e.concat([t+"-"+Dg,t+"-"+kb])},[]),FX=[].concat(q2,[qO]).reduce(function(e,t){return e.concat([t,t+"-"+Dg,t+"-"+kb])},[]),SCe="beforeRead",wCe="read",CCe="afterRead",kCe="beforeMain",ECe="main",ACe="afterMain",DCe="beforeWrite",_Ce="write",TCe="afterWrite",OCe=[SCe,wCe,CCe,kCe,ECe,ACe,DCe,_Ce,TCe];function Mc(e){return e?(e.nodeName||"").toLowerCase():null}function sa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zh(e){var t=sa(e).Element;return e instanceof t||e instanceof Element}function Ra(e){var t=sa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function KO(e){if(typeof ShadowRoot>"u")return!1;var t=sa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function MCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ra(o)||!Mc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function jCe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Ra(i)||!Mc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const RCe={name:"applyStyles",enabled:!0,phase:"write",fn:MCe,effect:jCe,requires:["computeStyles"]};function Cc(e){return e.split("-")[0]}var Hh=Math.max,T4=Math.min,_g=Math.round;function ND(){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 zX(){return!/^((?!chrome|android).)*safari/i.test(ND())}function Tg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ra(e)&&(i=e.offsetWidth>0&&_g(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_g(r.height)/e.offsetHeight||1);var s=Zh(e)?sa(e):window,a=s.visualViewport,l=!zX()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function GO(e){var t=Tg(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 BX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&KO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bu(e){return sa(e).getComputedStyle(e)}function ICe(e){return["table","td","th"].indexOf(Mc(e))>=0}function Pf(e){return((Zh(e)?e.ownerDocument:e.document)||window.document).documentElement}function W6(e){return Mc(e)==="html"?e:e.assignedSlot||e.parentNode||(KO(e)?e.host:null)||Pf(e)}function nB(e){return!Ra(e)||Bu(e).position==="fixed"?null:e.offsetParent}function PCe(e){var t=/firefox/i.test(ND()),n=/Trident/i.test(ND());if(n&&Ra(e)){var r=Bu(e);if(r.position==="fixed")return null}var i=W6(e);for(KO(i)&&(i=i.host);Ra(i)&&["html","body"].indexOf(Mc(i))<0;){var o=Bu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function K2(e){for(var t=sa(e),n=nB(e);n&&ICe(n)&&Bu(n).position==="static";)n=nB(n);return n&&(Mc(n)==="html"||Mc(n)==="body"&&Bu(n).position==="static")?t:n||PCe(e)||t}function YO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jy(e,t,n){return Hh(e,T4(t,n))}function NCe(e,t,n){var r=jy(e,t,n);return r>n?n:r}function HX(){return{top:0,right:0,bottom:0,left:0}}function UX(e){return Object.assign({},HX(),e)}function VX(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $Ce=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,UX(typeof t!="number"?t:VX(t,q2))};function LCe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Cc(n.placement),l=YO(a),c=[Ds,za].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=$Ce(i.padding,n),p=GO(o),g=l==="y"?As:Ds,y=l==="y"?Fa:za,b=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],v=s[l]-n.rects.reference[l],S=K2(o),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-v/2,E=d[g],k=C-p[u]-d[y],T=C/2-p[u]/2+w,_=jy(E,T,k),O=l;n.modifiersData[r]=(t={},t[O]=_,t.centerOffset=_-T,t)}}function FCe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||BX(t.elements.popper,i)&&(t.elements.arrow=i))}const zCe={name:"arrow",enabled:!0,phase:"main",fn:LCe,effect:FCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Og(e){return e.split("-")[1]}var BCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function HCe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_g(n*i)/i||0,y:_g(r*i)/i||0}}function rB(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,g=p===void 0?0:p,y=s.y,b=y===void 0?0:y,v=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=v.x,b=v.y;var S=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),w=Ds,E=As,k=window;if(c){var T=K2(n),_="clientHeight",O="clientWidth";if(T===sa(n)&&(T=Pf(n),Bu(T).position!=="static"&&a==="absolute"&&(_="scrollHeight",O="scrollWidth")),T=T,i===As||(i===Ds||i===za)&&o===kb){E=Fa;var R=d&&T===k&&k.visualViewport?k.visualViewport.height:T[_];b-=R-r.height,b*=l?1:-1}if(i===Ds||(i===As||i===Fa)&&o===kb){w=za;var P=d&&T===k&&k.visualViewport?k.visualViewport.width:T[O];g-=P-r.width,g*=l?1:-1}}var L=Object.assign({position:a},c&&BCe),M=u===!0?HCe({x:g,y:b},sa(n)):{x:g,y:b};if(g=M.x,b=M.y,l){var N;return Object.assign({},L,(N={},N[E]=C?"0":"",N[w]=S?"0":"",N.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",N))}return Object.assign({},L,(t={},t[E]=C?b+"px":"",t[w]=S?g+"px":"",t.transform="",t))}function UCe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Cc(t.placement),variation:Og(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rB(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rB(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const VCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UCe,data:{}};var i3={passive:!0};function WCe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=sa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,i3)}),a&&l.addEventListener("resize",n.update,i3),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,i3)}),a&&l.removeEventListener("resize",n.update,i3)}}const qCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WCe,data:{}};var KCe={left:"right",right:"left",bottom:"top",top:"bottom"};function gS(e){return e.replace(/left|right|bottom|top/g,function(t){return KCe[t]})}var GCe={start:"end",end:"start"};function iB(e){return e.replace(/start|end/g,function(t){return GCe[t]})}function JO(e){var t=sa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ZO(e){return Tg(Pf(e)).left+JO(e).scrollLeft}function YCe(e,t){var n=sa(e),r=Pf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=zX();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+ZO(e),y:l}}function JCe(e){var t,n=Pf(e),r=JO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Hh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Hh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ZO(e),l=-r.scrollTop;return Bu(i||n).direction==="rtl"&&(a+=Hh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function XO(e){var t=Bu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function WX(e){return["html","body","#document"].indexOf(Mc(e))>=0?e.ownerDocument.body:Ra(e)&&XO(e)?e:WX(W6(e))}function Ry(e,t){var n;t===void 0&&(t=[]);var r=WX(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=sa(r),s=i?[o].concat(o.visualViewport||[],XO(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Ry(W6(s)))}function $D(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ZCe(e,t){var n=Tg(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 oB(e,t,n){return t===LX?$D(YCe(e,n)):Zh(t)?ZCe(t,n):$D(JCe(Pf(e)))}function XCe(e){var t=Ry(W6(e)),n=["absolute","fixed"].indexOf(Bu(e).position)>=0,r=n&&Ra(e)?K2(e):e;return Zh(r)?t.filter(function(i){return Zh(i)&&BX(i,r)&&Mc(i)!=="body"}):[]}function QCe(e,t,n,r){var i=t==="clippingParents"?XCe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=oB(e,c,r);return l.top=Hh(u.top,l.top),l.right=T4(u.right,l.right),l.bottom=T4(u.bottom,l.bottom),l.left=Hh(u.left,l.left),l},oB(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 qX(e){var t=e.reference,n=e.element,r=e.placement,i=r?Cc(r):null,o=r?Og(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case As:l={x:s,y:t.y-n.height};break;case Fa:l={x:s,y:t.y+t.height};break;case za:l={x:t.x+t.width,y:a};break;case Ds:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?YO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Dg:l[c]=l[c]-(t[u]/2-n[u]/2);break;case kb:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Eb(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?vCe:a,c=n.rootBoundary,u=c===void 0?LX:c,d=n.elementContext,p=d===void 0?I1:d,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,v=b===void 0?0:b,S=UX(typeof v!="number"?v:VX(v,q2)),C=p===I1?xCe:I1,w=e.rects.popper,E=e.elements[y?C:p],k=QCe(Zh(E)?E:E.contextElement||Pf(e.elements.popper),l,u,s),T=Tg(e.elements.reference),_=qX({reference:T,element:w,placement:i}),O=$D(Object.assign({},w,_)),R=p===I1?O:T,P={top:k.top-R.top+S.top,bottom:R.bottom-k.bottom+S.bottom,left:k.left-R.left+S.left,right:R.right-k.right+S.right},L=e.modifiersData.offset;if(p===I1&&L){var M=L[i];Object.keys(P).forEach(function(N){var $=[za,Fa].indexOf(N)>=0?1:-1,B=[As,Fa].indexOf(N)>=0?"y":"x";P[N]+=M[B]*$})}return P}function e8e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?FX:l,u=Og(r),d=u?a?tB:tB.filter(function(y){return Og(y)===u}):q2,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var g=p.reduce(function(y,b){return y[b]=Eb(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[Cc(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function t8e(e){if(Cc(e)===qO)return[];var t=gS(e);return[iB(e),t,iB(t)]}function n8e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,v=t.options.placement,S=Cc(v),C=S===v,w=l||(C||!y?[gS(v)]:t8e(v)),E=[v].concat(w).reduce(function(H,K){return H.concat(Cc(K)===qO?e8e(t,{placement:K,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:b}):K)},[]),k=t.rects.reference,T=t.rects.popper,_=new Map,O=!0,R=E[0],P=0;P<E.length;P++){var L=E[P],M=Cc(L),N=Og(L)===Dg,$=[As,Fa].indexOf(M)>=0,B=$?"width":"height",F=Eb(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),V=$?N?za:Ds:N?Fa:As;k[B]>T[B]&&(V=gS(V));var W=gS(V),q=[];if(o&&q.push(F[M]<=0),a&&q.push(F[V]<=0,F[W]<=0),q.every(function(H){return H})){R=L,O=!1;break}_.set(L,q)}if(O)for(var Z=y?3:1,z=function(K){var Q=E.find(function(ie){var te=_.get(ie);if(te)return te.slice(0,K).every(function(ce){return ce})});if(Q)return R=Q,"break"},U=Z;U>0;U--){var Y=z(U);if(Y==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const r8e={name:"flip",enabled:!0,phase:"main",fn:n8e,requiresIfExists:["offset"],data:{_skip:!1}};function sB(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 aB(e){return[As,za,Fa,Ds].some(function(t){return e[t]>=0})}function i8e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Eb(t,{elementContext:"reference"}),a=Eb(t,{altBoundary:!0}),l=sB(s,r),c=sB(a,i,o),u=aB(l),d=aB(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const o8e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:i8e};function s8e(e,t,n){var r=Cc(e),i=[Ds,As].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Ds,za].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function a8e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=FX.reduce(function(u,d){return u[d]=s8e(d,t.rects,o),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const l8e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:a8e};function c8e(e){var t=e.state,n=e.name;t.modifiersData[n]=qX({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const u8e={name:"popperOffsets",enabled:!0,phase:"read",fn:c8e,data:{}};function d8e(e){return e==="x"?"y":"x"}function f8e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,y=n.tetherOffset,b=y===void 0?0:y,v=Eb(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=Cc(t.placement),C=Og(t.placement),w=!C,E=YO(S),k=d8e(E),T=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,R=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(T){if(o){var N,$=E==="y"?As:Ds,B=E==="y"?Fa:za,F=E==="y"?"height":"width",V=T[E],W=V+v[$],q=V-v[B],Z=g?-O[F]/2:0,z=C===Dg?_[F]:O[F],U=C===Dg?-O[F]:-_[F],Y=t.elements.arrow,H=g&&Y?GO(Y):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:HX(),Q=K[$],ie=K[B],te=jy(0,_[F],H[F]),ce=w?_[F]/2-Z-te-Q-P.mainAxis:z-te-Q-P.mainAxis,ee=w?-_[F]/2+Z+te+ie+P.mainAxis:U+te+ie+P.mainAxis,J=t.elements.arrow&&K2(t.elements.arrow),X=J?E==="y"?J.clientTop||0:J.clientLeft||0:0,oe=(N=L?.[E])!=null?N:0,le=V+ce-oe-X,fe=V+ee-oe,ye=jy(g?T4(W,le):W,V,g?Hh(q,fe):q);T[E]=ye,M[E]=ye-V}if(a){var Me,ue=E==="x"?As:Ds,we=E==="x"?Fa:za,Oe=T[k],He=k==="y"?"height":"width",ze=Oe+v[ue],At=Oe-v[we],gt=[As,Ds].indexOf(S)!==-1,$e=(Me=L?.[k])!=null?Me:0,je=gt?ze:Oe-_[He]-O[He]-$e+P.altAxis,Ve=gt?Oe+_[He]+O[He]-$e-P.altAxis:At,Ke=g&>?NCe(je,Oe,Ve):jy(g?je:ze,Oe,g?Ve:At);T[k]=Ke,M[k]=Ke-Oe}t.modifiersData[r]=M}}const h8e={name:"preventOverflow",enabled:!0,phase:"main",fn:f8e,requiresIfExists:["offset"]};function p8e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m8e(e){return e===sa(e)||!Ra(e)?JO(e):p8e(e)}function g8e(e){var t=e.getBoundingClientRect(),n=_g(t.width)/e.offsetWidth||1,r=_g(t.height)/e.offsetHeight||1;return n!==1||r!==1}function y8e(e,t,n){n===void 0&&(n=!1);var r=Ra(t),i=Ra(t)&&g8e(t),o=Pf(t),s=Tg(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Mc(t)!=="body"||XO(o))&&(a=m8e(t)),Ra(t)?(l=Tg(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ZO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function b8e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function v8e(e){var t=b8e(e);return OCe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function x8e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S8e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var lB={placement:"bottom",modifiers:[],strategy:"absolute"};function cB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function w8e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?lB:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},lB,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;b(),u.options=Object.assign({},o,u.options,C),u.scrollParents={reference:Zh(a)?Ry(a):a.contextElement?Ry(a.contextElement):[],popper:Ry(l)};var w=v8e(S8e([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(E){return E.enabled}),y(),g.update()},forceUpdate:function(){if(!p){var S=u.elements,C=S.reference,w=S.popper;if(cB(C,w)){u.rects={reference:y8e(C,K2(w),u.options.strategy==="fixed"),popper:GO(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var k=u.orderedModifiers[E],T=k.fn,_=k.options,O=_===void 0?{}:_,R=k.name;typeof T=="function"&&(u=T({state:u,options:O,name:R,instance:g})||u)}}}},update:x8e(function(){return new Promise(function(v){g.forceUpdate(),v(u)})}),destroy:function(){b(),p=!0}};if(!cB(a,l))return g;g.setOptions(c).then(function(v){!p&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){u.orderedModifiers.forEach(function(v){var S=v.name,C=v.options,w=C===void 0?{}:C,E=v.effect;if(typeof E=="function"){var k=E({state:u,name:S,instance:g,options:w}),T=function(){};d.push(k||T)}})}function b(){d.forEach(function(v){return v()}),d=[]}return g}}var C8e=[qCe,u8e,VCe,RCe,l8e,r8e,h8e,zCe,o8e],k8e=w8e({defaultModifiers:C8e});function E8e(e){return typeof e=="function"?e():e}const KX=A.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=A.useState(null),l=Br(A.isValidElement(r)?Rf(r):null,n);if(Bo(()=>{o||a(E8e(i)||document.body)},[i,o]),Bo(()=>{if(s&&!o)return gD(n,s),()=>{gD(n,null)}},[n,s,o]),o){if(A.isValidElement(r)){const c={ref:l};return A.cloneElement(r,c)}return r}return s&&qd.createPortal(r,s)});function A8e(e){return tt("MuiPopper",e)}st("MuiPopper",["root"]);function D8e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function LD(e){return typeof e=="function"?e():e}function _8e(e){return e.nodeType!==void 0}const T8e=e=>{const{classes:t}=e;return nt({root:["root"]},A8e,t)},O8e={},M8e=A.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:g={},TransitionProps:y,ownerState:b,...v}=t,S=A.useRef(null),C=Br(S,n),w=A.useRef(null),E=Br(w,d),k=A.useRef(E);Bo(()=>{k.current=E},[E]),A.useImperativeHandle(d,()=>w.current,[]);const T=D8e(c,o),[_,O]=A.useState(T),[R,P]=A.useState(LD(r));A.useEffect(()=>{w.current&&w.current.forceUpdate()}),A.useEffect(()=>{r&&P(LD(r))},[r]),Bo(()=>{if(!R||!l)return;const B=W=>{O(W.placement)};let F=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{B(W)}}];a!=null&&(F=F.concat(a)),u&&u.modifiers!=null&&(F=F.concat(u.modifiers));const V=k8e(R,S.current,{placement:T,...u,modifiers:F});return k.current(V),()=>{V.destroy(),k.current(null)}},[R,s,a,l,u,T]);const L={placement:_};y!==null&&(L.TransitionProps=y);const M=T8e(t),N=g.root??"div",$=Mr({elementType:N,externalSlotProps:p.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:M.root});return h.jsx(N,{...$,children:typeof i=="function"?i(L):i})}),j8e=A.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=O8e,popperRef:g,style:y,transition:b=!1,slotProps:v={},slots:S={},...C}=t,[w,E]=A.useState(!0),k=()=>{E(!1)},T=()=>{E(!0)};if(!l&&!u&&(!b||w))return null;let _;if(o)_=o;else if(r){const P=LD(r);_=P&&_8e(P)?Ei(P).body:Ei(null).body}const O=!u&&l&&(!b||w)?"none":void 0,R=b?{in:u,onEnter:k,onExited:T}:void 0;return h.jsx(KX,{disablePortal:a,container:_,children:h.jsx(M8e,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:b?!w:u,placement:d,popperOptions:p,popperRef:g,slotProps:v,slots:S,...C,style:{position:"fixed",top:0,left:0,display:O,...y},TransitionProps:R,children:i})})}),R8e=ge(j8e,{name:"MuiPopper",slot:"Root"})({}),G2=A.forwardRef(function(t,n){const r=Lc(),i=ct({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,slots:C,slotProps:w,...E}=i,k=C?.root??a?.Root,T={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,...E};return h.jsx(R8e,{as:s,direction:r?"rtl":"ltr",slots:{root:k},slotProps:w??l,...T,ref:n})});function I8e(e){return tt("MuiTooltip",e)}const di=st("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function P8e(e){return Math.round(e*1e5)/1e5}const N8e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ve(o.split("-")[0])}`],arrow:["arrow"]};return nt(s,I8e,t)},$8e=ge(G2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${di.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${di.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),L8e=ge("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ve(n.placement.split("-")[0])}`]]}})(Ye(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${di.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${di.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${di.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${di.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${P8e(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),F8e=ge("span",{name:"MuiTooltip",slot:"Arrow"})(Ye(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let o3=!1;const uB=new I6;let P1={x:0,y:0};function s3(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Lt=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:v=700,followCursor:S=!1,id:C,leaveDelay:w=0,leaveTouchDelay:E=1500,onClose:k,onOpen:T,open:_,placement:O="bottom",PopperComponent:R,PopperProps:P={},slotProps:L={},slots:M={},title:N,TransitionComponent:$,TransitionProps:B,...F}=r,V=A.isValidElement(o)?o:h.jsx("span",{children:o}),W=Ki(),q=Lc(),[Z,z]=A.useState(),[U,Y]=A.useState(null),H=A.useRef(!1),K=p||S,Q=Kd(),ie=Kd(),te=Kd(),ce=Kd(),[ee,J]=ml({controlled:_,default:!1,name:"Tooltip",state:"open"});let X=ee;const oe=Ju(C),le=A.useRef(),fe=hi(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),ce.clear()});A.useEffect(()=>fe,[fe]);const ye=_t=>{uB.clear(),o3=!0,J(!0),T&&!X&&T(_t)},Me=hi(_t=>{uB.start(800+w,()=>{o3=!1}),J(!1),k&&X&&k(_t),Q.start(W.transitions.duration.shortest,()=>{H.current=!1})}),ue=_t=>{H.current&&_t.type!=="touchstart"||(Z&&Z.removeAttribute("title"),ie.clear(),te.clear(),y||o3&&b?ie.start(o3?b:y,()=>{ye(_t)}):ye(_t))},we=_t=>{ie.clear(),te.start(w,()=>{Me(_t)})},[,Oe]=A.useState(!1),He=_t=>{mf(_t.target)||(Oe(!1),we(_t))},ze=_t=>{Z||z(_t.currentTarget),mf(_t.target)&&(Oe(!0),ue(_t))},At=_t=>{H.current=!0;const yn=V.props;yn.onTouchStart&&yn.onTouchStart(_t)},gt=_t=>{At(_t),te.clear(),Q.clear(),fe(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=le.current,ue(_t)})},$e=_t=>{V.props.onTouchEnd&&V.props.onTouchEnd(_t),fe(),te.start(E,()=>{Me(_t)})};A.useEffect(()=>{if(!X)return;function _t(yn){yn.key==="Escape"&&Me(yn)}return document.addEventListener("keydown",_t),()=>{document.removeEventListener("keydown",_t)}},[Me,X]);const je=Br(Rf(V),z,n);!N&&N!==0&&(X=!1);const Ve=A.useRef(),Ke=_t=>{const yn=V.props;yn.onMouseMove&&yn.onMouseMove(_t),P1={x:_t.clientX,y:_t.clientY},Ve.current&&Ve.current.update()},at={},ut=typeof N=="string";c?(at.title=!X&&ut&&!d?N:null,at["aria-describedby"]=X?oe:null):(at["aria-label"]=ut?N:null,at["aria-labelledby"]=X&&!ut?oe:null);const Qe={...at,...F,...V.props,className:_e(F.className,V.props.className),onTouchStart:At,ref:je,...S?{onMouseMove:Ke}:{}},Bt={};g||(Qe.onTouchStart=gt,Qe.onTouchEnd=$e),d||(Qe.onMouseOver=s3(ue,Qe.onMouseOver),Qe.onMouseLeave=s3(we,Qe.onMouseLeave),K||(Bt.onMouseOver=ue,Bt.onMouseLeave=we)),u||(Qe.onFocus=s3(ze,Qe.onFocus),Qe.onBlur=s3(He,Qe.onBlur),K||(Bt.onFocus=ze,Bt.onBlur=He));const Ht={...r,isRtl:q,arrow:i,disableInteractive:K,placement:O,PopperComponentProp:R,touch:H.current},Pt=typeof L.popper=="function"?L.popper(Ht):L.popper,Dn=A.useMemo(()=>{let _t=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return P.popperOptions?.modifiers&&(_t=_t.concat(P.popperOptions.modifiers)),Pt?.popperOptions?.modifiers&&(_t=_t.concat(Pt.popperOptions.modifiers)),{...P.popperOptions,...Pt?.popperOptions,modifiers:_t}},[U,P.popperOptions,Pt?.popperOptions]),tn=N8e(Ht),pt=typeof L.transition=="function"?L.transition(Ht):L.transition,Yt={slots:{popper:a.Popper,transition:a.Transition??$,tooltip:a.Tooltip,arrow:a.Arrow,...M},slotProps:{arrow:L.arrow??l.arrow,popper:{...P,...Pt??l.popper},tooltip:L.tooltip??l.tooltip,transition:{...B,...pt??l.transition}}},[an,wn]=ft("popper",{elementType:$8e,externalForwardedProps:Yt,ownerState:Ht,className:_e(tn.popper,P?.className)}),[Ge,We]=ft("transition",{elementType:vb,externalForwardedProps:Yt,ownerState:Ht}),[Je,St]=ft("tooltip",{elementType:L8e,className:tn.tooltip,externalForwardedProps:Yt,ownerState:Ht}),[In,dn]=ft("arrow",{elementType:F8e,className:tn.arrow,externalForwardedProps:Yt,ownerState:Ht,ref:Y});return h.jsxs(A.Fragment,{children:[A.cloneElement(V,Qe),h.jsx(an,{as:R??G2,placement:O,anchorEl:S?{getBoundingClientRect:()=>({top:P1.y,left:P1.x,right:P1.x,bottom:P1.y,width:0,height:0})}:Z,popperRef:Ve,open:Z?X:!1,id:oe,transition:!0,...Bt,...wn,popperOptions:Dn,children:({TransitionProps:_t})=>h.jsx(Ge,{timeout:W.transitions.duration.shorter,..._t,...We,children:h.jsxs(Je,{...St,children:[N,i?h.jsx(In,{...dn}):null]})})})]})}),Ts=Ee(h.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),ef=Ee(h.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),aa=Ee(h.jsx("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"})),q6=Ee(h.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),QO=Ee(h.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),K6=Ee(h.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),eM=Ee(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),yS=Ee(h.jsx("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"})),GX=Ee(h.jsx("path",{d:"M19 13H5v-2h14z"})),G6=Ee(h.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Hu=Ee([h.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),h.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]),YX=Ee(h.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"})),z8e=Ee(h.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function B8e(e){return tt("MuiAvatar",e)}st("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const H8e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return nt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},B8e,t)},U8e=ge("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),V8e=ge("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),W8e=ge(z8e,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function q8e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=A.useState(!1);return A.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const wl=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:g,variant:y="circular",...b}=r;let v=null;const S={...r,component:a,variant:y},C=q8e({...u,...typeof c.img=="function"?c.img(S):c.img,src:p,srcSet:g}),w=p||g,E=w&&C!=="error";S.colorDefault=!E,delete S.ownerState;const k=H8e(S),[T,_]=ft("root",{ref:n,className:_e(k.root,s),elementType:U8e,externalForwardedProps:{slots:l,slotProps:c,component:a,...b},ownerState:S}),[O,R]=ft("img",{className:k.img,elementType:V8e,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:i,src:p,srcSet:g,sizes:d},ownerState:S}),[P,L]=ft("fallback",{className:k.fallback,elementType:W8e,externalForwardedProps:{slots:l,slotProps:c},shouldForwardComponentProp:!0,ownerState:S});return E?v=h.jsx(O,{...R}):o||o===0?v=o:w&&i?v=i[0]:v=h.jsx(P,{...L}),h.jsx(T,{..._,children:v})});function JX(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function K8e(e){const t=Ei(e);return t.body===e?oa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Iy(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dB(e){return parseFloat(oa(e).getComputedStyle(e).paddingRight)||0}function G8e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function fB(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=!o.includes(s),l=!G8e(s);a&&l&&Iy(s,i)})}function w9(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Y8e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(K8e(r)){const s=JX(oa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dB(r)+s}px`;const a=Ei(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${dB(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ei(r).body;else{const s=r.parentElement,a=oa(r);o=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function J8e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Z8e{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Iy(t.modalRef,!1);const i=J8e(n);fB(n,t.mount,t.modalRef,i,!0);const o=w9(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=w9(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=Y8e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=w9(this.containers,s=>s.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Iy(t.modalRef,n),fB(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Iy(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Lm(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const X8e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Q8e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function eke(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function tke(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||eke(e))}function nke(e){const t=[],n=[];return Array.from(e.querySelectorAll(X8e)).forEach((r,i)=>{const o=Q8e(r);o===-1||!tke(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function rke(){return!0}function ike(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=nke,isEnabled:s=rke,open:a}=e,l=A.useRef(!1),c=A.useRef(null),u=A.useRef(null),d=A.useRef(null),p=A.useRef(null),g=A.useRef(!1),y=A.useRef(null),b=Br(Rf(t),y),v=A.useRef(null);A.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),A.useEffect(()=>{if(!a||!y.current)return;const w=Ei(y.current),E=Lm(w);return y.current.contains(E)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),A.useEffect(()=>{if(!a||!y.current)return;const w=Ei(y.current),E=_=>{if(v.current=_,r||!s()||_.key!=="Tab")return;Lm(w)===y.current&&_.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const _=y.current;if(_===null)return;const O=Lm(w);if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(_.contains(O)||r&&O!==c.current&&O!==u.current)return;if(O!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let R=[];if((O===c.current||O===u.current)&&(R=o(y.current)),R.length>0){const P=!!(v.current?.shiftKey&&v.current?.key==="Tab"),L=R[0],M=R[R.length-1];typeof L!="string"&&typeof M!="string"&&(P?M.focus():L.focus())}else _.focus()};w.addEventListener("focusin",k),w.addEventListener("keydown",E,!0);const T=setInterval(()=>{const _=Lm(w);_&&_.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),w.removeEventListener("focusin",k),w.removeEventListener("keydown",E,!0)}},[n,r,i,s,a,o]);const S=w=>{d.current===null&&(d.current=w.relatedTarget),g.current=!0,p.current=w.target;const E=t.props.onFocus;E&&E(w)},C=w=>{d.current===null&&(d.current=w.relatedTarget),g.current=!0};return h.jsxs(A.Fragment,{children:[h.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:b,onFocus:S}),h.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}const oke={entering:{opacity:1},entered:{opacity:1}},O4=A.forwardRef(function(t,n){const r=Ki(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:y,onExiting:b,style:v,timeout:S=i,TransitionComponent:C=Ja,...w}=t,E=A.useRef(null),k=Br(E,Rf(a),n),T=$=>B=>{if($){const F=E.current;B===void 0?$(F):$(F,B)}},_=T(p),O=T(($,B)=>{IO($);const F=gf({style:v,timeout:S,easing:l},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",F),$.style.transition=r.transitions.create("opacity",F),u&&u($,B)}),R=T(d),P=T(b),L=T($=>{const B=gf({style:v,timeout:S,easing:l},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",B),$.style.transition=r.transitions.create("opacity",B),g&&g($)}),M=T(y),N=$=>{o&&o(E.current,$)};return h.jsx(C,{appear:s,in:c,nodeRef:E,onEnter:O,onEntered:R,onEntering:_,onExit:L,onExited:M,onExiting:P,addEndListener:N,timeout:S,...w,children:($,{ownerState:B,...F})=>A.cloneElement(a,{style:{opacity:0,visibility:$==="exited"&&!c?"hidden":void 0,...oke[$],...v,...a.props.style},ref:k,...F})})});function ske(e){return tt("MuiBackdrop",e)}st("MuiBackdrop",["root","invisible"]);const ake=e=>{const{classes:t,invisible:n}=e;return nt({root:["root",n&&"invisible"]},ske,t)},lke=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),tM=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:g,transitionDuration:y,...b}=r,v={...r,component:s,invisible:a},S=ake(v),C={transition:g,root:c.Root,...p},w={...u,...d},E={component:s,slots:C,slotProps:w},[k,T]=ft("root",{elementType:lke,externalForwardedProps:E,className:_e(S.root,o),ownerState:v}),[_,O]=ft("transition",{elementType:O4,externalForwardedProps:E,ownerState:v});return h.jsx(_,{in:l,timeout:y,...b,...O,children:h.jsx(k,{"aria-hidden":!0,...T,ref:n,children:i})})});function cke(e){return typeof e=="function"?e():e}function uke(e){return e?e.props.hasOwnProperty("in"):!1}const hB=()=>{},a3=new Z8e;function dke(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=e,d=A.useRef({}),p=A.useRef(null),g=A.useRef(null),y=Br(g,u),[b,v]=A.useState(!c),S=uke(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Ei(p.current),E=()=>(d.current.modalRef=g.current,d.current.mount=p.current,d.current),k=()=>{a3.mount(E(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},T=hi(()=>{const B=cke(t)||w().body;a3.add(E(),B),g.current&&k()}),_=()=>a3.isTopModal(E()),O=hi(B=>{p.current=B,B&&(c&&_()?k():g.current&&Iy(g.current,C))}),R=A.useCallback(()=>{a3.remove(E(),C)},[C]);A.useEffect(()=>()=>{R()},[R]),A.useEffect(()=>{c?T():(!S||!i)&&R()},[c,R,S,i,T]);const P=B=>F=>{B.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!_())&&(n||(F.stopPropagation(),l&&l(F,"escapeKeyDown")))},L=B=>F=>{B.onClick?.(F),F.target===F.currentTarget&&l&&l(F,"backdropClick")};return{getRootProps:(B={})=>{const F=ro(e);delete F.onTransitionEnter,delete F.onTransitionExited;const V={...F,...B};return{role:"presentation",...V,onKeyDown:P(V),ref:y}},getBackdropProps:(B={})=>{const F=B;return{"aria-hidden":!0,...F,onClick:L(F),open:c}},getTransitionProps:()=>{const B=()=>{v(!1),o&&o()},F=()=>{v(!0),s&&s(),i&&R()};return{onEnter:mD(B,a?.props.onEnter??hB),onExited:mD(F,a?.props.onExited??hB)}},rootRef:y,portalRef:O,isTopModal:_,exited:b,hasTransition:S}}function fke(e){return tt("MuiModal",e)}st("MuiModal",["root","hidden","backdrop"]);const hke=e=>{const{open:t,exited:n,classes:r}=e;return nt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fke,r)},pke=ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ye(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),mke=ge(tM,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),nM=A.forwardRef(function(t,n){const r=ct({name:"MuiModal",props:t}),{BackdropComponent:i=mke,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:v=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:E=!1,keepMounted:k=!1,onClose:T,onTransitionEnter:_,onTransitionExited:O,open:R,slotProps:P={},slots:L={},theme:M,...N}=r,$={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:v,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:E,keepMounted:k},{getRootProps:B,getBackdropProps:F,getTransitionProps:V,portalRef:W,isTopModal:q,exited:Z,hasTransition:z}=dke({...$,rootRef:n}),U={...$,exited:Z},Y=hke(U),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),z){const{onEnter:ee,onExited:J}=V();H.onEnter=ee,H.onExited=J}const K={slots:{root:p.Root,backdrop:p.Backdrop,...L},slotProps:{...g,...P}},[Q,ie]=ft("root",{ref:n,elementType:pke,externalForwardedProps:{...K,...N,component:d},getSlotProps:B,ownerState:U,className:_e(a,Y?.root,!U.open&&U.exited&&Y?.hidden)}),[te,ce]=ft("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ee=>F({...ee,onClick:J=>{ee?.onClick&&ee.onClick(J)}}),className:_e(o?.className,Y?.backdrop),ownerState:U});return!k&&!R&&(!z||Z)?null:h.jsx(KX,{ref:W,container:u,disablePortal:S,children:h.jsxs(Q,{...ie,children:[!E&&i?h.jsx(te,{...ce}):null,h.jsx(ike,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:q,open:R,children:A.cloneElement(c,H)})]})})});function gke(e){return tt("MuiDialog",e)}const C9=st("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ZX=A.createContext({}),yke=ge(tM,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),bke=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ve(n)}`],paper:["paper",`paperScroll${ve(n)}`,`paperWidth${ve(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return nt(s,gke,t)},vke=ge(nM,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),xke=ge("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ve(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Ske=ge(zr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ve(n.scroll)}`],t[`paperWidth${ve(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ye(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${C9.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${C9.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${C9.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Po=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialog"}),i=Ki(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:v="sm",onClick:S,onClose:C,open:w,PaperComponent:E=zr,PaperProps:k={},scroll:T="paper",slots:_={},slotProps:O={},TransitionComponent:R=O4,transitionDuration:P=o,TransitionProps:L,...M}=r,N={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:v,scroll:T},$=bke(N),B=A.useRef(),F=oe=>{B.current=oe.target===oe.currentTarget},V=oe=>{S&&S(oe),B.current&&(B.current=null,C&&C(oe,"backdropClick"))},W=Ju(a),q=A.useMemo(()=>({titleId:W}),[W]),Z={transition:R,..._},z={transition:L,paper:k,backdrop:u,...O},U={slots:Z,slotProps:z},[Y,H]=ft("root",{elementType:vke,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:_e($.root,p),ref:n}),[K,Q]=ft("backdrop",{elementType:yke,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:$.backdrop}),[ie,te]=ft("paper",{elementType:Ske,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:_e($.paper,k.className)}),[ce,ee]=ft("container",{elementType:xke,externalForwardedProps:U,ownerState:N,className:$.container}),[J,X]=ft("transition",{elementType:O4,externalForwardedProps:U,ownerState:N,additionalProps:{appear:!0,in:w,timeout:P,role:"presentation"}});return h.jsx(Y,{closeAfterTransition:!0,slots:{backdrop:K},slotProps:{backdrop:{transitionDuration:P,as:c,...Q}},disableEscapeKeyDown:g,onClose:C,open:w,onClick:V,...H,...M,children:h.jsx(J,{...X,children:h.jsx(ce,{onMouseDown:F,...ee,children:h.jsx(ie,{as:E,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":W,"aria-modal":l,...te,children:h.jsx(ZX.Provider,{value:q,children:d})})})})})});function wke(e){return tt("MuiDialogActions",e)}st("MuiDialogActions",["root","spacing"]);const Cke=e=>{const{classes:t,disableSpacing:n}=e;return nt({root:["root",!n&&"spacing"]},wke,t)},kke=ge("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),es=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=r,a={...r,disableSpacing:o},l=Cke(a);return h.jsx(kke,{className:_e(l.root,i),ownerState:a,ref:n,...s})});function Eke(e){return tt("MuiDialogContent",e)}st("MuiDialogContent",["root","dividers"]);function Ake(e){return tt("MuiDialogTitle",e)}const Dke=st("MuiDialogTitle",["root"]),_ke=e=>{const{classes:t,dividers:n}=e;return nt({root:["root",n&&"dividers"]},Eke,t)},Tke=ge("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ye(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Dke.root} + &`]:{paddingTop:0}}}]}))),No=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=r,a={...r,dividers:o},l=_ke(a);return h.jsx(Tke,{className:_e(l.root,i),ownerState:a,ref:n,...s})}),Oke=e=>{const{classes:t}=e;return nt({root:["root"]},Ake,t)},Mke=ge(re,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),$o=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialogTitle"}),{className:i,id:o,...s}=r,a=r,l=Oke(a),{titleId:c=o}=A.useContext(ZX);return h.jsx(Mke,{component:"h2",className:_e(l.root,i),ownerState:a,ref:n,variant:"h6",id:o??c,...s})});function jke(e){return tt("MuiDivider",e)}const pB=st("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rke=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return nt({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},jke,r)},Ike=ge("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ye(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Pke=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ye(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Dr=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,orientation:a="horizontal",component:l=o||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth",...y}=r,b={...r,absolute:i,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:p,variant:g},v=Rke(b);return h.jsx(Ike,{as:l,className:_e(v.root,s),role:d,ref:n,ownerState:b,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...y,children:o?h.jsx(Pke,{className:v.wrapper,ownerState:b,children:o}):null})});Dr&&(Dr.muiSkipListHighlight=!0);var Nke=Object.defineProperty,M4=Object.getOwnPropertySymbols,XX=Object.prototype.hasOwnProperty,QX=Object.prototype.propertyIsEnumerable,mB=(e,t,n)=>t in e?Nke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FD=(e,t)=>{for(var n in t||(t={}))XX.call(t,n)&&mB(e,n,t[n]);if(M4)for(var n of M4(t))QX.call(t,n)&&mB(e,n,t[n]);return e},zD=(e,t)=>{var n={};for(var r in e)XX.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&M4)for(var r of M4(e))t.indexOf(r)<0&&QX.call(e,r)&&(n[r]=e[r]);return n};var Xh;(e=>{const t=class Fn{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<Fn.MIN_VERSION||l>Fn.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let p=[];for(let y=0;y<this.size;y++)p.push(!1);for(let y=0;y<this.size;y++)this.modules.push(p.slice()),this.isFunction.push(p.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),d==-1){let y=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<y&&(d=b,y=v),this.applyMask(b)}}i(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return Fn.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return Fn.encodeSegments([u],c)}static encodeSegments(l,c,u=1,d=40,p=-1,g=!0){if(!(Fn.MIN_VERSION<=u&&u<=d&&d<=Fn.MAX_VERSION)||p<-1||p>7)throw new RangeError("Invalid value");let y,b;for(y=u;;y++){const w=Fn.getNumDataCodewords(y,c)*8,E=s.getTotalBits(l,y);if(E<=w){b=E;break}if(y>=d)throw new RangeError("Data too long")}for(const w of[Fn.Ecc.MEDIUM,Fn.Ecc.QUARTILE,Fn.Ecc.HIGH])g&&b<=Fn.getNumDataCodewords(y,w)*8&&(c=w);let v=[];for(const w of l){n(w.mode.modeBits,4,v),n(w.numChars,w.mode.numCharCountBits(y),v);for(const E of w.getData())v.push(E)}i(v.length==b);const S=Fn.getNumDataCodewords(y,c)*8;i(v.length<=S),n(0,Math.min(4,S-v.length),v),n(0,(8-v.length%8)%8,v),i(v.length%8==0);for(let w=236;v.length<S;w^=253)n(w,8,v);let C=[];for(;C.length*8<v.length;)C.push(0);return v.forEach((w,E)=>C[E>>>3]|=w<<7-(E&7)),new Fn(y,c,C,p)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(l[u],l[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let p=0;p<10;p++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;i(d>>>15==0);for(let p=0;p<=5;p++)this.setFunctionModule(8,p,r(d,p));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let p=9;p<15;p++)this.setFunctionModule(14-p,8,r(d,p));for(let p=0;p<8;p++)this.setFunctionModule(this.size-1-p,8,r(d,p));for(let p=8;p<15;p++)this.setFunctionModule(8,this.size-15+p,r(d,p));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;i(c>>>18==0);for(let u=0;u<18;u++){const d=r(c,u),p=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(p,g,d),this.setFunctionModule(g,p,d)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const p=Math.max(Math.abs(d),Math.abs(u)),g=l+d,y=c+u;0<=g&&g<this.size&&0<=y&&y<this.size&&this.setFunctionModule(g,y,p!=2&&p!=4)}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1)}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=Fn.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=Fn.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],p=Fn.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(Fn.getNumRawDataModules(c)/8),y=d-g%d,b=Math.floor(g/d);let v=[];const S=Fn.reedSolomonComputeDivisor(p);for(let w=0,E=0;w<d;w++){let k=l.slice(E,E+b-p+(w<y?0:1));E+=k.length;const T=Fn.reedSolomonComputeRemainder(k,S);w<y&&k.push(0),v.push(k.concat(T))}let C=[];for(let w=0;w<v[0].length;w++)v.forEach((E,k)=>{(w!=b-p||k>=y)&&C.push(E[w])});return i(C.length==g),C}drawCodewords(l){if(l.length!=Math.floor(Fn.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let p=0;p<2;p++){const g=u-p,b=(u+1&2)==0?this.size-1-d:d;!this.isFunction[b][g]&&c<l.length*8&&(this.modules[b][g]=r(l[c>>>3],7-(c&7)),c++)}}i(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(l){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let l=0;for(let p=0;p<this.size;p++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[p][v]==g?(y++,y==5?l+=Fn.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*Fn.PENALTY_N3),g=this.modules[p][v],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*Fn.PENALTY_N3}for(let p=0;p<this.size;p++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][p]==g?(y++,y==5?l+=Fn.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*Fn.PENALTY_N3),g=this.modules[v][p],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*Fn.PENALTY_N3}for(let p=0;p<this.size-1;p++)for(let g=0;g<this.size-1;g++){const y=this.modules[p][g];y==this.modules[p][g+1]&&y==this.modules[p+1][g]&&y==this.modules[p+1][g+1]&&(l+=Fn.PENALTY_N2)}let c=0;for(const p of this.modules)c=p.reduce((g,y)=>g+(y?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=d&&d<=9),l+=d*Fn.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.length<l;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(l){if(l<Fn.MIN_VERSION||l>Fn.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return i(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(Fn.getNumRawDataModules(l)/8)-Fn.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*Fn.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<l-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<l;d++){for(let p=0;p<c.length;p++)c[p]=Fn.reedSolomonMultiply(c[p],u),p+1<c.length&&(c[p]^=c[p+1]);u=Fn.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const p=d^u.shift();u.push(0),c.forEach((g,y)=>u[y]^=Fn.reedSolomonMultiply(g,p))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return i(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];i(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(a,l,c){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)c.push(a>>>u&1)}function r(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class li{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)n(u,8,c);return new li(li.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!li.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const d=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+d),10),d*3+1,c),u+=d}return new li(li.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!li.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let d=li.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;d+=li.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(d,11,c)}return u<l.length&&n(li.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new li(li.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:li.isNumeric(l)?[li.makeNumeric(l)]:li.isAlphanumeric(l)?[li.makeAlphanumeric(l)]:[li.makeBytes(li.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,c);else if(l<16384)n(2,2,c),n(l,14,c);else if(l<1e6)n(6,3,c),n(l,21,c);else throw new RangeError("ECI assignment value out of range");return new li(li.Mode.ECI,0,c)}static isNumeric(l){return li.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return li.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const d of l){const p=d.mode.numCharCountBits(c);if(d.numChars>=1<<p)return 1/0;u+=4+p+d.bitData.length}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substring(u+1,u+3),16)),u+=2);return c}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=o;e.QrSegment=o})(Xh||(Xh={}));(e=>{(t=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Xh||(Xh={}));(e=>{(t=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Xh||(Xh={}));var Fm=Xh;var $ke={L:Fm.QrCode.Ecc.LOW,M:Fm.QrCode.Ecc.MEDIUM,Q:Fm.QrCode.Ecc.QUARTILE,H:Fm.QrCode.Ecc.HIGH},eQ=128,tQ="L",nQ="#FFFFFF",rQ="#000000",iQ=!1,oQ=1,Lke=4,Fke=0,zke=.1;function sQ(e,t=0){const n=[];return e.forEach(function(r,i){let o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push(`M${o+t} ${i+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${o+t},${i+t} h${a+1-o}v1H${o+t}z`);return}s&&o===null&&(o=a)})}),n.join("")}function aQ(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((i,o)=>o<t.x||o>=t.x+t.w?i:!1))}function Bke(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*zke),s=i/t,a=(r.width||o)*s,l=(r.height||o)*s,c=r.x==null?e.length/2-a/2:r.x*s,u=r.y==null?e.length/2-l/2:r.y*s,d=r.opacity==null?1:r.opacity;let p=null;if(r.excavate){let y=Math.floor(c),b=Math.floor(u),v=Math.ceil(a+c-y),S=Math.ceil(l+u-b);p={x:y,y:b,w:v,h:S}}const g=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:p,opacity:d,crossOrigin:g}}function Hke(e,t){return t!=null?Math.max(Math.floor(t),0):e?Lke:Fke}function lQ({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=on.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((b,v)=>(b.push(...Fm.QrSegment.makeSegments(v)),b),[]);return Fm.QrCode.encodeSegments(y,$ke[t],n,void 0,void 0,a)},[e,t,n,a]);const{cells:c,margin:u,numCells:d,calculatedImageSettings:p}=on.useMemo(()=>{let g=l.getModules();const y=Hke(r,i),b=g.length+y*2,v=Bke(g,s,y,o);return{cells:g,margin:y,numCells:b,calculatedImageSettings:v}},[l,s,o,r,i]);return{qrcode:l,margin:u,cells:c,numCells:d,calculatedImageSettings:p}}var Uke=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Vke=on.forwardRef(function(t,n){const r=t,{value:i,size:o=eQ,level:s=tQ,bgColor:a=nQ,fgColor:l=rQ,includeMargin:c=iQ,minVersion:u=oQ,boostLevel:d,marginSize:p,imageSettings:g}=r,b=zD(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,S=zD(b,["style"]),C=g?.src,w=on.useRef(null),E=on.useRef(null),k=on.useCallback($=>{w.current=$,typeof n=="function"?n($):n&&(n.current=$)},[n]),[T,_]=on.useState(!1),{margin:O,cells:R,numCells:P,calculatedImageSettings:L}=lQ({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:p,imageSettings:g,size:o});on.useEffect(()=>{if(w.current!=null){const $=w.current,B=$.getContext("2d");if(!B)return;let F=R;const V=E.current,W=L!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;W&&L.excavation!=null&&(F=aQ(R,L.excavation));const q=window.devicePixelRatio||1;$.height=$.width=o*q;const Z=o/P*q;B.scale(Z,Z),B.fillStyle=a,B.fillRect(0,0,P,P),B.fillStyle=l,Uke?B.fill(new Path2D(sQ(F,O))):R.forEach(function(z,U){z.forEach(function(Y,H){Y&&B.fillRect(H+O,U+O,1,1)})}),L&&(B.globalAlpha=L.opacity),W&&B.drawImage(V,L.x+O,L.y+O,L.w,L.h)}}),on.useEffect(()=>{_(!1)},[C]);const M=FD({height:o,width:o},v);let N=null;return C!=null&&(N=on.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{_(!0)},ref:E,crossOrigin:L?.crossOrigin})),on.createElement(on.Fragment,null,on.createElement("canvas",FD({style:M,height:o,width:o,ref:k,role:"img"},S)),N)});Vke.displayName="QRCodeCanvas";var rM=on.forwardRef(function(t,n){const r=t,{value:i,size:o=eQ,level:s=tQ,bgColor:a=nQ,fgColor:l=rQ,includeMargin:c=iQ,minVersion:u=oQ,boostLevel:d,title:p,marginSize:g,imageSettings:y}=r,b=zD(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:S,numCells:C,calculatedImageSettings:w}=lQ({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:g,imageSettings:y,size:o});let E=S,k=null;y!=null&&w!=null&&(w.excavation!=null&&(E=aQ(S,w.excavation)),k=on.createElement("image",{href:y.src,height:w.h,width:w.w,x:w.x+v,y:w.y+v,preserveAspectRatio:"none",opacity:w.opacity,crossOrigin:w.crossOrigin}));const T=sQ(E,v);return on.createElement("svg",FD({height:o,width:o,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},b),!!p&&on.createElement("title",null,p),on.createElement("path",{fill:a,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),on.createElement("path",{fill:l,d:T,shapeRendering:"crispEdges"}),k)});rM.displayName="QRCodeSVG";const Wke=Ee(h.jsx("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"})),zm=e=>A.createElement("svg",{viewBox:"0 0 250 260",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{fillRule:"evenodd"},A.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),A.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}),A.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),A.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}))),qke=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:20,viewBox:"0 0 52 20",fill:"none",...e},"\\n ",A.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.4419 10.9152C49.5872 10.0259 50.093 9.09567 50.0116 7.92553C49.9741 7.13141 49.632 6.3829 49.0573 5.83734C48.4827 5.29179 47.7202 4.9917 46.9302 5.00017H42.3954V15.0517H44.1977V10.9152H46.3488L48.8954 15.0517H51L48.4419 10.9152ZM48.2616 7.92553C48.2687 8.07923 48.2455 8.23282 48.1935 8.3775C48.1414 8.52218 48.0616 8.65511 47.9584 8.76869C47.8553 8.88227 47.7309 8.97427 47.5924 9.03941C47.4538 9.10455 47.3039 9.14156 47.1512 9.14832C47.0778 9.15694 47.0036 9.15694 46.9302 9.14832H44.1919V6.75539H46.9302C47.2461 6.72083 47.5628 6.81339 47.8111 7.01287C48.0594 7.21235 48.2193 7.50257 48.2558 7.82021C48.2558 7.83777 48.2573 7.85532 48.2587 7.87287C48.2602 7.89042 48.2616 7.90797 48.2616 7.92553ZM28.657 11.2955L30.9826 15.0458H33.1279L29.8256 9.72169L28.657 11.2955ZM32.4709 5.00017H30.1802L25.4651 11.3482V5.00017H23.6744V14.1565C23.6708 14.3635 23.74 14.5651 23.8698 14.7257C23.9996 14.8863 24.1816 14.9955 24.3837 15.0341C24.5446 15.0621 24.71 15.0459 24.8624 14.9872C25.0149 14.9286 25.1488 14.8295 25.25 14.7006L32.4709 5.00017ZM36.4651 10.9152H40.0233V9.16002H36.4651V10.9152ZM40.9651 5.00025H33.8954V14.1566C33.8922 14.273 33.9124 14.3889 33.9545 14.4974C33.9966 14.6059 34.06 14.7048 34.1407 14.7882C34.2215 14.8716 34.318 14.938 34.4247 14.9832C34.5313 15.0285 34.6459 15.0518 34.7616 15.0518H40.9651V13.2965H35.7326V6.75546H40.9651V5.00025ZM20.0349 5.00025V11.3483L15.314 5.00025H12.9884V15.0459H14.7965V7.40488L20.2442 14.7007C20.345 14.8301 20.4788 14.9295 20.6314 14.9882C20.784 15.047 20.9496 15.0629 21.1105 15.0342C21.3126 14.9956 21.4946 14.8863 21.6244 14.7257C21.7542 14.5652 21.8234 14.3636 21.8198 14.1566V5.00025H20.0349ZM5.65116 5.54436L1 15.0518H3.02326L6.51163 7.9256L10 15.0635H12.0058L7.39535 5.58532C7.30869 5.41551 7.18068 5.27057 7.02326 5.16407C6.86639 5.06366 6.68578 5.00711 6.5 5.00025C6.32119 5.00091 6.14607 5.05154 5.99419 5.14651C5.84206 5.24066 5.72233 5.37953 5.65116 5.54436ZM8.09699 13.63H8.15117L8.12791 13.589L8.09699 13.63ZM6.94187 13.63H8.09699L5.55233 17L5.78489 14.4198H4.56396L7.18024 11.0498L6.94187 13.63Z",fill:"#F5F6F7"}),"\\n"),BD=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 41.5 51",...e},A.createElement("g",null,A.createElement("path",{d:"M40.2,17.4c-3.4,2.1-5.5,5.7-5.5,9.7c0,4.5,2.7,8.6,6.8,10.3c-0.8,2.6-2,5-3.5,7.2c-2.2,3.1-4.5,6.3-7.9,6.3s-4.4-2-8.4-2 c-3.9,0-5.3,2.1-8.5,2.1s-5.4-2.9-7.9-6.5C2,39.5,0.1,33.7,0,27.6c0-9.9,6.4-15.2,12.8-15.2c3.4,0,6.2,2.2,8.3,2.2 c2,0,5.2-2.3,9-2.3C34.1,12.2,37.9,14.1,40.2,17.4z M28.3,8.1C30,6.1,30.9,3.6,31,1c0-0.3,0-0.7-0.1-1c-2.9,0.3-5.6,1.7-7.5,3.9 c-1.7,1.9-2.7,4.3-2.8,6.9c0,0.3,0,0.6,0.1,0.9c0.2,0,0.5,0.1,0.7,0.1C24.1,11.6,26.6,10.2,28.3,8.1z"}))),cQ=e=>A.createElement("svg",{width:80,height:48,viewBox:"0 0 80 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.81 13.3345C14.2136 13.8547 15.327 14.9378 15.876 16.3132L21.8966 32.1746C21.9098 32.2094 21.8923 32.2483 21.8575 32.2615L21.8336 32.2659H19.0457C19.0177 32.2659 18.9927 32.2486 18.9827 32.2224L13.3378 17.3486C13.0793 16.6674 12.5353 16.13 11.846 15.8745C10.5471 15.3932 9.10149 16.0268 8.58638 17.2915L7.22633 20.8729C5.91753 21.5279 5.0204 22.8697 5.0204 24.4186C5.0204 24.9466 5.12468 25.4506 5.314 25.9115L2.91882 32.2224C2.90889 32.2486 2.88383 32.2659 2.85585 32.2659L0.0678745 32.2666C0.0306679 32.2667 0.000498102 32.2365 0.000488281 32.1993L0.00487174 32.1754L5.99341 16.3961C7.02016 13.6907 10.072 12.32 12.81 13.3345ZM28.9955 16.7371L29.3163 16.7337L29.7093 16.7473L30.0186 16.772L30.3615 16.8139L30.6021 16.8528L30.9501 16.9228L31.1962 16.9826L31.3465 17.0234L31.625 17.1078L31.8607 17.1883L31.9699 17.2285L32.2629 17.346L32.4752 17.44L32.7069 17.5515L32.9535 17.681L33.0724 17.7476L33.3046 17.8858L33.5249 18.0274L33.6195 18.0915L33.8746 18.2749L34.0785 18.4332L34.2633 18.5865L34.3812 18.6895L34.5683 18.8619L34.6805 18.971L34.7979 19.0898L34.9195 19.2187L35.0383 19.3505L35.1419 19.4705L35.3292 19.7009L35.5691 20.0249L35.6572 20.1534L35.8028 20.3788L35.8973 20.5351L36.058 20.8218L36.1728 21.0463L36.2982 21.3148L36.3974 21.5486L36.4885 21.7852L36.5644 22.0026L36.6282 22.2039L36.6794 22.3813L36.7128 22.5071C36.7374 22.6028 36.7602 22.6992 36.7812 22.7962L36.8153 22.9637L36.846 23.1333L36.8729 23.3043C36.8878 23.4057 36.9006 23.5078 36.9114 23.6104L36.926 23.7649C36.9373 23.8983 36.9452 24.0328 36.9496 24.1681L36.9537 24.3232V35.8054C36.9537 35.9129 36.8662 36 36.7584 36H34.4151C34.315 36 34.2324 35.9249 34.2212 35.8281L34.2199 35.8054L34.2201 30.2913L33.976 30.4888L33.7764 30.6386L33.6197 30.7494L33.4835 30.8411L33.3091 30.9525L33.0969 31.0794L32.8071 31.2383L32.6791 31.3034L32.4479 31.4136L32.1391 31.5464L31.8764 31.6471L31.7372 31.6961L31.4028 31.8015L31.2804 31.836L30.9953 31.9079L30.7166 31.9671L30.4646 32.0115L30.3243 32.0324L30.0586 32.065L29.9326 32.0772L29.7343 32.0922L29.493 32.1037L29.2404 32.1077C24.9804 32.1077 21.5271 28.6661 21.5271 24.4205C21.5271 20.2567 24.8489 16.866 28.9955 16.7371ZM24.2609 24.4205C24.2609 21.6798 26.4903 19.4579 29.2404 19.4579C29.4034 19.4579 29.5647 19.4657 29.7238 19.481L29.8413 19.4937L30.0803 19.5283L30.2016 19.5504L30.3419 19.5798L30.5659 19.6358L30.7996 19.7062L31.0449 19.7939C31.1507 19.835 31.2549 19.8796 31.3571 19.9275L31.4292 19.962L31.6766 20.0916L31.8714 20.2066C31.943 20.2511 32.0134 20.2973 32.0825 20.3453L32.1983 20.428L32.3169 20.5182C32.4843 20.6495 32.6431 20.7912 32.7923 20.9425L32.9514 21.1115C33.6874 21.9308 34.1543 22.9953 34.2135 24.1669L34.2162 24.23L34.2194 24.49C34.1851 26.9823 32.3073 29.0307 29.8835 29.3422L29.7304 29.3595L29.5286 29.375L29.2404 29.3832C26.4903 29.3832 24.2609 27.1613 24.2609 24.4205ZM9.16556 21.9333C10.6351 21.9333 11.8265 23.1123 11.8265 24.5667C11.8265 26.021 10.6351 27.2 9.16556 27.2C7.69598 27.2 6.50464 26.021 6.50464 24.5667C6.50464 23.1123 7.69598 21.9333 9.16556 21.9333ZM50.446 17.7037L50.314 17.6319L49.9725 17.4615L49.7024 17.3412L49.359 17.2057C49.1858 17.1421 49.0099 17.0846 48.8317 17.0334L48.7024 16.9975C48.4418 16.9276 48.1758 16.871 47.9051 16.8283L47.827 16.8164L47.461 16.7714L47.2656 16.7545C47.0749 16.7405 46.8823 16.7333 46.6879 16.7333C42.428 16.7333 38.9746 20.1671 38.9746 24.4029C38.9746 28.6387 42.428 32.0725 46.6879 32.0725L46.9328 32.0687L47.2991 32.0488L47.688 32.0086L47.9931 31.9632L48.302 31.9043L48.6057 31.8336L48.8922 31.7548L49.246 31.6407L49.5034 31.5455L49.7928 31.4258L50.098 31.2842L50.3431 31.1584L50.5963 31.0164L50.9053 30.8256L51.1908 30.6306C51.3442 30.5208 51.4935 30.4054 51.6381 30.2849L51.6676 30.2602L51.6687 32.0952C51.68 32.1917 51.7625 32.2667 51.8627 32.2667H54.206C54.3138 32.2667 54.4012 32.1797 54.4012 32.0725V24.3058L54.3861 23.9176L54.3631 23.6355L54.3242 23.3145L54.2804 23.043L54.216 22.7247L54.1623 22.5014L54.0624 22.1478L54.0059 21.9725L53.916 21.7196L53.7452 21.3029L53.6184 21.0324L53.4359 20.6849L53.2837 20.4245L53.198 20.2876L53.0512 20.067L52.9398 19.9099L52.732 19.6375L52.6151 19.4946L52.387 19.2347L52.2203 19.0586L52.0141 18.8554L51.8835 18.7342L51.7203 18.5904L51.3495 18.2919L51.1038 18.1138L50.8016 17.9139L50.446 17.7037ZM46.6879 19.4517C43.9379 19.4517 41.7085 21.6684 41.7085 24.4029C41.7085 27.1374 43.9379 29.3542 46.6879 29.3542L46.9905 29.3452L47.1625 29.3321L47.4466 29.2973L47.4952 29.2894C47.636 29.2666 47.7747 29.2379 47.9112 29.2037L48.1609 29.1347L48.4198 29.0465L48.5215 29.0086L48.659 28.9511L48.9045 28.8378L49.1359 28.7163L49.321 28.6061L49.4895 28.4973L49.6838 28.3581C50.8786 27.4619 51.6545 26.0429 51.6673 24.443L51.6593 24.1177C51.6192 23.4156 51.4319 22.7526 51.1277 22.1587L50.9903 21.9086L50.8359 21.6623L50.7712 21.5684L50.6486 21.4015L50.5368 21.2613L50.4034 21.1064L50.3055 21.0005L50.1647 20.8584L49.9506 20.6625L49.7324 20.4847L49.5599 20.3578L49.3776 20.2355L49.1353 20.09L49.0187 20.0266L48.7742 19.9059L48.5808 19.8219L48.3539 19.7355L48.1642 19.6729L47.9782 19.6195L47.7697 19.5688L47.5588 19.5271L47.3448 19.4944L47.2201 19.4796C47.0452 19.4611 46.8677 19.4517 46.6879 19.4517ZM77.5285 18.7765L77.4276 18.6851L77.1961 18.4872L77.0529 18.3724L76.8158 18.1941L76.5712 18.0244L76.2693 17.8334L75.9998 17.6789L75.8471 17.5975L75.6556 17.5016L75.4021 17.3846L75.1892 17.2949L75.0162 17.2274L74.6714 17.1069L74.3928 17.0227L74.2425 16.9821L73.9964 16.9224L73.6484 16.8525L73.4078 16.8138L73.2722 16.7954L73.065 16.7719L72.8285 16.752L72.5529 16.7378L72.3626 16.7337L72.0418 16.7371C67.8952 16.8657 64.5734 20.2486 64.5734 24.4029C64.5734 28.6387 68.0267 32.0725 72.2867 32.0725L72.5393 32.0685L72.7806 32.057L72.9789 32.042L73.2162 32.0174L73.3707 31.9974L73.5109 31.9764L73.7629 31.9322L73.9251 31.8991L74.0416 31.8731L74.2035 31.8338L74.4491 31.767L74.6706 31.6992L74.9227 31.6129L75.1854 31.5125L75.3956 31.424L75.7254 31.27L75.8535 31.205L76.1432 31.0465L76.4364 30.8691L76.6661 30.7173L76.8228 30.6067L77.0224 30.4572L77.2664 30.2602L77.2675 32.0952C77.2788 32.1917 77.3613 32.2667 77.4614 32.2667H79.8047C79.9126 32.2667 80 32.1797 80 32.0725V24.3058L79.9959 24.151C79.9915 24.016 79.9836 23.8819 79.9723 23.7488L79.9577 23.5947L79.9193 23.2892C79.9026 23.1751 79.8834 23.0618 79.8617 22.9494L79.8275 22.7823L79.7591 22.4939L79.7257 22.3684L79.639 22.0773L79.5802 21.9009L79.4872 21.6474L79.4437 21.5376L79.3446 21.3043L79.2192 21.0364L79.1043 20.8124L79.0191 20.6572L78.8491 20.3705L78.7893 20.276L78.6154 20.0174L78.4702 19.8176L78.297 19.5956L78.1882 19.4642L78.0846 19.3445L77.8442 19.0844L77.7268 18.9658L77.5285 18.7765ZM72.2867 19.4517C69.5366 19.4517 67.3072 21.6684 67.3072 24.4029C67.3072 27.1374 69.5366 29.3542 72.2867 29.3542L72.5749 29.3461L72.7767 29.3306L72.9298 29.3133C75.3536 29.0025 77.2314 26.9588 77.2657 24.4722L77.2652 24.311L77.2598 24.1499C77.2006 22.981 76.7337 21.9189 75.9977 21.1015L75.9101 21.0067L75.8386 20.9328C75.6894 20.7819 75.5306 20.6405 75.3632 20.5095L75.2446 20.4195L75.1289 20.337C75.0597 20.2892 74.9893 20.243 74.9177 20.1986L74.7229 20.0839L74.4755 19.9546L74.4034 19.9202C74.3012 19.8723 74.1971 19.8279 74.0912 19.7869L73.957 19.7371L73.6875 19.6504L73.5216 19.6051L73.2479 19.5439L73.1266 19.5219L73.0043 19.5027L72.7701 19.4747C72.611 19.4595 72.4498 19.4517 72.2867 19.4517ZM64.3039 19.7017V17L64.1747 17.001C59.9185 17.0686 56.4896 20.4698 56.4896 24.6556V32.1993C56.4896 32.2365 56.5197 32.2667 56.5569 32.2667H59.1799C59.2171 32.2667 59.2472 32.2365 59.2472 32.1993L59.2479 24.5737C59.2926 21.8755 61.5391 19.7017 64.3039 19.7017Z",fill:"white"})),Kke=e=>A.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("title",null,"AVM"),A.createElement("path",{d:"m19.501 11.786-.003-4.823-10.9 11.925h3.172l5.481-6.07v4.864l4.321-4.783v3.657H24V6.86zm-2.643-6.675-5.267 5.87V7.443H9.345v9.38L20.049 5.111zM0 16.556h3.148l2.924-3.25v3.25H8.41v-9.21z"})),Gke=e=>A.createElement("svg",{"xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",width:850.39368,height:244.13385,id:"svg145868",...e},A.createElement("defs",{id:"defs145870"}),A.createElement("g",{transform:"translate(-586.37187,-430.72069)",id:"layer1"},A.createElement("g",{transform:"matrix(3.7156602,0,0,3.7156602,-1556.9538,-1604.717)",id:"g146158"},A.createElement("path",{d:"M 785.08478,558.34886 C 783.93091,558.34886 783.0655,558.72392 782.20009,559.50283 C 781.62315,560.31059 781.04574,561.34918 781.04574,562.44546 C 781.04574,563.51284 781.62315,564.52258 782.20009,565.30151 C 783.0655,566.10926 783.93091,566.54202 785.08478,566.54202 C 786.23867,566.54202 787.39254,566.10926 787.96996,565.30151 C 788.83537,564.55143 789.12384,563.57054 789.12384,562.44546 C 789.12384,561.34918 788.83537,560.31059 787.96996,559.56053 C 787.39254,558.75276 786.23867,558.34886 785.08478,558.34886 z M 788.83537,562.4743 C 788.83537,563.42631 788.25843,564.29181 787.68149,564.92649 C 786.8156,565.61886 785.95019,565.99388 785.08478,565.99388 C 784.21937,565.99388 783.35396,565.61886 782.48856,564.92649 C 781.91162,564.23406 781.62315,563.36861 781.62315,562.44546 C 781.62315,561.49342 781.91162,560.59911 782.77703,559.87788 C 783.35396,559.21432 784.21937,558.86815 785.08478,558.86815 C 786.23867,558.86815 787.10407,559.24316 787.68149,559.93558 C 788.25843,560.59911 788.83537,561.46457 788.83537,562.4743 z M 785.37326,560.02212 L 783.64244,560.02212 L 783.64244,564.66682 L 784.50785,564.66682 L 784.50785,562.70509 L 785.37326,562.70509 L 786.23867,564.66682 L 787.10407,564.66682 L 786.23867,562.56085 C 786.8156,562.41661 787.10407,561.95501 787.10407,561.32034 C 787.10407,560.45483 786.52713,560.02212 785.37326,560.02212 z M 785.08478,560.59911 C 785.95019,560.59911 786.23867,560.82989 786.23867,561.40687 C 786.23867,561.95501 785.95019,562.12809 785.08478,562.12809 L 784.50785,562.12809 L 784.50785,560.59911 L 785.08478,560.59911",style:{fill:"#00a9a0",fillRule:"evenodd",stroke:"none",strokeWidth:.10201,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path672"}),A.createElement("path",{d:"M 653.2441,557.51225 C 660.16785,557.51225 667.38007,557.51225 674.30382,557.51225 C 674.88124,557.51225 676.90052,557.62763 677.189,557.68533 C 677.76593,557.97379 676.32359,561.00297 675.1697,561.83963 C 674.88124,562.12809 674.30382,562.12809 674.01535,562.18579 C 672.573,562.35888 671.13065,562.87817 670.84218,564.17637 C 670.26524,566.16701 670.55372,569.02305 670.55372,571.30215 C 670.55372,577.44703 670.55372,583.59187 670.55372,589.73675 C 670.55372,591.5254 669.97677,596.25669 670.84218,597.5549 C 671.41912,599.02619 673.14994,599.02619 674.88124,599.02619 C 675.1697,598.96849 675.74665,598.9108 676.03511,598.85311 C 676.61206,598.65113 676.90052,598.42035 677.47746,598.18958 C 678.63134,597.52605 679.78522,596.45862 680.65063,595.18926 C 681.51652,593.97759 682.09346,592.59284 682.67039,591.17919 C 682.95887,590.40028 682.95887,589.304 683.5358,588.64047 C 684.11274,587.80386 687.28639,587.16917 687.86332,587.19803 C 688.1518,587.16917 688.72874,587.22687 689.01721,587.22687 C 689.01721,592.16008 689.01721,597.12215 689.01721,602.08421 C 689.01721,602.40152 688.72874,603.81517 688.72874,603.87286 C 688.72874,603.87286 668.53442,603.87286 658.43703,603.87286 C 655.84032,603.87286 652.95563,603.87286 650.3594,603.87286 C 650.07093,603.87286 649.49351,603.98825 649.49351,603.69973 C 649.49351,603.69973 649.49351,603.69973 649.49351,603.69973 C 649.49351,602.43037 650.07093,600.06478 651.22481,599.37236 C 651.80175,599.02619 652.37869,599.02619 653.2441,599.02619 C 653.53256,598.79541 654.10951,598.53575 654.68645,598.27612 C 655.84032,597.64144 656.41775,596.54516 656.70621,595.47772 C 657.57162,593.25636 657.28315,590.19835 657.28315,587.57309 C 657.28315,582.20712 657.28315,576.8412 657.28315,571.47523 C 657.28315,569.77311 657.57162,565.41689 656.99468,564.14753 C 656.12927,562.04156 651.80175,562.4743 651.51328,561.55111 C 651.22481,560.42599 652.66716,558.37771 653.2441,557.51225",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path676"}),A.createElement("path",{d:"M 764.31353,557.68533 C 765.17894,557.68533 766.62129,557.51225 767.19823,558.20462 C 767.4867,559.18546 767.19823,562.56085 767.19823,563.97445 C 767.19823,570.4078 767.19823,576.8412 767.19823,583.27455 C 767.4867,583.27455 767.4867,583.30339 767.77517,583.15916 C 770.0834,581.25511 772.1027,578.88948 774.12198,576.81235 C 775.27634,575.83146 776.14175,574.50441 777.58409,573.98511 C 778.4495,573.61005 779.89185,573.81203 780.75726,573.81203 C 783.64244,573.81203 786.52713,573.81203 789.12384,573.81203 C 789.12384,574.87942 788.25843,576.35075 787.68149,577.07197 C 786.8156,577.79319 785.37326,577.47588 784.50785,577.93743 C 783.35396,578.39903 777.58409,584.54391 777.87257,585.03436 C 778.16103,586.39026 780.46879,588.09233 781.62315,589.2463 C 783.64244,591.32347 785.37326,593.4006 787.39254,595.50657 C 788.25843,596.22779 788.83537,597.20869 789.70078,597.67029 C 790.85465,598.27612 792.29701,598.36266 793.73936,598.59344 C 794.31677,598.70883 795.47065,598.59344 796.04759,599.08388 C 796.33606,599.3435 796.04759,600.15132 795.75912,600.41094 C 795.47065,601.16101 794.31677,603.35356 793.45088,603.67088 C 792.29701,604.13249 790.56619,603.84401 789.12384,603.84401 C 787.39254,603.84401 785.95019,603.84401 784.21937,603.84401 C 783.35396,603.84401 781.91162,603.9594 781.04574,603.72858 C 779.02644,603.20934 777.29563,601.36298 775.85328,599.80511 C 774.41045,598.21843 772.67963,596.6317 770.94881,595.04502 C 770.66034,594.58342 767.77517,591.78503 767.77517,591.5254 C 767.4867,591.5254 767.4867,591.66964 767.19823,591.66964 C 767.19823,596.25669 766.04435,599.40125 771.52575,599.40125 C 771.52575,600.38209 770.66034,603.06505 769.79494,603.5555 C 768.92953,604.13249 767.19823,603.84401 765.75588,603.84401 C 761.13989,603.84401 756.23591,603.87286 751.33144,603.87286 C 751.33144,603.75743 751.33144,603.64204 751.33144,603.4978 C 751.90838,602.28613 751.90838,601.04562 752.77379,600.03593 C 753.6392,599.14158 755.08154,599.19928 755.37002,597.90106 C 755.65849,596.97791 755.65849,595.76624 755.65849,594.72766 C 755.65849,592.93901 755.65849,591.15034 755.65849,589.36174 C 755.65849,584.11116 755.65849,578.86063 755.65849,573.61005 C 755.65849,571.18676 755.94695,568.41721 755.65849,566.13811 C 755.08154,564.00329 751.61991,565.04188 751.61991,564.32066 C 751.33144,563.62823 751.61991,562.79162 751.61991,562.18579 C 751.90838,561.55111 751.90838,560.91642 752.48532,560.39713 C 753.06226,559.56053 764.02506,557.82957 764.31353,557.68533",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path686"}),A.createElement("path",{d:"M 698.82566,558.06039 C 700.84542,557.4257 702.28777,558.06039 703.73012,558.86815 C 706.90376,560.65681 707.19224,565.56117 704.59553,567.89791 C 701.71083,570.35011 697.38331,570.43664 693.34425,570.32125 C 692.47884,570.29241 691.61343,570.37895 691.03649,569.85966 C 690.45956,567.09016 694.49861,561.49342 696.80636,559.44514 C 697.38331,558.98353 698.24872,558.32 698.82566,558.06039",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path696"}),A.createElement("path",{d:"M 704.01859,572.02337 C 704.59553,572.08107 704.884,572.13876 705.17246,572.19645 C 706.03835,572.60036 705.7494,578.02397 705.7494,579.35107 C 705.7494,583.765 705.7494,588.17891 705.7494,592.59284 C 705.7494,594.03528 705.46094,596.28554 706.03835,597.49716 C 706.32683,598.56459 707.4807,598.85311 708.63458,599.3435 C 709.21152,599.71857 708.92305,600.46864 708.63458,601.01677 C 708.63458,601.13217 708.63458,601.24755 708.63458,601.33414 C 708.63458,601.42068 708.63458,601.47838 708.63458,601.56491 C 708.05764,602.31498 707.76917,603.0939 707.4807,603.87286 C 702.28777,603.87286 697.09484,603.87286 691.9019,603.87286 C 691.61343,603.87286 690.17108,603.67088 689.88262,603.67088 C 689.88262,603.64204 690.45956,600.93024 691.32497,600.09363 C 692.19038,599.05504 693.05579,598.99734 693.6332,597.5549 C 693.92167,596.37207 693.92167,594.87189 693.92167,593.48714 C 693.92167,590.77533 693.92167,587.97694 693.6332,585.43821 C 693.6332,584.02462 694.21014,581.8898 693.6332,580.70698 C 693.05579,579.92802 690.74803,579.35107 689.88262,579.35107 C 689.59415,579.35107 689.59415,579.1491 689.59415,579.00486 C 690.17108,577.44703 689.88262,575.22563 692.19038,575.22563 C 692.76731,575.16793 693.05579,575.11024 693.6332,575.05254 C 694.49861,574.82171 695.65249,574.5621 696.5179,574.33132 C 699.11412,573.78318 701.9993,573.11966 704.01859,572.02337",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path706"}),A.createElement("path",{d:"M 723.92443,572.19645 C 725.65573,572.74459 724.78984,575.94685 725.07879,577.53357 C 725.07879,577.7355 725.07879,577.90858 725.36726,577.90858 C 726.52114,577.76435 727.96349,576.81235 729.11736,576.20651 C 732.00254,574.76402 736.61805,572.74459 738.92629,572.65805 C 739.7917,572.60036 740.94557,572.71574 741.81098,572.77344 C 744.11922,572.91767 745.85004,574.99484 746.71545,577.07197 C 747.00392,578.57211 747.00392,580.62044 747.00392,582.3802 C 747.00392,586.73643 747.00392,591.09265 747.00392,595.44888 C 747.00392,596.89137 747.58085,598.18958 748.73474,598.99734 C 749.31167,599.25697 749.60015,599.48779 750.17756,599.71857 C 750.46604,599.9205 750.17756,600.35324 750.17756,600.61287 C 749.88861,601.47838 749.60015,602.74774 748.73474,603.35356 C 747.58085,604.24788 744.11922,603.84401 742.38792,603.84401 C 740.08016,603.84401 738.06088,603.78632 736.90652,602.34383 C 733.15642,598.47805 739.21476,580.0723 731.4256,580.59159 C 730.27124,580.64928 729.40583,581.11083 728.54042,581.63012 C 724.2129,584.05346 725.07879,587.74617 725.07879,592.59284 C 725.07879,594.52573 724.78984,597.09329 725.94419,598.4492 C 726.8096,599.54549 728.54042,598.76657 729.40583,599.57433 C 729.6943,599.94934 728.54042,601.96882 728.25195,602.37268 C 728.25195,602.80543 727.96349,603.41127 727.38654,603.64204 C 726.23267,604.19018 724.2129,603.84401 722.77055,603.84401 C 718.73198,603.84401 714.40445,603.87286 710.07693,603.87286 C 710.3654,602.45922 710.65387,600.67061 711.51928,599.71857 C 712.38517,598.93965 713.25057,598.67998 713.53904,597.61259 C 713.82752,596.11241 713.53904,593.89105 713.53904,592.24663 C 713.53904,588.84244 713.53904,585.43821 713.53904,582.03404 C 713.53904,581.54359 713.25057,581.08199 713.25057,580.70698 C 712.38517,579.63954 710.94234,579.69723 709.78846,579.69723 C 710.07693,578.45672 710.3654,577.21621 710.65387,575.94685 C 711.80774,575.68722 712.96211,575.39871 714.11598,575.13908 C 717.28915,574.18704 720.75126,573.69664 723.92443,572.19645",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path710"}),A.createElement("path",{d:"M 655.55186,579.00486 C 656.99468,579.00486 653.2441,585.87097 652.09021,586.30372 C 650.93634,586.82296 648.02237,586.50565 646.49363,586.50565 C 644.01259,586.50565 641.50276,586.50565 638.99246,586.50565 C 638.73278,586.50565 638.32911,586.59219 638.27152,586.33257 C 638.21392,586.33257 641.30068,579.46646 642.0797,579.1491 C 643.0315,578.7164 652.09021,579.00486 655.55186,579.00486",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path714"}),A.createElement("path",{d:"M 629.58767,564.95534 C 627.71286,562.4743 625.77996,559.24316 622.83719,557.97379 C 621.65452,557.4257 620.21169,557.56994 618.76934,557.4834 C 614.96115,557.25257 589.83358,557.4834 588.16036,557.33912 C 587.52582,558.14692 586.19867,560.42599 586.42955,561.57995 C 586.71801,563.10899 590.5838,561.89732 591.36281,563.54169 C 591.82407,564.55143 591.5644,566.31124 591.5644,567.55176 C 591.5644,571.18676 591.5644,574.82171 591.5644,578.45672 C 591.5644,582.46678 591.5644,586.44795 591.5644,590.42912 C 591.53561,592.36201 591.85287,594.64111 591.30521,596.31438 C 590.78587,597.78567 589.37184,597.58374 588.30484,598.33382 C 587.49703,598.88196 585.9966,602.40152 586.45835,603.35356 C 586.83321,604.10364 594.2475,603.87286 595.68985,603.87286 C 600.76759,603.87286 605.81605,603.87286 610.89379,603.87286 C 615.65377,603.87286 621.10638,604.56523 624.59681,602.14191 C 625.60669,601.44953 626.21243,600.43979 626.90505,599.45894 C 628.20292,597.52605 629.53007,595.62201 630.82842,593.71792 C 632.47285,591.26578 634.54973,588.8136 635.81929,586.15944 C 636.6271,584.42853 637.00196,582.40905 637.00196,580.24538 C 637.00196,573.40812 633.25185,569.83081 629.58767,564.95534 z M 613.28794,567.29209 C 614.96115,569.57119 616.63438,571.82144 618.3076,574.10049 C 619.40388,575.62953 620.50016,577.12967 621.56763,578.65865 C 621.94298,579.37993 622.02938,580.38961 621.9137,581.31281 C 621.59644,583.70731 619.51955,585.58245 618.1348,587.45765 C 616.77885,589.21745 615.4229,590.97726 614.09575,592.73707 C 612.82668,594.41034 611.52832,596.05471 610.25876,597.69913 C 609.7975,598.10299 609.22008,598.16074 608.75882,598.5069 C 607.69134,598.5069 606.24899,598.70883 605.75845,597.75682 C 605.21031,596.71824 605.52757,591.81387 605.52757,590.25604 C 605.52757,581.80321 605.55637,573.32158 605.55637,564.86875 C 605.58518,564.14753 605.64278,563.59939 606.24899,563.25322 C 606.24899,563.19552 606.24899,563.13783 606.24899,563.08014 C 607.63374,563.08014 609.19128,562.90701 610.25876,563.57054",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path718"})))),Yke=e=>A.createElement("svg",{width:128,height:44,viewBox:"0 0 128 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("path",{d:"M3.03547 11.8505C6.36347 8.70536 11.6298 5.99907 16.2378 7.82764C19.3098 9.10764 20.0412 12.5819 19.7852 15.5442C19.456 19.5671 17.408 23.6265 14.7383 26.6254C13.056 28.5271 9.80119 31.2334 7.05833 31.0871C6.40004 31.0505 5.70519 31.1236 5.12004 31.4528C5.01033 31.5259 4.13262 32.0379 4.75433 32.0745C8.19204 32.2574 11.7029 30.6116 14.4823 28.7099C18.9806 25.6014 21.9429 20.1888 22.528 14.8128C23.0035 10.4608 20.8092 6.87678 16.3475 6.32821C10.8252 5.63336 4.49833 8.41279 0.548615 12.1431C0.0731868 12.6185 2.59662 12.2528 3.03547 11.8505ZM3.62062 31.2334C5.01033 23.7362 7.02176 15.4345 11.3006 8.96136C11.4103 8.81507 9.03319 8.85164 8.59433 9.50993C4.31547 16.0196 2.26747 24.3579 0.877758 31.9648C0.841187 32.1111 3.47433 32.0014 3.62062 31.2334Z",fill:"url(#paint0_linear_3809_68339)"}),A.createElement("path",{d:"M35.5652 16.6414C36.6258 16.9705 36.8086 18.2871 36.6989 19.3111C36.6623 19.7134 39.4418 19.3111 39.4418 18.5796C39.4418 17.8482 39.4052 17.1168 38.9663 16.4951C36.9183 13.4962 30.9572 16.3488 29.348 18.2871C29.6406 17.4094 29.9698 16.5316 30.2989 15.6539C30.4452 15.2516 29.3846 15.4345 29.2383 15.4711C28.8726 15.5442 28.5435 15.6539 28.2143 15.8002C28.068 15.8734 27.7023 16.0196 27.6292 16.1659C25.764 21.3225 24.228 26.5522 23.1309 31.9282C23.0578 32.3305 25.6543 32.0745 25.8738 31.3065C26.8612 27.9419 27.9218 24.5408 29.5675 21.4322C29.9332 20.7374 30.3355 20.0425 30.8109 19.3476C32.676 16.7145 34.6143 16.3488 35.5652 16.6414Z",fill:"url(#paint1_linear_3809_68339)"}),A.createElement("path",{d:"M54.1966 27.7225C52.1852 29.4779 49.6983 31.3065 46.8823 31.0505C45.1635 30.9042 43.7006 29.8802 43.0789 28.2711C41.616 24.3579 46.0778 19.4208 49.0766 17.5922C51.0515 16.3488 54.7818 16.2025 54.6355 19.3842C54.4526 23.4071 48.9669 24.6505 45.8949 25.0162C45.2732 25.0894 42.896 26.1865 44.688 25.9671C48.9303 25.4916 56.1715 24.1751 57.3418 19.0916C58.4389 14.2642 50.9783 15.8734 48.784 16.7511C44.5052 18.3968 37.52 25.3088 40.9578 30.1728C42.3475 32.1476 45.1269 32.2574 47.248 31.9648C50.7955 31.5259 54.0138 29.7339 56.6835 27.4299C57.1589 26.9911 54.6721 27.3202 54.1966 27.7225Z",fill:"url(#paint2_linear_3809_68339)"}),A.createElement("path",{d:"M75.4038 16.2391C69.9546 14.7396 64.542 17.5191 61.1409 21.7248C59.2026 24.1385 57.0449 28.5271 60.0072 31.0505C62.8598 33.4276 67.9798 30.3922 70.2106 28.6368C70.8689 28.1614 71.4541 27.6494 72.0026 27.1008C71.8929 28.7099 72.0758 30.3191 72.5146 31.8916C72.6609 32.4402 75.4038 31.6722 75.2575 31.1602C74.4529 28.4174 74.6358 25.6014 75.3306 22.8585C76.5375 20.8471 77.3786 18.6162 77.9272 16.2025C77.9638 15.9831 75.4769 16.2756 75.2209 16.8242C74.1603 19.0185 73.1363 21.3591 72.5512 23.7362C72.2952 24.2116 71.966 24.6505 71.6369 25.0894C70.0643 27.1739 65.6392 32.3305 62.6403 30.1728C60.8118 28.8562 61.1775 26.0402 61.9089 24.2848C62.6769 22.4196 64.1032 20.7008 65.566 19.3111C67.7603 17.2265 70.174 16.4219 73.1363 17.2265C73.7215 17.4094 76.0986 16.4585 75.4038 16.2391Z",fill:"url(#paint3_linear_3809_68339)"}),A.createElement("path",{d:"M104.945 17.0436C105.53 17.5922 105.786 18.9454 105.822 19.9694C105.895 21.6151 105.566 23.2974 105.201 24.9431C104.652 27.2471 103.921 29.6242 103.079 31.8185C102.933 32.2208 103.921 32.1111 104.177 32.0745C104.689 32.0014 105.603 31.8185 105.786 31.3065C106.371 29.7339 106.919 28.0151 107.358 26.4059C107.834 24.7968 108.199 23.1876 108.419 21.5785C108.675 19.6036 108.894 16.3488 106.517 15.5076C105.786 15.2516 105.018 15.2882 104.25 15.3614C103.189 15.4345 102.129 15.7271 101.178 16.1659C99.6783 16.8242 98.4715 17.8482 97.4109 19.1282C97.1915 19.4208 96.972 19.6768 96.7892 19.9694C96.7892 19.6036 96.7526 19.2745 96.716 18.9088C96.5698 17.8848 96.2772 16.8608 95.5092 16.1294C94.5949 15.2516 93.1321 15.2151 91.9618 15.3979C90.0601 15.6539 88.2315 16.3854 86.732 17.5922C85.8909 18.3236 85.1229 19.1648 84.428 20.0791C84.9035 18.5796 85.3789 17.1168 85.8909 15.6539C86.0372 15.2516 85.0863 15.3979 84.8303 15.4711C84.5012 15.5442 84.1355 15.6539 83.8063 15.8002C83.66 15.8734 83.2943 16.0196 83.2212 16.1659C81.356 21.2859 79.9663 26.6254 78.9423 31.9648C78.8692 32.2939 80.2589 32.0014 81.0635 31.7088C81.3926 31.5991 81.612 31.4528 81.6486 31.3065C82.636 27.9054 83.9526 24.5042 85.8178 21.4322C86.7686 19.9328 88.2315 18.0311 89.548 17.0436C90.6086 16.2391 92.0349 16.1294 92.9492 17.0436C93.6441 17.8116 93.9001 18.8722 93.9732 19.8596C94.1195 21.2128 93.9732 22.5659 93.7538 23.8825C93.4246 25.6745 92.9492 27.3202 92.3641 29.1854L91.5229 31.8916C91.4863 32.0379 91.5961 32.0745 91.7423 32.1111C92.2543 32.1842 94.0463 31.9282 94.2292 31.3431C94.9606 29.1488 95.3995 27.4299 96.3503 25.2356C97.0818 23.5168 97.9229 21.7979 98.9103 20.2254C100.3 18.0676 103.299 15.5076 104.945 17.0436Z",fill:"url(#paint4_linear_3809_68339)"}),A.createElement("path",{d:"M123.304 27.7225C121.292 29.4779 118.805 31.3065 115.989 31.0505C114.271 30.9042 112.808 29.8802 112.186 28.2711C110.723 24.3579 115.185 19.4208 118.184 17.5922C120.159 16.3488 123.889 16.2025 123.743 19.3842C123.56 23.4071 118.074 24.6505 115.002 25.0162C114.38 25.0894 112.003 26.1865 113.795 25.9671C118.037 25.4916 125.279 24.1751 126.449 19.0916C127.546 14.2642 120.085 15.8734 117.891 16.7511C113.612 18.3968 106.627 25.3088 110.065 30.1728C111.455 32.1476 114.234 32.2574 116.355 31.9648C119.903 31.5259 123.121 29.7339 125.791 27.4299C126.266 26.9911 123.779 27.3202 123.304 27.7225Z",fill:"url(#paint5_linear_3809_68339)"}),A.createElement("defs",null,A.createElement("linearGradient",{id:"paint0_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint1_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint2_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint3_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint4_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint5_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})))),uQ=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e},A.createElement("g",null,A.createElement("path",{d:"M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z"}),A.createElement("path",{d:"M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z"}),A.createElement("path",{d:"M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34A21.991 21.991 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z"}),A.createElement("path",{d:"M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z"}))),dQ=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:98.36,height:40,viewBox:"0 0 98.36 40",...e},A.createElement("path",{fill:"#0058ab",d:"M98.36 40H0V0h98.36v40Z"}),A.createElement("path",{fill:"#fbd914",d:"M1.92 20c0 9.66 19.81 17.67 47.26 17.67S96.44 29.66 96.44 20 76.63 2.33 49.18 2.33 1.92 10.34 1.92 20Z"}),A.createElement("path",{fill:"#0058ab",d:"M46.39 25.67c.29.43.63.83 1.04 1.25H36.79c0-.42-.4-1.28-.86-1.96l-2.9-4.38v5.09c0 .42 0 .83.21 1.25h-8.87c.21-.42.21-.83.21-1.25v-12.1c0-.42 0-.83-.21-1.25h8.87c-.21.42-.21.83-.21 1.25v5.28s2.84-3.68 3.48-4.55c.49-.66 1.11-1.57 1.11-1.98h9.24c-.64.42-1.34 1.19-1.92 1.89l-3.39 4.13 4.82 7.33Zm2.79-12.1v12.1c0 .42 0 .83-.21 1.25h17.11v-4.05c-.42.21-.83.21-1.25.21h-7.2v-1.92h6.92v-3.07h-6.92v-1.92h7.2c.42 0 .83 0 1.25.2v-4.05H48.97c.21.42.21.83.21 1.25Zm40.63 12.09c.16.42.32.84.69 1.26h-9.28c.05-.42-.12-.83-.28-1.25l-.33-.84-.08-.22h-5.34l-.08.22-.3.84c-.15.42-.3.83-.24 1.25h-7.32c.36-.42.51-.83.66-1.25l4.39-12.1c.15-.42.3-.83.25-1.25h12.36c-.11.42.11.83.27 1.25l4.63 12.09Zm-10.47-4.12-1.29-3.38a9.4 9.4 0 0 1-.29-.96s-.1.54-.25.96l-1.23 3.38h3.05Zm-59.15-9.22h-9.64c.21.42.21.83.21 1.25v12.1c0 .42 0 .83-.21 1.25h9.64c-.21-.42-.21-.83-.21-1.25v-12.1c0-.42 0-.83.21-1.25Zm66.64 1.15c0-1.12.81-1.92 1.92-1.92s1.92.81 1.92 1.92-.81 1.92-1.92 1.92-1.92-.81-1.92-1.92Zm.39 0c0 .85.64 1.54 1.54 1.54.85 0 1.54-.64 1.54-1.54 0-.85-.64-1.54-1.54-1.54s-1.54.64-1.54 1.54Zm1.15 1.15h-.34v-2.3h.86c.4 0 .72.35.72.75 0 .28-.17.56-.41.67l.5.89h-.38l-.46-.81h-.5v.81Zm0-1.15h.47c.24 0 .43-.17.43-.41s-.19-.41-.43-.41h-.47v.81Z"})),Jke=e=>A.createElement("svg",{width:87,height:22,viewBox:"0 0 87 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("path",{d:"M20.227 6.9772C20.8627 3.67692 19.1349 0.197266 15.3536 0.197266H9.45329L8.47534 5.23738H12.925C13.8377 5.23738 14.4082 6.06245 14.2126 7.04895C14.017 8.05338 13.1369 8.82464 12.2241 8.82464H7.72559L13.7562 21.0931H20.064L15.9892 12.8603C17.0813 12.2146 19.5587 10.403 20.227 6.9772Z",fill:"#6CBB86"}),A.createElement("path",{d:"M1.04314 15.6945L0 21.1112H5.3787L7.72577 8.84277C4.44965 8.96833 1.8744 11.3718 1.04314 15.6945Z",fill:"#6CBB86"}),A.createElement("path",{d:"M4.58026 5.56026C5.98198 5.56026 7.12291 4.32266 7.12291 2.78013C7.12291 1.23761 5.98198 0 4.58026 0C3.17853 0 2.0376 1.23761 2.0376 2.78013C2.0376 4.30472 3.17853 5.56026 4.58026 5.56026Z",fill:"#6CBB86"}),A.createElement("path",{d:"M82.2616 0.197266H77.1763L74.5684 13.8468C73.8024 17.8466 76.3939 21.5415 82.4572 21.5415C82.5061 21.5415 82.6039 21.5236 82.6039 21.5236L83.6307 16.1785C81.7074 16.5014 79.2463 15.7122 79.6863 13.4163L80.3383 10.0084H84.8205L85.7496 5.21944H81.2673L82.2616 0.197266Z",fill:"#6CBB86"}),A.createElement("path",{d:"M50.1036 13.4343C49.7124 15.4432 48.2129 16.8422 46.094 16.8422C43.9751 16.8422 43.1438 15.3714 43.5513 13.2908C43.9588 11.2281 45.3116 10.0264 47.4305 10.0264C49.5331 10.0264 50.4947 11.4254 50.1036 13.4343ZM48.3107 5.32706C47.3001 5.32706 45.5561 5.61404 44.9693 5.95483L46.0777 0.197266H41.0087L38.4497 13.4343C37.537 18.1157 40.4219 21.5594 45.2138 21.5594C50.5599 21.5594 54.1131 19.0304 55.1237 13.793C56.0853 8.73496 52.6951 5.32706 48.3107 5.32706Z",fill:"#6CBB86"}),A.createElement("path",{d:"M68.1628 13.4344C67.7717 15.4432 66.321 16.8423 64.2022 16.8423C62.0833 16.8423 61.1705 15.4612 61.578 13.3806C61.9855 11.3179 63.4035 10.0265 65.5224 10.0265C67.625 10.0265 68.554 11.4255 68.1628 13.4344ZM66.4188 5.32715C61.6269 5.32715 57.4706 8.43013 56.509 13.4523C55.5473 18.4565 58.5138 21.5775 63.1916 21.5775C68.9289 21.5775 72.2865 18.4565 73.2318 13.4523C74.1935 8.43013 71.2108 5.32715 66.4188 5.32715Z",fill:"#6CBB86"}),A.createElement("path",{d:"M31.9463 13.4344C31.5552 15.4432 30.1045 16.8423 27.9857 16.8423C25.8668 16.8423 24.954 15.4612 25.3615 13.3806C25.769 11.3179 27.187 10.0265 29.3059 10.0265C31.4085 10.0265 32.3375 11.4255 31.9463 13.4344ZM30.2186 5.32715C25.4267 5.32715 21.2704 8.43013 20.3088 13.4523C19.3471 18.4565 22.3136 21.5775 26.9914 21.5775C32.7287 21.5775 36.0863 18.4565 37.0317 13.4523C37.977 8.43013 35.0106 5.32715 30.2186 5.32715Z",fill:"#6CBB86"}),A.createElement("path",{d:"M84.9833 1.14786H84.7388V1.63214H84.9833C85.1789 1.63214 85.2604 1.54246 85.2604 1.38103C85.2604 1.27341 85.2115 1.14786 84.9833 1.14786ZM85.5864 2.4034H85.3419L84.9344 1.82944H84.7225V2.4034H84.5106V0.950558H84.9833C85.3419 0.950558 85.4723 1.18373 85.4723 1.38103C85.4723 1.6142 85.3419 1.75769 85.1463 1.79357L85.5864 2.4034ZM84.967 2.76213C85.5049 2.76213 85.9449 2.27785 85.9449 1.68595C85.9449 1.09405 85.5049 0.609767 84.967 0.609767C84.4291 0.609767 83.989 1.09405 83.989 1.68595C83.989 2.27785 84.4291 2.76213 84.967 2.76213ZM84.967 0.394531C85.6027 0.394531 86.1405 0.98643 86.1405 1.68595C86.1405 2.4034 85.619 2.97736 84.967 2.97736C84.315 2.97736 83.7935 2.4034 83.7935 1.68595C83.7935 0.98643 84.315 0.394531 84.967 0.394531Z",fill:"#6CBB86"})),Zke=e=>A.createElement("svg",{width:225,height:99,viewBox:"0 0 225 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{clipPath:"url(#clip0_415_130964)"},A.createElement("path",{d:"M134.874 68.7831H165.274V81.2487H120.202V17.2373H134.874V68.7831Z",fill:"#707070"}),A.createElement("path",{d:"M197.534 56.8451H209.482V68.0462C207.288 68.8892 202.987 69.7323 198.905 69.7323C185.694 69.7323 181.301 62.9711 181.301 49.241C181.301 36.1374 185.483 28.4265 198.682 28.4265C206.039 28.4265 210.213 30.7533 213.675 35.1904L222.802 26.7376C217.227 18.726 207.5 16.2981 198.365 16.2981C177.83 16.2897 167.033 27.5807 167.033 49.1314C167.033 70.5753 176.79 82.2007 198.256 82.2007C208.113 82.2007 217.748 79.6716 222.992 75.9651V44.9078H197.534V56.8451Z",fill:"#707070"}),A.createElement("path",{d:"M83.831 84.5045C103.008 65.1736 103.007 33.831 83.829 14.499C64.6508 -4.83307 33.5576 -4.83396 14.3805 14.497C-4.79664 33.8279 -4.79576 65.1705 14.3825 84.5025C33.5607 103.835 64.6538 103.835 83.831 84.5045Z",fill:"#A50034"}),A.createElement("path",{d:"M61.1184 66.6079H51.0826V28.5984H47.3721V70.3594H51.0909V70.3341H61.1268L61.1184 66.6079Z",fill:"white"}),A.createElement("path",{d:"M86.1485 51.0737H61.1759V47.3447H89.8088C89.8479 48.0669 89.8674 48.7891 89.8674 49.5198C89.8674 71.9725 71.7136 90.1707 49.3252 90.1707C26.9368 90.1707 8.78027 71.9809 8.78027 49.5169C8.78027 27.053 26.9313 8.86597 49.3224 8.86597C49.9134 8.86597 50.5016 8.87814 51.0871 8.9025V12.6034C50.5016 12.5772 49.9153 12.5641 49.328 12.5641C28.9775 12.5641 12.474 29.11 12.474 49.5169C12.474 69.9239 28.9747 86.4726 49.328 86.4726C69.121 86.4726 85.2899 70.8175 86.1457 51.1777L86.1485 51.0737Z",fill:"white"}),A.createElement("path",{d:"M34.2066 39.8496C35.3263 39.8441 36.4193 39.5043 37.3476 38.8732C38.276 38.2421 38.9981 37.3479 39.4227 36.3036C39.8474 35.2592 39.9557 34.1114 39.7339 33.005C39.5121 31.8987 38.9701 30.8834 38.1764 30.0872C37.3827 29.2911 36.3728 28.7497 35.2742 28.5316C34.1756 28.3134 33.0374 28.4282 32.0035 28.8614C30.9695 29.2946 30.086 30.0268 29.4645 30.9657C28.8429 31.9046 28.5112 33.008 28.5112 34.1367C28.5131 34.8888 28.6618 35.6331 28.949 36.3273C29.2362 37.0214 29.6563 37.6517 30.1851 38.1822C30.714 38.7127 31.3413 39.133 32.0313 39.4191C32.7213 39.7052 33.4605 39.8515 34.2066 39.8496Z",fill:"white"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0_415_130964"},A.createElement("rect",{width:223,height:99,fill:"white"})))),Xke=e=>A.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("title",null,"Lidl"),A.createElement("path",{d:"M0 0v24h24V0zm.209.209h23.582v23.582H.209zm11.789.625C5.83.834.83 5.834.83 12.002c0 6.168 5 11.168 11.168 11.168 6.167 0 11.167-5 11.168-11.166C23.165 5.837 18.166.837 12 .834zm.002.709c5.777 0 10.46 4.682 10.46 10.459v.004c-.004 5.773-4.686 10.452-10.46 10.453-5.777 0-10.46-4.68-10.46-10.457C1.54 6.225 6.222 1.543 12 1.543zM9.229 7.85c-.645 0-1.166.521-1.166 1.166v.004c0 1.044 1.261 1.567 1.999.829.738-.738.215-2-.829-1.999zM2.73 10.059v.71h.551v2.465h-.55v.713h4.644v-.65l.537-.54 1.486 1.491-.55.547.357.36 2.973-2.977v-.713l-.826.83-1.848-1.848-2.129 2.133v-.576l-1.904 1.06V10.77h.549v-.711zm8.905 0v.71h.549v2.465h-.555v.713h3.129c2.325 0 2.355-3.888.008-3.888zm4.963 0v.71h.55v2.465h-.55v.713h4.648v-1.943l-1.906 1.06V10.77h.55v-.711zm-2.43 1.21h.133c.687 0 .685 1.461.023 1.461h-.156v-1.46z"})),fQ=e=>A.createElement("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80.2 14.3",...e},A.createElement("defs",null,A.createElement("style",null,`
|
|
198
|
+
`:null,y6e=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${ve(r)}`,n],dashed:["dashed",`dashedColor${ve(r)}`],bar1:["bar","bar1",`barColor${ve(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ve(r)}`,n==="buffer"&&`color${ve(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return nt(i,h6e,t)},HO=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),b6e=ge("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ve(n.color)}`],t[n.variant]]}})(Ye(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{backgroundColor:HO(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),v6e=ge("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ve(n.color)}`]]}})(Ye(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Gn()).map(([t])=>{const n=HO(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),g6e||{animation:`${PD} 3s infinite linear`}),x6e=ge("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ve(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${jD}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${jD}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:p6e||{animation:`${RD} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),S6e=ge("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ve(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:HO(e,t),transition:`transform .${jD}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:m6e||{animation:`${ID} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),UO=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:a,variant:l="indeterminate",...c}=r,u={...r,color:o,variant:l},d=y6e(u),p=Lc(),g={},y={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let b=s-100;p&&(b=-b),y.bar1.transform=`translateX(${b}%)`}if(l==="buffer"&&a!==void 0){let b=(a||0)-100;p&&(b=-b),y.bar2.transform=`translateX(${b}%)`}return h.jsxs(b6e,{className:_e(d.root,i),ownerState:u,role:"progressbar",...g,ref:n,...c,children:[l==="buffer"?h.jsx(v6e,{className:d.dashed,ownerState:u}):null,h.jsx(x6e,{className:d.bar1,ownerState:u,style:y.bar1}),l==="determinate"?null:h.jsx(S6e,{className:d.bar2,ownerState:u,style:y.bar2})]})}),Wt=e5e({createStyledComponent:ge("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ct({props:e,name:"MuiStack"})});function Mr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,s=i?{}:p4(n,r),{props:a,internalRef:l}=QZ({...o,externalSlotProps:s}),c=Br(l,s?.ref,e.additionalProps?.ref);return XZ(t,{...a,ref:c},r)}const w6e=Ee(h.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),C6e=ge(ss,{name:"MuiBreadcrumbCollapsed"})(Ye(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:yb(e.palette.grey[200],.12)}:{backgroundColor:yb(e.palette.grey[600],.12)}}}))),k6e=ge(w6e)({width:24,height:16});function E6e(e){const{slots:t={},slotProps:n={},...r}=e,i=e;return h.jsx("li",{children:h.jsx(C6e,{focusRipple:!0,...r,ownerState:i,children:h.jsx(k6e,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function A6e(e){return tt("MuiBreadcrumbs",e)}const D6e=st("MuiBreadcrumbs",["root","ol","li","separator"]),_6e=e=>{const{classes:t}=e;return nt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},A6e,t)},T6e=ge(re,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${D6e.li}`]:t.li},t.root]})({}),O6e=ge("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),M6e=ge("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function j6e(e,t,n,r){return e.reduce((i,o,s)=>(s<e.length-1?i=i.concat(o,h.jsx(M6e,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):i.push(o),i),[])}const R6e=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiBreadcrumbs"}),{children:i,className:o,component:s="nav",slots:a={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:d=1,maxItems:p=8,separator:g="/",...y}=r,[b,v]=A.useState(!1),S={...r,component:s,expanded:b,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:d,maxItems:p,separator:g},C=_6e(S),w=Mr({elementType:a.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:S}),E=A.useRef(null),k=_=>{const O=()=>{v(!0);const R=E.current.querySelector("a[href],button,[tabindex]");R&&R.focus()};return d+u>=_.length?_:[..._.slice(0,d),h.jsx(E6e,{"aria-label":c,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:O},"ellipsis"),..._.slice(_.length-u,_.length)]},T=A.Children.toArray(i).filter(_=>A.isValidElement(_)).map((_,O)=>h.jsx("li",{className:C.li,children:_},`child-${O}`));return h.jsx(T6e,{ref:n,component:s,color:"textSecondary",className:_e(C.root,o),ownerState:S,...y,children:h.jsx(O6e,{className:C.ol,ref:E,ownerState:S,children:j6e(b||p&&T.length<=p?T:k(T),C.separator,g,S)})})});function I6e(e){return tt("MuiLink",e)}const P6e=st("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),N6e=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const o=Jl(e,`palette.${n}.main`)||Jl(e,`palette.${n}`)||t.color;return e.alpha(o,.4)}const r=Jl(e,`palette.${n}.main`,!1)||Jl(e,`palette.${n}`,!1)||t.color,i=Jl(e,`palette.${n}.mainChannel`)||Jl(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:lc(r,.4)},Qz={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},$6e=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ve(i)}`,n==="button"&&"button",r&&"focusVisible"]};return nt(o,I6e,t)},L6e=ge(re,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ve(n.underline)}`],n.component==="button"&&t.button]}})(Ye(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${P6e.focusVisible}`]:{outline:"auto"}}}]}))),V2=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiLink"}),i=Ki(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:p="inherit",sx:g,...y}=r,[b,v]=A.useState(!1),S=k=>{mf(k.target)||v(!1),l&&l(k)},C=k=>{mf(k.target)&&v(!0),c&&c(k)},w={...r,color:s,component:a,focusVisible:b,underline:d,variant:p},E=$6e(w);return h.jsx(L6e,{color:s,className:_e(E.root,o),classes:u,component:a,onBlur:S,onFocus:C,ref:n,ownerState:w,variant:p,...y,sx:[...Qz[s]===void 0?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...d==="always"&&s!=="inherit"&&!Qz[s]&&{"--Link-underlineColor":N6e({theme:i,ownerState:w})}}})}),F6e=({name:e,to:t})=>h.jsx(V2,{color:"inherit",underline:"hover",component:Oc,to:t,children:e}),W2=({items:e})=>h.jsx(R6e,{separator:"›",children:e.map((t,n)=>h.jsx(F6e,{...t},n.toString()))});function Fc(){return{show:A.useContext(iX).show}}const z6e={apple_home:"🍏",google_home:"🏠",alexa:"🔵",multi_controller:"🔀"},B6e={light:"💡",switch:"🔌",sensor:"📊",binary_sensor:"📊",climate:"🌡️",cover:"🪟",fan:"🌬️",lock:"🔒",media_player:"🎵",vacuum:"🤖",valve:"🚰",humidifier:"💧"},H6e=()=>{const{t:e}=en(),t=$c(),n=Fc(),r=Rs(),[i,o]=A.useState([]),[s,a]=A.useState(!0),[l,c]=A.useState(new Set),[u,d]=A.useState(),[p,g]=A.useState(!1),[y,b]=A.useState(0),[v,S]=A.useState([]);A.useEffect(()=>{(async()=>{try{const _=await fetch("api/matter/areas/summary");if(_.ok){const O=await _.json();o(O.filter(R=>R.entityCount>0))}}catch{n.show({message:e("areaSetup.loadFailed"),severity:"error"})}finally{a(!1)}})()},[n,e]);const C=A.useCallback(T=>{c(_=>{const O=new Set(_);return O.has(T)?O.delete(T):O.add(T),O})},[]),w=A.useCallback(()=>{c(new Set(i.map(T=>T.area_id)))},[i]),E=A.useCallback(()=>{c(new Set)},[]),k=A.useCallback(async()=>{if(l.size===0)return;g(!0),b(0),S([]);const T=i.filter(M=>l.has(M.area_id)),_=[];let O;try{const M=await fetch("api/matter/next-port");M.ok&&(O=await M.json())}catch{}let R=O?.port??5540;for(let M=0;M<T.length;M++){const N=T[M];b((M+1)/T.length*100);const $={autoBatteryMapping:!0,autoHumidityMapping:!0,autoPressureMapping:!0,...u?.featureFlags??{}},B={name:N.name,port:R++,filter:{include:[{type:Tr.Area,value:N.area_id}],exclude:[]},featureFlags:$};try{await zO(B),_.push({area:N.name,success:!0})}catch(F){_.push({area:N.name,success:!1,error:F instanceof Error?F.message:e("areaSetup.unknownError")})}}S(_),g(!1),r(Lo());const P=_.filter(M=>M.success).length,L=_.filter(M=>!M.success).length;L===0?n.show({message:e("areaSetup.createdSuccess",{count:P}),severity:"success"}):n.show({message:e("areaSetup.createdPartial",{succeeded:P,failed:L}),severity:"warning"})},[l,i,u,r,n,e]);return s?h.jsx(se,{display:"flex",justifyContent:"center",p:4,children:h.jsx(Xn,{})}):h.jsxs(Wt,{spacing:3,children:[h.jsx(W2,{items:[{name:e("nav.bridges"),to:Mt.bridges},{name:e("areaSetup.title"),to:Mt.areaSetup}]}),h.jsx(re,{variant:"h5",children:e("areaSetup.heading")}),h.jsx(re,{variant:"body2",color:"text.secondary",children:e("areaSetup.description")}),i.length===0?h.jsx(zt,{severity:"info",children:e("areaSetup.noAreas")}):h.jsxs(h.Fragment,{children:[h.jsxs(se,{children:[h.jsx(re,{variant:"subtitle1",fontWeight:600,gutterBottom:!0,children:e("areaSetup.selectController")}),h.jsx(ht,{container:!0,spacing:1.5,children:PX.map(T=>{const _=u?.id===T.id;return h.jsx(ht,{size:{xs:6,sm:3},children:h.jsx(Mn,{variant:"outlined",sx:{borderColor:_?"primary.main":"divider",borderWidth:_?2:1,bgcolor:_?"action.selected":"background.paper",transition:"all 0.15s ease"},children:h.jsx(zu,{onClick:()=>d(_?void 0:T),children:h.jsx(Qn,{sx:{p:1.5,"&:last-child":{pb:1.5}},children:h.jsxs(se,{display:"flex",alignItems:"center",gap:.5,children:[h.jsx(re,{fontSize:18,children:z6e[T.id]??"🏠"}),h.jsx(re,{variant:"body2",fontWeight:500,children:T.name}),_&&h.jsx(Za,{color:"primary",sx:{fontSize:16,ml:"auto"}})]})})})})},T.id)})})]}),h.jsxs(se,{children:[h.jsxs(se,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,children:[h.jsx(re,{variant:"subtitle1",fontWeight:600,children:e("areaSetup.selectAreas",{selected:l.size,total:i.length})}),h.jsxs(se,{display:"flex",gap:1,children:[h.jsx(Ue,{size:"small",onClick:w,children:e("common.all")}),h.jsx(Ue,{size:"small",onClick:E,children:e("areaSetup.clear")})]})]}),h.jsx(ht,{container:!0,spacing:1,children:i.map(T=>{const _=l.has(T.area_id),O=Object.entries(T.domains).sort(([,R],[,P])=>P-R).slice(0,4);return h.jsx(ht,{size:{xs:12,sm:6,md:4},children:h.jsx(Mn,{variant:"outlined",sx:{borderColor:_?"primary.main":"divider",borderWidth:_?2:1,bgcolor:_?"action.selected":"background.paper",transition:"all 0.15s ease"},children:h.jsx(zu,{onClick:()=>C(T.area_id),sx:{p:0,display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start"},children:h.jsxs(Qn,{sx:{p:1.5,"&:last-child":{pb:1.5},width:"100%"},children:[h.jsxs(se,{display:"flex",alignItems:"center",gap:1,children:[h.jsx(Ro,{control:h.jsx(ws,{checked:_,size:"small",sx:{p:.5}}),label:"",sx:{m:0,mr:-.5}}),h.jsx(re,{variant:"subtitle2",sx:{flexGrow:1},children:T.name}),h.jsx(ot,{label:`${T.entityCount}`,size:"small",sx:{fontSize:"0.7rem",height:20}})]}),h.jsx(se,{display:"flex",gap:.5,flexWrap:"wrap",mt:.5,ml:4,children:O.map(([R,P])=>h.jsx(ot,{label:`${B6e[R]??""} ${R} (${P})`,size:"small",variant:"outlined",sx:{fontSize:"0.6rem",height:18}},R))})]})})})},T.area_id)})})]}),h.jsxs(se,{display:"flex",gap:2,alignItems:"center",children:[h.jsx(Ue,{onClick:()=>t(Mt.bridges),startIcon:h.jsx(NX,{}),disabled:p,children:e("common.back")}),h.jsx(se,{sx:{flex:1}}),h.jsx(Ue,{variant:"contained",onClick:k,startIcon:p?h.jsx(Xn,{size:16}):h.jsx(c0,{}),disabled:l.size===0||p,children:p?e("areaSetup.creating"):e("areaSetup.createBridges",{count:l.size})})]}),p&&h.jsx(UO,{variant:"determinate",value:y}),v.length>0&&h.jsxs(se,{children:[h.jsx(re,{variant:"subtitle2",gutterBottom:!0,children:e("areaSetup.results")}),v.map(T=>h.jsxs(zt,{severity:T.success?"success":"error",sx:{mb:.5},children:[T.area,": ",T.success?e("areaSetup.created"):T.error]},T.area)),h.jsx(Ue,{variant:"outlined",onClick:()=>t(Mt.bridges),sx:{mt:1},children:e("areaSetup.goToBridges")})]})]})]})},VO=Ee(h.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),u0=Ee(h.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function U6e(e){return tt("MuiAlertTitle",e)}st("MuiAlertTitle",["root"]);const V6e=e=>{const{classes:t}=e;return nt({root:["root"]},U6e,t)},W6e=ge(re,{name:"MuiAlertTitle",slot:"Root"})(Ye(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Cb=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiAlertTitle"}),{className:i,...o}=r,s=r,a=V6e(s);return h.jsx(W6e,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:_e(a.root,i),...o})});function q6e(e){return tt("MuiCollapse",e)}st("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const K6e=e=>{const{orientation:t,classes:n}=e;return nt({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},q6e,n)},G6e=ge("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ye(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Y6e=ge("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),J6e=ge("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),is=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:g,onExit:y,onExited:b,onExiting:v,orientation:S="vertical",slots:C={},slotProps:w={},style:E,timeout:k=qZ.standard,TransitionComponent:T=Ja,..._}=r,O={...r,orientation:S,collapsedSize:a},R=K6e(O),P=Ki(),L=Kd(),M=A.useRef(null),N=A.useRef(),$=typeof a=="number"?`${a}px`:a,B=S==="horizontal",F=B?"width":"height",V=A.useRef(null),W=Br(n,V),q=fe=>ye=>{if(fe){const Me=V.current;ye===void 0?fe(Me):fe(Me,ye)}},Z=()=>M.current?M.current[B?"clientWidth":"clientHeight"]:0,z=q((fe,ye)=>{M.current&&B&&(M.current.style.position="absolute"),fe.style[F]=$,d&&d(fe,ye)}),U=q((fe,ye)=>{const Me=Z();M.current&&B&&(M.current.style.position="");const{duration:ue,easing:we}=gf({style:E,timeout:k,easing:c},{mode:"enter"});if(k==="auto"){const Oe=P.transitions.getAutoHeightDuration(Me);fe.style.transitionDuration=`${Oe}ms`,N.current=Oe}else fe.style.transitionDuration=typeof ue=="string"?ue:`${ue}ms`;fe.style[F]=`${Me}px`,fe.style.transitionTimingFunction=we,g&&g(fe,ye)}),Y=q((fe,ye)=>{fe.style[F]="auto",p&&p(fe,ye)}),H=q(fe=>{fe.style[F]=`${Z()}px`,y&&y(fe)}),K=q(b),Q=q(fe=>{const ye=Z(),{duration:Me,easing:ue}=gf({style:E,timeout:k,easing:c},{mode:"exit"});if(k==="auto"){const we=P.transitions.getAutoHeightDuration(ye);fe.style.transitionDuration=`${we}ms`,N.current=we}else fe.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;fe.style[F]=$,fe.style.transitionTimingFunction=ue,v&&v(fe)}),ie=fe=>{k==="auto"&&L.start(N.current||0,fe),i&&i(V.current,fe)},te={slots:C,slotProps:w,component:l},[ce,ee]=ft("root",{ref:W,className:_e(R.root,s),elementType:G6e,externalForwardedProps:te,ownerState:O,additionalProps:{style:{[B?"minWidth":"minHeight"]:$,...E}}}),[J,X]=ft("wrapper",{ref:M,className:R.wrapper,elementType:Y6e,externalForwardedProps:te,ownerState:O}),[oe,le]=ft("wrapperInner",{className:R.wrapperInner,elementType:J6e,externalForwardedProps:te,ownerState:O});return h.jsx(T,{in:u,onEnter:z,onEntered:Y,onEntering:U,onExit:H,onExited:K,onExiting:Q,addEndListener:ie,nodeRef:V,timeout:k==="auto"?null:k,..._,children:(fe,{ownerState:ye,...Me})=>{const ue={...O,state:fe};return h.jsx(ce,{...ee,className:_e(ee.className,{entered:R.entered,exited:!u&&$==="0px"&&R.hidden}[fe]),ownerState:ue,...Me,children:h.jsx(J,{...X,ownerState:ue,children:h.jsx(oe,{...le,ownerState:ue,children:o})})})}})});is&&(is.muiSupportAuto=!0);const gl=A.createContext({});function Z6e(e){return tt("MuiList",e)}st("MuiList",["root","padding","dense","subheader"]);const X6e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return nt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Z6e,t)},Q6e=ge("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Fo=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=A.useMemo(()=>({dense:a}),[a]),p={...r,component:s,dense:a,disablePadding:l},g=X6e(p);return h.jsx(gl.Provider,{value:d,children:h.jsxs(Q6e,{as:s,className:_e(g.root,o),ref:n,ownerState:p,...u,children:[c,i]})})});function eCe(e){return tt("MuiListItem",e)}st("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tCe(e){return tt("MuiListItemButton",e)}const Mm=st("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nCe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rCe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,c=nt({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},tCe,n);return{...n,...c}},iCe=ge(ss,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nCe})(Ye(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Mm.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Mm.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Mm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),oCe=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:p=!1,className:g,...y}=r,b=A.useContext(gl),v=A.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),S=A.useRef(null);Bo(()=>{o&&S.current&&S.current.focus()},[o]);const C={...r,alignItems:i,dense:v.dense,disableGutters:c,divider:u,selected:p},w=rCe(C),E=Br(S,n);return h.jsx(gl.Provider,{value:v,children:h.jsx(iCe,{ref:E,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:_e(w.focusVisible,d),ownerState:C,className:_e(w.root,g),...y,classes:w,children:a})})});function sCe(e){return tt("MuiListItemSecondaryAction",e)}st("MuiListItemSecondaryAction",["root","disableGutters"]);const aCe=e=>{const{disableGutters:t,classes:n}=e;return nt({root:["root",t&&"disableGutters"]},sCe,n)},lCe=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),WO=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,s=A.useContext(gl),a={...r,disableGutters:s.disableGutters},l=aCe(a);return h.jsx(lCe,{className:_e(l.root,i),ownerState:a,ref:n,...o})});WO.muiName="ListItemSecondaryAction";const cCe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},uCe=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return nt({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},eCe,n)},dCe=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:cCe})(Ye(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Mm.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),fCe=ge("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Es=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...p}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:v=!1,secondaryAction:S,slotProps:C={},slots:w={},...E}=r,k=A.useContext(gl),T=A.useMemo(()=>({dense:g||k.dense||!1,alignItems:i,disableGutters:y}),[i,k.dense,g,y]),_=A.useRef(null),O=A.Children.toArray(o),R=O.length&&Ty(O[O.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:i,dense:T.dense,disableGutters:y,disablePadding:b,divider:v,hasSecondaryAction:R},L=uCe(P),M=Br(_,n),N={slots:w,slotProps:C},[$,B]=ft("secondaryAction",{elementType:WO,externalForwardedProps:N,ownerState:P,className:L.secondaryAction}),F=w.root||l.Root||dCe,V=C.root||c.root||{},W={className:_e(L.root,V.className,s),...E};let q=a||"li";return R?(q=!W.component&&!a?"div":q,u==="li"&&(q==="li"?q="div":W.component==="li"&&(W.component="div")),h.jsx(gl.Provider,{value:T,children:h.jsxs(fCe,{as:u,className:_e(L.container,d),ref:M,ownerState:P,...p,children:[h.jsx(F,{...V,...!wc(F)&&{as:q,ownerState:{...P,...V.ownerState}},...W,children:O}),O.pop()]})})):h.jsx(gl.Provider,{value:T,children:h.jsxs(F,{...V,as:q,ref:M,...!wc(F)&&{ownerState:{...P,...V.ownerState}},...W,children:[O,S&&h.jsx($,{...B,children:S})]})})});function hCe(e){return tt("MuiListItemIcon",e)}const eB=st("MuiListItemIcon",["root","alignItemsFlexStart"]),pCe=e=>{const{alignItems:t,classes:n}=e;return nt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hCe,n)},mCe=ge("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ye(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Io=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,s=A.useContext(gl),a={...r,alignItems:s.alignItems},l=pCe(a);return h.jsx(mCe,{className:_e(l.root,i),ownerState:a,ref:n,...o})});function gCe(e){return tt("MuiListItemText",e)}const $m=st("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yCe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return nt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gCe,t)},bCe=ge("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$m.primary}`]:t.primary},{[`& .${$m.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Zz.root}:where(& .${$m.primary})`]:{display:"block"},[`.${Zz.root}:where(& .${$m.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ao=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:p={},slotProps:g={},...y}=r,{dense:b}=A.useContext(gl);let v=l??i,S=u;const C={...r,disableTypography:s,inset:a,primary:!!v,secondary:!!S,dense:b},w=yCe(C),E={slots:p,slotProps:{primary:c,secondary:d,...g}},[k,T]=ft("root",{className:_e(w.root,o),elementType:bCe,externalForwardedProps:{...E,...y},ownerState:C,ref:n}),[_,O]=ft("primary",{className:w.primary,elementType:re,externalForwardedProps:E,ownerState:C}),[R,P]=ft("secondary",{className:w.secondary,elementType:re,externalForwardedProps:E,ownerState:C});return v!=null&&v.type!==re&&!s&&(v=h.jsx(_,{variant:b?"body2":"body1",component:O?.variant?void 0:"span",...O,children:v})),S!=null&&S.type!==re&&!s&&(S=h.jsx(R,{variant:"body2",color:"textSecondary",...P,children:S})),h.jsxs(k,{...T,children:[v,S]})});var As="top",Fa="bottom",za="right",Ds="left",qO="auto",q2=[As,Fa,za,Ds],Dg="start",kb="end",vCe="clippingParents",LX="viewport",I1="popper",xCe="reference",tB=q2.reduce(function(e,t){return e.concat([t+"-"+Dg,t+"-"+kb])},[]),FX=[].concat(q2,[qO]).reduce(function(e,t){return e.concat([t,t+"-"+Dg,t+"-"+kb])},[]),SCe="beforeRead",wCe="read",CCe="afterRead",kCe="beforeMain",ECe="main",ACe="afterMain",DCe="beforeWrite",_Ce="write",TCe="afterWrite",OCe=[SCe,wCe,CCe,kCe,ECe,ACe,DCe,_Ce,TCe];function Mc(e){return e?(e.nodeName||"").toLowerCase():null}function sa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zh(e){var t=sa(e).Element;return e instanceof t||e instanceof Element}function Ra(e){var t=sa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function KO(e){if(typeof ShadowRoot>"u")return!1;var t=sa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function MCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ra(o)||!Mc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function jCe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!Ra(i)||!Mc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const RCe={name:"applyStyles",enabled:!0,phase:"write",fn:MCe,effect:jCe,requires:["computeStyles"]};function Cc(e){return e.split("-")[0]}var Hh=Math.max,T4=Math.min,_g=Math.round;function ND(){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 zX(){return!/^((?!chrome|android).)*safari/i.test(ND())}function Tg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ra(e)&&(i=e.offsetWidth>0&&_g(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&_g(r.height)/e.offsetHeight||1);var s=Zh(e)?sa(e):window,a=s.visualViewport,l=!zX()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function GO(e){var t=Tg(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 BX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&KO(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Bu(e){return sa(e).getComputedStyle(e)}function ICe(e){return["table","td","th"].indexOf(Mc(e))>=0}function Pf(e){return((Zh(e)?e.ownerDocument:e.document)||window.document).documentElement}function W6(e){return Mc(e)==="html"?e:e.assignedSlot||e.parentNode||(KO(e)?e.host:null)||Pf(e)}function nB(e){return!Ra(e)||Bu(e).position==="fixed"?null:e.offsetParent}function PCe(e){var t=/firefox/i.test(ND()),n=/Trident/i.test(ND());if(n&&Ra(e)){var r=Bu(e);if(r.position==="fixed")return null}var i=W6(e);for(KO(i)&&(i=i.host);Ra(i)&&["html","body"].indexOf(Mc(i))<0;){var o=Bu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function K2(e){for(var t=sa(e),n=nB(e);n&&ICe(n)&&Bu(n).position==="static";)n=nB(n);return n&&(Mc(n)==="html"||Mc(n)==="body"&&Bu(n).position==="static")?t:n||PCe(e)||t}function YO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jy(e,t,n){return Hh(e,T4(t,n))}function NCe(e,t,n){var r=jy(e,t,n);return r>n?n:r}function HX(){return{top:0,right:0,bottom:0,left:0}}function UX(e){return Object.assign({},HX(),e)}function VX(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $Ce=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,UX(typeof t!="number"?t:VX(t,q2))};function LCe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Cc(n.placement),l=YO(a),c=[Ds,za].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=$Ce(i.padding,n),p=GO(o),g=l==="y"?As:Ds,y=l==="y"?Fa:za,b=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],v=s[l]-n.rects.reference[l],S=K2(o),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-v/2,E=d[g],k=C-p[u]-d[y],T=C/2-p[u]/2+w,_=jy(E,T,k),O=l;n.modifiersData[r]=(t={},t[O]=_,t.centerOffset=_-T,t)}}function FCe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||BX(t.elements.popper,i)&&(t.elements.arrow=i))}const zCe={name:"arrow",enabled:!0,phase:"main",fn:LCe,effect:FCe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Og(e){return e.split("-")[1]}var BCe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function HCe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_g(n*i)/i||0,y:_g(r*i)/i||0}}function rB(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=s.x,g=p===void 0?0:p,y=s.y,b=y===void 0?0:y,v=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=v.x,b=v.y;var S=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),w=Ds,E=As,k=window;if(c){var T=K2(n),_="clientHeight",O="clientWidth";if(T===sa(n)&&(T=Pf(n),Bu(T).position!=="static"&&a==="absolute"&&(_="scrollHeight",O="scrollWidth")),T=T,i===As||(i===Ds||i===za)&&o===kb){E=Fa;var R=d&&T===k&&k.visualViewport?k.visualViewport.height:T[_];b-=R-r.height,b*=l?1:-1}if(i===Ds||(i===As||i===Fa)&&o===kb){w=za;var P=d&&T===k&&k.visualViewport?k.visualViewport.width:T[O];g-=P-r.width,g*=l?1:-1}}var L=Object.assign({position:a},c&&BCe),M=u===!0?HCe({x:g,y:b},sa(n)):{x:g,y:b};if(g=M.x,b=M.y,l){var N;return Object.assign({},L,(N={},N[E]=C?"0":"",N[w]=S?"0":"",N.transform=(k.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",N))}return Object.assign({},L,(t={},t[E]=C?b+"px":"",t[w]=S?g+"px":"",t.transform="",t))}function UCe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Cc(t.placement),variation:Og(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rB(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rB(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const VCe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UCe,data:{}};var i3={passive:!0};function WCe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=sa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,i3)}),a&&l.addEventListener("resize",n.update,i3),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,i3)}),a&&l.removeEventListener("resize",n.update,i3)}}const qCe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WCe,data:{}};var KCe={left:"right",right:"left",bottom:"top",top:"bottom"};function gS(e){return e.replace(/left|right|bottom|top/g,function(t){return KCe[t]})}var GCe={start:"end",end:"start"};function iB(e){return e.replace(/start|end/g,function(t){return GCe[t]})}function JO(e){var t=sa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ZO(e){return Tg(Pf(e)).left+JO(e).scrollLeft}function YCe(e,t){var n=sa(e),r=Pf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=zX();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+ZO(e),y:l}}function JCe(e){var t,n=Pf(e),r=JO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Hh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Hh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+ZO(e),l=-r.scrollTop;return Bu(i||n).direction==="rtl"&&(a+=Hh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function XO(e){var t=Bu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function WX(e){return["html","body","#document"].indexOf(Mc(e))>=0?e.ownerDocument.body:Ra(e)&&XO(e)?e:WX(W6(e))}function Ry(e,t){var n;t===void 0&&(t=[]);var r=WX(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=sa(r),s=i?[o].concat(o.visualViewport||[],XO(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Ry(W6(s)))}function $D(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ZCe(e,t){var n=Tg(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 oB(e,t,n){return t===LX?$D(YCe(e,n)):Zh(t)?ZCe(t,n):$D(JCe(Pf(e)))}function XCe(e){var t=Ry(W6(e)),n=["absolute","fixed"].indexOf(Bu(e).position)>=0,r=n&&Ra(e)?K2(e):e;return Zh(r)?t.filter(function(i){return Zh(i)&&BX(i,r)&&Mc(i)!=="body"}):[]}function QCe(e,t,n,r){var i=t==="clippingParents"?XCe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=oB(e,c,r);return l.top=Hh(u.top,l.top),l.right=T4(u.right,l.right),l.bottom=T4(u.bottom,l.bottom),l.left=Hh(u.left,l.left),l},oB(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 qX(e){var t=e.reference,n=e.element,r=e.placement,i=r?Cc(r):null,o=r?Og(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case As:l={x:s,y:t.y-n.height};break;case Fa:l={x:s,y:t.y+t.height};break;case za:l={x:t.x+t.width,y:a};break;case Ds:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?YO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Dg:l[c]=l[c]-(t[u]/2-n[u]/2);break;case kb:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Eb(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?vCe:a,c=n.rootBoundary,u=c===void 0?LX:c,d=n.elementContext,p=d===void 0?I1:d,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,v=b===void 0?0:b,S=UX(typeof v!="number"?v:VX(v,q2)),C=p===I1?xCe:I1,w=e.rects.popper,E=e.elements[y?C:p],k=QCe(Zh(E)?E:E.contextElement||Pf(e.elements.popper),l,u,s),T=Tg(e.elements.reference),_=qX({reference:T,element:w,placement:i}),O=$D(Object.assign({},w,_)),R=p===I1?O:T,P={top:k.top-R.top+S.top,bottom:R.bottom-k.bottom+S.bottom,left:k.left-R.left+S.left,right:R.right-k.right+S.right},L=e.modifiersData.offset;if(p===I1&&L){var M=L[i];Object.keys(P).forEach(function(N){var $=[za,Fa].indexOf(N)>=0?1:-1,B=[As,Fa].indexOf(N)>=0?"y":"x";P[N]+=M[B]*$})}return P}function e8e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?FX:l,u=Og(r),d=u?a?tB:tB.filter(function(y){return Og(y)===u}):q2,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var g=p.reduce(function(y,b){return y[b]=Eb(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[Cc(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function t8e(e){if(Cc(e)===qO)return[];var t=gS(e);return[iB(e),t,iB(t)]}function n8e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,v=t.options.placement,S=Cc(v),C=S===v,w=l||(C||!y?[gS(v)]:t8e(v)),E=[v].concat(w).reduce(function(H,K){return H.concat(Cc(K)===qO?e8e(t,{placement:K,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:b}):K)},[]),k=t.rects.reference,T=t.rects.popper,_=new Map,O=!0,R=E[0],P=0;P<E.length;P++){var L=E[P],M=Cc(L),N=Og(L)===Dg,$=[As,Fa].indexOf(M)>=0,B=$?"width":"height",F=Eb(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),V=$?N?za:Ds:N?Fa:As;k[B]>T[B]&&(V=gS(V));var W=gS(V),q=[];if(o&&q.push(F[M]<=0),a&&q.push(F[V]<=0,F[W]<=0),q.every(function(H){return H})){R=L,O=!1;break}_.set(L,q)}if(O)for(var Z=y?3:1,z=function(K){var Q=E.find(function(ie){var te=_.get(ie);if(te)return te.slice(0,K).every(function(ce){return ce})});if(Q)return R=Q,"break"},U=Z;U>0;U--){var Y=z(U);if(Y==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const r8e={name:"flip",enabled:!0,phase:"main",fn:n8e,requiresIfExists:["offset"],data:{_skip:!1}};function sB(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 aB(e){return[As,za,Fa,Ds].some(function(t){return e[t]>=0})}function i8e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Eb(t,{elementContext:"reference"}),a=Eb(t,{altBoundary:!0}),l=sB(s,r),c=sB(a,i,o),u=aB(l),d=aB(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const o8e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:i8e};function s8e(e,t,n){var r=Cc(e),i=[Ds,As].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Ds,za].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function a8e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=FX.reduce(function(u,d){return u[d]=s8e(d,t.rects,o),u},{}),a=s[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const l8e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:a8e};function c8e(e){var t=e.state,n=e.name;t.modifiersData[n]=qX({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const u8e={name:"popperOffsets",enabled:!0,phase:"read",fn:c8e,data:{}};function d8e(e){return e==="x"?"y":"x"}function f8e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,y=n.tetherOffset,b=y===void 0?0:y,v=Eb(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=Cc(t.placement),C=Og(t.placement),w=!C,E=YO(S),k=d8e(E),T=t.modifiersData.popperOffsets,_=t.rects.reference,O=t.rects.popper,R=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(T){if(o){var N,$=E==="y"?As:Ds,B=E==="y"?Fa:za,F=E==="y"?"height":"width",V=T[E],W=V+v[$],q=V-v[B],Z=g?-O[F]/2:0,z=C===Dg?_[F]:O[F],U=C===Dg?-O[F]:-_[F],Y=t.elements.arrow,H=g&&Y?GO(Y):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:HX(),Q=K[$],ie=K[B],te=jy(0,_[F],H[F]),ce=w?_[F]/2-Z-te-Q-P.mainAxis:z-te-Q-P.mainAxis,ee=w?-_[F]/2+Z+te+ie+P.mainAxis:U+te+ie+P.mainAxis,J=t.elements.arrow&&K2(t.elements.arrow),X=J?E==="y"?J.clientTop||0:J.clientLeft||0:0,oe=(N=L?.[E])!=null?N:0,le=V+ce-oe-X,fe=V+ee-oe,ye=jy(g?T4(W,le):W,V,g?Hh(q,fe):q);T[E]=ye,M[E]=ye-V}if(a){var Me,ue=E==="x"?As:Ds,we=E==="x"?Fa:za,Oe=T[k],He=k==="y"?"height":"width",ze=Oe+v[ue],At=Oe-v[we],gt=[As,Ds].indexOf(S)!==-1,$e=(Me=L?.[k])!=null?Me:0,je=gt?ze:Oe-_[He]-O[He]-$e+P.altAxis,Ve=gt?Oe+_[He]+O[He]-$e-P.altAxis:At,Ke=g&>?NCe(je,Oe,Ve):jy(g?je:ze,Oe,g?Ve:At);T[k]=Ke,M[k]=Ke-Oe}t.modifiersData[r]=M}}const h8e={name:"preventOverflow",enabled:!0,phase:"main",fn:f8e,requiresIfExists:["offset"]};function p8e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m8e(e){return e===sa(e)||!Ra(e)?JO(e):p8e(e)}function g8e(e){var t=e.getBoundingClientRect(),n=_g(t.width)/e.offsetWidth||1,r=_g(t.height)/e.offsetHeight||1;return n!==1||r!==1}function y8e(e,t,n){n===void 0&&(n=!1);var r=Ra(t),i=Ra(t)&&g8e(t),o=Pf(t),s=Tg(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Mc(t)!=="body"||XO(o))&&(a=m8e(t)),Ra(t)?(l=Tg(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=ZO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function b8e(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function v8e(e){var t=b8e(e);return OCe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function x8e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function S8e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var lB={placement:"bottom",modifiers:[],strategy:"absolute"};function cB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function w8e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?lB:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},lB,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;b(),u.options=Object.assign({},o,u.options,C),u.scrollParents={reference:Zh(a)?Ry(a):a.contextElement?Ry(a.contextElement):[],popper:Ry(l)};var w=v8e(S8e([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(E){return E.enabled}),y(),g.update()},forceUpdate:function(){if(!p){var S=u.elements,C=S.reference,w=S.popper;if(cB(C,w)){u.rects={reference:y8e(C,K2(w),u.options.strategy==="fixed"),popper:GO(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var k=u.orderedModifiers[E],T=k.fn,_=k.options,O=_===void 0?{}:_,R=k.name;typeof T=="function"&&(u=T({state:u,options:O,name:R,instance:g})||u)}}}},update:x8e(function(){return new Promise(function(v){g.forceUpdate(),v(u)})}),destroy:function(){b(),p=!0}};if(!cB(a,l))return g;g.setOptions(c).then(function(v){!p&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){u.orderedModifiers.forEach(function(v){var S=v.name,C=v.options,w=C===void 0?{}:C,E=v.effect;if(typeof E=="function"){var k=E({state:u,name:S,instance:g,options:w}),T=function(){};d.push(k||T)}})}function b(){d.forEach(function(v){return v()}),d=[]}return g}}var C8e=[qCe,u8e,VCe,RCe,l8e,r8e,h8e,zCe,o8e],k8e=w8e({defaultModifiers:C8e});function E8e(e){return typeof e=="function"?e():e}const KX=A.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=A.useState(null),l=Br(A.isValidElement(r)?Rf(r):null,n);if(Bo(()=>{o||a(E8e(i)||document.body)},[i,o]),Bo(()=>{if(s&&!o)return gD(n,s),()=>{gD(n,null)}},[n,s,o]),o){if(A.isValidElement(r)){const c={ref:l};return A.cloneElement(r,c)}return r}return s&&qd.createPortal(r,s)});function A8e(e){return tt("MuiPopper",e)}st("MuiPopper",["root"]);function D8e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function LD(e){return typeof e=="function"?e():e}function _8e(e){return e.nodeType!==void 0}const T8e=e=>{const{classes:t}=e;return nt({root:["root"]},A8e,t)},O8e={},M8e=A.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:g={},TransitionProps:y,ownerState:b,...v}=t,S=A.useRef(null),C=Br(S,n),w=A.useRef(null),E=Br(w,d),k=A.useRef(E);Bo(()=>{k.current=E},[E]),A.useImperativeHandle(d,()=>w.current,[]);const T=D8e(c,o),[_,O]=A.useState(T),[R,P]=A.useState(LD(r));A.useEffect(()=>{w.current&&w.current.forceUpdate()}),A.useEffect(()=>{r&&P(LD(r))},[r]),Bo(()=>{if(!R||!l)return;const B=W=>{O(W.placement)};let F=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{B(W)}}];a!=null&&(F=F.concat(a)),u&&u.modifiers!=null&&(F=F.concat(u.modifiers));const V=k8e(R,S.current,{placement:T,...u,modifiers:F});return k.current(V),()=>{V.destroy(),k.current(null)}},[R,s,a,l,u,T]);const L={placement:_};y!==null&&(L.TransitionProps=y);const M=T8e(t),N=g.root??"div",$=Mr({elementType:N,externalSlotProps:p.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:M.root});return h.jsx(N,{...$,children:typeof i=="function"?i(L):i})}),j8e=A.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=O8e,popperRef:g,style:y,transition:b=!1,slotProps:v={},slots:S={},...C}=t,[w,E]=A.useState(!0),k=()=>{E(!1)},T=()=>{E(!0)};if(!l&&!u&&(!b||w))return null;let _;if(o)_=o;else if(r){const P=LD(r);_=P&&_8e(P)?Ei(P).body:Ei(null).body}const O=!u&&l&&(!b||w)?"none":void 0,R=b?{in:u,onEnter:k,onExited:T}:void 0;return h.jsx(KX,{disablePortal:a,container:_,children:h.jsx(M8e,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:b?!w:u,placement:d,popperOptions:p,popperRef:g,slotProps:v,slots:S,...C,style:{position:"fixed",top:0,left:0,display:O,...y},TransitionProps:R,children:i})})}),R8e=ge(j8e,{name:"MuiPopper",slot:"Root"})({}),G2=A.forwardRef(function(t,n){const r=Lc(),i=ct({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,slots:C,slotProps:w,...E}=i,k=C?.root??a?.Root,T={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,...E};return h.jsx(R8e,{as:s,direction:r?"rtl":"ltr",slots:{root:k},slotProps:w??l,...T,ref:n})});function I8e(e){return tt("MuiTooltip",e)}const di=st("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function P8e(e){return Math.round(e*1e5)/1e5}const N8e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ve(o.split("-")[0])}`],arrow:["arrow"]};return nt(s,I8e,t)},$8e=ge(G2,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${di.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${di.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${di.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${di.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),L8e=ge("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ve(n.placement.split("-")[0])}`]]}})(Ye(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${di.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${di.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${di.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${di.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${P8e(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${di.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${di.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${di.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),F8e=ge("span",{name:"MuiTooltip",slot:"Arrow"})(Ye(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let o3=!1;const uB=new I6;let P1={x:0,y:0};function s3(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Lt=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:v=700,followCursor:S=!1,id:C,leaveDelay:w=0,leaveTouchDelay:E=1500,onClose:k,onOpen:T,open:_,placement:O="bottom",PopperComponent:R,PopperProps:P={},slotProps:L={},slots:M={},title:N,TransitionComponent:$,TransitionProps:B,...F}=r,V=A.isValidElement(o)?o:h.jsx("span",{children:o}),W=Ki(),q=Lc(),[Z,z]=A.useState(),[U,Y]=A.useState(null),H=A.useRef(!1),K=p||S,Q=Kd(),ie=Kd(),te=Kd(),ce=Kd(),[ee,J]=ml({controlled:_,default:!1,name:"Tooltip",state:"open"});let X=ee;const oe=Ju(C),le=A.useRef(),fe=hi(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),ce.clear()});A.useEffect(()=>fe,[fe]);const ye=_t=>{uB.clear(),o3=!0,J(!0),T&&!X&&T(_t)},Me=hi(_t=>{uB.start(800+w,()=>{o3=!1}),J(!1),k&&X&&k(_t),Q.start(W.transitions.duration.shortest,()=>{H.current=!1})}),ue=_t=>{H.current&&_t.type!=="touchstart"||(Z&&Z.removeAttribute("title"),ie.clear(),te.clear(),y||o3&&b?ie.start(o3?b:y,()=>{ye(_t)}):ye(_t))},we=_t=>{ie.clear(),te.start(w,()=>{Me(_t)})},[,Oe]=A.useState(!1),He=_t=>{mf(_t.target)||(Oe(!1),we(_t))},ze=_t=>{Z||z(_t.currentTarget),mf(_t.target)&&(Oe(!0),ue(_t))},At=_t=>{H.current=!0;const yn=V.props;yn.onTouchStart&&yn.onTouchStart(_t)},gt=_t=>{At(_t),te.clear(),Q.clear(),fe(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(v,()=>{document.body.style.WebkitUserSelect=le.current,ue(_t)})},$e=_t=>{V.props.onTouchEnd&&V.props.onTouchEnd(_t),fe(),te.start(E,()=>{Me(_t)})};A.useEffect(()=>{if(!X)return;function _t(yn){yn.key==="Escape"&&Me(yn)}return document.addEventListener("keydown",_t),()=>{document.removeEventListener("keydown",_t)}},[Me,X]);const je=Br(Rf(V),z,n);!N&&N!==0&&(X=!1);const Ve=A.useRef(),Ke=_t=>{const yn=V.props;yn.onMouseMove&&yn.onMouseMove(_t),P1={x:_t.clientX,y:_t.clientY},Ve.current&&Ve.current.update()},at={},ut=typeof N=="string";c?(at.title=!X&&ut&&!d?N:null,at["aria-describedby"]=X?oe:null):(at["aria-label"]=ut?N:null,at["aria-labelledby"]=X&&!ut?oe:null);const Qe={...at,...F,...V.props,className:_e(F.className,V.props.className),onTouchStart:At,ref:je,...S?{onMouseMove:Ke}:{}},Bt={};g||(Qe.onTouchStart=gt,Qe.onTouchEnd=$e),d||(Qe.onMouseOver=s3(ue,Qe.onMouseOver),Qe.onMouseLeave=s3(we,Qe.onMouseLeave),K||(Bt.onMouseOver=ue,Bt.onMouseLeave=we)),u||(Qe.onFocus=s3(ze,Qe.onFocus),Qe.onBlur=s3(He,Qe.onBlur),K||(Bt.onFocus=ze,Bt.onBlur=He));const Ht={...r,isRtl:q,arrow:i,disableInteractive:K,placement:O,PopperComponentProp:R,touch:H.current},Pt=typeof L.popper=="function"?L.popper(Ht):L.popper,Dn=A.useMemo(()=>{let _t=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return P.popperOptions?.modifiers&&(_t=_t.concat(P.popperOptions.modifiers)),Pt?.popperOptions?.modifiers&&(_t=_t.concat(Pt.popperOptions.modifiers)),{...P.popperOptions,...Pt?.popperOptions,modifiers:_t}},[U,P.popperOptions,Pt?.popperOptions]),tn=N8e(Ht),pt=typeof L.transition=="function"?L.transition(Ht):L.transition,Yt={slots:{popper:a.Popper,transition:a.Transition??$,tooltip:a.Tooltip,arrow:a.Arrow,...M},slotProps:{arrow:L.arrow??l.arrow,popper:{...P,...Pt??l.popper},tooltip:L.tooltip??l.tooltip,transition:{...B,...pt??l.transition}}},[an,wn]=ft("popper",{elementType:$8e,externalForwardedProps:Yt,ownerState:Ht,className:_e(tn.popper,P?.className)}),[Ge,We]=ft("transition",{elementType:vb,externalForwardedProps:Yt,ownerState:Ht}),[Je,St]=ft("tooltip",{elementType:L8e,className:tn.tooltip,externalForwardedProps:Yt,ownerState:Ht}),[In,dn]=ft("arrow",{elementType:F8e,className:tn.arrow,externalForwardedProps:Yt,ownerState:Ht,ref:Y});return h.jsxs(A.Fragment,{children:[A.cloneElement(V,Qe),h.jsx(an,{as:R??G2,placement:O,anchorEl:S?{getBoundingClientRect:()=>({top:P1.y,left:P1.x,right:P1.x,bottom:P1.y,width:0,height:0})}:Z,popperRef:Ve,open:Z?X:!1,id:oe,transition:!0,...Bt,...wn,popperOptions:Dn,children:({TransitionProps:_t})=>h.jsx(Ge,{timeout:W.transitions.duration.shorter,..._t,...We,children:h.jsxs(Je,{...St,children:[N,i?h.jsx(In,{...dn}):null]})})})]})}),Ts=Ee(h.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),ef=Ee(h.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),aa=Ee(h.jsx("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"})),q6=Ee(h.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),QO=Ee(h.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),K6=Ee(h.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),eM=Ee(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),yS=Ee(h.jsx("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"})),GX=Ee(h.jsx("path",{d:"M19 13H5v-2h14z"})),G6=Ee(h.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Hu=Ee([h.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),h.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]),YX=Ee(h.jsx("path",{d:"m1 9 2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9m8 8 3 3 3-3c-1.65-1.66-4.34-1.66-6 0m-4-4 2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13"})),z8e=Ee(h.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function B8e(e){return tt("MuiAvatar",e)}st("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const H8e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return nt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},B8e,t)},U8e=ge("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),V8e=ge("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),W8e=ge(z8e,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function q8e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=A.useState(!1);return A.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const wl=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:g,variant:y="circular",...b}=r;let v=null;const S={...r,component:a,variant:y},C=q8e({...u,...typeof c.img=="function"?c.img(S):c.img,src:p,srcSet:g}),w=p||g,E=w&&C!=="error";S.colorDefault=!E,delete S.ownerState;const k=H8e(S),[T,_]=ft("root",{ref:n,className:_e(k.root,s),elementType:U8e,externalForwardedProps:{slots:l,slotProps:c,component:a,...b},ownerState:S}),[O,R]=ft("img",{className:k.img,elementType:V8e,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:i,src:p,srcSet:g,sizes:d},ownerState:S}),[P,L]=ft("fallback",{className:k.fallback,elementType:W8e,externalForwardedProps:{slots:l,slotProps:c},shouldForwardComponentProp:!0,ownerState:S});return E?v=h.jsx(O,{...R}):o||o===0?v=o:w&&i?v=i[0]:v=h.jsx(P,{...L}),h.jsx(T,{..._,children:v})});function JX(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function K8e(e){const t=Ei(e);return t.body===e?oa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Iy(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dB(e){return parseFloat(oa(e).getComputedStyle(e).paddingRight)||0}function G8e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function fB(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=!o.includes(s),l=!G8e(s);a&&l&&Iy(s,i)})}function w9(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Y8e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(K8e(r)){const s=JX(oa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dB(r)+s}px`;const a=Ei(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${dB(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ei(r).body;else{const s=r.parentElement,a=oa(r);o=s?.nodeName==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function J8e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Z8e{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Iy(t.modalRef,!1);const i=J8e(n);fB(n,t.mount,t.modalRef,i,!0);const o=w9(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=w9(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=Y8e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=w9(this.containers,s=>s.modals.includes(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Iy(t.modalRef,n),fB(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Iy(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Lm(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const X8e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Q8e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function eke(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function tke(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||eke(e))}function nke(e){const t=[],n=[];return Array.from(e.querySelectorAll(X8e)).forEach((r,i)=>{const o=Q8e(r);o===-1||!tke(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function rke(){return!0}function ike(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=nke,isEnabled:s=rke,open:a}=e,l=A.useRef(!1),c=A.useRef(null),u=A.useRef(null),d=A.useRef(null),p=A.useRef(null),g=A.useRef(!1),y=A.useRef(null),b=Br(Rf(t),y),v=A.useRef(null);A.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),A.useEffect(()=>{if(!a||!y.current)return;const w=Ei(y.current),E=Lm(w);return y.current.contains(E)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),A.useEffect(()=>{if(!a||!y.current)return;const w=Ei(y.current),E=_=>{if(v.current=_,r||!s()||_.key!=="Tab")return;Lm(w)===y.current&&_.shiftKey&&(l.current=!0,u.current&&u.current.focus())},k=()=>{const _=y.current;if(_===null)return;const O=Lm(w);if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(_.contains(O)||r&&O!==c.current&&O!==u.current)return;if(O!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let R=[];if((O===c.current||O===u.current)&&(R=o(y.current)),R.length>0){const P=!!(v.current?.shiftKey&&v.current?.key==="Tab"),L=R[0],M=R[R.length-1];typeof L!="string"&&typeof M!="string"&&(P?M.focus():L.focus())}else _.focus()};w.addEventListener("focusin",k),w.addEventListener("keydown",E,!0);const T=setInterval(()=>{const _=Lm(w);_&&_.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),w.removeEventListener("focusin",k),w.removeEventListener("keydown",E,!0)}},[n,r,i,s,a,o]);const S=w=>{d.current===null&&(d.current=w.relatedTarget),g.current=!0,p.current=w.target;const E=t.props.onFocus;E&&E(w)},C=w=>{d.current===null&&(d.current=w.relatedTarget),g.current=!0};return h.jsxs(A.Fragment,{children:[h.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:b,onFocus:S}),h.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}const oke={entering:{opacity:1},entered:{opacity:1}},O4=A.forwardRef(function(t,n){const r=Ki(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:y,onExiting:b,style:v,timeout:S=i,TransitionComponent:C=Ja,...w}=t,E=A.useRef(null),k=Br(E,Rf(a),n),T=$=>B=>{if($){const F=E.current;B===void 0?$(F):$(F,B)}},_=T(p),O=T(($,B)=>{IO($);const F=gf({style:v,timeout:S,easing:l},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",F),$.style.transition=r.transitions.create("opacity",F),u&&u($,B)}),R=T(d),P=T(b),L=T($=>{const B=gf({style:v,timeout:S,easing:l},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",B),$.style.transition=r.transitions.create("opacity",B),g&&g($)}),M=T(y),N=$=>{o&&o(E.current,$)};return h.jsx(C,{appear:s,in:c,nodeRef:E,onEnter:O,onEntered:R,onEntering:_,onExit:L,onExited:M,onExiting:P,addEndListener:N,timeout:S,...w,children:($,{ownerState:B,...F})=>A.cloneElement(a,{style:{opacity:0,visibility:$==="exited"&&!c?"hidden":void 0,...oke[$],...v,...a.props.style},ref:k,...F})})});function ske(e){return tt("MuiBackdrop",e)}st("MuiBackdrop",["root","invisible"]);const ake=e=>{const{classes:t,invisible:n}=e;return nt({root:["root",n&&"invisible"]},ske,t)},lke=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),tM=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:p={},TransitionComponent:g,transitionDuration:y,...b}=r,v={...r,component:s,invisible:a},S=ake(v),C={transition:g,root:c.Root,...p},w={...u,...d},E={component:s,slots:C,slotProps:w},[k,T]=ft("root",{elementType:lke,externalForwardedProps:E,className:_e(S.root,o),ownerState:v}),[_,O]=ft("transition",{elementType:O4,externalForwardedProps:E,ownerState:v});return h.jsx(_,{in:l,timeout:y,...b,...O,children:h.jsx(k,{"aria-hidden":!0,...T,ref:n,children:i})})});function cke(e){return typeof e=="function"?e():e}function uke(e){return e?e.props.hasOwnProperty("in"):!1}const hB=()=>{},a3=new Z8e;function dke(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=e,d=A.useRef({}),p=A.useRef(null),g=A.useRef(null),y=Br(g,u),[b,v]=A.useState(!c),S=uke(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Ei(p.current),E=()=>(d.current.modalRef=g.current,d.current.mount=p.current,d.current),k=()=>{a3.mount(E(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},T=hi(()=>{const B=cke(t)||w().body;a3.add(E(),B),g.current&&k()}),_=()=>a3.isTopModal(E()),O=hi(B=>{p.current=B,B&&(c&&_()?k():g.current&&Iy(g.current,C))}),R=A.useCallback(()=>{a3.remove(E(),C)},[C]);A.useEffect(()=>()=>{R()},[R]),A.useEffect(()=>{c?T():(!S||!i)&&R()},[c,R,S,i,T]);const P=B=>F=>{B.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!_())&&(n||(F.stopPropagation(),l&&l(F,"escapeKeyDown")))},L=B=>F=>{B.onClick?.(F),F.target===F.currentTarget&&l&&l(F,"backdropClick")};return{getRootProps:(B={})=>{const F=ro(e);delete F.onTransitionEnter,delete F.onTransitionExited;const V={...F,...B};return{role:"presentation",...V,onKeyDown:P(V),ref:y}},getBackdropProps:(B={})=>{const F=B;return{"aria-hidden":!0,...F,onClick:L(F),open:c}},getTransitionProps:()=>{const B=()=>{v(!1),o&&o()},F=()=>{v(!0),s&&s(),i&&R()};return{onEnter:mD(B,a?.props.onEnter??hB),onExited:mD(F,a?.props.onExited??hB)}},rootRef:y,portalRef:O,isTopModal:_,exited:b,hasTransition:S}}function fke(e){return tt("MuiModal",e)}st("MuiModal",["root","hidden","backdrop"]);const hke=e=>{const{open:t,exited:n,classes:r}=e;return nt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fke,r)},pke=ge("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ye(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),mke=ge(tM,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),nM=A.forwardRef(function(t,n){const r=ct({name:"MuiModal",props:t}),{BackdropComponent:i=mke,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:p={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:v=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:E=!1,keepMounted:k=!1,onClose:T,onTransitionEnter:_,onTransitionExited:O,open:R,slotProps:P={},slots:L={},theme:M,...N}=r,$={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:v,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:E,keepMounted:k},{getRootProps:B,getBackdropProps:F,getTransitionProps:V,portalRef:W,isTopModal:q,exited:Z,hasTransition:z}=dke({...$,rootRef:n}),U={...$,exited:Z},Y=hke(U),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),z){const{onEnter:ee,onExited:J}=V();H.onEnter=ee,H.onExited=J}const K={slots:{root:p.Root,backdrop:p.Backdrop,...L},slotProps:{...g,...P}},[Q,ie]=ft("root",{ref:n,elementType:pke,externalForwardedProps:{...K,...N,component:d},getSlotProps:B,ownerState:U,className:_e(a,Y?.root,!U.open&&U.exited&&Y?.hidden)}),[te,ce]=ft("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ee=>F({...ee,onClick:J=>{ee?.onClick&&ee.onClick(J)}}),className:_e(o?.className,Y?.backdrop),ownerState:U});return!k&&!R&&(!z||Z)?null:h.jsx(KX,{ref:W,container:u,disablePortal:S,children:h.jsxs(Q,{...ie,children:[!E&&i?h.jsx(te,{...ce}):null,h.jsx(ike,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:q,open:R,children:A.cloneElement(c,H)})]})})});function gke(e){return tt("MuiDialog",e)}const C9=st("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),ZX=A.createContext({}),yke=ge(tM,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),bke=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ve(n)}`],paper:["paper",`paperScroll${ve(n)}`,`paperWidth${ve(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return nt(s,gke,t)},vke=ge(nM,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),xke=ge("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ve(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Ske=ge(zr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ve(n.scroll)}`],t[`paperWidth${ve(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ye(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${C9.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${C9.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${C9.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Po=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialog"}),i=Ki(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:v="sm",onClick:S,onClose:C,open:w,PaperComponent:E=zr,PaperProps:k={},scroll:T="paper",slots:_={},slotProps:O={},TransitionComponent:R=O4,transitionDuration:P=o,TransitionProps:L,...M}=r,N={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:v,scroll:T},$=bke(N),B=A.useRef(),F=oe=>{B.current=oe.target===oe.currentTarget},V=oe=>{S&&S(oe),B.current&&(B.current=null,C&&C(oe,"backdropClick"))},W=Ju(a),q=A.useMemo(()=>({titleId:W}),[W]),Z={transition:R,..._},z={transition:L,paper:k,backdrop:u,...O},U={slots:Z,slotProps:z},[Y,H]=ft("root",{elementType:vke,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:_e($.root,p),ref:n}),[K,Q]=ft("backdrop",{elementType:yke,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:$.backdrop}),[ie,te]=ft("paper",{elementType:Ske,shouldForwardComponentProp:!0,externalForwardedProps:U,ownerState:N,className:_e($.paper,k.className)}),[ce,ee]=ft("container",{elementType:xke,externalForwardedProps:U,ownerState:N,className:$.container}),[J,X]=ft("transition",{elementType:O4,externalForwardedProps:U,ownerState:N,additionalProps:{appear:!0,in:w,timeout:P,role:"presentation"}});return h.jsx(Y,{closeAfterTransition:!0,slots:{backdrop:K},slotProps:{backdrop:{transitionDuration:P,as:c,...Q}},disableEscapeKeyDown:g,onClose:C,open:w,onClick:V,...H,...M,children:h.jsx(J,{...X,children:h.jsx(ce,{onMouseDown:F,...ee,children:h.jsx(ie,{as:E,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":W,"aria-modal":l,...te,children:h.jsx(ZX.Provider,{value:q,children:d})})})})})});function wke(e){return tt("MuiDialogActions",e)}st("MuiDialogActions",["root","spacing"]);const Cke=e=>{const{classes:t,disableSpacing:n}=e;return nt({root:["root",!n&&"spacing"]},wke,t)},kke=ge("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),es=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=r,a={...r,disableSpacing:o},l=Cke(a);return h.jsx(kke,{className:_e(l.root,i),ownerState:a,ref:n,...s})});function Eke(e){return tt("MuiDialogContent",e)}st("MuiDialogContent",["root","dividers"]);function Ake(e){return tt("MuiDialogTitle",e)}const Dke=st("MuiDialogTitle",["root"]),_ke=e=>{const{classes:t,dividers:n}=e;return nt({root:["root",n&&"dividers"]},Eke,t)},Tke=ge("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ye(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Dke.root} + &`]:{paddingTop:0}}}]}))),No=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=r,a={...r,dividers:o},l=_ke(a);return h.jsx(Tke,{className:_e(l.root,i),ownerState:a,ref:n,...s})}),Oke=e=>{const{classes:t}=e;return nt({root:["root"]},Ake,t)},Mke=ge(re,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),$o=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDialogTitle"}),{className:i,id:o,...s}=r,a=r,l=Oke(a),{titleId:c=o}=A.useContext(ZX);return h.jsx(Mke,{component:"h2",className:_e(l.root,i),ownerState:a,ref:n,variant:"h6",id:o??c,...s})});function jke(e){return tt("MuiDivider",e)}const pB=st("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rke=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return nt({root:["root",t&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},jke,r)},Ike=ge("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ye(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Pke=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ye(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Dr=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,orientation:a="horizontal",component:l=o||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth",...y}=r,b={...r,absolute:i,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:p,variant:g},v=Rke(b);return h.jsx(Ike,{as:l,className:_e(v.root,s),role:d,ref:n,ownerState:b,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...y,children:o?h.jsx(Pke,{className:v.wrapper,ownerState:b,children:o}):null})});Dr&&(Dr.muiSkipListHighlight=!0);var Nke=Object.defineProperty,M4=Object.getOwnPropertySymbols,XX=Object.prototype.hasOwnProperty,QX=Object.prototype.propertyIsEnumerable,mB=(e,t,n)=>t in e?Nke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FD=(e,t)=>{for(var n in t||(t={}))XX.call(t,n)&&mB(e,n,t[n]);if(M4)for(var n of M4(t))QX.call(t,n)&&mB(e,n,t[n]);return e},zD=(e,t)=>{var n={};for(var r in e)XX.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&M4)for(var r of M4(e))t.indexOf(r)<0&&QX.call(e,r)&&(n[r]=e[r]);return n};var Xh;(e=>{const t=class Fn{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<Fn.MIN_VERSION||l>Fn.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let p=[];for(let y=0;y<this.size;y++)p.push(!1);for(let y=0;y<this.size;y++)this.modules.push(p.slice()),this.isFunction.push(p.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),d==-1){let y=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<y&&(d=b,y=v),this.applyMask(b)}}i(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return Fn.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return Fn.encodeSegments([u],c)}static encodeSegments(l,c,u=1,d=40,p=-1,g=!0){if(!(Fn.MIN_VERSION<=u&&u<=d&&d<=Fn.MAX_VERSION)||p<-1||p>7)throw new RangeError("Invalid value");let y,b;for(y=u;;y++){const w=Fn.getNumDataCodewords(y,c)*8,E=s.getTotalBits(l,y);if(E<=w){b=E;break}if(y>=d)throw new RangeError("Data too long")}for(const w of[Fn.Ecc.MEDIUM,Fn.Ecc.QUARTILE,Fn.Ecc.HIGH])g&&b<=Fn.getNumDataCodewords(y,w)*8&&(c=w);let v=[];for(const w of l){n(w.mode.modeBits,4,v),n(w.numChars,w.mode.numCharCountBits(y),v);for(const E of w.getData())v.push(E)}i(v.length==b);const S=Fn.getNumDataCodewords(y,c)*8;i(v.length<=S),n(0,Math.min(4,S-v.length),v),n(0,(8-v.length%8)%8,v),i(v.length%8==0);for(let w=236;v.length<S;w^=253)n(w,8,v);let C=[];for(;C.length*8<v.length;)C.push(0);return v.forEach((w,E)=>C[E>>>3]|=w<<7-(E&7)),new Fn(y,c,C,p)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(l[u],l[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let p=0;p<10;p++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;i(d>>>15==0);for(let p=0;p<=5;p++)this.setFunctionModule(8,p,r(d,p));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let p=9;p<15;p++)this.setFunctionModule(14-p,8,r(d,p));for(let p=0;p<8;p++)this.setFunctionModule(this.size-1-p,8,r(d,p));for(let p=8;p<15;p++)this.setFunctionModule(8,this.size-15+p,r(d,p));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;i(c>>>18==0);for(let u=0;u<18;u++){const d=r(c,u),p=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(p,g,d),this.setFunctionModule(g,p,d)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const p=Math.max(Math.abs(d),Math.abs(u)),g=l+d,y=c+u;0<=g&&g<this.size&&0<=y&&y<this.size&&this.setFunctionModule(g,y,p!=2&&p!=4)}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1)}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=Fn.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const d=Fn.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],p=Fn.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(Fn.getNumRawDataModules(c)/8),y=d-g%d,b=Math.floor(g/d);let v=[];const S=Fn.reedSolomonComputeDivisor(p);for(let w=0,E=0;w<d;w++){let k=l.slice(E,E+b-p+(w<y?0:1));E+=k.length;const T=Fn.reedSolomonComputeRemainder(k,S);w<y&&k.push(0),v.push(k.concat(T))}let C=[];for(let w=0;w<v[0].length;w++)v.forEach((E,k)=>{(w!=b-p||k>=y)&&C.push(E[w])});return i(C.length==g),C}drawCodewords(l){if(l.length!=Math.floor(Fn.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let p=0;p<2;p++){const g=u-p,b=(u+1&2)==0?this.size-1-d:d;!this.isFunction[b][g]&&c<l.length*8&&(this.modules[b][g]=r(l[c>>>3],7-(c&7)),c++)}}i(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(l){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let l=0;for(let p=0;p<this.size;p++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[p][v]==g?(y++,y==5?l+=Fn.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*Fn.PENALTY_N3),g=this.modules[p][v],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*Fn.PENALTY_N3}for(let p=0;p<this.size;p++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][p]==g?(y++,y==5?l+=Fn.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*Fn.PENALTY_N3),g=this.modules[v][p],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*Fn.PENALTY_N3}for(let p=0;p<this.size-1;p++)for(let g=0;g<this.size-1;g++){const y=this.modules[p][g];y==this.modules[p][g+1]&&y==this.modules[p+1][g]&&y==this.modules[p+1][g+1]&&(l+=Fn.PENALTY_N2)}let c=0;for(const p of this.modules)c=p.reduce((g,y)=>g+(y?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=d&&d<=9),l+=d*Fn.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.length<l;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(l){if(l<Fn.MIN_VERSION||l>Fn.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return i(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(Fn.getNumRawDataModules(l)/8)-Fn.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*Fn.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<l-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<l;d++){for(let p=0;p<c.length;p++)c[p]=Fn.reedSolomonMultiply(c[p],u),p+1<c.length&&(c[p]^=c[p+1]);u=Fn.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const p=d^u.shift();u.push(0),c.forEach((g,y)=>u[y]^=Fn.reedSolomonMultiply(g,p))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return i(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];i(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(a,l,c){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)c.push(a>>>u&1)}function r(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class li{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)n(u,8,c);return new li(li.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!li.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const d=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+d),10),d*3+1,c),u+=d}return new li(li.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!li.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let d=li.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;d+=li.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(d,11,c)}return u<l.length&&n(li.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new li(li.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:li.isNumeric(l)?[li.makeNumeric(l)]:li.isAlphanumeric(l)?[li.makeAlphanumeric(l)]:[li.makeBytes(li.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,c);else if(l<16384)n(2,2,c),n(l,14,c);else if(l<1e6)n(6,3,c),n(l,21,c);else throw new RangeError("ECI assignment value out of range");return new li(li.Mode.ECI,0,c)}static isNumeric(l){return li.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return li.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const d of l){const p=d.mode.numCharCountBits(c);if(d.numChars>=1<<p)return 1/0;u+=4+p+d.bitData.length}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substring(u+1,u+3),16)),u+=2);return c}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=o;e.QrSegment=o})(Xh||(Xh={}));(e=>{(t=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Xh||(Xh={}));(e=>{(t=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Xh||(Xh={}));var Fm=Xh;var $ke={L:Fm.QrCode.Ecc.LOW,M:Fm.QrCode.Ecc.MEDIUM,Q:Fm.QrCode.Ecc.QUARTILE,H:Fm.QrCode.Ecc.HIGH},eQ=128,tQ="L",nQ="#FFFFFF",rQ="#000000",iQ=!1,oQ=1,Lke=4,Fke=0,zke=.1;function sQ(e,t=0){const n=[];return e.forEach(function(r,i){let o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push(`M${o+t} ${i+t}h${a-o}v1H${o+t}z`),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${o+t},${i+t} h${a+1-o}v1H${o+t}z`);return}s&&o===null&&(o=a)})}),n.join("")}function aQ(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((i,o)=>o<t.x||o>=t.x+t.w?i:!1))}function Bke(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*zke),s=i/t,a=(r.width||o)*s,l=(r.height||o)*s,c=r.x==null?e.length/2-a/2:r.x*s,u=r.y==null?e.length/2-l/2:r.y*s,d=r.opacity==null?1:r.opacity;let p=null;if(r.excavate){let y=Math.floor(c),b=Math.floor(u),v=Math.ceil(a+c-y),S=Math.ceil(l+u-b);p={x:y,y:b,w:v,h:S}}const g=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:p,opacity:d,crossOrigin:g}}function Hke(e,t){return t!=null?Math.max(Math.floor(t),0):e?Lke:Fke}function lQ({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=on.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((b,v)=>(b.push(...Fm.QrSegment.makeSegments(v)),b),[]);return Fm.QrCode.encodeSegments(y,$ke[t],n,void 0,void 0,a)},[e,t,n,a]);const{cells:c,margin:u,numCells:d,calculatedImageSettings:p}=on.useMemo(()=>{let g=l.getModules();const y=Hke(r,i),b=g.length+y*2,v=Bke(g,s,y,o);return{cells:g,margin:y,numCells:b,calculatedImageSettings:v}},[l,s,o,r,i]);return{qrcode:l,margin:u,cells:c,numCells:d,calculatedImageSettings:p}}var Uke=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Vke=on.forwardRef(function(t,n){const r=t,{value:i,size:o=eQ,level:s=tQ,bgColor:a=nQ,fgColor:l=rQ,includeMargin:c=iQ,minVersion:u=oQ,boostLevel:d,marginSize:p,imageSettings:g}=r,b=zD(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,S=zD(b,["style"]),C=g?.src,w=on.useRef(null),E=on.useRef(null),k=on.useCallback($=>{w.current=$,typeof n=="function"?n($):n&&(n.current=$)},[n]),[T,_]=on.useState(!1),{margin:O,cells:R,numCells:P,calculatedImageSettings:L}=lQ({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:p,imageSettings:g,size:o});on.useEffect(()=>{if(w.current!=null){const $=w.current,B=$.getContext("2d");if(!B)return;let F=R;const V=E.current,W=L!=null&&V!==null&&V.complete&&V.naturalHeight!==0&&V.naturalWidth!==0;W&&L.excavation!=null&&(F=aQ(R,L.excavation));const q=window.devicePixelRatio||1;$.height=$.width=o*q;const Z=o/P*q;B.scale(Z,Z),B.fillStyle=a,B.fillRect(0,0,P,P),B.fillStyle=l,Uke?B.fill(new Path2D(sQ(F,O))):R.forEach(function(z,U){z.forEach(function(Y,H){Y&&B.fillRect(H+O,U+O,1,1)})}),L&&(B.globalAlpha=L.opacity),W&&B.drawImage(V,L.x+O,L.y+O,L.w,L.h)}}),on.useEffect(()=>{_(!1)},[C]);const M=FD({height:o,width:o},v);let N=null;return C!=null&&(N=on.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{_(!0)},ref:E,crossOrigin:L?.crossOrigin})),on.createElement(on.Fragment,null,on.createElement("canvas",FD({style:M,height:o,width:o,ref:k,role:"img"},S)),N)});Vke.displayName="QRCodeCanvas";var rM=on.forwardRef(function(t,n){const r=t,{value:i,size:o=eQ,level:s=tQ,bgColor:a=nQ,fgColor:l=rQ,includeMargin:c=iQ,minVersion:u=oQ,boostLevel:d,title:p,marginSize:g,imageSettings:y}=r,b=zD(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:S,numCells:C,calculatedImageSettings:w}=lQ({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:g,imageSettings:y,size:o});let E=S,k=null;y!=null&&w!=null&&(w.excavation!=null&&(E=aQ(S,w.excavation)),k=on.createElement("image",{href:y.src,height:w.h,width:w.w,x:w.x+v,y:w.y+v,preserveAspectRatio:"none",opacity:w.opacity,crossOrigin:w.crossOrigin}));const T=sQ(E,v);return on.createElement("svg",FD({height:o,width:o,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},b),!!p&&on.createElement("title",null,p),on.createElement("path",{fill:a,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),on.createElement("path",{fill:l,d:T,shapeRendering:"crispEdges"}),k)});rM.displayName="QRCodeSVG";const Wke=Ee(h.jsx("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"})),zm=e=>A.createElement("svg",{viewBox:"0 0 250 260",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{fillRule:"evenodd"},A.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),A.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}),A.createElement("path",{d:"m221.503 210.324c-105.235 50.083-170.545 8.18-212.352-17.271-2.587-1.604-6.984.375-3.169 4.757 13.928 16.888 59.573 57.593 119.153 57.593 59.621 0 95.09-32.532 99.527-38.207 4.407-5.627 1.294-8.731-3.16-6.872zm29.555-16.322c-2.826-3.68-17.184-4.366-26.22-3.256-9.05 1.078-22.634 6.609-21.453 9.93.606 1.244 1.843.686 8.06.127 6.234-.622 23.698-2.826 27.337 1.931 3.656 4.79-5.57 27.608-7.255 31.288-1.628 3.68.622 4.629 3.68 2.178 3.016-2.45 8.476-8.795 12.14-17.774 3.639-9.028 5.858-21.622 3.71-24.424z"}),A.createElement("path",{d:"m150.744 108.13c0 13.141.332 24.1-6.31 35.77-5.361 9.489-13.853 15.324-23.341 15.324-12.952 0-20.495-9.868-20.495-24.432 0-28.75 25.76-33.968 50.146-33.968zm34.015 82.216c-2.23 1.992-5.456 2.135-7.97.806-11.196-9.298-13.189-13.615-19.356-22.487-18.502 18.882-31.596 24.527-55.601 24.527-28.37 0-50.478-17.506-50.478-52.565 0-27.373 14.85-46.018 35.96-55.126 18.313-8.066 43.884-9.489 63.43-11.718v-4.365c0-8.018.616-17.506-4.08-24.432-4.128-6.215-12.003-8.777-18.93-8.777-12.856 0-24.337 6.594-27.136 20.257-.57 3.037-2.799 6.026-5.835 6.168l-32.735-3.51c-2.751-.618-5.787-2.847-5.028-7.07 7.543-39.66 43.36-51.616 75.43-51.616 16.415 0 37.858 4.365 50.81 16.795 16.415 15.323 14.849 35.77 14.849 58.02v52.565c0 15.798 6.547 22.724 12.714 31.264 2.182 3.036 2.657 6.69-.095 8.966-6.879 5.74-19.119 16.415-25.855 22.393l-.095-.095"}))),qke=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:20,viewBox:"0 0 52 20",fill:"none",...e},"\\n ",A.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.4419 10.9152C49.5872 10.0259 50.093 9.09567 50.0116 7.92553C49.9741 7.13141 49.632 6.3829 49.0573 5.83734C48.4827 5.29179 47.7202 4.9917 46.9302 5.00017H42.3954V15.0517H44.1977V10.9152H46.3488L48.8954 15.0517H51L48.4419 10.9152ZM48.2616 7.92553C48.2687 8.07923 48.2455 8.23282 48.1935 8.3775C48.1414 8.52218 48.0616 8.65511 47.9584 8.76869C47.8553 8.88227 47.7309 8.97427 47.5924 9.03941C47.4538 9.10455 47.3039 9.14156 47.1512 9.14832C47.0778 9.15694 47.0036 9.15694 46.9302 9.14832H44.1919V6.75539H46.9302C47.2461 6.72083 47.5628 6.81339 47.8111 7.01287C48.0594 7.21235 48.2193 7.50257 48.2558 7.82021C48.2558 7.83777 48.2573 7.85532 48.2587 7.87287C48.2602 7.89042 48.2616 7.90797 48.2616 7.92553ZM28.657 11.2955L30.9826 15.0458H33.1279L29.8256 9.72169L28.657 11.2955ZM32.4709 5.00017H30.1802L25.4651 11.3482V5.00017H23.6744V14.1565C23.6708 14.3635 23.74 14.5651 23.8698 14.7257C23.9996 14.8863 24.1816 14.9955 24.3837 15.0341C24.5446 15.0621 24.71 15.0459 24.8624 14.9872C25.0149 14.9286 25.1488 14.8295 25.25 14.7006L32.4709 5.00017ZM36.4651 10.9152H40.0233V9.16002H36.4651V10.9152ZM40.9651 5.00025H33.8954V14.1566C33.8922 14.273 33.9124 14.3889 33.9545 14.4974C33.9966 14.6059 34.06 14.7048 34.1407 14.7882C34.2215 14.8716 34.318 14.938 34.4247 14.9832C34.5313 15.0285 34.6459 15.0518 34.7616 15.0518H40.9651V13.2965H35.7326V6.75546H40.9651V5.00025ZM20.0349 5.00025V11.3483L15.314 5.00025H12.9884V15.0459H14.7965V7.40488L20.2442 14.7007C20.345 14.8301 20.4788 14.9295 20.6314 14.9882C20.784 15.047 20.9496 15.0629 21.1105 15.0342C21.3126 14.9956 21.4946 14.8863 21.6244 14.7257C21.7542 14.5652 21.8234 14.3636 21.8198 14.1566V5.00025H20.0349ZM5.65116 5.54436L1 15.0518H3.02326L6.51163 7.9256L10 15.0635H12.0058L7.39535 5.58532C7.30869 5.41551 7.18068 5.27057 7.02326 5.16407C6.86639 5.06366 6.68578 5.00711 6.5 5.00025C6.32119 5.00091 6.14607 5.05154 5.99419 5.14651C5.84206 5.24066 5.72233 5.37953 5.65116 5.54436ZM8.09699 13.63H8.15117L8.12791 13.589L8.09699 13.63ZM6.94187 13.63H8.09699L5.55233 17L5.78489 14.4198H4.56396L7.18024 11.0498L6.94187 13.63Z",fill:"#F5F6F7"}),"\\n"),BD=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 41.5 51",...e},A.createElement("g",null,A.createElement("path",{d:"M40.2,17.4c-3.4,2.1-5.5,5.7-5.5,9.7c0,4.5,2.7,8.6,6.8,10.3c-0.8,2.6-2,5-3.5,7.2c-2.2,3.1-4.5,6.3-7.9,6.3s-4.4-2-8.4-2 c-3.9,0-5.3,2.1-8.5,2.1s-5.4-2.9-7.9-6.5C2,39.5,0.1,33.7,0,27.6c0-9.9,6.4-15.2,12.8-15.2c3.4,0,6.2,2.2,8.3,2.2 c2,0,5.2-2.3,9-2.3C34.1,12.2,37.9,14.1,40.2,17.4z M28.3,8.1C30,6.1,30.9,3.6,31,1c0-0.3,0-0.7-0.1-1c-2.9,0.3-5.6,1.7-7.5,3.9 c-1.7,1.9-2.7,4.3-2.8,6.9c0,0.3,0,0.6,0.1,0.9c0.2,0,0.5,0.1,0.7,0.1C24.1,11.6,26.6,10.2,28.3,8.1z"}))),cQ=e=>A.createElement("svg",{width:80,height:48,viewBox:"0 0 80 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.81 13.3345C14.2136 13.8547 15.327 14.9378 15.876 16.3132L21.8966 32.1746C21.9098 32.2094 21.8923 32.2483 21.8575 32.2615L21.8336 32.2659H19.0457C19.0177 32.2659 18.9927 32.2486 18.9827 32.2224L13.3378 17.3486C13.0793 16.6674 12.5353 16.13 11.846 15.8745C10.5471 15.3932 9.10149 16.0268 8.58638 17.2915L7.22633 20.8729C5.91753 21.5279 5.0204 22.8697 5.0204 24.4186C5.0204 24.9466 5.12468 25.4506 5.314 25.9115L2.91882 32.2224C2.90889 32.2486 2.88383 32.2659 2.85585 32.2659L0.0678745 32.2666C0.0306679 32.2667 0.000498102 32.2365 0.000488281 32.1993L0.00487174 32.1754L5.99341 16.3961C7.02016 13.6907 10.072 12.32 12.81 13.3345ZM28.9955 16.7371L29.3163 16.7337L29.7093 16.7473L30.0186 16.772L30.3615 16.8139L30.6021 16.8528L30.9501 16.9228L31.1962 16.9826L31.3465 17.0234L31.625 17.1078L31.8607 17.1883L31.9699 17.2285L32.2629 17.346L32.4752 17.44L32.7069 17.5515L32.9535 17.681L33.0724 17.7476L33.3046 17.8858L33.5249 18.0274L33.6195 18.0915L33.8746 18.2749L34.0785 18.4332L34.2633 18.5865L34.3812 18.6895L34.5683 18.8619L34.6805 18.971L34.7979 19.0898L34.9195 19.2187L35.0383 19.3505L35.1419 19.4705L35.3292 19.7009L35.5691 20.0249L35.6572 20.1534L35.8028 20.3788L35.8973 20.5351L36.058 20.8218L36.1728 21.0463L36.2982 21.3148L36.3974 21.5486L36.4885 21.7852L36.5644 22.0026L36.6282 22.2039L36.6794 22.3813L36.7128 22.5071C36.7374 22.6028 36.7602 22.6992 36.7812 22.7962L36.8153 22.9637L36.846 23.1333L36.8729 23.3043C36.8878 23.4057 36.9006 23.5078 36.9114 23.6104L36.926 23.7649C36.9373 23.8983 36.9452 24.0328 36.9496 24.1681L36.9537 24.3232V35.8054C36.9537 35.9129 36.8662 36 36.7584 36H34.4151C34.315 36 34.2324 35.9249 34.2212 35.8281L34.2199 35.8054L34.2201 30.2913L33.976 30.4888L33.7764 30.6386L33.6197 30.7494L33.4835 30.8411L33.3091 30.9525L33.0969 31.0794L32.8071 31.2383L32.6791 31.3034L32.4479 31.4136L32.1391 31.5464L31.8764 31.6471L31.7372 31.6961L31.4028 31.8015L31.2804 31.836L30.9953 31.9079L30.7166 31.9671L30.4646 32.0115L30.3243 32.0324L30.0586 32.065L29.9326 32.0772L29.7343 32.0922L29.493 32.1037L29.2404 32.1077C24.9804 32.1077 21.5271 28.6661 21.5271 24.4205C21.5271 20.2567 24.8489 16.866 28.9955 16.7371ZM24.2609 24.4205C24.2609 21.6798 26.4903 19.4579 29.2404 19.4579C29.4034 19.4579 29.5647 19.4657 29.7238 19.481L29.8413 19.4937L30.0803 19.5283L30.2016 19.5504L30.3419 19.5798L30.5659 19.6358L30.7996 19.7062L31.0449 19.7939C31.1507 19.835 31.2549 19.8796 31.3571 19.9275L31.4292 19.962L31.6766 20.0916L31.8714 20.2066C31.943 20.2511 32.0134 20.2973 32.0825 20.3453L32.1983 20.428L32.3169 20.5182C32.4843 20.6495 32.6431 20.7912 32.7923 20.9425L32.9514 21.1115C33.6874 21.9308 34.1543 22.9953 34.2135 24.1669L34.2162 24.23L34.2194 24.49C34.1851 26.9823 32.3073 29.0307 29.8835 29.3422L29.7304 29.3595L29.5286 29.375L29.2404 29.3832C26.4903 29.3832 24.2609 27.1613 24.2609 24.4205ZM9.16556 21.9333C10.6351 21.9333 11.8265 23.1123 11.8265 24.5667C11.8265 26.021 10.6351 27.2 9.16556 27.2C7.69598 27.2 6.50464 26.021 6.50464 24.5667C6.50464 23.1123 7.69598 21.9333 9.16556 21.9333ZM50.446 17.7037L50.314 17.6319L49.9725 17.4615L49.7024 17.3412L49.359 17.2057C49.1858 17.1421 49.0099 17.0846 48.8317 17.0334L48.7024 16.9975C48.4418 16.9276 48.1758 16.871 47.9051 16.8283L47.827 16.8164L47.461 16.7714L47.2656 16.7545C47.0749 16.7405 46.8823 16.7333 46.6879 16.7333C42.428 16.7333 38.9746 20.1671 38.9746 24.4029C38.9746 28.6387 42.428 32.0725 46.6879 32.0725L46.9328 32.0687L47.2991 32.0488L47.688 32.0086L47.9931 31.9632L48.302 31.9043L48.6057 31.8336L48.8922 31.7548L49.246 31.6407L49.5034 31.5455L49.7928 31.4258L50.098 31.2842L50.3431 31.1584L50.5963 31.0164L50.9053 30.8256L51.1908 30.6306C51.3442 30.5208 51.4935 30.4054 51.6381 30.2849L51.6676 30.2602L51.6687 32.0952C51.68 32.1917 51.7625 32.2667 51.8627 32.2667H54.206C54.3138 32.2667 54.4012 32.1797 54.4012 32.0725V24.3058L54.3861 23.9176L54.3631 23.6355L54.3242 23.3145L54.2804 23.043L54.216 22.7247L54.1623 22.5014L54.0624 22.1478L54.0059 21.9725L53.916 21.7196L53.7452 21.3029L53.6184 21.0324L53.4359 20.6849L53.2837 20.4245L53.198 20.2876L53.0512 20.067L52.9398 19.9099L52.732 19.6375L52.6151 19.4946L52.387 19.2347L52.2203 19.0586L52.0141 18.8554L51.8835 18.7342L51.7203 18.5904L51.3495 18.2919L51.1038 18.1138L50.8016 17.9139L50.446 17.7037ZM46.6879 19.4517C43.9379 19.4517 41.7085 21.6684 41.7085 24.4029C41.7085 27.1374 43.9379 29.3542 46.6879 29.3542L46.9905 29.3452L47.1625 29.3321L47.4466 29.2973L47.4952 29.2894C47.636 29.2666 47.7747 29.2379 47.9112 29.2037L48.1609 29.1347L48.4198 29.0465L48.5215 29.0086L48.659 28.9511L48.9045 28.8378L49.1359 28.7163L49.321 28.6061L49.4895 28.4973L49.6838 28.3581C50.8786 27.4619 51.6545 26.0429 51.6673 24.443L51.6593 24.1177C51.6192 23.4156 51.4319 22.7526 51.1277 22.1587L50.9903 21.9086L50.8359 21.6623L50.7712 21.5684L50.6486 21.4015L50.5368 21.2613L50.4034 21.1064L50.3055 21.0005L50.1647 20.8584L49.9506 20.6625L49.7324 20.4847L49.5599 20.3578L49.3776 20.2355L49.1353 20.09L49.0187 20.0266L48.7742 19.9059L48.5808 19.8219L48.3539 19.7355L48.1642 19.6729L47.9782 19.6195L47.7697 19.5688L47.5588 19.5271L47.3448 19.4944L47.2201 19.4796C47.0452 19.4611 46.8677 19.4517 46.6879 19.4517ZM77.5285 18.7765L77.4276 18.6851L77.1961 18.4872L77.0529 18.3724L76.8158 18.1941L76.5712 18.0244L76.2693 17.8334L75.9998 17.6789L75.8471 17.5975L75.6556 17.5016L75.4021 17.3846L75.1892 17.2949L75.0162 17.2274L74.6714 17.1069L74.3928 17.0227L74.2425 16.9821L73.9964 16.9224L73.6484 16.8525L73.4078 16.8138L73.2722 16.7954L73.065 16.7719L72.8285 16.752L72.5529 16.7378L72.3626 16.7337L72.0418 16.7371C67.8952 16.8657 64.5734 20.2486 64.5734 24.4029C64.5734 28.6387 68.0267 32.0725 72.2867 32.0725L72.5393 32.0685L72.7806 32.057L72.9789 32.042L73.2162 32.0174L73.3707 31.9974L73.5109 31.9764L73.7629 31.9322L73.9251 31.8991L74.0416 31.8731L74.2035 31.8338L74.4491 31.767L74.6706 31.6992L74.9227 31.6129L75.1854 31.5125L75.3956 31.424L75.7254 31.27L75.8535 31.205L76.1432 31.0465L76.4364 30.8691L76.6661 30.7173L76.8228 30.6067L77.0224 30.4572L77.2664 30.2602L77.2675 32.0952C77.2788 32.1917 77.3613 32.2667 77.4614 32.2667H79.8047C79.9126 32.2667 80 32.1797 80 32.0725V24.3058L79.9959 24.151C79.9915 24.016 79.9836 23.8819 79.9723 23.7488L79.9577 23.5947L79.9193 23.2892C79.9026 23.1751 79.8834 23.0618 79.8617 22.9494L79.8275 22.7823L79.7591 22.4939L79.7257 22.3684L79.639 22.0773L79.5802 21.9009L79.4872 21.6474L79.4437 21.5376L79.3446 21.3043L79.2192 21.0364L79.1043 20.8124L79.0191 20.6572L78.8491 20.3705L78.7893 20.276L78.6154 20.0174L78.4702 19.8176L78.297 19.5956L78.1882 19.4642L78.0846 19.3445L77.8442 19.0844L77.7268 18.9658L77.5285 18.7765ZM72.2867 19.4517C69.5366 19.4517 67.3072 21.6684 67.3072 24.4029C67.3072 27.1374 69.5366 29.3542 72.2867 29.3542L72.5749 29.3461L72.7767 29.3306L72.9298 29.3133C75.3536 29.0025 77.2314 26.9588 77.2657 24.4722L77.2652 24.311L77.2598 24.1499C77.2006 22.981 76.7337 21.9189 75.9977 21.1015L75.9101 21.0067L75.8386 20.9328C75.6894 20.7819 75.5306 20.6405 75.3632 20.5095L75.2446 20.4195L75.1289 20.337C75.0597 20.2892 74.9893 20.243 74.9177 20.1986L74.7229 20.0839L74.4755 19.9546L74.4034 19.9202C74.3012 19.8723 74.1971 19.8279 74.0912 19.7869L73.957 19.7371L73.6875 19.6504L73.5216 19.6051L73.2479 19.5439L73.1266 19.5219L73.0043 19.5027L72.7701 19.4747C72.611 19.4595 72.4498 19.4517 72.2867 19.4517ZM64.3039 19.7017V17L64.1747 17.001C59.9185 17.0686 56.4896 20.4698 56.4896 24.6556V32.1993C56.4896 32.2365 56.5197 32.2667 56.5569 32.2667H59.1799C59.2171 32.2667 59.2472 32.2365 59.2472 32.1993L59.2479 24.5737C59.2926 21.8755 61.5391 19.7017 64.3039 19.7017Z",fill:"white"})),Kke=e=>A.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("title",null,"AVM"),A.createElement("path",{d:"m19.501 11.786-.003-4.823-10.9 11.925h3.172l5.481-6.07v4.864l4.321-4.783v3.657H24V6.86zm-2.643-6.675-5.267 5.87V7.443H9.345v9.38L20.049 5.111zM0 16.556h3.148l2.924-3.25v3.25H8.41v-9.21z"})),Gke=e=>A.createElement("svg",{"xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",width:850.39368,height:244.13385,id:"svg145868",...e},A.createElement("defs",{id:"defs145870"}),A.createElement("g",{transform:"translate(-586.37187,-430.72069)",id:"layer1"},A.createElement("g",{transform:"matrix(3.7156602,0,0,3.7156602,-1556.9538,-1604.717)",id:"g146158"},A.createElement("path",{d:"M 785.08478,558.34886 C 783.93091,558.34886 783.0655,558.72392 782.20009,559.50283 C 781.62315,560.31059 781.04574,561.34918 781.04574,562.44546 C 781.04574,563.51284 781.62315,564.52258 782.20009,565.30151 C 783.0655,566.10926 783.93091,566.54202 785.08478,566.54202 C 786.23867,566.54202 787.39254,566.10926 787.96996,565.30151 C 788.83537,564.55143 789.12384,563.57054 789.12384,562.44546 C 789.12384,561.34918 788.83537,560.31059 787.96996,559.56053 C 787.39254,558.75276 786.23867,558.34886 785.08478,558.34886 z M 788.83537,562.4743 C 788.83537,563.42631 788.25843,564.29181 787.68149,564.92649 C 786.8156,565.61886 785.95019,565.99388 785.08478,565.99388 C 784.21937,565.99388 783.35396,565.61886 782.48856,564.92649 C 781.91162,564.23406 781.62315,563.36861 781.62315,562.44546 C 781.62315,561.49342 781.91162,560.59911 782.77703,559.87788 C 783.35396,559.21432 784.21937,558.86815 785.08478,558.86815 C 786.23867,558.86815 787.10407,559.24316 787.68149,559.93558 C 788.25843,560.59911 788.83537,561.46457 788.83537,562.4743 z M 785.37326,560.02212 L 783.64244,560.02212 L 783.64244,564.66682 L 784.50785,564.66682 L 784.50785,562.70509 L 785.37326,562.70509 L 786.23867,564.66682 L 787.10407,564.66682 L 786.23867,562.56085 C 786.8156,562.41661 787.10407,561.95501 787.10407,561.32034 C 787.10407,560.45483 786.52713,560.02212 785.37326,560.02212 z M 785.08478,560.59911 C 785.95019,560.59911 786.23867,560.82989 786.23867,561.40687 C 786.23867,561.95501 785.95019,562.12809 785.08478,562.12809 L 784.50785,562.12809 L 784.50785,560.59911 L 785.08478,560.59911",style:{fill:"#00a9a0",fillRule:"evenodd",stroke:"none",strokeWidth:.10201,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path672"}),A.createElement("path",{d:"M 653.2441,557.51225 C 660.16785,557.51225 667.38007,557.51225 674.30382,557.51225 C 674.88124,557.51225 676.90052,557.62763 677.189,557.68533 C 677.76593,557.97379 676.32359,561.00297 675.1697,561.83963 C 674.88124,562.12809 674.30382,562.12809 674.01535,562.18579 C 672.573,562.35888 671.13065,562.87817 670.84218,564.17637 C 670.26524,566.16701 670.55372,569.02305 670.55372,571.30215 C 670.55372,577.44703 670.55372,583.59187 670.55372,589.73675 C 670.55372,591.5254 669.97677,596.25669 670.84218,597.5549 C 671.41912,599.02619 673.14994,599.02619 674.88124,599.02619 C 675.1697,598.96849 675.74665,598.9108 676.03511,598.85311 C 676.61206,598.65113 676.90052,598.42035 677.47746,598.18958 C 678.63134,597.52605 679.78522,596.45862 680.65063,595.18926 C 681.51652,593.97759 682.09346,592.59284 682.67039,591.17919 C 682.95887,590.40028 682.95887,589.304 683.5358,588.64047 C 684.11274,587.80386 687.28639,587.16917 687.86332,587.19803 C 688.1518,587.16917 688.72874,587.22687 689.01721,587.22687 C 689.01721,592.16008 689.01721,597.12215 689.01721,602.08421 C 689.01721,602.40152 688.72874,603.81517 688.72874,603.87286 C 688.72874,603.87286 668.53442,603.87286 658.43703,603.87286 C 655.84032,603.87286 652.95563,603.87286 650.3594,603.87286 C 650.07093,603.87286 649.49351,603.98825 649.49351,603.69973 C 649.49351,603.69973 649.49351,603.69973 649.49351,603.69973 C 649.49351,602.43037 650.07093,600.06478 651.22481,599.37236 C 651.80175,599.02619 652.37869,599.02619 653.2441,599.02619 C 653.53256,598.79541 654.10951,598.53575 654.68645,598.27612 C 655.84032,597.64144 656.41775,596.54516 656.70621,595.47772 C 657.57162,593.25636 657.28315,590.19835 657.28315,587.57309 C 657.28315,582.20712 657.28315,576.8412 657.28315,571.47523 C 657.28315,569.77311 657.57162,565.41689 656.99468,564.14753 C 656.12927,562.04156 651.80175,562.4743 651.51328,561.55111 C 651.22481,560.42599 652.66716,558.37771 653.2441,557.51225",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path676"}),A.createElement("path",{d:"M 764.31353,557.68533 C 765.17894,557.68533 766.62129,557.51225 767.19823,558.20462 C 767.4867,559.18546 767.19823,562.56085 767.19823,563.97445 C 767.19823,570.4078 767.19823,576.8412 767.19823,583.27455 C 767.4867,583.27455 767.4867,583.30339 767.77517,583.15916 C 770.0834,581.25511 772.1027,578.88948 774.12198,576.81235 C 775.27634,575.83146 776.14175,574.50441 777.58409,573.98511 C 778.4495,573.61005 779.89185,573.81203 780.75726,573.81203 C 783.64244,573.81203 786.52713,573.81203 789.12384,573.81203 C 789.12384,574.87942 788.25843,576.35075 787.68149,577.07197 C 786.8156,577.79319 785.37326,577.47588 784.50785,577.93743 C 783.35396,578.39903 777.58409,584.54391 777.87257,585.03436 C 778.16103,586.39026 780.46879,588.09233 781.62315,589.2463 C 783.64244,591.32347 785.37326,593.4006 787.39254,595.50657 C 788.25843,596.22779 788.83537,597.20869 789.70078,597.67029 C 790.85465,598.27612 792.29701,598.36266 793.73936,598.59344 C 794.31677,598.70883 795.47065,598.59344 796.04759,599.08388 C 796.33606,599.3435 796.04759,600.15132 795.75912,600.41094 C 795.47065,601.16101 794.31677,603.35356 793.45088,603.67088 C 792.29701,604.13249 790.56619,603.84401 789.12384,603.84401 C 787.39254,603.84401 785.95019,603.84401 784.21937,603.84401 C 783.35396,603.84401 781.91162,603.9594 781.04574,603.72858 C 779.02644,603.20934 777.29563,601.36298 775.85328,599.80511 C 774.41045,598.21843 772.67963,596.6317 770.94881,595.04502 C 770.66034,594.58342 767.77517,591.78503 767.77517,591.5254 C 767.4867,591.5254 767.4867,591.66964 767.19823,591.66964 C 767.19823,596.25669 766.04435,599.40125 771.52575,599.40125 C 771.52575,600.38209 770.66034,603.06505 769.79494,603.5555 C 768.92953,604.13249 767.19823,603.84401 765.75588,603.84401 C 761.13989,603.84401 756.23591,603.87286 751.33144,603.87286 C 751.33144,603.75743 751.33144,603.64204 751.33144,603.4978 C 751.90838,602.28613 751.90838,601.04562 752.77379,600.03593 C 753.6392,599.14158 755.08154,599.19928 755.37002,597.90106 C 755.65849,596.97791 755.65849,595.76624 755.65849,594.72766 C 755.65849,592.93901 755.65849,591.15034 755.65849,589.36174 C 755.65849,584.11116 755.65849,578.86063 755.65849,573.61005 C 755.65849,571.18676 755.94695,568.41721 755.65849,566.13811 C 755.08154,564.00329 751.61991,565.04188 751.61991,564.32066 C 751.33144,563.62823 751.61991,562.79162 751.61991,562.18579 C 751.90838,561.55111 751.90838,560.91642 752.48532,560.39713 C 753.06226,559.56053 764.02506,557.82957 764.31353,557.68533",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path686"}),A.createElement("path",{d:"M 698.82566,558.06039 C 700.84542,557.4257 702.28777,558.06039 703.73012,558.86815 C 706.90376,560.65681 707.19224,565.56117 704.59553,567.89791 C 701.71083,570.35011 697.38331,570.43664 693.34425,570.32125 C 692.47884,570.29241 691.61343,570.37895 691.03649,569.85966 C 690.45956,567.09016 694.49861,561.49342 696.80636,559.44514 C 697.38331,558.98353 698.24872,558.32 698.82566,558.06039",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path696"}),A.createElement("path",{d:"M 704.01859,572.02337 C 704.59553,572.08107 704.884,572.13876 705.17246,572.19645 C 706.03835,572.60036 705.7494,578.02397 705.7494,579.35107 C 705.7494,583.765 705.7494,588.17891 705.7494,592.59284 C 705.7494,594.03528 705.46094,596.28554 706.03835,597.49716 C 706.32683,598.56459 707.4807,598.85311 708.63458,599.3435 C 709.21152,599.71857 708.92305,600.46864 708.63458,601.01677 C 708.63458,601.13217 708.63458,601.24755 708.63458,601.33414 C 708.63458,601.42068 708.63458,601.47838 708.63458,601.56491 C 708.05764,602.31498 707.76917,603.0939 707.4807,603.87286 C 702.28777,603.87286 697.09484,603.87286 691.9019,603.87286 C 691.61343,603.87286 690.17108,603.67088 689.88262,603.67088 C 689.88262,603.64204 690.45956,600.93024 691.32497,600.09363 C 692.19038,599.05504 693.05579,598.99734 693.6332,597.5549 C 693.92167,596.37207 693.92167,594.87189 693.92167,593.48714 C 693.92167,590.77533 693.92167,587.97694 693.6332,585.43821 C 693.6332,584.02462 694.21014,581.8898 693.6332,580.70698 C 693.05579,579.92802 690.74803,579.35107 689.88262,579.35107 C 689.59415,579.35107 689.59415,579.1491 689.59415,579.00486 C 690.17108,577.44703 689.88262,575.22563 692.19038,575.22563 C 692.76731,575.16793 693.05579,575.11024 693.6332,575.05254 C 694.49861,574.82171 695.65249,574.5621 696.5179,574.33132 C 699.11412,573.78318 701.9993,573.11966 704.01859,572.02337",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path706"}),A.createElement("path",{d:"M 723.92443,572.19645 C 725.65573,572.74459 724.78984,575.94685 725.07879,577.53357 C 725.07879,577.7355 725.07879,577.90858 725.36726,577.90858 C 726.52114,577.76435 727.96349,576.81235 729.11736,576.20651 C 732.00254,574.76402 736.61805,572.74459 738.92629,572.65805 C 739.7917,572.60036 740.94557,572.71574 741.81098,572.77344 C 744.11922,572.91767 745.85004,574.99484 746.71545,577.07197 C 747.00392,578.57211 747.00392,580.62044 747.00392,582.3802 C 747.00392,586.73643 747.00392,591.09265 747.00392,595.44888 C 747.00392,596.89137 747.58085,598.18958 748.73474,598.99734 C 749.31167,599.25697 749.60015,599.48779 750.17756,599.71857 C 750.46604,599.9205 750.17756,600.35324 750.17756,600.61287 C 749.88861,601.47838 749.60015,602.74774 748.73474,603.35356 C 747.58085,604.24788 744.11922,603.84401 742.38792,603.84401 C 740.08016,603.84401 738.06088,603.78632 736.90652,602.34383 C 733.15642,598.47805 739.21476,580.0723 731.4256,580.59159 C 730.27124,580.64928 729.40583,581.11083 728.54042,581.63012 C 724.2129,584.05346 725.07879,587.74617 725.07879,592.59284 C 725.07879,594.52573 724.78984,597.09329 725.94419,598.4492 C 726.8096,599.54549 728.54042,598.76657 729.40583,599.57433 C 729.6943,599.94934 728.54042,601.96882 728.25195,602.37268 C 728.25195,602.80543 727.96349,603.41127 727.38654,603.64204 C 726.23267,604.19018 724.2129,603.84401 722.77055,603.84401 C 718.73198,603.84401 714.40445,603.87286 710.07693,603.87286 C 710.3654,602.45922 710.65387,600.67061 711.51928,599.71857 C 712.38517,598.93965 713.25057,598.67998 713.53904,597.61259 C 713.82752,596.11241 713.53904,593.89105 713.53904,592.24663 C 713.53904,588.84244 713.53904,585.43821 713.53904,582.03404 C 713.53904,581.54359 713.25057,581.08199 713.25057,580.70698 C 712.38517,579.63954 710.94234,579.69723 709.78846,579.69723 C 710.07693,578.45672 710.3654,577.21621 710.65387,575.94685 C 711.80774,575.68722 712.96211,575.39871 714.11598,575.13908 C 717.28915,574.18704 720.75126,573.69664 723.92443,572.19645",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path710"}),A.createElement("path",{d:"M 655.55186,579.00486 C 656.99468,579.00486 653.2441,585.87097 652.09021,586.30372 C 650.93634,586.82296 648.02237,586.50565 646.49363,586.50565 C 644.01259,586.50565 641.50276,586.50565 638.99246,586.50565 C 638.73278,586.50565 638.32911,586.59219 638.27152,586.33257 C 638.21392,586.33257 641.30068,579.46646 642.0797,579.1491 C 643.0315,578.7164 652.09021,579.00486 655.55186,579.00486",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path714"}),A.createElement("path",{d:"M 629.58767,564.95534 C 627.71286,562.4743 625.77996,559.24316 622.83719,557.97379 C 621.65452,557.4257 620.21169,557.56994 618.76934,557.4834 C 614.96115,557.25257 589.83358,557.4834 588.16036,557.33912 C 587.52582,558.14692 586.19867,560.42599 586.42955,561.57995 C 586.71801,563.10899 590.5838,561.89732 591.36281,563.54169 C 591.82407,564.55143 591.5644,566.31124 591.5644,567.55176 C 591.5644,571.18676 591.5644,574.82171 591.5644,578.45672 C 591.5644,582.46678 591.5644,586.44795 591.5644,590.42912 C 591.53561,592.36201 591.85287,594.64111 591.30521,596.31438 C 590.78587,597.78567 589.37184,597.58374 588.30484,598.33382 C 587.49703,598.88196 585.9966,602.40152 586.45835,603.35356 C 586.83321,604.10364 594.2475,603.87286 595.68985,603.87286 C 600.76759,603.87286 605.81605,603.87286 610.89379,603.87286 C 615.65377,603.87286 621.10638,604.56523 624.59681,602.14191 C 625.60669,601.44953 626.21243,600.43979 626.90505,599.45894 C 628.20292,597.52605 629.53007,595.62201 630.82842,593.71792 C 632.47285,591.26578 634.54973,588.8136 635.81929,586.15944 C 636.6271,584.42853 637.00196,582.40905 637.00196,580.24538 C 637.00196,573.40812 633.25185,569.83081 629.58767,564.95534 z M 613.28794,567.29209 C 614.96115,569.57119 616.63438,571.82144 618.3076,574.10049 C 619.40388,575.62953 620.50016,577.12967 621.56763,578.65865 C 621.94298,579.37993 622.02938,580.38961 621.9137,581.31281 C 621.59644,583.70731 619.51955,585.58245 618.1348,587.45765 C 616.77885,589.21745 615.4229,590.97726 614.09575,592.73707 C 612.82668,594.41034 611.52832,596.05471 610.25876,597.69913 C 609.7975,598.10299 609.22008,598.16074 608.75882,598.5069 C 607.69134,598.5069 606.24899,598.70883 605.75845,597.75682 C 605.21031,596.71824 605.52757,591.81387 605.52757,590.25604 C 605.52757,581.80321 605.55637,573.32158 605.55637,564.86875 C 605.58518,564.14753 605.64278,563.59939 606.24899,563.25322 C 606.24899,563.19552 606.24899,563.13783 606.24899,563.08014 C 607.63374,563.08014 609.19128,562.90701 610.25876,563.57054",style:{fill:"#00a8a0",fillRule:"nonzero",stroke:"none",strokeWidth:.071,strokeLinecap:"butt",strokeLinejoin:"miter",strokeMiterlimit:4,strokeDasharray:"none"},id:"path718"})))),Yke=e=>A.createElement("svg",{width:128,height:44,viewBox:"0 0 128 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("path",{d:"M3.03547 11.8505C6.36347 8.70536 11.6298 5.99907 16.2378 7.82764C19.3098 9.10764 20.0412 12.5819 19.7852 15.5442C19.456 19.5671 17.408 23.6265 14.7383 26.6254C13.056 28.5271 9.80119 31.2334 7.05833 31.0871C6.40004 31.0505 5.70519 31.1236 5.12004 31.4528C5.01033 31.5259 4.13262 32.0379 4.75433 32.0745C8.19204 32.2574 11.7029 30.6116 14.4823 28.7099C18.9806 25.6014 21.9429 20.1888 22.528 14.8128C23.0035 10.4608 20.8092 6.87678 16.3475 6.32821C10.8252 5.63336 4.49833 8.41279 0.548615 12.1431C0.0731868 12.6185 2.59662 12.2528 3.03547 11.8505ZM3.62062 31.2334C5.01033 23.7362 7.02176 15.4345 11.3006 8.96136C11.4103 8.81507 9.03319 8.85164 8.59433 9.50993C4.31547 16.0196 2.26747 24.3579 0.877758 31.9648C0.841187 32.1111 3.47433 32.0014 3.62062 31.2334Z",fill:"url(#paint0_linear_3809_68339)"}),A.createElement("path",{d:"M35.5652 16.6414C36.6258 16.9705 36.8086 18.2871 36.6989 19.3111C36.6623 19.7134 39.4418 19.3111 39.4418 18.5796C39.4418 17.8482 39.4052 17.1168 38.9663 16.4951C36.9183 13.4962 30.9572 16.3488 29.348 18.2871C29.6406 17.4094 29.9698 16.5316 30.2989 15.6539C30.4452 15.2516 29.3846 15.4345 29.2383 15.4711C28.8726 15.5442 28.5435 15.6539 28.2143 15.8002C28.068 15.8734 27.7023 16.0196 27.6292 16.1659C25.764 21.3225 24.228 26.5522 23.1309 31.9282C23.0578 32.3305 25.6543 32.0745 25.8738 31.3065C26.8612 27.9419 27.9218 24.5408 29.5675 21.4322C29.9332 20.7374 30.3355 20.0425 30.8109 19.3476C32.676 16.7145 34.6143 16.3488 35.5652 16.6414Z",fill:"url(#paint1_linear_3809_68339)"}),A.createElement("path",{d:"M54.1966 27.7225C52.1852 29.4779 49.6983 31.3065 46.8823 31.0505C45.1635 30.9042 43.7006 29.8802 43.0789 28.2711C41.616 24.3579 46.0778 19.4208 49.0766 17.5922C51.0515 16.3488 54.7818 16.2025 54.6355 19.3842C54.4526 23.4071 48.9669 24.6505 45.8949 25.0162C45.2732 25.0894 42.896 26.1865 44.688 25.9671C48.9303 25.4916 56.1715 24.1751 57.3418 19.0916C58.4389 14.2642 50.9783 15.8734 48.784 16.7511C44.5052 18.3968 37.52 25.3088 40.9578 30.1728C42.3475 32.1476 45.1269 32.2574 47.248 31.9648C50.7955 31.5259 54.0138 29.7339 56.6835 27.4299C57.1589 26.9911 54.6721 27.3202 54.1966 27.7225Z",fill:"url(#paint2_linear_3809_68339)"}),A.createElement("path",{d:"M75.4038 16.2391C69.9546 14.7396 64.542 17.5191 61.1409 21.7248C59.2026 24.1385 57.0449 28.5271 60.0072 31.0505C62.8598 33.4276 67.9798 30.3922 70.2106 28.6368C70.8689 28.1614 71.4541 27.6494 72.0026 27.1008C71.8929 28.7099 72.0758 30.3191 72.5146 31.8916C72.6609 32.4402 75.4038 31.6722 75.2575 31.1602C74.4529 28.4174 74.6358 25.6014 75.3306 22.8585C76.5375 20.8471 77.3786 18.6162 77.9272 16.2025C77.9638 15.9831 75.4769 16.2756 75.2209 16.8242C74.1603 19.0185 73.1363 21.3591 72.5512 23.7362C72.2952 24.2116 71.966 24.6505 71.6369 25.0894C70.0643 27.1739 65.6392 32.3305 62.6403 30.1728C60.8118 28.8562 61.1775 26.0402 61.9089 24.2848C62.6769 22.4196 64.1032 20.7008 65.566 19.3111C67.7603 17.2265 70.174 16.4219 73.1363 17.2265C73.7215 17.4094 76.0986 16.4585 75.4038 16.2391Z",fill:"url(#paint3_linear_3809_68339)"}),A.createElement("path",{d:"M104.945 17.0436C105.53 17.5922 105.786 18.9454 105.822 19.9694C105.895 21.6151 105.566 23.2974 105.201 24.9431C104.652 27.2471 103.921 29.6242 103.079 31.8185C102.933 32.2208 103.921 32.1111 104.177 32.0745C104.689 32.0014 105.603 31.8185 105.786 31.3065C106.371 29.7339 106.919 28.0151 107.358 26.4059C107.834 24.7968 108.199 23.1876 108.419 21.5785C108.675 19.6036 108.894 16.3488 106.517 15.5076C105.786 15.2516 105.018 15.2882 104.25 15.3614C103.189 15.4345 102.129 15.7271 101.178 16.1659C99.6783 16.8242 98.4715 17.8482 97.4109 19.1282C97.1915 19.4208 96.972 19.6768 96.7892 19.9694C96.7892 19.6036 96.7526 19.2745 96.716 18.9088C96.5698 17.8848 96.2772 16.8608 95.5092 16.1294C94.5949 15.2516 93.1321 15.2151 91.9618 15.3979C90.0601 15.6539 88.2315 16.3854 86.732 17.5922C85.8909 18.3236 85.1229 19.1648 84.428 20.0791C84.9035 18.5796 85.3789 17.1168 85.8909 15.6539C86.0372 15.2516 85.0863 15.3979 84.8303 15.4711C84.5012 15.5442 84.1355 15.6539 83.8063 15.8002C83.66 15.8734 83.2943 16.0196 83.2212 16.1659C81.356 21.2859 79.9663 26.6254 78.9423 31.9648C78.8692 32.2939 80.2589 32.0014 81.0635 31.7088C81.3926 31.5991 81.612 31.4528 81.6486 31.3065C82.636 27.9054 83.9526 24.5042 85.8178 21.4322C86.7686 19.9328 88.2315 18.0311 89.548 17.0436C90.6086 16.2391 92.0349 16.1294 92.9492 17.0436C93.6441 17.8116 93.9001 18.8722 93.9732 19.8596C94.1195 21.2128 93.9732 22.5659 93.7538 23.8825C93.4246 25.6745 92.9492 27.3202 92.3641 29.1854L91.5229 31.8916C91.4863 32.0379 91.5961 32.0745 91.7423 32.1111C92.2543 32.1842 94.0463 31.9282 94.2292 31.3431C94.9606 29.1488 95.3995 27.4299 96.3503 25.2356C97.0818 23.5168 97.9229 21.7979 98.9103 20.2254C100.3 18.0676 103.299 15.5076 104.945 17.0436Z",fill:"url(#paint4_linear_3809_68339)"}),A.createElement("path",{d:"M123.304 27.7225C121.292 29.4779 118.805 31.3065 115.989 31.0505C114.271 30.9042 112.808 29.8802 112.186 28.2711C110.723 24.3579 115.185 19.4208 118.184 17.5922C120.159 16.3488 123.889 16.2025 123.743 19.3842C123.56 23.4071 118.074 24.6505 115.002 25.0162C114.38 25.0894 112.003 26.1865 113.795 25.9671C118.037 25.4916 125.279 24.1751 126.449 19.0916C127.546 14.2642 120.085 15.8734 117.891 16.7511C113.612 18.3968 106.627 25.3088 110.065 30.1728C111.455 32.1476 114.234 32.2574 116.355 31.9648C119.903 31.5259 123.121 29.7339 125.791 27.4299C126.266 26.9911 123.779 27.3202 123.304 27.7225Z",fill:"url(#paint5_linear_3809_68339)"}),A.createElement("defs",null,A.createElement("linearGradient",{id:"paint0_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint1_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint2_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint3_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint4_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})),A.createElement("linearGradient",{id:"paint5_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},A.createElement("stop",{stopColor:"#6B4CFF"}),A.createElement("stop",{offset:1,stopColor:"#222222"})))),uQ=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e},A.createElement("g",null,A.createElement("path",{d:"M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z"}),A.createElement("path",{d:"M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z"}),A.createElement("path",{d:"M11.69 28.18C11.25 26.86 11 25.45 11 24s.25-2.86.69-4.18v-5.7H4.34A21.991 21.991 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z"}),A.createElement("path",{d:"M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z"}))),dQ=e=>A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:98.36,height:40,viewBox:"0 0 98.36 40",...e},A.createElement("path",{fill:"#0058ab",d:"M98.36 40H0V0h98.36v40Z"}),A.createElement("path",{fill:"#fbd914",d:"M1.92 20c0 9.66 19.81 17.67 47.26 17.67S96.44 29.66 96.44 20 76.63 2.33 49.18 2.33 1.92 10.34 1.92 20Z"}),A.createElement("path",{fill:"#0058ab",d:"M46.39 25.67c.29.43.63.83 1.04 1.25H36.79c0-.42-.4-1.28-.86-1.96l-2.9-4.38v5.09c0 .42 0 .83.21 1.25h-8.87c.21-.42.21-.83.21-1.25v-12.1c0-.42 0-.83-.21-1.25h8.87c-.21.42-.21.83-.21 1.25v5.28s2.84-3.68 3.48-4.55c.49-.66 1.11-1.57 1.11-1.98h9.24c-.64.42-1.34 1.19-1.92 1.89l-3.39 4.13 4.82 7.33Zm2.79-12.1v12.1c0 .42 0 .83-.21 1.25h17.11v-4.05c-.42.21-.83.21-1.25.21h-7.2v-1.92h6.92v-3.07h-6.92v-1.92h7.2c.42 0 .83 0 1.25.2v-4.05H48.97c.21.42.21.83.21 1.25Zm40.63 12.09c.16.42.32.84.69 1.26h-9.28c.05-.42-.12-.83-.28-1.25l-.33-.84-.08-.22h-5.34l-.08.22-.3.84c-.15.42-.3.83-.24 1.25h-7.32c.36-.42.51-.83.66-1.25l4.39-12.1c.15-.42.3-.83.25-1.25h12.36c-.11.42.11.83.27 1.25l4.63 12.09Zm-10.47-4.12-1.29-3.38a9.4 9.4 0 0 1-.29-.96s-.1.54-.25.96l-1.23 3.38h3.05Zm-59.15-9.22h-9.64c.21.42.21.83.21 1.25v12.1c0 .42 0 .83-.21 1.25h9.64c-.21-.42-.21-.83-.21-1.25v-12.1c0-.42 0-.83.21-1.25Zm66.64 1.15c0-1.12.81-1.92 1.92-1.92s1.92.81 1.92 1.92-.81 1.92-1.92 1.92-1.92-.81-1.92-1.92Zm.39 0c0 .85.64 1.54 1.54 1.54.85 0 1.54-.64 1.54-1.54 0-.85-.64-1.54-1.54-1.54s-1.54.64-1.54 1.54Zm1.15 1.15h-.34v-2.3h.86c.4 0 .72.35.72.75 0 .28-.17.56-.41.67l.5.89h-.38l-.46-.81h-.5v.81Zm0-1.15h.47c.24 0 .43-.17.43-.41s-.19-.41-.43-.41h-.47v.81Z"})),Jke=e=>A.createElement("svg",{width:87,height:22,viewBox:"0 0 87 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("path",{d:"M20.227 6.9772C20.8627 3.67692 19.1349 0.197266 15.3536 0.197266H9.45329L8.47534 5.23738H12.925C13.8377 5.23738 14.4082 6.06245 14.2126 7.04895C14.017 8.05338 13.1369 8.82464 12.2241 8.82464H7.72559L13.7562 21.0931H20.064L15.9892 12.8603C17.0813 12.2146 19.5587 10.403 20.227 6.9772Z",fill:"#6CBB86"}),A.createElement("path",{d:"M1.04314 15.6945L0 21.1112H5.3787L7.72577 8.84277C4.44965 8.96833 1.8744 11.3718 1.04314 15.6945Z",fill:"#6CBB86"}),A.createElement("path",{d:"M4.58026 5.56026C5.98198 5.56026 7.12291 4.32266 7.12291 2.78013C7.12291 1.23761 5.98198 0 4.58026 0C3.17853 0 2.0376 1.23761 2.0376 2.78013C2.0376 4.30472 3.17853 5.56026 4.58026 5.56026Z",fill:"#6CBB86"}),A.createElement("path",{d:"M82.2616 0.197266H77.1763L74.5684 13.8468C73.8024 17.8466 76.3939 21.5415 82.4572 21.5415C82.5061 21.5415 82.6039 21.5236 82.6039 21.5236L83.6307 16.1785C81.7074 16.5014 79.2463 15.7122 79.6863 13.4163L80.3383 10.0084H84.8205L85.7496 5.21944H81.2673L82.2616 0.197266Z",fill:"#6CBB86"}),A.createElement("path",{d:"M50.1036 13.4343C49.7124 15.4432 48.2129 16.8422 46.094 16.8422C43.9751 16.8422 43.1438 15.3714 43.5513 13.2908C43.9588 11.2281 45.3116 10.0264 47.4305 10.0264C49.5331 10.0264 50.4947 11.4254 50.1036 13.4343ZM48.3107 5.32706C47.3001 5.32706 45.5561 5.61404 44.9693 5.95483L46.0777 0.197266H41.0087L38.4497 13.4343C37.537 18.1157 40.4219 21.5594 45.2138 21.5594C50.5599 21.5594 54.1131 19.0304 55.1237 13.793C56.0853 8.73496 52.6951 5.32706 48.3107 5.32706Z",fill:"#6CBB86"}),A.createElement("path",{d:"M68.1628 13.4344C67.7717 15.4432 66.321 16.8423 64.2022 16.8423C62.0833 16.8423 61.1705 15.4612 61.578 13.3806C61.9855 11.3179 63.4035 10.0265 65.5224 10.0265C67.625 10.0265 68.554 11.4255 68.1628 13.4344ZM66.4188 5.32715C61.6269 5.32715 57.4706 8.43013 56.509 13.4523C55.5473 18.4565 58.5138 21.5775 63.1916 21.5775C68.9289 21.5775 72.2865 18.4565 73.2318 13.4523C74.1935 8.43013 71.2108 5.32715 66.4188 5.32715Z",fill:"#6CBB86"}),A.createElement("path",{d:"M31.9463 13.4344C31.5552 15.4432 30.1045 16.8423 27.9857 16.8423C25.8668 16.8423 24.954 15.4612 25.3615 13.3806C25.769 11.3179 27.187 10.0265 29.3059 10.0265C31.4085 10.0265 32.3375 11.4255 31.9463 13.4344ZM30.2186 5.32715C25.4267 5.32715 21.2704 8.43013 20.3088 13.4523C19.3471 18.4565 22.3136 21.5775 26.9914 21.5775C32.7287 21.5775 36.0863 18.4565 37.0317 13.4523C37.977 8.43013 35.0106 5.32715 30.2186 5.32715Z",fill:"#6CBB86"}),A.createElement("path",{d:"M84.9833 1.14786H84.7388V1.63214H84.9833C85.1789 1.63214 85.2604 1.54246 85.2604 1.38103C85.2604 1.27341 85.2115 1.14786 84.9833 1.14786ZM85.5864 2.4034H85.3419L84.9344 1.82944H84.7225V2.4034H84.5106V0.950558H84.9833C85.3419 0.950558 85.4723 1.18373 85.4723 1.38103C85.4723 1.6142 85.3419 1.75769 85.1463 1.79357L85.5864 2.4034ZM84.967 2.76213C85.5049 2.76213 85.9449 2.27785 85.9449 1.68595C85.9449 1.09405 85.5049 0.609767 84.967 0.609767C84.4291 0.609767 83.989 1.09405 83.989 1.68595C83.989 2.27785 84.4291 2.76213 84.967 2.76213ZM84.967 0.394531C85.6027 0.394531 86.1405 0.98643 86.1405 1.68595C86.1405 2.4034 85.619 2.97736 84.967 2.97736C84.315 2.97736 83.7935 2.4034 83.7935 1.68595C83.7935 0.98643 84.315 0.394531 84.967 0.394531Z",fill:"#6CBB86"})),Zke=e=>A.createElement("svg",{width:225,height:99,viewBox:"0 0 225 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{clipPath:"url(#clip0_415_130964)"},A.createElement("path",{d:"M134.874 68.7831H165.274V81.2487H120.202V17.2373H134.874V68.7831Z",fill:"#707070"}),A.createElement("path",{d:"M197.534 56.8451H209.482V68.0462C207.288 68.8892 202.987 69.7323 198.905 69.7323C185.694 69.7323 181.301 62.9711 181.301 49.241C181.301 36.1374 185.483 28.4265 198.682 28.4265C206.039 28.4265 210.213 30.7533 213.675 35.1904L222.802 26.7376C217.227 18.726 207.5 16.2981 198.365 16.2981C177.83 16.2897 167.033 27.5807 167.033 49.1314C167.033 70.5753 176.79 82.2007 198.256 82.2007C208.113 82.2007 217.748 79.6716 222.992 75.9651V44.9078H197.534V56.8451Z",fill:"#707070"}),A.createElement("path",{d:"M83.831 84.5045C103.008 65.1736 103.007 33.831 83.829 14.499C64.6508 -4.83307 33.5576 -4.83396 14.3805 14.497C-4.79664 33.8279 -4.79576 65.1705 14.3825 84.5025C33.5607 103.835 64.6538 103.835 83.831 84.5045Z",fill:"#A50034"}),A.createElement("path",{d:"M61.1184 66.6079H51.0826V28.5984H47.3721V70.3594H51.0909V70.3341H61.1268L61.1184 66.6079Z",fill:"white"}),A.createElement("path",{d:"M86.1485 51.0737H61.1759V47.3447H89.8088C89.8479 48.0669 89.8674 48.7891 89.8674 49.5198C89.8674 71.9725 71.7136 90.1707 49.3252 90.1707C26.9368 90.1707 8.78027 71.9809 8.78027 49.5169C8.78027 27.053 26.9313 8.86597 49.3224 8.86597C49.9134 8.86597 50.5016 8.87814 51.0871 8.9025V12.6034C50.5016 12.5772 49.9153 12.5641 49.328 12.5641C28.9775 12.5641 12.474 29.11 12.474 49.5169C12.474 69.9239 28.9747 86.4726 49.328 86.4726C69.121 86.4726 85.2899 70.8175 86.1457 51.1777L86.1485 51.0737Z",fill:"white"}),A.createElement("path",{d:"M34.2066 39.8496C35.3263 39.8441 36.4193 39.5043 37.3476 38.8732C38.276 38.2421 38.9981 37.3479 39.4227 36.3036C39.8474 35.2592 39.9557 34.1114 39.7339 33.005C39.5121 31.8987 38.9701 30.8834 38.1764 30.0872C37.3827 29.2911 36.3728 28.7497 35.2742 28.5316C34.1756 28.3134 33.0374 28.4282 32.0035 28.8614C30.9695 29.2946 30.086 30.0268 29.4645 30.9657C28.8429 31.9046 28.5112 33.008 28.5112 34.1367C28.5131 34.8888 28.6618 35.6331 28.949 36.3273C29.2362 37.0214 29.6563 37.6517 30.1851 38.1822C30.714 38.7127 31.3413 39.133 32.0313 39.4191C32.7213 39.7052 33.4605 39.8515 34.2066 39.8496Z",fill:"white"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0_415_130964"},A.createElement("rect",{width:223,height:99,fill:"white"})))),Xke=e=>A.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("title",null,"Lidl"),A.createElement("path",{d:"M0 0v24h24V0zm.209.209h23.582v23.582H.209zm11.789.625C5.83.834.83 5.834.83 12.002c0 6.168 5 11.168 11.168 11.168 6.167 0 11.167-5 11.168-11.166C23.165 5.837 18.166.837 12 .834zm.002.709c5.777 0 10.46 4.682 10.46 10.459v.004c-.004 5.773-4.686 10.452-10.46 10.453-5.777 0-10.46-4.68-10.46-10.457C1.54 6.225 6.222 1.543 12 1.543zM9.229 7.85c-.645 0-1.166.521-1.166 1.166v.004c0 1.044 1.261 1.567 1.999.829.738-.738.215-2-.829-1.999zM2.73 10.059v.71h.551v2.465h-.55v.713h4.644v-.65l.537-.54 1.486 1.491-.55.547.357.36 2.973-2.977v-.713l-.826.83-1.848-1.848-2.129 2.133v-.576l-1.904 1.06V10.77h.549v-.711zm8.905 0v.71h.549v2.465h-.555v.713h3.129c2.325 0 2.355-3.888.008-3.888zm4.963 0v.71h.55v2.465h-.55v.713h4.648v-1.943l-1.906 1.06V10.77h.55v-.711zm-2.43 1.21h.133c.687 0 .685 1.461.023 1.461h-.156v-1.46z"})),fQ=e=>A.createElement("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80.2 14.3",...e},A.createElement("defs",null,A.createElement("style",null,`
|
|
199
199
|
.st0 {
|
|
200
200
|
fill: #0097e0;
|
|
201
201
|
}
|
|
@@ -496,4 +496,4 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
496
496
|
To pick up a draggable item, press the space bar.
|
|
497
497
|
While dragging, use the arrow keys to move the item.
|
|
498
498
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
499
|
-
`},_gt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Tgt(e){let{announcements:t=_gt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Dgt}=e;const{announce:o,announcement:s}=kgt(),a=Nv("DndLiveRegion"),[l,c]=A.useState(!1);if(A.useEffect(()=>{c(!0)},[]),Egt(A.useMemo(()=>({onDragStart(d){let{active:p}=d;o(t.onDragStart({active:p}))},onDragMove(d){let{active:p,over:g}=d;t.onDragMove&&o(t.onDragMove({active:p,over:g}))},onDragOver(d){let{active:p,over:g}=d;o(t.onDragOver({active:p,over:g}))},onDragEnd(d){let{active:p,over:g}=d;o(t.onDragEnd({active:p,over:g}))},onDragCancel(d){let{active:p,over:g}=d;o(t.onDragCancel({active:p,over:g}))}}),[o,t])),!l)return null;const u=on.createElement(on.Fragment,null,on.createElement(wgt,{id:r,value:i.draggable}),on.createElement(Cgt,{id:a,announcement:s}));return n?qd.createPortal(u,n):u}var Wi;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Wi||(Wi={}));function a6(){}function JY(e,t){return A.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ogt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const El=Object.freeze({x:0,y:0});function pue(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function mue(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Mgt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ZY(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function gue(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function XY(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const jgt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=XY(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=pue(XY(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(mue)},Rgt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=ZY(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=ZY(l),u=i.reduce((p,g,y)=>p+pue(c[y],g),0),d=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:d}})}}return o.sort(mue)};function Igt(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=s*a,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const Pgt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=Igt(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(Mgt)};function Ngt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function yue(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:El}function $gt(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const Lgt=$gt(1);function Fgt(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function zgt(e,t,n){const r=Fgt(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const Bgt={ignoreTransform:!1};function N0(e,t){t===void 0&&(t=Bgt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Ps(e).getComputedStyle(e);c&&(n=zgt(n,c,u))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function QY(e){return N0(e,{ignoreTransform:!0})}function Hgt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Ugt(e,t){return t===void 0&&(t=Ps(e).getComputedStyle(e)),t.position==="fixed"}function Vgt(e,t){t===void 0&&(t=Ps(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function j8(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(xI(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Iv(i)||due(i)||n.includes(i))return n;const o=Ps(e).getComputedStyle(i);return i!==e&&Vgt(i,o)&&n.push(i),Ugt(i,o)?n:r(i.parentNode)}return e?r(e):n}function bue(e){const[t]=j8(e,1);return t??null}function WA(e){return!M8||!e?null:I0(e)?e:vI(e)?xI(e)||e===P0(e).scrollingElement?window:Iv(e)?e:null:null}function vue(e){return I0(e)?e.scrollX:e.scrollLeft}function xue(e){return I0(e)?e.scrollY:e.scrollTop}function XT(e){return{x:vue(e),y:xue(e)}}var io;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(io||(io={}));function Sue(e){return!M8||!e?!1:e===document.scrollingElement}function wue(e){const t={x:0,y:0},n=Sue(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const Wgt={x:.2,y:.2};function qgt(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=Wgt);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=wue(e),g={x:0,y:0},y={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+b.height?(g.y=io.Backward,y.y=r*Math.abs((t.top+b.height-o)/b.height)):!u&&l>=t.bottom-b.height&&(g.y=io.Forward,y.y=r*Math.abs((t.bottom-b.height-l)/b.height)),!p&&a>=t.right-b.width?(g.x=io.Forward,y.x=r*Math.abs((t.right-b.width-a)/b.width)):!d&&s<=t.left+b.width&&(g.x=io.Backward,y.x=r*Math.abs((t.left+b.width-s)/b.width)),{direction:g,speed:y}}function Kgt(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Cue(e){return e.reduce((t,n)=>Cg(t,XT(n)),El)}function Ggt(e){return e.reduce((t,n)=>t+vue(n),0)}function Ygt(e){return e.reduce((t,n)=>t+xue(n),0)}function Jgt(e,t){if(t===void 0&&(t=N0),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);bue(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Zgt=[["x",["left","right"],Ggt],["y",["top","bottom"],Ygt]];class CI{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=j8(n),i=Cue(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of Zgt)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class sb{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Xgt(e){const{EventTarget:t}=Ps(e);return e instanceof t?e:P0(e)}function qA(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ka;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ka||(ka={}));function eJ(e){e.preventDefault()}function Qgt(e){e.stopPropagation()}var Jn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Jn||(Jn={}));const kue={start:[Jn.Space,Jn.Enter],cancel:[Jn.Esc],end:[Jn.Space,Jn.Enter,Jn.Tab]},e0t=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Jn.Right:return{...n,x:n.x+25};case Jn.Left:return{...n,x:n.x-25};case Jn.Down:return{...n,y:n.y+25};case Jn.Up:return{...n,y:n.y-25}}};class kI{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new sb(P0(n)),this.windowListeners=new sb(Ps(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ka.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Jgt(r),n(El)}handleKeyDown(t){if(wI(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=kue,coordinateGetter:s=e0t,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:El;this.referenceCoordinates||(this.referenceCoordinates=u);const d=s(t,{active:n,context:r.current,currentCoordinates:u});if(d){const p=_2(d,u),g={x:0,y:0},{scrollableAncestors:y}=r.current;for(const b of y){const v=t.code,{isTop:S,isRight:C,isLeft:w,isBottom:E,maxScroll:k,minScroll:T}=wue(b),_=Kgt(b),O={x:Math.min(v===Jn.Right?_.right-_.width/2:_.right,Math.max(v===Jn.Right?_.left:_.left+_.width/2,d.x)),y:Math.min(v===Jn.Down?_.bottom-_.height/2:_.bottom,Math.max(v===Jn.Down?_.top:_.top+_.height/2,d.y))},R=v===Jn.Right&&!C||v===Jn.Left&&!w,P=v===Jn.Down&&!E||v===Jn.Up&&!S;if(R&&O.x!==d.x){const L=b.scrollLeft+p.x,M=v===Jn.Right&&L<=k.x||v===Jn.Left&&L>=T.x;if(M&&!p.y){b.scrollTo({left:L,behavior:a});return}M?g.x=b.scrollLeft-L:g.x=v===Jn.Right?b.scrollLeft-k.x:b.scrollLeft-T.x,g.x&&b.scrollBy({left:-g.x,behavior:a});break}else if(P&&O.y!==d.y){const L=b.scrollTop+p.y,M=v===Jn.Down&&L<=k.y||v===Jn.Up&&L>=T.y;if(M&&!p.x){b.scrollTo({top:L,behavior:a});return}M?g.y=b.scrollTop-L:g.y=v===Jn.Down?b.scrollTop-k.y:b.scrollTop-T.y,g.y&&b.scrollBy({top:-g.y,behavior:a});break}}this.handleMove(t,Cg(_2(d,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}kI.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=kue,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function tJ(e){return!!(e&&"distance"in e)}function nJ(e){return!!(e&&"delay"in e)}class EI{constructor(t,n,r){var i;r===void 0&&(r=Xgt(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=P0(s),this.documentListeners=new sb(this.document),this.listeners=new sb(r),this.windowListeners=new sb(Ps(s)),this.initialCoordinates=(i=ZT(o))!=null?i:El,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.DragStart,eJ),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),this.windowListeners.add(ka.ContextMenu,eJ),this.documentListeners.add(ka.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nJ(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(tJ(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ka.Click,Qgt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ka.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=ZT(t))!=null?n:El,c=_2(i,l);if(!r&&a){if(tJ(a)){if(a.tolerance!=null&&qA(c,a.tolerance))return this.handleCancel();if(qA(c,a.distance))return this.handleStart()}if(nJ(a)&&qA(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Jn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const t0t={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class AI extends EI{constructor(t){const{event:n}=t,r=P0(n.target);super(t,t0t,r)}}AI.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const n0t={move:{name:"mousemove"},end:{name:"mouseup"}};var QT;(function(e){e[e.RightClick=2]="RightClick"})(QT||(QT={}));class r0t extends EI{constructor(t){super(t,n0t,P0(t.event.target))}}r0t.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===QT.RightClick?!1:(r?.({event:n}),!0)}}];const KA={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class i0t extends EI{constructor(t){super(t,KA)}static setup(){return window.addEventListener(KA.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(KA.move.name,t)};function t(){}}}i0t.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var ab;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ab||(ab={}));var l6;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(l6||(l6={}));function o0t(e){let{acceleration:t,activator:n=ab.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=l6.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:p}=e;const g=a0t({delta:d,disabled:!o}),[y,b]=ygt(),v=A.useRef({x:0,y:0}),S=A.useRef({x:0,y:0}),C=A.useMemo(()=>{switch(n){case ab.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ab.DraggableRect:return i}},[n,i,l]),w=A.useRef(null),E=A.useCallback(()=>{const T=w.current;if(!T)return;const _=v.current.x*S.current.x,O=v.current.y*S.current.y;T.scrollBy(_,O)},[]),k=A.useMemo(()=>a===l6.TreeOrder?[...c].reverse():c,[a,c]);A.useEffect(()=>{if(!o||!c.length||!C){b();return}for(const T of k){if(r?.(T)===!1)continue;const _=c.indexOf(T),O=u[_];if(!O)continue;const{direction:R,speed:P}=qgt(T,O,C,t,p);for(const L of["x","y"])g[L][R[L]]||(P[L]=0,R[L]=0);if(P.x>0||P.y>0){b(),w.current=T,y(E,s),v.current=P,S.current=R;return}}v.current={x:0,y:0},S.current={x:0,y:0},b()},[t,E,r,b,o,s,JSON.stringify(C),JSON.stringify(g),y,c,k,u,JSON.stringify(p)])}const s0t={x:{[io.Backward]:!1,[io.Forward]:!1},y:{[io.Backward]:!1,[io.Forward]:!1}};function a0t(e){let{delta:t,disabled:n}=e;const r=JT(t);return Pv(i=>{if(n||!r||!i)return s0t;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[io.Backward]:i.x[io.Backward]||o.x===-1,[io.Forward]:i.x[io.Forward]||o.x===1},y:{[io.Backward]:i.y[io.Backward]||o.y===-1,[io.Forward]:i.y[io.Forward]||o.y===1}}},[n,t,r])}function l0t(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Pv(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function c0t(e,t){return A.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var O2;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(O2||(O2={}));var eO;(function(e){e.Optimized="optimized"})(eO||(eO={}));const rJ=new Map;function u0t(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=A.useState(null),{frequency:a,measure:l,strategy:c}=i,u=A.useRef(e),d=v(),p=D2(d),g=A.useCallback(function(S){S===void 0&&(S=[]),!p.current&&s(C=>C===null?S:C.concat(S.filter(w=>!C.includes(w))))},[p]),y=A.useRef(null),b=Pv(S=>{if(d&&!n)return rJ;if(!S||S===rJ||u.current!==e||o!=null){const C=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){C.set(w.id,w.rect.current);continue}const E=w.node.current,k=E?new CI(l(E),E):null;w.rect.current=k,k&&C.set(w.id,k)}return C}return S},[e,o,n,d,l]);return A.useEffect(()=>{u.current=e},[e]),A.useEffect(()=>{d||g()},[n,d]),A.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),A.useEffect(()=>{d||typeof a!="number"||y.current!==null||(y.current=setTimeout(()=>{g(),y.current=null},a))},[a,d,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function v(){switch(c){case O2.Always:return!1;case O2.BeforeDragging:return n;default:return!n}}}function Eue(e,t){return Pv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function d0t(e,t){return Eue(e,t)}function f0t(e){let{callback:t,disabled:n}=e;const r=SI(t),i=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return A.useEffect(()=>()=>i?.disconnect(),[i]),i}function R8(e){let{callback:t,disabled:n}=e;const r=SI(t),i=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return A.useEffect(()=>()=>i?.disconnect(),[i]),i}function h0t(e){return new CI(N0(e),e)}function iJ(e,t,n){t===void 0&&(t=h0t);const[r,i]=A.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const s=f0t({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),a=R8({callback:o});return Nc(()=>{o(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function p0t(e){const t=Eue(e);return yue(e,t)}const oJ=[];function m0t(e){const t=A.useRef(e),n=Pv(r=>e?r&&r!==oJ&&e&&t.current&&e.parentNode===t.current.parentNode?r:j8(e):oJ,[e]);return A.useEffect(()=>{t.current=e},[e]),n}function g0t(e){const[t,n]=A.useState(null),r=A.useRef(e),i=A.useCallback(o=>{const s=WA(o.target);s&&n(a=>a?(a.set(s,XT(s)),new Map(a)):null)},[]);return A.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=WA(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,XT(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const c=WA(l);c?.removeEventListener("scroll",i)})}},[i,e]),A.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>Cg(o,s),El):Cue(e):El,[e,t])}function sJ(e,t){t===void 0&&(t=[]);const n=A.useRef(null);return A.useEffect(()=>{n.current=null},t),A.useEffect(()=>{const r=e!==El;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?_2(e,n.current):El}function y0t(e){A.useEffect(()=>{if(!M8)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function b0t(e,t){return A.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function Aue(e){return A.useMemo(()=>e?Hgt(e):null,[e])}const aJ=[];function v0t(e,t){t===void 0&&(t=N0);const[n]=e,r=Aue(n?Ps(n):null),[i,o]=A.useState(aJ);function s(){o(()=>e.length?e.map(l=>Sue(l)?r:new CI(t(l),l)):aJ)}const a=R8({callback:s});return Nc(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),i}function x0t(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Iv(t)?t:e}function S0t(e){let{measure:t}=e;const[n,r]=A.useState(null),i=A.useCallback(c=>{for(const{target:u}of c)if(Iv(u)){r(d=>{const p=t(u);return d?{...d,width:p.width,height:p.height}:p});break}},[t]),o=R8({callback:i}),s=A.useCallback(c=>{const u=x0t(c);o?.disconnect(),u&&o?.observe(u),r(u?t(u):null)},[t,o]),[a,l]=s6(s);return A.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const w0t=[{sensor:AI,options:{}},{sensor:kI,options:{}}],C0t={current:{}},o4={draggable:{measure:QY},droppable:{measure:QY,strategy:O2.WhileDragging,frequency:eO.Optimized},dragOverlay:{measure:N0}};class lb extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const k0t={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new lb,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:a6},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:o4,measureDroppableContainers:a6,windowRect:null,measuringScheduled:!1},E0t={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:a6,draggableNodes:new Map,over:null,measureDroppableContainers:a6},I8=A.createContext(E0t),Due=A.createContext(k0t);function A0t(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new lb}}}function D0t(e,t){switch(t.type){case Wi.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Wi.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Wi.DragEnd:case Wi.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Wi.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new lb(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Wi.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new lb(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case Wi.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new lb(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function _0t(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=A.useContext(I8),o=JT(r),s=JT(n?.id);return A.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!wI(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=xgt(u);if(d){d.focus();break}}})}},[r,t,i,s,o]),null}function T0t(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function O0t(e){return A.useMemo(()=>({draggable:{...o4.draggable,...e?.draggable},droppable:{...o4.droppable,...e?.droppable},dragOverlay:{...o4.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function M0t(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=A.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;Nc(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=yue(u,r);if(s||(d.x=0),a||(d.y=0),o.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=bue(c);p&&p.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}const _ue=A.createContext({...El,scaleX:1,scaleY:1});var Ld;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ld||(Ld={}));const j0t=A.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=w0t,collisionDetection:d=Pgt,measuring:p,modifiers:g,...y}=t;const b=A.useReducer(D0t,void 0,A0t),[v,S]=b,[C,w]=Agt(),[E,k]=A.useState(Ld.Uninitialized),T=E===Ld.Initialized,{draggable:{active:_,nodes:O,translate:R},droppable:{containers:P}}=v,L=_!=null?O.get(_):null,M=A.useRef({initial:null,translated:null}),N=A.useMemo(()=>{var We;return _!=null?{id:_,data:(We=L?.data)!=null?We:C0t,rect:M}:null},[_,L]),$=A.useRef(null),[B,F]=A.useState(null),[V,W]=A.useState(null),q=D2(y,Object.values(y)),Z=Nv("DndDescribedBy",s),z=A.useMemo(()=>P.getEnabled(),[P]),U=O0t(p),{droppableRects:Y,measureDroppableContainers:H,measuringScheduled:K}=u0t(z,{dragging:T,dependencies:[R.x,R.y],config:U.droppable}),Q=l0t(O,_),ie=A.useMemo(()=>V?ZT(V):null,[V]),te=Ge(),ce=d0t(Q,U.draggable.measure);M0t({activeNode:_!=null?O.get(_):null,config:te.layoutShiftCompensation,initialRect:ce,measure:U.draggable.measure});const ee=iJ(Q,U.draggable.measure,ce),J=iJ(Q?Q.parentElement:null),X=A.useRef({activatorEvent:null,active:null,activeNode:Q,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=P.getNodeFor((n=X.current.over)==null?void 0:n.id),le=S0t({measure:U.dragOverlay.measure}),fe=(r=le.nodeRef.current)!=null?r:Q,ye=T?(i=le.rect)!=null?i:ee:null,Me=!!(le.nodeRef.current&&le.rect),ue=p0t(Me?null:ee),we=Aue(fe?Ps(fe):null),Oe=m0t(T?oe??Q:null),He=v0t(Oe),ze=T0t(g,{transform:{x:R.x-ue.x,y:R.y-ue.y,scaleX:1,scaleY:1},activatorEvent:V,active:N,activeNodeRect:ee,containerNodeRect:J,draggingNodeRect:ye,over:X.current.over,overlayNodeRect:le.rect,scrollableAncestors:Oe,scrollableAncestorRects:He,windowRect:we}),At=ie?Cg(ie,R):null,gt=g0t(Oe),$e=sJ(gt),je=sJ(gt,[ee]),Ve=Cg(ze,$e),Ke=ye?Lgt(ye,ze):null,at=N&&Ke?d({active:N,collisionRect:Ke,droppableRects:Y,droppableContainers:z,pointerCoordinates:At}):null,ut=gue(at,"id"),[Qe,Bt]=A.useState(null),Ht=Me?ze:Cg(ze,je),Pt=Ngt(Ht,(o=Qe?.rect)!=null?o:null,ee),Dn=A.useRef(null),tn=A.useCallback((We,Je)=>{let{sensor:St,options:In}=Je;if($.current==null)return;const dn=O.get($.current);if(!dn)return;const _t=We.nativeEvent,yn=new St({active:$.current,activeNode:dn,event:_t,options:In,context:X,onAbort(yt){if(!O.get(yt))return;const{onDragAbort:ae}=q.current,pe={id:yt};ae?.(pe),C({type:"onDragAbort",event:pe})},onPending(yt,Kt,ae,pe){if(!O.get(yt))return;const{onDragPending:Pe}=q.current,qe={id:yt,constraint:Kt,initialCoordinates:ae,offset:pe};Pe?.(qe),C({type:"onDragPending",event:qe})},onStart(yt){const Kt=$.current;if(Kt==null)return;const ae=O.get(Kt);if(!ae)return;const{onDragStart:pe}=q.current,xe={activatorEvent:_t,active:{id:Kt,data:ae.data,rect:M}};qd.unstable_batchedUpdates(()=>{pe?.(xe),k(Ld.Initializing),S({type:Wi.DragStart,initialCoordinates:yt,active:Kt}),C({type:"onDragStart",event:xe}),F(Dn.current),W(_t)})},onMove(yt){S({type:Wi.DragMove,coordinates:yt})},onEnd:dt(Wi.DragEnd),onCancel:dt(Wi.DragCancel)});Dn.current=yn;function dt(yt){return async function(){const{active:ae,collisions:pe,over:xe,scrollAdjustedTranslate:Pe}=X.current;let qe=null;if(ae&&Pe){const{cancelDrop:wt}=q.current;qe={activatorEvent:_t,active:ae,collisions:pe,delta:Pe,over:xe},yt===Wi.DragEnd&&typeof wt=="function"&&await Promise.resolve(wt(qe))&&(yt=Wi.DragCancel)}$.current=null,qd.unstable_batchedUpdates(()=>{S({type:yt}),k(Ld.Uninitialized),Bt(null),F(null),W(null),Dn.current=null;const wt=yt===Wi.DragEnd?"onDragEnd":"onDragCancel";if(qe){const lt=q.current[wt];lt?.(qe),C({type:wt,event:qe})}})}}},[O]),pt=A.useCallback((We,Je)=>(St,In)=>{const dn=St.nativeEvent,_t=O.get(In);if($.current!==null||!_t||dn.dndKit||dn.defaultPrevented)return;const yn={active:_t};We(St,Je.options,yn)===!0&&(dn.dndKit={capturedBy:Je.sensor},$.current=In,tn(St,Je))},[O,tn]),Yt=c0t(u,pt);y0t(u),Nc(()=>{ee&&E===Ld.Initializing&&k(Ld.Initialized)},[ee,E]),A.useEffect(()=>{const{onDragMove:We}=q.current,{active:Je,activatorEvent:St,collisions:In,over:dn}=X.current;if(!Je||!St)return;const _t={active:Je,activatorEvent:St,collisions:In,delta:{x:Ve.x,y:Ve.y},over:dn};qd.unstable_batchedUpdates(()=>{We?.(_t),C({type:"onDragMove",event:_t})})},[Ve.x,Ve.y]),A.useEffect(()=>{const{active:We,activatorEvent:Je,collisions:St,droppableContainers:In,scrollAdjustedTranslate:dn}=X.current;if(!We||$.current==null||!Je||!dn)return;const{onDragOver:_t}=q.current,yn=In.get(ut),dt=yn&&yn.rect.current?{id:yn.id,rect:yn.rect.current,data:yn.data,disabled:yn.disabled}:null,yt={active:We,activatorEvent:Je,collisions:St,delta:{x:dn.x,y:dn.y},over:dt};qd.unstable_batchedUpdates(()=>{Bt(dt),_t?.(yt),C({type:"onDragOver",event:yt})})},[ut]),Nc(()=>{X.current={activatorEvent:V,active:N,activeNode:Q,collisionRect:Ke,collisions:at,droppableRects:Y,draggableNodes:O,draggingNode:fe,draggingNodeRect:ye,droppableContainers:P,over:Qe,scrollableAncestors:Oe,scrollAdjustedTranslate:Ve},M.current={initial:ye,translated:Ke}},[N,Q,at,Ke,O,fe,ye,Y,P,Qe,Oe,Ve]),o0t({...te,delta:R,draggingRect:Ke,pointerCoordinates:At,scrollableAncestors:Oe,scrollableAncestorRects:He});const an=A.useMemo(()=>({active:N,activeNode:Q,activeNodeRect:ee,activatorEvent:V,collisions:at,containerNodeRect:J,dragOverlay:le,draggableNodes:O,droppableContainers:P,droppableRects:Y,over:Qe,measureDroppableContainers:H,scrollableAncestors:Oe,scrollableAncestorRects:He,measuringConfiguration:U,measuringScheduled:K,windowRect:we}),[N,Q,ee,V,at,J,le,O,P,Y,Qe,H,Oe,He,U,K,we]),wn=A.useMemo(()=>({activatorEvent:V,activators:Yt,active:N,activeNodeRect:ee,ariaDescribedById:{draggable:Z},dispatch:S,draggableNodes:O,over:Qe,measureDroppableContainers:H}),[V,Yt,N,ee,S,Z,O,Qe,H]);return on.createElement(hue.Provider,{value:w},on.createElement(I8.Provider,{value:wn},on.createElement(Due.Provider,{value:an},on.createElement(_ue.Provider,{value:Pt},c)),on.createElement(_0t,{disabled:a?.restoreFocus===!1})),on.createElement(Tgt,{...a,hiddenTextDescribedById:Z}));function Ge(){const We=B?.autoScrollEnabled===!1,Je=typeof l=="object"?l.enabled===!1:l===!1,St=T&&!We&&!Je;return typeof l=="object"?{...l,enabled:St}:{enabled:St}}}),R0t=A.createContext(null),lJ="button",I0t="Draggable";function P0t(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Nv(I0t),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:p}=A.useContext(I8),{role:g=lJ,roleDescription:y="draggable",tabIndex:b=0}=i??{},v=l?.id===t,S=A.useContext(v?_ue:R0t),[C,w]=s6(),[E,k]=s6(),T=b0t(s,t),_=D2(n);Nc(()=>(d.set(t,{id:t,key:o,node:C,activatorNode:E,data:_}),()=>{const R=d.get(t);R&&R.key===o&&d.delete(t)}),[d,t]);const O=A.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":v&&g===lJ?!0:void 0,"aria-roledescription":y,"aria-describedby":u.draggable}),[r,g,b,v,y,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:O,isDragging:v,listeners:r?void 0:T,node:C,over:p,setNodeRef:w,setActivatorNodeRef:k,transform:S}}function N0t(){return A.useContext(Due)}const $0t="Droppable",L0t={timeout:25};function F0t(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Nv($0t),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=A.useContext(I8),u=A.useRef({disabled:n}),d=A.useRef(!1),p=A.useRef(null),g=A.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...L0t,...i},S=D2(b??r),C=A.useCallback(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(S.current)?S.current:[S.current]),g.current=null},v)},[v]),w=R8({callback:C,disabled:y||!s}),E=A.useCallback((O,R)=>{w&&(R&&(w.unobserve(R),d.current=!1),O&&w.observe(O))},[w]),[k,T]=s6(E),_=D2(t);return A.useEffect(()=>{!w||!k.current||(w.disconnect(),d.current=!1,w.observe(k.current))},[k,w]),A.useEffect(()=>(a({type:Wi.RegisterDroppable,element:{id:r,key:o,disabled:n,node:k,rect:p,data:_}}),()=>a({type:Wi.UnregisterDroppable,key:o,id:r})),[r]),A.useEffect(()=>{n!==u.current.disabled&&(a({type:Wi.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:p,isOver:l?.id===r,node:k,over:l,setNodeRef:T}}function DI(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function z0t(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function rS(e){return e!==null&&e>=0}function B0t(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function H0t(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Tue=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=DI(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},iS={scaleX:1,scaleY:1},U0t=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;if(i===n){const c=o[s];return c?{x:0,y:n<s?c.top+c.height-(a.top+a.height):c.top-a.top,...iS}:null}const l=V0t(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...iS}:i<n&&i>=s?{x:0,y:a.height+l,...iS}:{x:0,y:0,...iS}};function V0t(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const Oue="Sortable",Mue=on.createContext({activeIndex:-1,containerId:Oue,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Tue,disabled:{draggable:!1,droppable:!1}});function W0t(e){let{children:t,id:n,items:r,strategy:i=Tue,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=N0t(),d=Nv(Oue,n),p=a.rect!==null,g=A.useMemo(()=>r.map(T=>typeof T=="object"&&"id"in T?T.id:T),[r]),y=s!=null,b=s?g.indexOf(s.id):-1,v=c?g.indexOf(c.id):-1,S=A.useRef(g),C=!B0t(g,S.current),w=v!==-1&&b===-1||C,E=H0t(o);Nc(()=>{C&&y&&u(g)},[C,g,y,u]),A.useEffect(()=>{S.current=g},[g]);const k=A.useMemo(()=>({activeIndex:b,containerId:d,disabled:E,disableTransforms:w,items:g,overIndex:v,useDragOverlay:p,sortedRects:z0t(g,l),strategy:i}),[b,d,E.draggable,E.droppable,w,g,v,l,p,i]);return on.createElement(Mue.Provider,{value:k},t)}const q0t=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return DI(n,r,i).indexOf(t)},K0t=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},G0t={duration:200,easing:"ease"},jue="transform",Y0t=T2.Transition.toString({property:jue,duration:0,easing:"linear"}),J0t={roleDescription:"sortable"};function Z0t(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=A.useState(null),a=A.useRef(n);return Nc(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=N0(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&s(u)}}n!==a.current&&(a.current=n)},[t,n,r,i]),A.useEffect(()=>{o&&s(null)},[o]),o}function X0t(e){let{animateLayoutChanges:t=K0t,attributes:n,disabled:r,data:i,getNewIndex:o=q0t,id:s,strategy:a,resizeObserverConfig:l,transition:c=G0t}=e;const{items:u,containerId:d,activeIndex:p,disabled:g,disableTransforms:y,sortedRects:b,overIndex:v,useDragOverlay:S,strategy:C}=A.useContext(Mue),w=Q0t(r,g),E=u.indexOf(s),k=A.useMemo(()=>({sortable:{containerId:d,index:E,items:u},...i}),[d,i,E,u]),T=A.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:_,node:O,isOver:R,setNodeRef:P}=F0t({id:s,data:k,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...l}}),{active:L,activatorEvent:M,activeNodeRect:N,attributes:$,setNodeRef:B,listeners:F,isDragging:V,over:W,setActivatorNodeRef:q,transform:Z}=P0t({id:s,data:k,attributes:{...J0t,...n},disabled:w.draggable}),z=ggt(P,B),U=!!L,Y=U&&!y&&rS(p)&&rS(v),H=!S&&V,K=H&&Y?Z:null,ie=Y?K??(a??C)({rects:b,activeNodeRect:N,activeIndex:p,overIndex:v,index:E}):null,te=rS(p)&&rS(v)?o({id:s,items:u,activeIndex:p,overIndex:v}):E,ce=L?.id,ee=A.useRef({activeId:ce,items:u,newIndex:te,containerId:d}),J=u!==ee.current.items,X=t({active:L,containerId:d,isDragging:V,isSorting:U,id:s,index:E,items:u,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:c,wasDragging:ee.current.activeId!=null}),oe=Z0t({disabled:!X,index:E,node:O,rect:_});return A.useEffect(()=>{U&&ee.current.newIndex!==te&&(ee.current.newIndex=te),d!==ee.current.containerId&&(ee.current.containerId=d),u!==ee.current.items&&(ee.current.items=u)},[U,te,d,u]),A.useEffect(()=>{if(ce===ee.current.activeId)return;if(ce!=null&&ee.current.activeId==null){ee.current.activeId=ce;return}const fe=setTimeout(()=>{ee.current.activeId=ce},50);return()=>clearTimeout(fe)},[ce]),{active:L,activeIndex:p,attributes:$,data:k,rect:_,index:E,newIndex:te,items:u,isOver:R,isSorting:U,isDragging:V,listeners:F,node:O,overIndex:v,over:W,setNodeRef:z,setActivatorNodeRef:q,setDroppableNodeRef:P,setDraggableNodeRef:B,transform:oe??ie,transition:le()};function le(){if(oe||J&&ee.current.newIndex===E)return Y0t;if(!(H&&!wI(M)||!c)&&(U||X))return T2.Transition.toString({...c,property:jue})}}function Q0t(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function c6(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const e1t=[Jn.Down,Jn.Right,Jn.Up,Jn.Left],t1t=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(e1t.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const p=i.get(d.id);if(p)switch(e.code){case Jn.Down:r.top<p.top&&l.push(d);break;case Jn.Up:r.top>p.top&&l.push(d);break;case Jn.Left:r.left>p.left&&l.push(d);break;case Jn.Right:r.left<p.left&&l.push(d);break}});const c=Rgt({collisionRect:r,droppableRects:i,droppableContainers:l});let u=gue(c,"id");if(u===s?.id&&c.length>1&&(u=c[1].id),u!=null){const d=o.get(n.id),p=o.get(u),g=p?i.get(p.id):null,y=p?.node.current;if(y&&g&&d&&p){const v=j8(y).some((T,_)=>a[_]!==T),S=Rue(d,p),C=n1t(d,p),w=v||!S?{x:0,y:0}:{x:C?r.width-g.width:0,y:C?r.height-g.height:0},E={x:g.left,y:g.top};return w.x&&w.y?E:_2(E,w)}}}};function Rue(e,t){return!c6(e)||!c6(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function n1t(e,t){return!c6(e)||!c6(t)||!Rue(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const r1t=({bridge:e,index:t})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:s,isDragging:a}=X0t({id:e.id}),[l,c]=A.useState(!1);A.useEffect(()=>{fC(e.id).then(c)},[e.id]);const u={transform:T2.Transform.toString(o),transition:s,opacity:a?.5:1};return h.jsx(Mn,{ref:i,style:u,variant:"outlined",sx:{cursor:"grab","&:active":{cursor:"grabbing"},bgcolor:a?"action.selected":"background.paper",width:"fit-content"},children:h.jsxs(Qn,{sx:{display:"flex",alignItems:"center",gap:1.5,py:1,"&:last-child":{pb:1}},children:[h.jsx(se,{...n,...r,sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:h.jsx(q_e,{})}),h.jsx(ot,{label:t+1,size:"small",color:"primary",sx:{minWidth:32,fontWeight:"bold"}}),l?h.jsx(se,{component:"img",src:Db(e.id),alt:e.name,sx:{width:40,height:40,borderRadius:"50%",objectFit:"cover",boxShadow:2}}):h.jsx(wl,{sx:{bgcolor:jM(e),width:40,height:40,boxShadow:2},children:(()=>{const d=MM(e);return h.jsx(d,{sx:{fontSize:24}})})()}),h.jsxs(se,{sx:{flex:1},children:[h.jsx(re,{variant:"subtitle1",fontWeight:500,children:e.name}),h.jsxs(re,{variant:"caption",color:"text.secondary",children:["Port: ",e.port," • Priority: ",e.priority??100]})]})]})})},i1t=()=>{const{t:e}=en(),t=Fc(),{content:n,isLoading:r}=h0(),i=h_e(),[o,s]=A.useState([]),[a,l]=A.useState(!1);A.useEffect(()=>{if(n){const g=[...n].sort((y,b)=>{const v=y.priority??100,S=b.priority??100;return v-S});s(g),l(!1)}},[n]);const c=Ogt(JY(AI),JY(kI,{coordinateGetter:t1t})),u=A.useCallback(g=>{const{active:y,over:b}=g;b&&y.id!==b.id&&(s(v=>{const S=v.findIndex(w=>w.id===y.id),C=v.findIndex(w=>w.id===b.id);return DI(v,S,C)}),l(!0))},[]),d=A.useCallback(async()=>{const g=o.map((y,b)=>({id:y.id,priority:(b+1)*10}));try{await i(g),t.show({message:e("startup.saveSuccess"),severity:"success"}),l(!1)}catch(y){t.show({message:y instanceof Error?y.message:e("startup.saveFailed"),severity:"error"})}},[o,i,t,e]),p=A.useMemo(()=>o.map(g=>g.id),[o]);return r?h.jsxs(re,{children:[e("common.loading"),"..."]}):h.jsxs(Wt,{spacing:3,children:[h.jsx(W2,{items:[{name:e("nav.bridges"),to:Mt.bridges},{name:e("startup.title"),to:Mt.startup}]}),h.jsxs(se,{display:"flex",alignItems:"center",gap:2,children:[h.jsx(c0,{color:"primary",fontSize:"large"}),h.jsxs(se,{children:[h.jsx(re,{variant:"h5",fontWeight:600,children:e("startup.title")}),h.jsx(re,{variant:"body2",color:"text.secondary",children:e("startup.description")})]})]}),a&&h.jsx(zt,{severity:"info",action:h.jsx(Ue,{color:"inherit",size:"small",startIcon:h.jsx(L4,{}),onClick:d,children:e("startup.saveChanges")}),children:e("startup.unsavedChanges")}),h.jsx(j0t,{sensors:c,collisionDetection:jgt,onDragEnd:u,children:h.jsx(W0t,{items:p,strategy:U0t,children:h.jsx(Wt,{spacing:1,children:o.map((g,y)=>h.jsx(r1t,{bridge:g,index:y},g.id))})})}),o.length===0&&h.jsx(re,{color:"text.secondary",textAlign:"center",py:4,children:e("startup.noBridges")}),a&&o.length>0&&h.jsx(se,{display:"flex",justifyContent:"flex-end",children:h.jsx(Ue,{variant:"contained",startIcon:h.jsx(L4,{}),onClick:d,children:e("startup.saveOrder")})})]})},GA="https://riddix.github.io/home-assistant-matter-hub",Mt={dashboard:"/",bridges:"/bridges",bridge:e=>`/bridges/${e}`,createBridge:"/bridges/create",areaSetup:"/bridges/area-setup",editBridge:e=>`/bridges/${e}/edit`,devices:"/devices",networkMap:"/network-map",health:"/health",labels:"/labels",lockCredentials:"/lock-credentials",plugins:"/plugins",settings:"/settings",startup:"/startup",githubRepository:"https://github.com/riddix/home-assistant-matter-hub/",documentation:GA,faq:{multiFabric:`${GA}/connect-multiple-fabrics`,bridgeConfig:`${GA}/bridge-configuration`}},o1t=[{path:"",element:h.jsx(fwe,{}),children:[{path:"",element:h.jsx(uOe,{})},{path:Mt.bridges,element:h.jsx(iOe,{})},{path:Mt.createBridge,element:h.jsx(elt,{})},{path:Mt.areaSetup,element:h.jsx(H6e,{})},{path:Mt.bridge(":bridgeId"),element:h.jsx(T_e,{})},{path:Mt.editBridge(":bridgeId"),element:h.jsx(tlt,{})},{path:Mt.devices,element:h.jsx(_Oe,{})},{path:Mt.networkMap,element:h.jsx(Bmt,{})},{path:Mt.health,element:h.jsx(xlt,{})},{path:Mt.labels,element:h.jsx(klt,{})},{path:Mt.lockCredentials,element:h.jsx(Olt,{})},{path:Mt.plugins,element:h.jsx(ugt,{})},{path:Mt.settings,element:h.jsx(mgt,{})},{path:Mt.startup,element:h.jsx(i1t,{})},{path:"*",element:h.jsx(Mlt,{})}]}],s1t={items:{isInitialized:!1,isLoading:!1}},a1t=FO(s1t,e=>{e.addCase(Lo.pending,t=>{t.items.isLoading=!0}).addCase(Lo.rejected,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=void 0,t.items.error=n.error}).addCase(Lo.fulfilled,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(AX.fulfilled,(t,n)=>{t.items.content?.push(n.payload)}).addCase(_X.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(TX.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(DX.fulfilled,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.meta.arg);r!==-1&&t.items.content.splice(r,1)}}).addCase(OX,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(MX,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.payload.id);r!==-1?t.items.content[r]=n.payload:t.items.content.push(n.payload)}})}),l1t={byBridge:{}},c1t=FO(l1t,e=>{e.addCase(Ru.pending,(t,n)=>{t.byBridge[n.meta.arg]=YA(t.byBridge[n.meta.arg],n)}).addCase(Ru.rejected,(t,n)=>{t.byBridge[n.meta.arg]=YA(t.byBridge[n.meta.arg],n)}).addCase(Ru.fulfilled,(t,n)=>{t.byBridge[n.meta.arg]=YA(t.byBridge[n.meta.arg],n)})}),u1t={isInitialized:!1,isLoading:!1,content:void 0,error:void 0},YA=FO(u1t,e=>{e.addCase(Ru.pending,t=>{t.isLoading=!0}).addCase(Ru.rejected,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=void 0,t.error=n.error}).addCase(Ru.fulfilled,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=n.payload,t.error=void 0})}),d1t=K4e({reducer:{bridges:a1t,devices:c1t}}),_I=M3e({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ct({props:e,name:"MuiContainer"})});function f1t(e){return tt("MuiToolbar",e)}st("MuiToolbar",["root","gutters","regular","dense"]);const h1t=e=>{const{classes:t,disableGutters:n,variant:r}=e;return nt({root:["root",!n&&"gutters",r]},f1t,t)},p1t=ge("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Iue=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular",...l}=r,c={...r,component:o,disableGutters:s,variant:a},u=h1t(c);return h.jsx(p1t,{as:o,className:_e(u.root,i),ref:n,ownerState:c,...l})});class m1t extends A.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught:",t,n.componentStack)}render(){return this.state.hasError?h.jsxs(se,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",gap:2,p:4,children:[h.jsx(QO,{color:"error",sx:{fontSize:64}}),h.jsx(re,{variant:"h5",fontWeight:600,children:pi.t("errorBoundary.title")}),h.jsx(re,{variant:"body2",color:"text.secondary",textAlign:"center",maxWidth:480,children:this.state.error?.message??pi.t("errorBoundary.fallbackMessage")}),h.jsx(Ue,{variant:"contained",onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:pi.t("errorBoundary.reload")})]}):this.props.children}}function g1t(e){return tt("MuiFab",e)}const cJ=st("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),y1t=e=>{const{color:t,variant:n,classes:r,size:i}=e,o={root:["root",n,`size${ve(i)}`,t==="inherit"?"colorInherit":t]},s=nt(o,g1t,r);return{...r,...s}},b1t=ge(ss,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Li(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ve(n.size)}`],n.color==="inherit"&&t.colorInherit,t[ve(n.size)],t[n.color]]}})(Ye(({theme:e})=>({...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${cJ.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Ye(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Gn(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Ye(({theme:e})=>({[`&.${cJ.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),v1t=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiFab"}),{children:i,className:o,color:s="default",component:a="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:d="large",variant:p="circular",...g}=r,y={...r,color:s,component:a,disabled:l,disableFocusRipple:c,size:d,variant:p},b=y1t(y);return h.jsx(b1t,{className:_e(b.root,o),component:a,disabled:l,focusRipple:!c,focusVisibleClassName:_e(b.focusVisible,u),ownerState:y,ref:n,...g,classes:b,children:i})}),x1t=[{code:"en",flag:"🇬🇧",name:"English"},{code:"de",flag:"🇩🇪",name:"Deutsch"},{code:"fr",flag:"🇫🇷",name:"Français"},{code:"es",flag:"🇪🇸",name:"Español"},{code:"it",flag:"🇮🇹",name:"Italiano"},{code:"zh",flag:"🇨🇳",name:"中文"},{code:"zh-TW",flag:"🇹🇼",name:"繁體中文"},{code:"th",flag:"🇹🇭",name:"ไทย"},{code:"sv",flag:"🇸🇪",name:"Svenska"},{code:"tr",flag:"🇹🇷",name:"Türkçe"},{code:"ru",flag:"🇷🇺",name:"Русский"}],S1t="hamh-custom-languages";function w1t(){try{const e=localStorage.getItem(S1t);return e?JSON.parse(e).map(n=>({code:n.code,flag:"🌐",name:n.name})):[]}catch{return[]}}const C1t="https://github.com/RiDDiX/home-assistant-matter-hub/issues/new?labels=translation&title=Translation+improvement";function k1t(){const{t:e,i18n:t}=en(),[n,r]=A.useState(!1),i=A.useRef(null),o=A.useMemo(()=>[...x1t,...w1t()],[]),s=t.language??"en",a=o.some(d=>d.code===s)?s:s.split("-")[0]??"en",l=A.useCallback(()=>{r(d=>!d)},[]),c=A.useCallback(d=>{t.changeLanguage(d),r(!1)},[t]),u=A.useCallback(()=>{r(!1)},[]);return h.jsx(rX,{onClickAway:u,children:h.jsxs(se,{children:[h.jsx(v1t,{ref:i,size:"small",color:"primary",onClick:l,"aria-label":"Change language",sx:{position:"fixed",bottom:24,right:24,zIndex:1300},children:h.jsx(Q_e,{})}),h.jsx(G2,{open:n,anchorEl:i.current,placement:"top-end",transition:!0,sx:{zIndex:1300},children:({TransitionProps:d})=>h.jsx(O4,{...d,timeout:200,children:h.jsxs(zr,{elevation:8,sx:{mb:1,py:.5,minWidth:160,borderRadius:2,overflow:"hidden"},children:[o.map(p=>h.jsxs(se,{onClick:()=>c(p.code),sx:{display:"flex",alignItems:"center",gap:1.5,px:2,py:1,cursor:"pointer",bgcolor:a===p.code?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"},transition:"background-color 0.15s"},children:[h.jsx(re,{sx:{fontSize:"1.4rem",lineHeight:1,userSelect:"none"},children:p.flag}),h.jsx(re,{variant:"body2",fontWeight:a===p.code?600:400,children:p.name})]},p.code)),h.jsx(Dr,{}),h.jsxs(se,{sx:{display:"flex",alignItems:"flex-start",gap:.75,px:2,py:1},children:[h.jsx(VO,{sx:{fontSize:14,mt:.25,color:"text.secondary"}}),h.jsxs(re,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.4},children:[e("languageSwitcher.disclaimer")," ",h.jsx(V2,{href:C1t,target:"_blank",rel:"noopener",sx:{fontSize:"inherit"},children:e("languageSwitcher.contribute")})]})]})]})})})]})})}const E1t="home-assistant-matter-hub",A1t={name:E1t};function Pue(){const e="2.1.0-alpha.596",[t,n]=A.useState(null);A.useEffect(()=>{fetch("api/health").then(i=>i.ok?i.json():null).then(i=>{i?.version&&n(i.version)}).catch(()=>{})},[]);const r=A.useMemo(()=>!t||e==="0.0.0-dev"?!1:e!==t,[t]);return A.useMemo(()=>({name:A1t.name,version:t??e,frontendVersion:e,backendVersion:t,versionMismatch:r}),[t,r])}const D1t=()=>{const{t:e}=en(),t=[{name:e("footer.github"),url:Mt.githubRepository},{name:e("footer.documentation"),url:Mt.documentation}];return h.jsxs(_I,{sx:{mt:16,mb:4},children:[h.jsx(Dr,{sx:{mt:4,mb:4}}),h.jsx(ht,{container:!0,spacing:2,justifyContent:"center",children:t.map((n,r)=>h.jsx(ht,{size:{xs:12,sm:"auto"},children:h.jsx(Ue,{fullWidth:!0,size:"small",variant:"outlined",component:V2,href:n.url,target:"_blank",children:n.name})},r.toString()))})]})};function _1t(e){return tt("MuiAppBar",e)}st("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const T1t=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ve(t)}`,`position${ve(n)}`]};return nt(i,_1t,r)},uJ=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,O1t=ge(zr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ve(n.position)}`],t[`color${ve(n.color)}`]]}})(Ye(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Gn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?uJ(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?uJ(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),M1t=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,c={...r,color:o,position:a,enableColorOnDark:s},u=T1t(c);return h.jsx(O1t,{square:!0,component:"header",ownerState:c,elevation:4,className:_e(u.root,i,a==="fixed"&&"mui-fixed"),ref:n,...l})});function j1t(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=oa(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=o.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function R1t(e){return typeof e=="function"?e():e}function oS(e,t,n){const r=R1t(n),i=j1t(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const I1t=A.forwardRef(function(t,n){const r=Ki(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:u="down",easing:d=i,in:p,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:S,onExiting:C,style:w,timeout:E=o,TransitionComponent:k=Ja,...T}=t,_=A.useRef(null),O=Br(Rf(l),_,n),R=W=>q=>{W&&(q===void 0?W(_.current):W(_.current,q))},P=R((W,q)=>{oS(u,W,c),IO(W),g&&g(W,q)}),L=R((W,q)=>{const Z=gf({timeout:E,style:w,easing:d},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",{...Z}),W.style.transition=r.transitions.create("transform",{...Z}),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,q)}),M=R(y),N=R(C),$=R(W=>{const q=gf({timeout:E,style:w,easing:d},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",q),W.style.transition=r.transitions.create("transform",q),oS(u,W,c),v&&v(W)}),B=R(W=>{W.style.webkitTransition="",W.style.transition="",S&&S(W)}),F=W=>{s&&s(_.current,W)},V=A.useCallback(()=>{_.current&&oS(u,_.current,c)},[u,c]);return A.useEffect(()=>{if(p||u==="down"||u==="right")return;const W=H2(()=>{_.current&&oS(u,_.current,c)}),q=oa(_.current);return q.addEventListener("resize",W),()=>{W.clear(),q.removeEventListener("resize",W)}},[u,p,c]),A.useEffect(()=>{p||V()},[p,V]),h.jsx(k,{nodeRef:_,onEnter:P,onEntered:M,onEntering:L,onExit:$,onExited:B,onExiting:N,addEndListener:F,appear:a,in:p,timeout:E,...T,children:(W,{ownerState:q,...Z})=>A.cloneElement(l,{ref:O,style:{visibility:W==="exited"&&!p?"hidden":void 0,...w,...l.props.style},...Z})})});function P1t(e){return tt("MuiDrawer",e)}st("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Nue=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,n.variant==="temporary"&&t.modal]},N1t=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root",`anchor${ve(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ve(n)}`,r!=="temporary"&&`paperAnchorDocked${ve(n)}`]};return nt(i,P1t,t)},$1t=ge(nM,{name:"MuiDrawer",slot:"Root",overridesResolver:Nue})(Ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),L1t=ge("div",{shouldForwardProp:Li,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Nue})({flex:"0 0 auto"}),F1t=ge(zr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ve(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ve(n.anchor)}`]]}})(Ye(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),$ue={left:"right",right:"left",top:"down",bottom:"up"};function z1t(e){return["left","right"].includes(e)}function B1t({direction:e},t){return e==="rtl"&&z1t(t)?$ue[t]:t}const H1t=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDrawer"}),i=Ki(),o=Lc(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g,...y}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:C,TransitionComponent:w,transitionDuration:E=s,variant:k="temporary",slots:T={},slotProps:_={},...O}=r,R=A.useRef(!1);A.useEffect(()=>{R.current=!0},[]);const P=B1t({direction:o?"rtl":"ltr"},a),M={...r,anchor:a,elevation:d,open:v,variant:k,...O},N=N1t(M),$={slots:{transition:w,...T},slotProps:{paper:S,transition:C,..._,backdrop:MO(_.backdrop||{...l,...g},{transitionDuration:E})}},[B,F]=ft("root",{ref:n,elementType:$1t,className:_e(N.root,N.modal,u),shouldForwardComponentProp:!0,ownerState:M,externalForwardedProps:{...$,...O,...y},additionalProps:{open:v,onClose:b,hideBackdrop:p,slots:{backdrop:$.slots.backdrop},slotProps:{backdrop:$.slotProps.backdrop}}}),[V,W]=ft("paper",{elementType:F1t,shouldForwardComponentProp:!0,className:_e(N.paper,S.className),ownerState:M,externalForwardedProps:$,additionalProps:{elevation:k==="temporary"?d:0,square:!0,...k==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[q,Z]=ft("docked",{elementType:L1t,ref:n,className:_e(N.root,N.docked,u),ownerState:M,externalForwardedProps:$,additionalProps:O}),[z,U]=ft("transition",{elementType:I1t,ownerState:M,externalForwardedProps:$,additionalProps:{in:v,direction:$ue[P],timeout:E,appear:R.current}}),Y=h.jsx(V,{...W,children:c});if(k==="permanent")return h.jsx(q,{...Z,children:Y});const H=h.jsx(z,{...U,children:Y});return k==="persistent"?h.jsx(q,{...Z,children:H}):h.jsx(B,{...F,children:H})}),U1t=PZ({themeId:ja}),V1t={error:Nf,warn:u0,info:eM,debug:uC},W1t=({open:e,onClose:t})=>{const{t:n}=en(),r=Ki(),i=A.useMemo(()=>({error:r.palette.error.main,warn:r.palette.warning.main,info:r.palette.info.main,debug:r.palette.secondary.main}),[r]),[o,s]=A.useState([]),[a,l]=A.useState(!0),[c,u]=A.useState("error,warn,info".split(",")),[d,p]=A.useState(""),[g,y]=A.useState(!0),b=A.useCallback(async()=>{try{const E=new URLSearchParams({level:c.join(","),limit:"500",...d&&{search:d}}),k=await fetch(`api/logs?${E}`);if(k.ok){const T=await k.json();s(T.entries)}}catch(E){console.error("Failed to fetch logs:",E)}finally{l(!1)}},[c,d]);A.useEffect(()=>{e&&b()},[e,b]),A.useEffect(()=>{if(!g||!e)return;const E=setInterval(b,5e3);return()=>clearInterval(E)},[g,e,b]);const v=E=>{u(Array.isArray(E.target.value)?E.target.value:[E.target.value])},S=E=>{p(E.target.value)},C=async()=>{try{await fetch("api/logs",{method:"DELETE"}),s([])}catch(E){console.error("Failed to clear logs:",E)}},w=E=>{const k=V1t[E]||eM;return h.jsx(k,{sx:{fontSize:16,color:i[E]}})};return h.jsxs(Po,{open:e,onClose:t,maxWidth:"lg",fullWidth:!0,children:[h.jsxs($o,{sx:{display:"flex",alignItems:"center",gap:1},children:[h.jsx(uC,{}),n("logs.title"),h.jsx(se,{sx:{flexGrow:1}}),h.jsx(Lt,{title:n("logs.autoRefresh"),children:h.jsx(ot,{label:g?"Auto":"Manual",color:g?"success":"default",size:"small",onClick:()=>y(!g),sx:{cursor:"pointer"}})}),h.jsx(qt,{onClick:t,children:h.jsx($4,{})})]}),h.jsxs(No,{children:[h.jsx(Wt,{spacing:2,sx:{mb:2},children:h.jsxs(Wt,{direction:"row",spacing:2,alignItems:"center",children:[h.jsxs(rs,{size:"small",sx:{minWidth:200},children:[h.jsx(Ia,{children:n("logs.logLevel")}),h.jsxs(ts,{value:c,label:n("logs.logLevel"),onChange:v,multiple:!0,renderValue:E=>h.jsx(se,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:(Array.isArray(E)?E:[E]).map(k=>h.jsx(ot,{label:k.toUpperCase(),size:"small",sx:{backgroundColor:i[k],color:"white"}},k))}),children:[h.jsx(Bn,{value:"error",children:n("logs.error")}),h.jsx(Bn,{value:"warn",children:n("logs.warning")}),h.jsx(Bn,{value:"info",children:n("logs.info")}),h.jsx(Bn,{value:"debug",children:n("logs.debug")})]})]}),h.jsx(zn,{size:"small",placeholder:n("logs.searchPlaceholder"),value:d,onChange:S,sx:{flexGrow:1}}),h.jsx(Ue,{variant:"outlined",onClick:b,children:n("common.refresh")}),h.jsx(Ue,{variant:"outlined",color:"error",onClick:C,children:n("common.delete")})]})}),h.jsx(se,{sx:{height:400,overflow:"auto",backgroundColor:"background.paper",border:1,borderColor:"divider",borderRadius:1,p:1},children:a?h.jsx(se,{sx:{display:"flex",justifyContent:"center",p:4},children:h.jsxs(re,{children:[n("common.loading"),"..."]})}):o.length===0?h.jsx(se,{sx:{display:"flex",justifyContent:"center",p:4},children:h.jsx(re,{color:"text.secondary",children:n("logs.noResults")})}):h.jsx(Wt,{spacing:1,children:o.map((E,k)=>h.jsxs(se,{sx:{p:1,borderRadius:1,backgroundColor:"action.hover",fontFamily:"monospace",fontSize:"0.875rem",wordBreak:"break-all"},children:[h.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[w(E.level),h.jsx(re,{variant:"caption",color:"text.secondary",children:new Date(E.timestamp).toLocaleString()}),h.jsx(ot,{label:E.level.toUpperCase(),size:"small",sx:{backgroundColor:i[E.level],color:r.palette.getContrastText(i[E.level]??r.palette.grey[500]),fontSize:"0.7rem",height:20}})]}),h.jsx(re,{sx:{ml:3},children:E.message}),E.context&&h.jsx(re,{sx:{ml:3,color:"text.secondary",fontSize:"0.8rem"},children:JSON.stringify(E.context,null,2)})]},`${E.timestamp}-${E.level}-${k}`))})})]}),h.jsx(es,{children:h.jsx(Ue,{onClick:t,children:n("common.close")})})]})};function dJ(){const{t:e}=en(),{isConnected:t}=RX(),[n,r]=A.useState(null),[i,o]=A.useState(!1);A.useEffect(()=>{const b=async()=>{try{const S=await fetch("api/health");if(S.ok){const C=await S.json();r(C),o(!1)}else o(!0)}catch{o(!0)}};b();const v=setInterval(b,3e4);return()=>clearInterval(v)},[]);const s=b=>{const v=Math.floor(b/3600),S=Math.floor(b%3600/60);return v>0?`${v}h ${S}m`:`${S}m`},a=n?.status==="healthy"&&!i,l=n?.services?.bridges,c=l&&l.total>0&&l.running===l.total,u=l&&l.total===0,d=n?h.jsxs(se,{sx:{p:.5},children:[h.jsxs("div",{children:[h.jsxs("strong",{children:[e("health.version"),":"]})," ",n.version??e("status.unknown")]}),h.jsxs("div",{children:[h.jsxs("strong",{children:[e("health.uptime"),":"]})," ",s(n.uptime??0)]}),n.services?.bridges&&h.jsxs("div",{children:[h.jsxs("strong",{children:[e("nav.bridges"),":"]})," ",n.services.bridges.running??0,"/",n.services.bridges.total??0," ",e("common.running").toLowerCase(),(n.services.bridges.stopped??0)>0&&` (${n.services.bridges.stopped} ${e("common.stopped").toLowerCase()})`]}),n.services?.homeAssistant&&h.jsxs("div",{children:[h.jsxs("strong",{children:[e("health.homeAssistant"),":"]})," ",n.services.homeAssistant.connected?e("health.connected"):e("health.disconnected")]}),h.jsxs("div",{children:[h.jsx("strong",{children:"WebSocket:"})," ",e(t?"health.connected":"health.disconnected")]})]}):e("status.loadingHealth"),p=()=>i||!a?h.jsx(Nf,{fontSize:"small"}):c?h.jsx(Za,{fontSize:"small"}):h.jsx(G6,{fontSize:"small"}),g=()=>i||!a?"error":!c||!t?"warning":"success",y=()=>e(i?"status.error":a?t?u?"status.noBridges":c?"common.online":"common.starting":"common.offline":"status.unhealthy");return h.jsx(Lt,{title:d,arrow:!0,children:h.jsx(ot,{icon:p(),label:y(),color:g(),size:"small",variant:"filled",sx:{borderRadius:1,fontWeight:600,"& .MuiChip-icon":{color:"inherit"}}})})}const q1t=e=>A.createElement("svg",{viewBox:"0 0 91 89",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{style:{display:"inline"}},A.createElement("path",{style:{fill:"#18bcf2",fillOpacity:1,strokeWidth:.266194},d:"m 49.149143,1.473171 38.513568,38.536435 c 0,0 1.248354,1.186052 2.207681,3.092371 0.959329,1.906323 1.10864,4.600698 1.10864,4.600698 v 36.786372 c 0,0 -0.01549,1.748506 -1.49842,3.050572 -1.482931,1.302064 -3.333077,1.362947 -3.333077,1.362947 l -81.325658,7.7e-5 c 0,0 -1.7523855,-0.0091 -3.17112,-1.352526 C -0.07808495,85.913164 0.05953025,84.487808 0.05953025,84.487808 V 47.704546 c 0,0 -0.0018381,-2.218618 0.95921785,-4.315832 0.9610554,-2.097209 2.3010618,-3.355005 2.3010618,-3.355005 L 41.545959,1.4719546 c 0,0 1.465224,-1.46837077 3.753488,-1.46837077 2.288268,0 3.849696,1.46958717 3.849696,1.46958717 z"}),A.createElement("path",{style:{fill:"#ffffff",fillOpacity:1,strokeWidth:.175841},d:"m 31.689717,32.051124 c 2.813363,2.331095 6.157331,3.89845 9.721813,4.556421 V 17.180647 l 3.873694,-2.282955 3.870527,2.282955 V 36.60772 c 3.565364,-0.658847 6.910387,-2.226204 9.725159,-4.556417 l 7.032345,4.154609 c -11.437354,11.557779 -29.852321,11.557779 -41.290025,0 z m 8.546732,49.60988 C 44.314996,65.760441 35.09933,49.470196 19.574984,45.139543 v 8.312381 c 3.383916,1.32244 6.386113,3.496288 8.728705,6.320026 L 11.83076,69.485301 v 4.56907 l 3.873697,2.270836 16.469936,-9.713534 c 1.224356,3.48294 1.56683,7.225375 0.996449,10.879778 z M 70.977694,45.139543 c -15.515726,4.34014 -24.72189,20.626696 -20.643519,36.521461 l 7.047658,-4.15742 c -0.569325,-3.654411 -0.2265,-7.3965 0.996449,-10.87979 l 16.457611,9.701233 3.870711,-2.283125 v -4.55677 L 62.233673,59.77195 c 2.342772,-2.822684 5.34497,-4.996533 8.728708,-6.320026 z"}))),K1t=e=>{const t=Pue();return h.jsxs(se,{component:Oc,to:Mt.dashboard,sx:{display:"flex",alignItems:"center",justifyContent:e.large?"flex-start":"center",flexGrow:1,textDecoration:"none",color:"inherit"},children:[h.jsx(q1t,{style:{height:"40px"}}),h.jsx(re,{variant:"inherit",component:"span",sx:{mr:1,ml:1},children:t.name.split("-").map(ve).join("-")}),e.large&&h.jsx(re,{variant:"caption",component:"span",children:t.version})]})},G1t=()=>{const e=U1t("(min-width:600px)"),{mode:t,setMode:n}=R6(),[r,i]=A.useState(!1),[o,s]=A.useState(!1),a=$c(),l=Yu(),c=y=>y?y==="/"?l.pathname==="/":l.pathname.startsWith(y):!1,u=()=>{n(t==="dark"?"light":"dark")},{t:d}=en(),p=[{label:d("dashboard.title"),icon:h.jsx(kM,{}),to:Mt.dashboard},{label:d("nav.bridges"),icon:h.jsx(Ly,{}),to:Mt.bridges},{label:d("nav.devices"),icon:h.jsx(aa,{}),to:Mt.devices},{label:d("nav.networkMap"),icon:h.jsx(SM,{}),to:Mt.networkMap},{label:d("nav.startupOrder"),icon:h.jsx(c0,{}),to:Mt.startup},{label:d("nav.lockCredentials"),icon:h.jsx(ju,{}),to:Mt.lockCredentials},{label:d("nav.filterReference"),icon:h.jsx(EM,{}),to:Mt.labels},{label:"Plugins",icon:h.jsx($y,{}),to:Mt.plugins},{label:d("nav.settings"),icon:h.jsx(f0,{}),to:Mt.settings},{label:d(t==="dark"?"nav.lightMode":"nav.darkMode"),icon:t==="dark"?h.jsx(tTe,{}):h.jsx(U_e,{}),onClick:u},{label:d("nav.systemLogs"),icon:h.jsx(uC,{}),onClick:()=>i(!0)},{label:d("nav.health"),icon:h.jsx(iM,{}),to:Mt.health}],g=y=>{s(!1),y.onClick?y.onClick():y.to&&a(y.to)};return h.jsxs(se,{children:[h.jsx(M1t,{sx:{height:"72px"},children:h.jsx(Iue,{sx:{paddingLeft:"0 !important",paddingRight:"0 !important"},children:h.jsxs(_I,{sx:{padding:2,height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[h.jsx(K1t,{large:e}),e?h.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.map(y=>y.to?h.jsx(Lt,{title:y.label,children:h.jsx(qt,{component:Oc,to:y.to,sx:{color:"inherit",bgcolor:c(y.to)?"rgba(255,255,255,0.15)":"transparent",borderRadius:1},children:y.icon})},y.label):h.jsx(Lt,{title:y.label,children:h.jsx(qt,{onClick:y.onClick,sx:{color:"inherit"},children:y.icon})},y.label)),h.jsx(dJ,{})]}):h.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(dJ,{}),h.jsx(qt,{onClick:()=>s(!0),sx:{color:"inherit"},children:h.jsx(nTe,{})})]})]})})}),h.jsx(H1t,{anchor:"right",open:o,onClose:()=>s(!1),children:h.jsx(Fo,{sx:{width:250},children:p.map(y=>h.jsxs(oCe,{selected:c(y.to),onClick:()=>g(y),children:[h.jsx(Io,{children:y.icon}),h.jsx(ao,{primary:y.label})]},y.label))})}),h.jsx(W1t,{open:r,onClose:()=>i(!1)})]})},Y1t=()=>{const{versionMismatch:e,frontendVersion:t,backendVersion:n}=Pue(),{isConnected:r}=RX();return h.jsxs(se,{children:[h.jsx(G1t,{}),h.jsx(Iue,{}),e&&h.jsxs(zt,{severity:"warning",variant:"filled",sx:{borderRadius:0},action:h.jsx(Ue,{color:"inherit",size:"small",onClick:()=>window.location.reload(),children:"Reload"}),children:["Version mismatch: frontend ",t,", backend ",n,". Please reload to get the latest UI."]}),!r&&h.jsx(zt,{severity:"error",variant:"filled",sx:{borderRadius:0},children:"Connection lost — data may be outdated. Reconnecting…"}),h.jsx(_I,{sx:{p:2},children:h.jsx(m1t,{children:h.jsx(HJ,{})})}),h.jsx(D1t,{}),h.jsx(k1t,{})]})},J1t=O6({colorSchemes:{light:{palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"},background:{default:"#f5f5f5",paper:"#ffffff"}}},dark:{palette:{primary:{main:"#90caf9",light:"#e3f2fd",dark:"#42a5f5"},secondary:{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"},background:{default:"#121212",paper:"#1e1e1e"}}}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"2.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h3:{fontSize:"1.75rem",fontWeight:500},h4:{fontSize:"1.5rem",fontWeight:500},h5:{fontSize:"1.25rem",fontWeight:500},h6:{fontSize:"1rem",fontWeight:500}},shape:{borderRadius:8},components:{MuiCard:{styleOverrides:{root:{transition:"transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out","&:hover":{transform:"translateY(-2px)",boxShadow:"0 4px 20px rgba(0,0,0,0.12)"}}}},MuiButton:{styleOverrides:{root:{textTransform:"none",fontWeight:500}}},MuiChip:{styleOverrides:{root:{fontWeight:500}}},MuiAppBar:{styleOverrides:{root:{backgroundImage:"none"}}}}});let s4=document.getElementsByTagName("base")[0]?.href?.replace(/\/$/,"");s4?.startsWith("http")&&(s4=new URL(s4).pathname);const Z1t=Pme([{path:"/",element:h.jsx(Y1t,{}),children:o1t}],{basename:s4});Xfe.createRoot(document.getElementById("root")).render(h.jsx(A.StrictMode,{children:h.jsx(mhe,{store:d1t,children:h.jsxs(H5e,{theme:J1t,children:[h.jsx($5e,{}),h.jsx(JZ,{styles:{".rjsf-field-array > .MuiFormControl-root > .MuiPaper-root > .MuiBox-root > .MuiGrid-root > .MuiGrid-root:has(> .MuiBox-root > .MuiPaper-root > .MuiBox-root > .rjsf-field)":{overflow:"initial !important",flexGrow:1}}}),h.jsx(dwe,{children:h.jsx(n4e,{children:h.jsx(Gme,{router:Z1t})})})]})})}));
|
|
499
|
+
`},_gt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Tgt(e){let{announcements:t=_gt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Dgt}=e;const{announce:o,announcement:s}=kgt(),a=Nv("DndLiveRegion"),[l,c]=A.useState(!1);if(A.useEffect(()=>{c(!0)},[]),Egt(A.useMemo(()=>({onDragStart(d){let{active:p}=d;o(t.onDragStart({active:p}))},onDragMove(d){let{active:p,over:g}=d;t.onDragMove&&o(t.onDragMove({active:p,over:g}))},onDragOver(d){let{active:p,over:g}=d;o(t.onDragOver({active:p,over:g}))},onDragEnd(d){let{active:p,over:g}=d;o(t.onDragEnd({active:p,over:g}))},onDragCancel(d){let{active:p,over:g}=d;o(t.onDragCancel({active:p,over:g}))}}),[o,t])),!l)return null;const u=on.createElement(on.Fragment,null,on.createElement(wgt,{id:r,value:i.draggable}),on.createElement(Cgt,{id:a,announcement:s}));return n?qd.createPortal(u,n):u}var Wi;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Wi||(Wi={}));function a6(){}function JY(e,t){return A.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ogt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const El=Object.freeze({x:0,y:0});function pue(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function mue(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Mgt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function ZY(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function gue(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function XY(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const jgt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=XY(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=pue(XY(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(mue)},Rgt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=ZY(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=ZY(l),u=i.reduce((p,g,y)=>p+pue(c[y],g),0),d=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:d}})}}return o.sort(mue)};function Igt(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=i-r,a=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=s*a,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const Pgt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:s}=o,a=n.get(s);if(a){const l=Igt(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(Mgt)};function Ngt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function yue(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:El}function $gt(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}const Lgt=$gt(1);function Fgt(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function zgt(e,t,n){const r=Fgt(t);if(!r)return e;const{scaleX:i,scaleY:o,x:s,y:a}=r,l=e.left-s-(1-i)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const Bgt={ignoreTransform:!1};function N0(e,t){t===void 0&&(t=Bgt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Ps(e).getComputedStyle(e);c&&(n=zgt(n,c,u))}const{top:r,left:i,width:o,height:s,bottom:a,right:l}=n;return{top:r,left:i,width:o,height:s,bottom:a,right:l}}function QY(e){return N0(e,{ignoreTransform:!0})}function Hgt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Ugt(e,t){return t===void 0&&(t=Ps(e).getComputedStyle(e)),t.position==="fixed"}function Vgt(e,t){t===void 0&&(t=Ps(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function j8(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(xI(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Iv(i)||due(i)||n.includes(i))return n;const o=Ps(e).getComputedStyle(i);return i!==e&&Vgt(i,o)&&n.push(i),Ugt(i,o)?n:r(i.parentNode)}return e?r(e):n}function bue(e){const[t]=j8(e,1);return t??null}function WA(e){return!M8||!e?null:I0(e)?e:vI(e)?xI(e)||e===P0(e).scrollingElement?window:Iv(e)?e:null:null}function vue(e){return I0(e)?e.scrollX:e.scrollLeft}function xue(e){return I0(e)?e.scrollY:e.scrollTop}function XT(e){return{x:vue(e),y:xue(e)}}var io;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(io||(io={}));function Sue(e){return!M8||!e?!1:e===document.scrollingElement}function wue(e){const t={x:0,y:0},n=Sue(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}const Wgt={x:.2,y:.2};function qgt(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=Wgt);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=wue(e),g={x:0,y:0},y={x:0,y:0},b={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+b.height?(g.y=io.Backward,y.y=r*Math.abs((t.top+b.height-o)/b.height)):!u&&l>=t.bottom-b.height&&(g.y=io.Forward,y.y=r*Math.abs((t.bottom-b.height-l)/b.height)),!p&&a>=t.right-b.width?(g.x=io.Forward,y.x=r*Math.abs((t.right-b.width-a)/b.width)):!d&&s<=t.left+b.width&&(g.x=io.Backward,y.x=r*Math.abs((t.left+b.width-s)/b.width)),{direction:g,speed:y}}function Kgt(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Cue(e){return e.reduce((t,n)=>Cg(t,XT(n)),El)}function Ggt(e){return e.reduce((t,n)=>t+vue(n),0)}function Ygt(e){return e.reduce((t,n)=>t+xue(n),0)}function Jgt(e,t){if(t===void 0&&(t=N0),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);bue(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Zgt=[["x",["left","right"],Ggt],["y",["top","bottom"],Ygt]];class CI{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=j8(n),i=Cue(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of Zgt)for(const l of s)Object.defineProperty(this,l,{get:()=>{const c=a(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class sb{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Xgt(e){const{EventTarget:t}=Ps(e);return e instanceof t?e:P0(e)}function qA(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ka;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ka||(ka={}));function eJ(e){e.preventDefault()}function Qgt(e){e.stopPropagation()}var Jn;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Jn||(Jn={}));const kue={start:[Jn.Space,Jn.Enter],cancel:[Jn.Esc],end:[Jn.Space,Jn.Enter,Jn.Tab]},e0t=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Jn.Right:return{...n,x:n.x+25};case Jn.Left:return{...n,x:n.x-25};case Jn.Down:return{...n,y:n.y+25};case Jn.Up:return{...n,y:n.y-25}}};class kI{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new sb(P0(n)),this.windowListeners=new sb(Ps(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ka.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Jgt(r),n(El)}handleKeyDown(t){if(wI(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=kue,coordinateGetter:s=e0t,scrollBehavior:a="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:El;this.referenceCoordinates||(this.referenceCoordinates=u);const d=s(t,{active:n,context:r.current,currentCoordinates:u});if(d){const p=_2(d,u),g={x:0,y:0},{scrollableAncestors:y}=r.current;for(const b of y){const v=t.code,{isTop:S,isRight:C,isLeft:w,isBottom:E,maxScroll:k,minScroll:T}=wue(b),_=Kgt(b),O={x:Math.min(v===Jn.Right?_.right-_.width/2:_.right,Math.max(v===Jn.Right?_.left:_.left+_.width/2,d.x)),y:Math.min(v===Jn.Down?_.bottom-_.height/2:_.bottom,Math.max(v===Jn.Down?_.top:_.top+_.height/2,d.y))},R=v===Jn.Right&&!C||v===Jn.Left&&!w,P=v===Jn.Down&&!E||v===Jn.Up&&!S;if(R&&O.x!==d.x){const L=b.scrollLeft+p.x,M=v===Jn.Right&&L<=k.x||v===Jn.Left&&L>=T.x;if(M&&!p.y){b.scrollTo({left:L,behavior:a});return}M?g.x=b.scrollLeft-L:g.x=v===Jn.Right?b.scrollLeft-k.x:b.scrollLeft-T.x,g.x&&b.scrollBy({left:-g.x,behavior:a});break}else if(P&&O.y!==d.y){const L=b.scrollTop+p.y,M=v===Jn.Down&&L<=k.y||v===Jn.Up&&L>=T.y;if(M&&!p.x){b.scrollTo({top:L,behavior:a});return}M?g.y=b.scrollTop-L:g.y=v===Jn.Down?b.scrollTop-k.y:b.scrollTop-T.y,g.y&&b.scrollBy({top:-g.y,behavior:a});break}}this.handleMove(t,Cg(_2(d,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}kI.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=kue,onActivation:i}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const a=o.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function tJ(e){return!!(e&&"distance"in e)}function nJ(e){return!!(e&&"delay"in e)}class EI{constructor(t,n,r){var i;r===void 0&&(r=Xgt(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=P0(s),this.documentListeners=new sb(this.document),this.listeners=new sb(r),this.windowListeners=new sb(Ps(s)),this.initialCoordinates=(i=ZT(o))!=null?i:El,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ka.Resize,this.handleCancel),this.windowListeners.add(ka.DragStart,eJ),this.windowListeners.add(ka.VisibilityChange,this.handleCancel),this.windowListeners.add(ka.ContextMenu,eJ),this.documentListeners.add(ka.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nJ(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(tJ(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ka.Click,Qgt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ka.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:s,options:{activationConstraint:a}}=o;if(!i)return;const l=(n=ZT(t))!=null?n:El,c=_2(i,l);if(!r&&a){if(tJ(a)){if(a.tolerance!=null&&qA(c,a.tolerance))return this.handleCancel();if(qA(c,a.distance))return this.handleStart()}if(nJ(a)&&qA(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),s(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Jn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const t0t={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class AI extends EI{constructor(t){const{event:n}=t,r=P0(n.target);super(t,t0t,r)}}AI.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const n0t={move:{name:"mousemove"},end:{name:"mouseup"}};var QT;(function(e){e[e.RightClick=2]="RightClick"})(QT||(QT={}));class r0t extends EI{constructor(t){super(t,n0t,P0(t.event.target))}}r0t.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===QT.RightClick?!1:(r?.({event:n}),!0)}}];const KA={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class i0t extends EI{constructor(t){super(t,KA)}static setup(){return window.addEventListener(KA.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(KA.move.name,t)};function t(){}}}i0t.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var ab;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ab||(ab={}));var l6;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(l6||(l6={}));function o0t(e){let{acceleration:t,activator:n=ab.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=l6.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:p}=e;const g=a0t({delta:d,disabled:!o}),[y,b]=ygt(),v=A.useRef({x:0,y:0}),S=A.useRef({x:0,y:0}),C=A.useMemo(()=>{switch(n){case ab.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case ab.DraggableRect:return i}},[n,i,l]),w=A.useRef(null),E=A.useCallback(()=>{const T=w.current;if(!T)return;const _=v.current.x*S.current.x,O=v.current.y*S.current.y;T.scrollBy(_,O)},[]),k=A.useMemo(()=>a===l6.TreeOrder?[...c].reverse():c,[a,c]);A.useEffect(()=>{if(!o||!c.length||!C){b();return}for(const T of k){if(r?.(T)===!1)continue;const _=c.indexOf(T),O=u[_];if(!O)continue;const{direction:R,speed:P}=qgt(T,O,C,t,p);for(const L of["x","y"])g[L][R[L]]||(P[L]=0,R[L]=0);if(P.x>0||P.y>0){b(),w.current=T,y(E,s),v.current=P,S.current=R;return}}v.current={x:0,y:0},S.current={x:0,y:0},b()},[t,E,r,b,o,s,JSON.stringify(C),JSON.stringify(g),y,c,k,u,JSON.stringify(p)])}const s0t={x:{[io.Backward]:!1,[io.Forward]:!1},y:{[io.Backward]:!1,[io.Forward]:!1}};function a0t(e){let{delta:t,disabled:n}=e;const r=JT(t);return Pv(i=>{if(n||!r||!i)return s0t;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[io.Backward]:i.x[io.Backward]||o.x===-1,[io.Forward]:i.x[io.Forward]||o.x===1},y:{[io.Backward]:i.y[io.Backward]||o.y===-1,[io.Forward]:i.y[io.Forward]||o.y===1}}},[n,t,r])}function l0t(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Pv(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function c0t(e,t){return A.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var O2;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(O2||(O2={}));var eO;(function(e){e.Optimized="optimized"})(eO||(eO={}));const rJ=new Map;function u0t(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=A.useState(null),{frequency:a,measure:l,strategy:c}=i,u=A.useRef(e),d=v(),p=D2(d),g=A.useCallback(function(S){S===void 0&&(S=[]),!p.current&&s(C=>C===null?S:C.concat(S.filter(w=>!C.includes(w))))},[p]),y=A.useRef(null),b=Pv(S=>{if(d&&!n)return rJ;if(!S||S===rJ||u.current!==e||o!=null){const C=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){C.set(w.id,w.rect.current);continue}const E=w.node.current,k=E?new CI(l(E),E):null;w.rect.current=k,k&&C.set(w.id,k)}return C}return S},[e,o,n,d,l]);return A.useEffect(()=>{u.current=e},[e]),A.useEffect(()=>{d||g()},[n,d]),A.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),A.useEffect(()=>{d||typeof a!="number"||y.current!==null||(y.current=setTimeout(()=>{g(),y.current=null},a))},[a,d,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function v(){switch(c){case O2.Always:return!1;case O2.BeforeDragging:return n;default:return!n}}}function Eue(e,t){return Pv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function d0t(e,t){return Eue(e,t)}function f0t(e){let{callback:t,disabled:n}=e;const r=SI(t),i=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return A.useEffect(()=>()=>i?.disconnect(),[i]),i}function R8(e){let{callback:t,disabled:n}=e;const r=SI(t),i=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return A.useEffect(()=>()=>i?.disconnect(),[i]),i}function h0t(e){return new CI(N0(e),e)}function iJ(e,t,n){t===void 0&&(t=h0t);const[r,i]=A.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const s=f0t({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),a=R8({callback:o});return Nc(()=>{o(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function p0t(e){const t=Eue(e);return yue(e,t)}const oJ=[];function m0t(e){const t=A.useRef(e),n=Pv(r=>e?r&&r!==oJ&&e&&t.current&&e.parentNode===t.current.parentNode?r:j8(e):oJ,[e]);return A.useEffect(()=>{t.current=e},[e]),n}function g0t(e){const[t,n]=A.useState(null),r=A.useRef(e),i=A.useCallback(o=>{const s=WA(o.target);s&&n(a=>a?(a.set(s,XT(s)),new Map(a)):null)},[]);return A.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=WA(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,XT(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(o)};function s(a){a.forEach(l=>{const c=WA(l);c?.removeEventListener("scroll",i)})}},[i,e]),A.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>Cg(o,s),El):Cue(e):El,[e,t])}function sJ(e,t){t===void 0&&(t=[]);const n=A.useRef(null);return A.useEffect(()=>{n.current=null},t),A.useEffect(()=>{const r=e!==El;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?_2(e,n.current):El}function y0t(e){A.useEffect(()=>{if(!M8)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function b0t(e,t){return A.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function Aue(e){return A.useMemo(()=>e?Hgt(e):null,[e])}const aJ=[];function v0t(e,t){t===void 0&&(t=N0);const[n]=e,r=Aue(n?Ps(n):null),[i,o]=A.useState(aJ);function s(){o(()=>e.length?e.map(l=>Sue(l)?r:new CI(t(l),l)):aJ)}const a=R8({callback:s});return Nc(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),i}function x0t(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Iv(t)?t:e}function S0t(e){let{measure:t}=e;const[n,r]=A.useState(null),i=A.useCallback(c=>{for(const{target:u}of c)if(Iv(u)){r(d=>{const p=t(u);return d?{...d,width:p.width,height:p.height}:p});break}},[t]),o=R8({callback:i}),s=A.useCallback(c=>{const u=x0t(c);o?.disconnect(),u&&o?.observe(u),r(u?t(u):null)},[t,o]),[a,l]=s6(s);return A.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const w0t=[{sensor:AI,options:{}},{sensor:kI,options:{}}],C0t={current:{}},o4={draggable:{measure:QY},droppable:{measure:QY,strategy:O2.WhileDragging,frequency:eO.Optimized},dragOverlay:{measure:N0}};class lb extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const k0t={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new lb,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:a6},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:o4,measureDroppableContainers:a6,windowRect:null,measuringScheduled:!1},E0t={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:a6,draggableNodes:new Map,over:null,measureDroppableContainers:a6},I8=A.createContext(E0t),Due=A.createContext(k0t);function A0t(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new lb}}}function D0t(e,t){switch(t.type){case Wi.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Wi.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Wi.DragEnd:case Wi.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Wi.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new lb(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Wi.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new lb(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case Wi.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new lb(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function _0t(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=A.useContext(I8),o=JT(r),s=JT(n?.id);return A.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!wI(o)||document.activeElement===o.target)return;const a=i.get(s);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=xgt(u);if(d){d.focus();break}}})}},[r,t,i,s,o]),null}function T0t(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function O0t(e){return A.useMemo(()=>({draggable:{...o4.draggable,...e?.draggable},droppable:{...o4.droppable,...e?.droppable},dragOverlay:{...o4.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function M0t(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=A.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;Nc(()=>{if(!s&&!a||!t){o.current=!1;return}if(o.current||!r)return;const c=t?.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=yue(u,r);if(s||(d.x=0),a||(d.y=0),o.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=bue(c);p&&p.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}const _ue=A.createContext({...El,scaleX:1,scaleY:1});var Ld;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ld||(Ld={}));const j0t=A.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=w0t,collisionDetection:d=Pgt,measuring:p,modifiers:g,...y}=t;const b=A.useReducer(D0t,void 0,A0t),[v,S]=b,[C,w]=Agt(),[E,k]=A.useState(Ld.Uninitialized),T=E===Ld.Initialized,{draggable:{active:_,nodes:O,translate:R},droppable:{containers:P}}=v,L=_!=null?O.get(_):null,M=A.useRef({initial:null,translated:null}),N=A.useMemo(()=>{var We;return _!=null?{id:_,data:(We=L?.data)!=null?We:C0t,rect:M}:null},[_,L]),$=A.useRef(null),[B,F]=A.useState(null),[V,W]=A.useState(null),q=D2(y,Object.values(y)),Z=Nv("DndDescribedBy",s),z=A.useMemo(()=>P.getEnabled(),[P]),U=O0t(p),{droppableRects:Y,measureDroppableContainers:H,measuringScheduled:K}=u0t(z,{dragging:T,dependencies:[R.x,R.y],config:U.droppable}),Q=l0t(O,_),ie=A.useMemo(()=>V?ZT(V):null,[V]),te=Ge(),ce=d0t(Q,U.draggable.measure);M0t({activeNode:_!=null?O.get(_):null,config:te.layoutShiftCompensation,initialRect:ce,measure:U.draggable.measure});const ee=iJ(Q,U.draggable.measure,ce),J=iJ(Q?Q.parentElement:null),X=A.useRef({activatorEvent:null,active:null,activeNode:Q,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=P.getNodeFor((n=X.current.over)==null?void 0:n.id),le=S0t({measure:U.dragOverlay.measure}),fe=(r=le.nodeRef.current)!=null?r:Q,ye=T?(i=le.rect)!=null?i:ee:null,Me=!!(le.nodeRef.current&&le.rect),ue=p0t(Me?null:ee),we=Aue(fe?Ps(fe):null),Oe=m0t(T?oe??Q:null),He=v0t(Oe),ze=T0t(g,{transform:{x:R.x-ue.x,y:R.y-ue.y,scaleX:1,scaleY:1},activatorEvent:V,active:N,activeNodeRect:ee,containerNodeRect:J,draggingNodeRect:ye,over:X.current.over,overlayNodeRect:le.rect,scrollableAncestors:Oe,scrollableAncestorRects:He,windowRect:we}),At=ie?Cg(ie,R):null,gt=g0t(Oe),$e=sJ(gt),je=sJ(gt,[ee]),Ve=Cg(ze,$e),Ke=ye?Lgt(ye,ze):null,at=N&&Ke?d({active:N,collisionRect:Ke,droppableRects:Y,droppableContainers:z,pointerCoordinates:At}):null,ut=gue(at,"id"),[Qe,Bt]=A.useState(null),Ht=Me?ze:Cg(ze,je),Pt=Ngt(Ht,(o=Qe?.rect)!=null?o:null,ee),Dn=A.useRef(null),tn=A.useCallback((We,Je)=>{let{sensor:St,options:In}=Je;if($.current==null)return;const dn=O.get($.current);if(!dn)return;const _t=We.nativeEvent,yn=new St({active:$.current,activeNode:dn,event:_t,options:In,context:X,onAbort(yt){if(!O.get(yt))return;const{onDragAbort:ae}=q.current,pe={id:yt};ae?.(pe),C({type:"onDragAbort",event:pe})},onPending(yt,Kt,ae,pe){if(!O.get(yt))return;const{onDragPending:Pe}=q.current,qe={id:yt,constraint:Kt,initialCoordinates:ae,offset:pe};Pe?.(qe),C({type:"onDragPending",event:qe})},onStart(yt){const Kt=$.current;if(Kt==null)return;const ae=O.get(Kt);if(!ae)return;const{onDragStart:pe}=q.current,xe={activatorEvent:_t,active:{id:Kt,data:ae.data,rect:M}};qd.unstable_batchedUpdates(()=>{pe?.(xe),k(Ld.Initializing),S({type:Wi.DragStart,initialCoordinates:yt,active:Kt}),C({type:"onDragStart",event:xe}),F(Dn.current),W(_t)})},onMove(yt){S({type:Wi.DragMove,coordinates:yt})},onEnd:dt(Wi.DragEnd),onCancel:dt(Wi.DragCancel)});Dn.current=yn;function dt(yt){return async function(){const{active:ae,collisions:pe,over:xe,scrollAdjustedTranslate:Pe}=X.current;let qe=null;if(ae&&Pe){const{cancelDrop:wt}=q.current;qe={activatorEvent:_t,active:ae,collisions:pe,delta:Pe,over:xe},yt===Wi.DragEnd&&typeof wt=="function"&&await Promise.resolve(wt(qe))&&(yt=Wi.DragCancel)}$.current=null,qd.unstable_batchedUpdates(()=>{S({type:yt}),k(Ld.Uninitialized),Bt(null),F(null),W(null),Dn.current=null;const wt=yt===Wi.DragEnd?"onDragEnd":"onDragCancel";if(qe){const lt=q.current[wt];lt?.(qe),C({type:wt,event:qe})}})}}},[O]),pt=A.useCallback((We,Je)=>(St,In)=>{const dn=St.nativeEvent,_t=O.get(In);if($.current!==null||!_t||dn.dndKit||dn.defaultPrevented)return;const yn={active:_t};We(St,Je.options,yn)===!0&&(dn.dndKit={capturedBy:Je.sensor},$.current=In,tn(St,Je))},[O,tn]),Yt=c0t(u,pt);y0t(u),Nc(()=>{ee&&E===Ld.Initializing&&k(Ld.Initialized)},[ee,E]),A.useEffect(()=>{const{onDragMove:We}=q.current,{active:Je,activatorEvent:St,collisions:In,over:dn}=X.current;if(!Je||!St)return;const _t={active:Je,activatorEvent:St,collisions:In,delta:{x:Ve.x,y:Ve.y},over:dn};qd.unstable_batchedUpdates(()=>{We?.(_t),C({type:"onDragMove",event:_t})})},[Ve.x,Ve.y]),A.useEffect(()=>{const{active:We,activatorEvent:Je,collisions:St,droppableContainers:In,scrollAdjustedTranslate:dn}=X.current;if(!We||$.current==null||!Je||!dn)return;const{onDragOver:_t}=q.current,yn=In.get(ut),dt=yn&&yn.rect.current?{id:yn.id,rect:yn.rect.current,data:yn.data,disabled:yn.disabled}:null,yt={active:We,activatorEvent:Je,collisions:St,delta:{x:dn.x,y:dn.y},over:dt};qd.unstable_batchedUpdates(()=>{Bt(dt),_t?.(yt),C({type:"onDragOver",event:yt})})},[ut]),Nc(()=>{X.current={activatorEvent:V,active:N,activeNode:Q,collisionRect:Ke,collisions:at,droppableRects:Y,draggableNodes:O,draggingNode:fe,draggingNodeRect:ye,droppableContainers:P,over:Qe,scrollableAncestors:Oe,scrollAdjustedTranslate:Ve},M.current={initial:ye,translated:Ke}},[N,Q,at,Ke,O,fe,ye,Y,P,Qe,Oe,Ve]),o0t({...te,delta:R,draggingRect:Ke,pointerCoordinates:At,scrollableAncestors:Oe,scrollableAncestorRects:He});const an=A.useMemo(()=>({active:N,activeNode:Q,activeNodeRect:ee,activatorEvent:V,collisions:at,containerNodeRect:J,dragOverlay:le,draggableNodes:O,droppableContainers:P,droppableRects:Y,over:Qe,measureDroppableContainers:H,scrollableAncestors:Oe,scrollableAncestorRects:He,measuringConfiguration:U,measuringScheduled:K,windowRect:we}),[N,Q,ee,V,at,J,le,O,P,Y,Qe,H,Oe,He,U,K,we]),wn=A.useMemo(()=>({activatorEvent:V,activators:Yt,active:N,activeNodeRect:ee,ariaDescribedById:{draggable:Z},dispatch:S,draggableNodes:O,over:Qe,measureDroppableContainers:H}),[V,Yt,N,ee,S,Z,O,Qe,H]);return on.createElement(hue.Provider,{value:w},on.createElement(I8.Provider,{value:wn},on.createElement(Due.Provider,{value:an},on.createElement(_ue.Provider,{value:Pt},c)),on.createElement(_0t,{disabled:a?.restoreFocus===!1})),on.createElement(Tgt,{...a,hiddenTextDescribedById:Z}));function Ge(){const We=B?.autoScrollEnabled===!1,Je=typeof l=="object"?l.enabled===!1:l===!1,St=T&&!We&&!Je;return typeof l=="object"?{...l,enabled:St}:{enabled:St}}}),R0t=A.createContext(null),lJ="button",I0t="Draggable";function P0t(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Nv(I0t),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:p}=A.useContext(I8),{role:g=lJ,roleDescription:y="draggable",tabIndex:b=0}=i??{},v=l?.id===t,S=A.useContext(v?_ue:R0t),[C,w]=s6(),[E,k]=s6(),T=b0t(s,t),_=D2(n);Nc(()=>(d.set(t,{id:t,key:o,node:C,activatorNode:E,data:_}),()=>{const R=d.get(t);R&&R.key===o&&d.delete(t)}),[d,t]);const O=A.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":v&&g===lJ?!0:void 0,"aria-roledescription":y,"aria-describedby":u.draggable}),[r,g,b,v,y,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:O,isDragging:v,listeners:r?void 0:T,node:C,over:p,setNodeRef:w,setActivatorNodeRef:k,transform:S}}function N0t(){return A.useContext(Due)}const $0t="Droppable",L0t={timeout:25};function F0t(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Nv($0t),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=A.useContext(I8),u=A.useRef({disabled:n}),d=A.useRef(!1),p=A.useRef(null),g=A.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...L0t,...i},S=D2(b??r),C=A.useCallback(()=>{if(!d.current){d.current=!0;return}g.current!=null&&clearTimeout(g.current),g.current=setTimeout(()=>{c(Array.isArray(S.current)?S.current:[S.current]),g.current=null},v)},[v]),w=R8({callback:C,disabled:y||!s}),E=A.useCallback((O,R)=>{w&&(R&&(w.unobserve(R),d.current=!1),O&&w.observe(O))},[w]),[k,T]=s6(E),_=D2(t);return A.useEffect(()=>{!w||!k.current||(w.disconnect(),d.current=!1,w.observe(k.current))},[k,w]),A.useEffect(()=>(a({type:Wi.RegisterDroppable,element:{id:r,key:o,disabled:n,node:k,rect:p,data:_}}),()=>a({type:Wi.UnregisterDroppable,key:o,id:r})),[r]),A.useEffect(()=>{n!==u.current.disabled&&(a({type:Wi.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:p,isOver:l?.id===r,node:k,over:l,setNodeRef:T}}function DI(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function z0t(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function rS(e){return e!==null&&e>=0}function B0t(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function H0t(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Tue=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=DI(t,r,n),s=t[i],a=o[i];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},iS={scaleX:1,scaleY:1},U0t=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:i,rects:o,overIndex:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;if(i===n){const c=o[s];return c?{x:0,y:n<s?c.top+c.height-(a.top+a.height):c.top-a.top,...iS}:null}const l=V0t(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...iS}:i<n&&i>=s?{x:0,y:a.height+l,...iS}:{x:0,y:0,...iS}};function V0t(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return r?n<t?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const Oue="Sortable",Mue=on.createContext({activeIndex:-1,containerId:Oue,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Tue,disabled:{draggable:!1,droppable:!1}});function W0t(e){let{children:t,id:n,items:r,strategy:i=Tue,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=N0t(),d=Nv(Oue,n),p=a.rect!==null,g=A.useMemo(()=>r.map(T=>typeof T=="object"&&"id"in T?T.id:T),[r]),y=s!=null,b=s?g.indexOf(s.id):-1,v=c?g.indexOf(c.id):-1,S=A.useRef(g),C=!B0t(g,S.current),w=v!==-1&&b===-1||C,E=H0t(o);Nc(()=>{C&&y&&u(g)},[C,g,y,u]),A.useEffect(()=>{S.current=g},[g]);const k=A.useMemo(()=>({activeIndex:b,containerId:d,disabled:E,disableTransforms:w,items:g,overIndex:v,useDragOverlay:p,sortedRects:z0t(g,l),strategy:i}),[b,d,E.draggable,E.droppable,w,g,v,l,p,i]);return on.createElement(Mue.Provider,{value:k},t)}const q0t=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return DI(n,r,i).indexOf(t)},K0t=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!r||a!==o&&i===s?!1:n?!0:s!==i&&t===l},G0t={duration:200,easing:"ease"},jue="transform",Y0t=T2.Transition.toString({property:jue,duration:0,easing:"linear"}),J0t={roleDescription:"sortable"};function Z0t(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=A.useState(null),a=A.useRef(n);return Nc(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=N0(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&s(u)}}n!==a.current&&(a.current=n)},[t,n,r,i]),A.useEffect(()=>{o&&s(null)},[o]),o}function X0t(e){let{animateLayoutChanges:t=K0t,attributes:n,disabled:r,data:i,getNewIndex:o=q0t,id:s,strategy:a,resizeObserverConfig:l,transition:c=G0t}=e;const{items:u,containerId:d,activeIndex:p,disabled:g,disableTransforms:y,sortedRects:b,overIndex:v,useDragOverlay:S,strategy:C}=A.useContext(Mue),w=Q0t(r,g),E=u.indexOf(s),k=A.useMemo(()=>({sortable:{containerId:d,index:E,items:u},...i}),[d,i,E,u]),T=A.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:_,node:O,isOver:R,setNodeRef:P}=F0t({id:s,data:k,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...l}}),{active:L,activatorEvent:M,activeNodeRect:N,attributes:$,setNodeRef:B,listeners:F,isDragging:V,over:W,setActivatorNodeRef:q,transform:Z}=P0t({id:s,data:k,attributes:{...J0t,...n},disabled:w.draggable}),z=ggt(P,B),U=!!L,Y=U&&!y&&rS(p)&&rS(v),H=!S&&V,K=H&&Y?Z:null,ie=Y?K??(a??C)({rects:b,activeNodeRect:N,activeIndex:p,overIndex:v,index:E}):null,te=rS(p)&&rS(v)?o({id:s,items:u,activeIndex:p,overIndex:v}):E,ce=L?.id,ee=A.useRef({activeId:ce,items:u,newIndex:te,containerId:d}),J=u!==ee.current.items,X=t({active:L,containerId:d,isDragging:V,isSorting:U,id:s,index:E,items:u,newIndex:ee.current.newIndex,previousItems:ee.current.items,previousContainerId:ee.current.containerId,transition:c,wasDragging:ee.current.activeId!=null}),oe=Z0t({disabled:!X,index:E,node:O,rect:_});return A.useEffect(()=>{U&&ee.current.newIndex!==te&&(ee.current.newIndex=te),d!==ee.current.containerId&&(ee.current.containerId=d),u!==ee.current.items&&(ee.current.items=u)},[U,te,d,u]),A.useEffect(()=>{if(ce===ee.current.activeId)return;if(ce!=null&&ee.current.activeId==null){ee.current.activeId=ce;return}const fe=setTimeout(()=>{ee.current.activeId=ce},50);return()=>clearTimeout(fe)},[ce]),{active:L,activeIndex:p,attributes:$,data:k,rect:_,index:E,newIndex:te,items:u,isOver:R,isSorting:U,isDragging:V,listeners:F,node:O,overIndex:v,over:W,setNodeRef:z,setActivatorNodeRef:q,setDroppableNodeRef:P,setDraggableNodeRef:B,transform:oe??ie,transition:le()};function le(){if(oe||J&&ee.current.newIndex===E)return Y0t;if(!(H&&!wI(M)||!c)&&(U||X))return T2.Transition.toString({...c,property:jue})}}function Q0t(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function c6(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const e1t=[Jn.Down,Jn.Right,Jn.Up,Jn.Left],t1t=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(e1t.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const p=i.get(d.id);if(p)switch(e.code){case Jn.Down:r.top<p.top&&l.push(d);break;case Jn.Up:r.top>p.top&&l.push(d);break;case Jn.Left:r.left>p.left&&l.push(d);break;case Jn.Right:r.left<p.left&&l.push(d);break}});const c=Rgt({collisionRect:r,droppableRects:i,droppableContainers:l});let u=gue(c,"id");if(u===s?.id&&c.length>1&&(u=c[1].id),u!=null){const d=o.get(n.id),p=o.get(u),g=p?i.get(p.id):null,y=p?.node.current;if(y&&g&&d&&p){const v=j8(y).some((T,_)=>a[_]!==T),S=Rue(d,p),C=n1t(d,p),w=v||!S?{x:0,y:0}:{x:C?r.width-g.width:0,y:C?r.height-g.height:0},E={x:g.left,y:g.top};return w.x&&w.y?E:_2(E,w)}}}};function Rue(e,t){return!c6(e)||!c6(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function n1t(e,t){return!c6(e)||!c6(t)||!Rue(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const r1t=({bridge:e,index:t})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:s,isDragging:a}=X0t({id:e.id}),[l,c]=A.useState(!1);A.useEffect(()=>{fC(e.id).then(c)},[e.id]);const u={transform:T2.Transform.toString(o),transition:s,opacity:a?.5:1};return h.jsx(Mn,{ref:i,style:u,variant:"outlined",sx:{cursor:"grab","&:active":{cursor:"grabbing"},bgcolor:a?"action.selected":"background.paper",width:"fit-content"},children:h.jsxs(Qn,{sx:{display:"flex",alignItems:"center",gap:1.5,py:1,"&:last-child":{pb:1}},children:[h.jsx(se,{...n,...r,sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:h.jsx(q_e,{})}),h.jsx(ot,{label:t+1,size:"small",color:"primary",sx:{minWidth:32,fontWeight:"bold"}}),l?h.jsx(se,{component:"img",src:Db(e.id),alt:e.name,sx:{width:40,height:40,borderRadius:"50%",objectFit:"cover",boxShadow:2}}):h.jsx(wl,{sx:{bgcolor:jM(e),width:40,height:40,boxShadow:2},children:(()=>{const d=MM(e);return h.jsx(d,{sx:{fontSize:24}})})()}),h.jsxs(se,{sx:{flex:1},children:[h.jsx(re,{variant:"subtitle1",fontWeight:500,children:e.name}),h.jsxs(re,{variant:"caption",color:"text.secondary",children:["Port: ",e.port," • Priority: ",e.priority??100]})]})]})})},i1t=()=>{const{t:e}=en(),t=Fc(),{content:n,isLoading:r}=h0(),i=h_e(),[o,s]=A.useState([]),[a,l]=A.useState(!1);A.useEffect(()=>{if(n){const g=[...n].sort((y,b)=>{const v=y.priority??100,S=b.priority??100;return v-S});s(g),l(!1)}},[n]);const c=Ogt(JY(AI),JY(kI,{coordinateGetter:t1t})),u=A.useCallback(g=>{const{active:y,over:b}=g;b&&y.id!==b.id&&(s(v=>{const S=v.findIndex(w=>w.id===y.id),C=v.findIndex(w=>w.id===b.id);return DI(v,S,C)}),l(!0))},[]),d=A.useCallback(async()=>{const g=o.map((y,b)=>({id:y.id,priority:(b+1)*10}));try{await i(g),t.show({message:e("startup.saveSuccess"),severity:"success"}),l(!1)}catch(y){t.show({message:y instanceof Error?y.message:e("startup.saveFailed"),severity:"error"})}},[o,i,t,e]),p=A.useMemo(()=>o.map(g=>g.id),[o]);return r?h.jsxs(re,{children:[e("common.loading"),"..."]}):h.jsxs(Wt,{spacing:3,children:[h.jsx(W2,{items:[{name:e("nav.bridges"),to:Mt.bridges},{name:e("startup.title"),to:Mt.startup}]}),h.jsxs(se,{display:"flex",alignItems:"center",gap:2,children:[h.jsx(c0,{color:"primary",fontSize:"large"}),h.jsxs(se,{children:[h.jsx(re,{variant:"h5",fontWeight:600,children:e("startup.title")}),h.jsx(re,{variant:"body2",color:"text.secondary",children:e("startup.description")})]})]}),a&&h.jsx(zt,{severity:"info",action:h.jsx(Ue,{color:"inherit",size:"small",startIcon:h.jsx(L4,{}),onClick:d,children:e("startup.saveChanges")}),children:e("startup.unsavedChanges")}),h.jsx(j0t,{sensors:c,collisionDetection:jgt,onDragEnd:u,children:h.jsx(W0t,{items:p,strategy:U0t,children:h.jsx(Wt,{spacing:1,children:o.map((g,y)=>h.jsx(r1t,{bridge:g,index:y},g.id))})})}),o.length===0&&h.jsx(re,{color:"text.secondary",textAlign:"center",py:4,children:e("startup.noBridges")}),a&&o.length>0&&h.jsx(se,{display:"flex",justifyContent:"flex-end",children:h.jsx(Ue,{variant:"contained",startIcon:h.jsx(L4,{}),onClick:d,children:e("startup.saveOrder")})})]})},GA="https://riddix.github.io/home-assistant-matter-hub",Mt={dashboard:"/",bridges:"/bridges",bridge:e=>`/bridges/${e}`,createBridge:"/bridges/create",areaSetup:"/bridges/area-setup",editBridge:e=>`/bridges/${e}/edit`,devices:"/devices",networkMap:"/network-map",health:"/health",labels:"/labels",lockCredentials:"/lock-credentials",plugins:"/plugins",settings:"/settings",startup:"/startup",githubRepository:"https://github.com/riddix/home-assistant-matter-hub/",documentation:GA,faq:{multiFabric:`${GA}/connect-multiple-fabrics`,bridgeConfig:`${GA}/bridge-configuration`}},o1t=[{path:"",element:h.jsx(fwe,{}),children:[{path:"",element:h.jsx(uOe,{})},{path:Mt.bridges,element:h.jsx(iOe,{})},{path:Mt.createBridge,element:h.jsx(elt,{})},{path:Mt.areaSetup,element:h.jsx(H6e,{})},{path:Mt.bridge(":bridgeId"),element:h.jsx(T_e,{})},{path:Mt.editBridge(":bridgeId"),element:h.jsx(tlt,{})},{path:Mt.devices,element:h.jsx(_Oe,{})},{path:Mt.networkMap,element:h.jsx(Bmt,{})},{path:Mt.health,element:h.jsx(xlt,{})},{path:Mt.labels,element:h.jsx(klt,{})},{path:Mt.lockCredentials,element:h.jsx(Olt,{})},{path:Mt.plugins,element:h.jsx(ugt,{})},{path:Mt.settings,element:h.jsx(mgt,{})},{path:Mt.startup,element:h.jsx(i1t,{})},{path:"*",element:h.jsx(Mlt,{})}]}],s1t={items:{isInitialized:!1,isLoading:!1}},a1t=FO(s1t,e=>{e.addCase(Lo.pending,t=>{t.items.isLoading=!0}).addCase(Lo.rejected,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=void 0,t.items.error=n.error}).addCase(Lo.fulfilled,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(AX.fulfilled,(t,n)=>{t.items.content?.push(n.payload)}).addCase(_X.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(TX.fulfilled,(t,n)=>{const r=t.items.content?.findIndex(i=>i.id===n.payload.id)??-1;r!==-1&&(t.items.content[r]=n.payload)}).addCase(DX.fulfilled,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.meta.arg);r!==-1&&t.items.content.splice(r,1)}}).addCase(OX,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(MX,(t,n)=>{if(t.items.content){const r=t.items.content.findIndex(i=>i.id===n.payload.id);r!==-1?t.items.content[r]=n.payload:t.items.content.push(n.payload)}})}),l1t={byBridge:{}},c1t=FO(l1t,e=>{e.addCase(Ru.pending,(t,n)=>{t.byBridge[n.meta.arg]=YA(t.byBridge[n.meta.arg],n)}).addCase(Ru.rejected,(t,n)=>{t.byBridge[n.meta.arg]=YA(t.byBridge[n.meta.arg],n)}).addCase(Ru.fulfilled,(t,n)=>{t.byBridge[n.meta.arg]=YA(t.byBridge[n.meta.arg],n)})}),u1t={isInitialized:!1,isLoading:!1,content:void 0,error:void 0},YA=FO(u1t,e=>{e.addCase(Ru.pending,t=>{t.isLoading=!0}).addCase(Ru.rejected,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=void 0,t.error=n.error}).addCase(Ru.fulfilled,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=n.payload,t.error=void 0})}),d1t=K4e({reducer:{bridges:a1t,devices:c1t}}),_I=M3e({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ct({props:e,name:"MuiContainer"})});function f1t(e){return tt("MuiToolbar",e)}st("MuiToolbar",["root","gutters","regular","dense"]);const h1t=e=>{const{classes:t,disableGutters:n,variant:r}=e;return nt({root:["root",!n&&"gutters",r]},f1t,t)},p1t=ge("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Iue=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular",...l}=r,c={...r,component:o,disableGutters:s,variant:a},u=h1t(c);return h.jsx(p1t,{as:o,className:_e(u.root,i),ref:n,ownerState:c,...l})});class m1t extends A.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("ErrorBoundary caught:",t,n.componentStack)}render(){return this.state.hasError?h.jsxs(se,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",gap:2,p:4,children:[h.jsx(QO,{color:"error",sx:{fontSize:64}}),h.jsx(re,{variant:"h5",fontWeight:600,children:pi.t("errorBoundary.title")}),h.jsx(re,{variant:"body2",color:"text.secondary",textAlign:"center",maxWidth:480,children:this.state.error?.message??pi.t("errorBoundary.fallbackMessage")}),h.jsx(Ue,{variant:"contained",onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:pi.t("errorBoundary.reload")})]}):this.props.children}}function g1t(e){return tt("MuiFab",e)}const cJ=st("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),y1t=e=>{const{color:t,variant:n,classes:r,size:i}=e,o={root:["root",n,`size${ve(i)}`,t==="inherit"?"colorInherit":t]},s=nt(o,g1t,r);return{...r,...s}},b1t=ge(ss,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Li(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ve(n.size)}`],n.color==="inherit"&&t.colorInherit,t[ve(n.size)],t[n.color]]}})(Ye(({theme:e})=>({...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${cJ.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]})),Ye(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Gn(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),Ye(({theme:e})=>({[`&.${cJ.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),v1t=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiFab"}),{children:i,className:o,color:s="default",component:a="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:d="large",variant:p="circular",...g}=r,y={...r,color:s,component:a,disabled:l,disableFocusRipple:c,size:d,variant:p},b=y1t(y);return h.jsx(b1t,{className:_e(b.root,o),component:a,disabled:l,focusRipple:!c,focusVisibleClassName:_e(b.focusVisible,u),ownerState:y,ref:n,...g,classes:b,children:i})}),x1t=[{code:"en",flag:"🇬🇧",name:"English"},{code:"de",flag:"🇩🇪",name:"Deutsch"},{code:"fr",flag:"🇫🇷",name:"Français"},{code:"es",flag:"🇪🇸",name:"Español"},{code:"it",flag:"🇮🇹",name:"Italiano"},{code:"zh",flag:"🇨🇳",name:"中文"},{code:"zh-TW",flag:"🇹🇼",name:"繁體中文"},{code:"th",flag:"🇹🇭",name:"ไทย"},{code:"sv",flag:"🇸🇪",name:"Svenska"},{code:"tr",flag:"🇹🇷",name:"Türkçe"},{code:"ru",flag:"🇷🇺",name:"Русский"}],S1t="hamh-custom-languages";function w1t(){try{const e=localStorage.getItem(S1t);return e?JSON.parse(e).map(n=>({code:n.code,flag:"🌐",name:n.name})):[]}catch{return[]}}const C1t="https://github.com/RiDDiX/home-assistant-matter-hub/issues/new?labels=translation&title=Translation+improvement";function k1t(){const{t:e,i18n:t}=en(),[n,r]=A.useState(!1),i=A.useRef(null),o=A.useMemo(()=>[...x1t,...w1t()],[]),s=t.language??"en",a=o.some(d=>d.code===s)?s:s.split("-")[0]??"en",l=A.useCallback(()=>{r(d=>!d)},[]),c=A.useCallback(d=>{t.changeLanguage(d),r(!1)},[t]),u=A.useCallback(()=>{r(!1)},[]);return h.jsx(rX,{onClickAway:u,children:h.jsxs(se,{children:[h.jsx(v1t,{ref:i,size:"small",color:"primary",onClick:l,"aria-label":"Change language",sx:{position:"fixed",bottom:24,right:24,zIndex:1300},children:h.jsx(Q_e,{})}),h.jsx(G2,{open:n,anchorEl:i.current,placement:"top-end",transition:!0,sx:{zIndex:1300},children:({TransitionProps:d})=>h.jsx(O4,{...d,timeout:200,children:h.jsxs(zr,{elevation:8,sx:{mb:1,py:.5,minWidth:160,borderRadius:2,overflow:"hidden"},children:[o.map(p=>h.jsxs(se,{onClick:()=>c(p.code),sx:{display:"flex",alignItems:"center",gap:1.5,px:2,py:1,cursor:"pointer",bgcolor:a===p.code?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"},transition:"background-color 0.15s"},children:[h.jsx(re,{sx:{fontSize:"1.4rem",lineHeight:1,userSelect:"none"},children:p.flag}),h.jsx(re,{variant:"body2",fontWeight:a===p.code?600:400,children:p.name})]},p.code)),h.jsx(Dr,{}),h.jsxs(se,{sx:{display:"flex",alignItems:"flex-start",gap:.75,px:2,py:1},children:[h.jsx(VO,{sx:{fontSize:14,mt:.25,color:"text.secondary"}}),h.jsxs(re,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.4},children:[e("languageSwitcher.disclaimer")," ",h.jsx(V2,{href:C1t,target:"_blank",rel:"noopener",sx:{fontSize:"inherit"},children:e("languageSwitcher.contribute")})]})]})]})})})]})})}const E1t="home-assistant-matter-hub",A1t={name:E1t};function Pue(){const e="2.1.0-alpha.598",[t,n]=A.useState(null);A.useEffect(()=>{fetch("api/health").then(i=>i.ok?i.json():null).then(i=>{i?.version&&n(i.version)}).catch(()=>{})},[]);const r=A.useMemo(()=>!t||e==="0.0.0-dev"?!1:e!==t,[t]);return A.useMemo(()=>({name:A1t.name,version:t??e,frontendVersion:e,backendVersion:t,versionMismatch:r}),[t,r])}const D1t=()=>{const{t:e}=en(),t=[{name:e("footer.github"),url:Mt.githubRepository},{name:e("footer.documentation"),url:Mt.documentation}];return h.jsxs(_I,{sx:{mt:16,mb:4},children:[h.jsx(Dr,{sx:{mt:4,mb:4}}),h.jsx(ht,{container:!0,spacing:2,justifyContent:"center",children:t.map((n,r)=>h.jsx(ht,{size:{xs:12,sm:"auto"},children:h.jsx(Ue,{fullWidth:!0,size:"small",variant:"outlined",component:V2,href:n.url,target:"_blank",children:n.name})},r.toString()))})]})};function _1t(e){return tt("MuiAppBar",e)}st("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const T1t=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ve(t)}`,`position${ve(n)}`]};return nt(i,_1t,r)},uJ=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,O1t=ge(zr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ve(n.position)}`],t[`color${ve(n.color)}`]]}})(Ye(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Gn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?uJ(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?uJ(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),M1t=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,c={...r,color:o,position:a,enableColorOnDark:s},u=T1t(c);return h.jsx(O1t,{square:!0,component:"header",ownerState:c,elevation:4,className:_e(u.root,i,a==="fixed"&&"mui-fixed"),ref:n,...l})});function j1t(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=oa(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const c=o.getComputedStyle(t);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function R1t(e){return typeof e=="function"?e():e}function oS(e,t,n){const r=R1t(n),i=j1t(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const I1t=A.forwardRef(function(t,n){const r=Ki(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:u="down",easing:d=i,in:p,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:S,onExiting:C,style:w,timeout:E=o,TransitionComponent:k=Ja,...T}=t,_=A.useRef(null),O=Br(Rf(l),_,n),R=W=>q=>{W&&(q===void 0?W(_.current):W(_.current,q))},P=R((W,q)=>{oS(u,W,c),IO(W),g&&g(W,q)}),L=R((W,q)=>{const Z=gf({timeout:E,style:w,easing:d},{mode:"enter"});W.style.webkitTransition=r.transitions.create("-webkit-transform",{...Z}),W.style.transition=r.transitions.create("transform",{...Z}),W.style.webkitTransform="none",W.style.transform="none",b&&b(W,q)}),M=R(y),N=R(C),$=R(W=>{const q=gf({timeout:E,style:w,easing:d},{mode:"exit"});W.style.webkitTransition=r.transitions.create("-webkit-transform",q),W.style.transition=r.transitions.create("transform",q),oS(u,W,c),v&&v(W)}),B=R(W=>{W.style.webkitTransition="",W.style.transition="",S&&S(W)}),F=W=>{s&&s(_.current,W)},V=A.useCallback(()=>{_.current&&oS(u,_.current,c)},[u,c]);return A.useEffect(()=>{if(p||u==="down"||u==="right")return;const W=H2(()=>{_.current&&oS(u,_.current,c)}),q=oa(_.current);return q.addEventListener("resize",W),()=>{W.clear(),q.removeEventListener("resize",W)}},[u,p,c]),A.useEffect(()=>{p||V()},[p,V]),h.jsx(k,{nodeRef:_,onEnter:P,onEntered:M,onEntering:L,onExit:$,onExited:B,onExiting:N,addEndListener:F,appear:a,in:p,timeout:E,...T,children:(W,{ownerState:q,...Z})=>A.cloneElement(l,{ref:O,style:{visibility:W==="exited"&&!p?"hidden":void 0,...w,...l.props.style},...Z})})});function P1t(e){return tt("MuiDrawer",e)}st("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Nue=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,n.variant==="temporary"&&t.modal]},N1t=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root",`anchor${ve(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ve(n)}`,r!=="temporary"&&`paperAnchorDocked${ve(n)}`]};return nt(i,P1t,t)},$1t=ge(nM,{name:"MuiDrawer",slot:"Root",overridesResolver:Nue})(Ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),L1t=ge("div",{shouldForwardProp:Li,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Nue})({flex:"0 0 auto"}),F1t=ge(zr,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ve(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ve(n.anchor)}`]]}})(Ye(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),$ue={left:"right",right:"left",top:"down",bottom:"up"};function z1t(e){return["left","right"].includes(e)}function B1t({direction:e},t){return e==="rtl"&&z1t(t)?$ue[t]:t}const H1t=A.forwardRef(function(t,n){const r=ct({props:t,name:"MuiDrawer"}),i=Ki(),o=Lc(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g,...y}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:C,TransitionComponent:w,transitionDuration:E=s,variant:k="temporary",slots:T={},slotProps:_={},...O}=r,R=A.useRef(!1);A.useEffect(()=>{R.current=!0},[]);const P=B1t({direction:o?"rtl":"ltr"},a),M={...r,anchor:a,elevation:d,open:v,variant:k,...O},N=N1t(M),$={slots:{transition:w,...T},slotProps:{paper:S,transition:C,..._,backdrop:MO(_.backdrop||{...l,...g},{transitionDuration:E})}},[B,F]=ft("root",{ref:n,elementType:$1t,className:_e(N.root,N.modal,u),shouldForwardComponentProp:!0,ownerState:M,externalForwardedProps:{...$,...O,...y},additionalProps:{open:v,onClose:b,hideBackdrop:p,slots:{backdrop:$.slots.backdrop},slotProps:{backdrop:$.slotProps.backdrop}}}),[V,W]=ft("paper",{elementType:F1t,shouldForwardComponentProp:!0,className:_e(N.paper,S.className),ownerState:M,externalForwardedProps:$,additionalProps:{elevation:k==="temporary"?d:0,square:!0,...k==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[q,Z]=ft("docked",{elementType:L1t,ref:n,className:_e(N.root,N.docked,u),ownerState:M,externalForwardedProps:$,additionalProps:O}),[z,U]=ft("transition",{elementType:I1t,ownerState:M,externalForwardedProps:$,additionalProps:{in:v,direction:$ue[P],timeout:E,appear:R.current}}),Y=h.jsx(V,{...W,children:c});if(k==="permanent")return h.jsx(q,{...Z,children:Y});const H=h.jsx(z,{...U,children:Y});return k==="persistent"?h.jsx(q,{...Z,children:H}):h.jsx(B,{...F,children:H})}),U1t=PZ({themeId:ja}),V1t={error:Nf,warn:u0,info:eM,debug:uC},W1t=({open:e,onClose:t})=>{const{t:n}=en(),r=Ki(),i=A.useMemo(()=>({error:r.palette.error.main,warn:r.palette.warning.main,info:r.palette.info.main,debug:r.palette.secondary.main}),[r]),[o,s]=A.useState([]),[a,l]=A.useState(!0),[c,u]=A.useState("error,warn,info".split(",")),[d,p]=A.useState(""),[g,y]=A.useState(!0),b=A.useCallback(async()=>{try{const E=new URLSearchParams({level:c.join(","),limit:"500",...d&&{search:d}}),k=await fetch(`api/logs?${E}`);if(k.ok){const T=await k.json();s(T.entries)}}catch(E){console.error("Failed to fetch logs:",E)}finally{l(!1)}},[c,d]);A.useEffect(()=>{e&&b()},[e,b]),A.useEffect(()=>{if(!g||!e)return;const E=setInterval(b,5e3);return()=>clearInterval(E)},[g,e,b]);const v=E=>{u(Array.isArray(E.target.value)?E.target.value:[E.target.value])},S=E=>{p(E.target.value)},C=async()=>{try{await fetch("api/logs",{method:"DELETE"}),s([])}catch(E){console.error("Failed to clear logs:",E)}},w=E=>{const k=V1t[E]||eM;return h.jsx(k,{sx:{fontSize:16,color:i[E]}})};return h.jsxs(Po,{open:e,onClose:t,maxWidth:"lg",fullWidth:!0,children:[h.jsxs($o,{sx:{display:"flex",alignItems:"center",gap:1},children:[h.jsx(uC,{}),n("logs.title"),h.jsx(se,{sx:{flexGrow:1}}),h.jsx(Lt,{title:n("logs.autoRefresh"),children:h.jsx(ot,{label:g?"Auto":"Manual",color:g?"success":"default",size:"small",onClick:()=>y(!g),sx:{cursor:"pointer"}})}),h.jsx(qt,{onClick:t,children:h.jsx($4,{})})]}),h.jsxs(No,{children:[h.jsx(Wt,{spacing:2,sx:{mb:2},children:h.jsxs(Wt,{direction:"row",spacing:2,alignItems:"center",children:[h.jsxs(rs,{size:"small",sx:{minWidth:200},children:[h.jsx(Ia,{children:n("logs.logLevel")}),h.jsxs(ts,{value:c,label:n("logs.logLevel"),onChange:v,multiple:!0,renderValue:E=>h.jsx(se,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:(Array.isArray(E)?E:[E]).map(k=>h.jsx(ot,{label:k.toUpperCase(),size:"small",sx:{backgroundColor:i[k],color:"white"}},k))}),children:[h.jsx(Bn,{value:"error",children:n("logs.error")}),h.jsx(Bn,{value:"warn",children:n("logs.warning")}),h.jsx(Bn,{value:"info",children:n("logs.info")}),h.jsx(Bn,{value:"debug",children:n("logs.debug")})]})]}),h.jsx(zn,{size:"small",placeholder:n("logs.searchPlaceholder"),value:d,onChange:S,sx:{flexGrow:1}}),h.jsx(Ue,{variant:"outlined",onClick:b,children:n("common.refresh")}),h.jsx(Ue,{variant:"outlined",color:"error",onClick:C,children:n("common.delete")})]})}),h.jsx(se,{sx:{height:400,overflow:"auto",backgroundColor:"background.paper",border:1,borderColor:"divider",borderRadius:1,p:1},children:a?h.jsx(se,{sx:{display:"flex",justifyContent:"center",p:4},children:h.jsxs(re,{children:[n("common.loading"),"..."]})}):o.length===0?h.jsx(se,{sx:{display:"flex",justifyContent:"center",p:4},children:h.jsx(re,{color:"text.secondary",children:n("logs.noResults")})}):h.jsx(Wt,{spacing:1,children:o.map((E,k)=>h.jsxs(se,{sx:{p:1,borderRadius:1,backgroundColor:"action.hover",fontFamily:"monospace",fontSize:"0.875rem",wordBreak:"break-all"},children:[h.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[w(E.level),h.jsx(re,{variant:"caption",color:"text.secondary",children:new Date(E.timestamp).toLocaleString()}),h.jsx(ot,{label:E.level.toUpperCase(),size:"small",sx:{backgroundColor:i[E.level],color:r.palette.getContrastText(i[E.level]??r.palette.grey[500]),fontSize:"0.7rem",height:20}})]}),h.jsx(re,{sx:{ml:3},children:E.message}),E.context&&h.jsx(re,{sx:{ml:3,color:"text.secondary",fontSize:"0.8rem"},children:JSON.stringify(E.context,null,2)})]},`${E.timestamp}-${E.level}-${k}`))})})]}),h.jsx(es,{children:h.jsx(Ue,{onClick:t,children:n("common.close")})})]})};function dJ(){const{t:e}=en(),{isConnected:t}=RX(),[n,r]=A.useState(null),[i,o]=A.useState(!1);A.useEffect(()=>{const b=async()=>{try{const S=await fetch("api/health");if(S.ok){const C=await S.json();r(C),o(!1)}else o(!0)}catch{o(!0)}};b();const v=setInterval(b,3e4);return()=>clearInterval(v)},[]);const s=b=>{const v=Math.floor(b/3600),S=Math.floor(b%3600/60);return v>0?`${v}h ${S}m`:`${S}m`},a=n?.status==="healthy"&&!i,l=n?.services?.bridges,c=l&&l.total>0&&l.running===l.total,u=l&&l.total===0,d=n?h.jsxs(se,{sx:{p:.5},children:[h.jsxs("div",{children:[h.jsxs("strong",{children:[e("health.version"),":"]})," ",n.version??e("status.unknown")]}),h.jsxs("div",{children:[h.jsxs("strong",{children:[e("health.uptime"),":"]})," ",s(n.uptime??0)]}),n.services?.bridges&&h.jsxs("div",{children:[h.jsxs("strong",{children:[e("nav.bridges"),":"]})," ",n.services.bridges.running??0,"/",n.services.bridges.total??0," ",e("common.running").toLowerCase(),(n.services.bridges.stopped??0)>0&&` (${n.services.bridges.stopped} ${e("common.stopped").toLowerCase()})`]}),n.services?.homeAssistant&&h.jsxs("div",{children:[h.jsxs("strong",{children:[e("health.homeAssistant"),":"]})," ",n.services.homeAssistant.connected?e("health.connected"):e("health.disconnected")]}),h.jsxs("div",{children:[h.jsx("strong",{children:"WebSocket:"})," ",e(t?"health.connected":"health.disconnected")]})]}):e("status.loadingHealth"),p=()=>i||!a?h.jsx(Nf,{fontSize:"small"}):c?h.jsx(Za,{fontSize:"small"}):h.jsx(G6,{fontSize:"small"}),g=()=>i||!a?"error":!c||!t?"warning":"success",y=()=>e(i?"status.error":a?t?u?"status.noBridges":c?"common.online":"common.starting":"common.offline":"status.unhealthy");return h.jsx(Lt,{title:d,arrow:!0,children:h.jsx(ot,{icon:p(),label:y(),color:g(),size:"small",variant:"filled",sx:{borderRadius:1,fontWeight:600,"& .MuiChip-icon":{color:"inherit"}}})})}const q1t=e=>A.createElement("svg",{viewBox:"0 0 91 89",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{style:{display:"inline"}},A.createElement("path",{style:{fill:"#18bcf2",fillOpacity:1,strokeWidth:.266194},d:"m 49.149143,1.473171 38.513568,38.536435 c 0,0 1.248354,1.186052 2.207681,3.092371 0.959329,1.906323 1.10864,4.600698 1.10864,4.600698 v 36.786372 c 0,0 -0.01549,1.748506 -1.49842,3.050572 -1.482931,1.302064 -3.333077,1.362947 -3.333077,1.362947 l -81.325658,7.7e-5 c 0,0 -1.7523855,-0.0091 -3.17112,-1.352526 C -0.07808495,85.913164 0.05953025,84.487808 0.05953025,84.487808 V 47.704546 c 0,0 -0.0018381,-2.218618 0.95921785,-4.315832 0.9610554,-2.097209 2.3010618,-3.355005 2.3010618,-3.355005 L 41.545959,1.4719546 c 0,0 1.465224,-1.46837077 3.753488,-1.46837077 2.288268,0 3.849696,1.46958717 3.849696,1.46958717 z"}),A.createElement("path",{style:{fill:"#ffffff",fillOpacity:1,strokeWidth:.175841},d:"m 31.689717,32.051124 c 2.813363,2.331095 6.157331,3.89845 9.721813,4.556421 V 17.180647 l 3.873694,-2.282955 3.870527,2.282955 V 36.60772 c 3.565364,-0.658847 6.910387,-2.226204 9.725159,-4.556417 l 7.032345,4.154609 c -11.437354,11.557779 -29.852321,11.557779 -41.290025,0 z m 8.546732,49.60988 C 44.314996,65.760441 35.09933,49.470196 19.574984,45.139543 v 8.312381 c 3.383916,1.32244 6.386113,3.496288 8.728705,6.320026 L 11.83076,69.485301 v 4.56907 l 3.873697,2.270836 16.469936,-9.713534 c 1.224356,3.48294 1.56683,7.225375 0.996449,10.879778 z M 70.977694,45.139543 c -15.515726,4.34014 -24.72189,20.626696 -20.643519,36.521461 l 7.047658,-4.15742 c -0.569325,-3.654411 -0.2265,-7.3965 0.996449,-10.87979 l 16.457611,9.701233 3.870711,-2.283125 v -4.55677 L 62.233673,59.77195 c 2.342772,-2.822684 5.34497,-4.996533 8.728708,-6.320026 z"}))),K1t=e=>{const t=Pue();return h.jsxs(se,{component:Oc,to:Mt.dashboard,sx:{display:"flex",alignItems:"center",justifyContent:e.large?"flex-start":"center",flexGrow:1,textDecoration:"none",color:"inherit"},children:[h.jsx(q1t,{style:{height:"40px"}}),h.jsx(re,{variant:"inherit",component:"span",sx:{mr:1,ml:1},children:t.name.split("-").map(ve).join("-")}),e.large&&h.jsx(re,{variant:"caption",component:"span",children:t.version})]})},G1t=()=>{const e=U1t("(min-width:600px)"),{mode:t,setMode:n}=R6(),[r,i]=A.useState(!1),[o,s]=A.useState(!1),a=$c(),l=Yu(),c=y=>y?y==="/"?l.pathname==="/":l.pathname.startsWith(y):!1,u=()=>{n(t==="dark"?"light":"dark")},{t:d}=en(),p=[{label:d("dashboard.title"),icon:h.jsx(kM,{}),to:Mt.dashboard},{label:d("nav.bridges"),icon:h.jsx(Ly,{}),to:Mt.bridges},{label:d("nav.devices"),icon:h.jsx(aa,{}),to:Mt.devices},{label:d("nav.networkMap"),icon:h.jsx(SM,{}),to:Mt.networkMap},{label:d("nav.startupOrder"),icon:h.jsx(c0,{}),to:Mt.startup},{label:d("nav.lockCredentials"),icon:h.jsx(ju,{}),to:Mt.lockCredentials},{label:d("nav.filterReference"),icon:h.jsx(EM,{}),to:Mt.labels},{label:"Plugins",icon:h.jsx($y,{}),to:Mt.plugins},{label:d("nav.settings"),icon:h.jsx(f0,{}),to:Mt.settings},{label:d(t==="dark"?"nav.lightMode":"nav.darkMode"),icon:t==="dark"?h.jsx(tTe,{}):h.jsx(U_e,{}),onClick:u},{label:d("nav.systemLogs"),icon:h.jsx(uC,{}),onClick:()=>i(!0)},{label:d("nav.health"),icon:h.jsx(iM,{}),to:Mt.health}],g=y=>{s(!1),y.onClick?y.onClick():y.to&&a(y.to)};return h.jsxs(se,{children:[h.jsx(M1t,{sx:{height:"72px"},children:h.jsx(Iue,{sx:{paddingLeft:"0 !important",paddingRight:"0 !important"},children:h.jsxs(_I,{sx:{padding:2,height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[h.jsx(K1t,{large:e}),e?h.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.map(y=>y.to?h.jsx(Lt,{title:y.label,children:h.jsx(qt,{component:Oc,to:y.to,sx:{color:"inherit",bgcolor:c(y.to)?"rgba(255,255,255,0.15)":"transparent",borderRadius:1},children:y.icon})},y.label):h.jsx(Lt,{title:y.label,children:h.jsx(qt,{onClick:y.onClick,sx:{color:"inherit"},children:y.icon})},y.label)),h.jsx(dJ,{})]}):h.jsxs(se,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(dJ,{}),h.jsx(qt,{onClick:()=>s(!0),sx:{color:"inherit"},children:h.jsx(nTe,{})})]})]})})}),h.jsx(H1t,{anchor:"right",open:o,onClose:()=>s(!1),children:h.jsx(Fo,{sx:{width:250},children:p.map(y=>h.jsxs(oCe,{selected:c(y.to),onClick:()=>g(y),children:[h.jsx(Io,{children:y.icon}),h.jsx(ao,{primary:y.label})]},y.label))})}),h.jsx(W1t,{open:r,onClose:()=>i(!1)})]})},Y1t=()=>{const{versionMismatch:e,frontendVersion:t,backendVersion:n}=Pue(),{isConnected:r}=RX();return h.jsxs(se,{children:[h.jsx(G1t,{}),h.jsx(Iue,{}),e&&h.jsxs(zt,{severity:"warning",variant:"filled",sx:{borderRadius:0},action:h.jsx(Ue,{color:"inherit",size:"small",onClick:()=>window.location.reload(),children:"Reload"}),children:["Version mismatch: frontend ",t,", backend ",n,". Please reload to get the latest UI."]}),!r&&h.jsx(zt,{severity:"error",variant:"filled",sx:{borderRadius:0},children:"Connection lost — data may be outdated. Reconnecting…"}),h.jsx(_I,{sx:{p:2},children:h.jsx(m1t,{children:h.jsx(HJ,{})})}),h.jsx(D1t,{}),h.jsx(k1t,{})]})},J1t=O6({colorSchemes:{light:{palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"},background:{default:"#f5f5f5",paper:"#ffffff"}}},dark:{palette:{primary:{main:"#90caf9",light:"#e3f2fd",dark:"#42a5f5"},secondary:{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"},background:{default:"#121212",paper:"#1e1e1e"}}}},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"2.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h3:{fontSize:"1.75rem",fontWeight:500},h4:{fontSize:"1.5rem",fontWeight:500},h5:{fontSize:"1.25rem",fontWeight:500},h6:{fontSize:"1rem",fontWeight:500}},shape:{borderRadius:8},components:{MuiCard:{styleOverrides:{root:{transition:"transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out","&:hover":{transform:"translateY(-2px)",boxShadow:"0 4px 20px rgba(0,0,0,0.12)"}}}},MuiButton:{styleOverrides:{root:{textTransform:"none",fontWeight:500}}},MuiChip:{styleOverrides:{root:{fontWeight:500}}},MuiAppBar:{styleOverrides:{root:{backgroundImage:"none"}}}}});let s4=document.getElementsByTagName("base")[0]?.href?.replace(/\/$/,"");s4?.startsWith("http")&&(s4=new URL(s4).pathname);const Z1t=Pme([{path:"/",element:h.jsx(Y1t,{}),children:o1t}],{basename:s4});Xfe.createRoot(document.getElementById("root")).render(h.jsx(A.StrictMode,{children:h.jsx(mhe,{store:d1t,children:h.jsxs(H5e,{theme:J1t,children:[h.jsx($5e,{}),h.jsx(JZ,{styles:{".rjsf-field-array > .MuiFormControl-root > .MuiPaper-root > .MuiBox-root > .MuiGrid-root > .MuiGrid-root:has(> .MuiBox-root > .MuiPaper-root > .MuiBox-root > .rjsf-field)":{overflow:"initial !important",flexGrow:1}}}),h.jsx(dwe,{children:h.jsx(n4e,{children:h.jsx(Gme,{router:Z1t})})})]})})}));
|