@riddix/hamh 2.0.28 → 2.0.30

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.
@@ -144,7 +144,7 @@ export default theme;`}function MN(e){return typeof e=="number"?`${(e*100).toFix
144
144
  animation: ${xk} 1.4s linear infinite;
145
145
  `:null,N1e=typeof Sk!="string"?Nm`
146
146
  animation: ${Sk} 1.4s ease-in-out infinite;
147
- `:null,F1e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${ye(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ye(n)}`,i&&"circleDisableShrink"]};return et(o,$1e,t)},B1e=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:L1e||{animation:`${xk} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),z1e=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),H1e=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ye(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ge(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:N1e||{animation:`${Sk} 1.4s ease-in-out infinite`}}]}))),U1e=me("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),zr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate",...g}=r,y={...r,color:o,disableShrink:s,size:l,thickness:u,value:f,variant:h,enableTrackSlot:a},b=F1e(y),v={},S={},C={};if(h==="determinate"){const w=2*Math.PI*((ja-u)/2);v.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,S.transform="rotate(-90deg)"}return m.jsx(B1e,{className:Te(b.root,i),style:{width:l,height:l,...S,...c},ownerState:y,ref:n,role:"progressbar",...C,...g,children:m.jsxs(z1e,{className:b.svg,ownerState:y,viewBox:`${ja/2} ${ja/2} ${ja} ${ja}`,children:[a?m.jsx(U1e,{className:b.track,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,m.jsx(H1e,{className:b.circle,style:v,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u})]})})});function V1e(e){return Qe("MuiIconButton",e)}const LN=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),W1e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o,loading:s}=e,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${ye(r)}`,i&&`edge${ye(i)}`,`size${ye(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return et(a,V1e,t)},q1e=me(ba,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ye(n.color)}`],n.edge&&t[`edge${ye(n.edge)}`],t[`size${ye(n.size)}`]]}})(Ge(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ge(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${LN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${LN.loading}`]:{color:"transparent"}}))),G1e=me("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_n=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:g,...y}=r,b=Ou(f),v=g??m.jsx(zr,{"aria-labelledby":b,color:"inherit",size:16}),S={...r,edge:i,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=W1e(S);return m.jsxs(q1e,{id:h?b:f,className:Te(C.root,s),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...y,ownerState:S,children:[typeof h=="boolean"&&m.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:m.jsx(G1e,{className:C.loadingIndicator,ownerState:S,children:h&&v})}),o]})}),K1e=_e(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),Y1e=_e(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),X1e=_e(m.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Z1e=_e(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),yX=_e(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),J1e=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${ye(n||r)}`,`${t}${ye(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return et(o,l1e,i)},Q1e=me(Ur,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color||n.severity)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),eye=me("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),tye=me("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),nye=me("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),NN={success:m.jsx(K1e,{fontSize:"inherit"}),warning:m.jsx(Y1e,{fontSize:"inherit"}),error:m.jsx(X1e,{fontSize:"inherit"}),info:m.jsx(Z1e,{fontSize:"inherit"})},vn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlert"}),{action:i,children:o,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=NN,onClose:g,role:y="alert",severity:b="success",slotProps:v={},slots:S={},variant:C="standard",...w}=r,A={...r,color:l,severity:b,variant:C,colorSeverity:l||b},E=J1e(A),D={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...S},slotProps:{...u,...v}},[O,T]=lt("root",{ref:n,shouldForwardComponentProp:!0,className:Te(E.root,s),elementType:Q1e,externalForwardedProps:{...D,...w},ownerState:A,additionalProps:{role:y,elevation:0}}),[I,N]=lt("icon",{className:E.icon,elementType:eye,externalForwardedProps:D,ownerState:A}),[$,R]=lt("message",{className:E.message,elementType:tye,externalForwardedProps:D,ownerState:A}),[F,j]=lt("action",{className:E.action,elementType:nye,externalForwardedProps:D,ownerState:A}),[z,L]=lt("closeButton",{elementType:_n,externalForwardedProps:D,ownerState:A}),[q,V]=lt("closeIcon",{elementType:yX,externalForwardedProps:D,ownerState:A});return m.jsxs(O,{...T,children:[f!==!1?m.jsx(I,{...N,children:f||h[b]||NN[b]}):null,m.jsx($,{...R,children:o}),i!=null?m.jsx(F,{...j,children:i}):null,i==null&&g?m.jsx(F,{...j,children:m.jsx(z,{size:"small","aria-label":a,title:a,color:"inherit",onClick:g,...L,children:m.jsx(q,{fontSize:"small",...V})})}):null]})});function rye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=Od();_.useEffect(()=>{if(!i)return;function S(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[i,r]);const a=Ni((S,C)=>{r?.(S,C)}),l=Ni(S=>{!r||S==null||s.start(S,()=>{a(null,"timeout")})});_.useEffect(()=>(i&&l(t),s.clear),[i,t,l,s]);const c=S=>{r?.(S,"clickaway")},u=s.clear,f=_.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),h=S=>C=>{const w=S.onBlur;w?.(C),f()},g=S=>C=>{const w=S.onFocus;w?.(C),u()},y=S=>C=>{const w=S.onMouseEnter;w?.(C),u()},b=S=>C=>{const w=S.onMouseLeave;w?.(C),f()};return _.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,i,f,u]),{getRootProps:(S={})=>{const C={...Yi(e),...Yi(S)};return{role:"presentation",...S,...C,onBlur:h(C),onFocus:g(C),onMouseEnter:y(C),onMouseLeave:b(C)}},onClickAway:c}}function gf(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function FN(e){return e.substring(2).toLowerCase()}function iye(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function oye(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,s=_.useRef(!1),a=_.useRef(null),l=_.useRef(!1),c=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Tr(gf(t),a),f=Ni(y=>{const b=c.current;c.current=!1;const v=Di(a.current);if(!l.current||!a.current||"clientX"in y&&iye(y,v))return;if(s.current){s.current=!1;return}let S;y.composedPath?S=y.composedPath().includes(a.current):S=!v.documentElement.contains(y.target)||a.current.contains(y.target),!S&&(n||!b)&&i(y)}),h=y=>b=>{c.current=!0;const v=t.props[y];v&&v(b)},g={ref:u};return o!==!1&&(g[o]=h(o)),_.useEffect(()=>{if(o!==!1){const y=FN(o),b=Di(a.current),v=()=>{s.current=!0};return b.addEventListener(y,f),b.addEventListener("touchmove",v),()=>{b.removeEventListener(y,f),b.removeEventListener("touchmove",v)}}},[f,o]),r!==!1&&(g[r]=h(r)),_.useEffect(()=>{if(r!==!1){const y=FN(r),b=Di(a.current);return b.addEventListener(y,f),()=>{b.removeEventListener(y,f)}}},[f,r]),_.cloneElement(t,g)}const IO=e=>e.scrollTop;function Kd(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function wk(e){return`scale(${e}, ${e**2})`}const sye={entering:{opacity:1,transform:wk(1)},entered:{opacity:1,transform:"none"}},C7=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wy=_.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:g,style:y,timeout:b="auto",TransitionComponent:v=Ta,...S}=t,C=Od(),w=_.useRef(),A=ro(),E=_.useRef(null),D=Tr(E,gf(o),n),O=z=>L=>{if(z){const q=E.current;L===void 0?z(q):z(q,L)}},T=O(u),I=O((z,L)=>{IO(z);const{duration:q,delay:V,easing:U}=Kd({style:y,timeout:b,easing:s},{mode:"enter"});let K;b==="auto"?(K=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=K):K=q,z.style.transition=[A.transitions.create("opacity",{duration:K,delay:V}),A.transitions.create("transform",{duration:C7?K:K*.666,delay:V,easing:U})].join(","),l&&l(z,L)}),N=O(c),$=O(g),R=O(z=>{const{duration:L,delay:q,easing:V}=Kd({style:y,timeout:b,easing:s},{mode:"exit"});let U;b==="auto"?(U=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=U):U=L,z.style.transition=[A.transitions.create("opacity",{duration:U,delay:q}),A.transitions.create("transform",{duration:C7?U:U*.666,delay:C7?q:q||U*.333,easing:V})].join(","),z.style.opacity=0,z.style.transform=wk(.75),f&&f(z)}),F=O(h),j=z=>{b==="auto"&&C.start(w.current||0,z),r&&r(E.current,z)};return m.jsx(v,{appear:i,in:a,nodeRef:E,onEnter:I,onEntered:N,onEntering:T,onExit:R,onExited:F,onExiting:$,addEndListener:j,timeout:b==="auto"?null:b,...S,children:(z,{ownerState:L,...q})=>_.cloneElement(o,{style:{opacity:0,transform:wk(.75),visibility:z==="exited"&&!a?"hidden":void 0,...sye[z],...y,...o.props.style},ref:D,...q})})});Wy&&(Wy.muiSupportAuto=!0);function aye(e){return Qe("MuiSnackbarContent",e)}tt("MuiSnackbarContent",["root","message","action"]);const lye=e=>{const{classes:t}=e;return et({root:["root"],action:["action"],message:["message"]},aye,t)},cye=me(Ur,{name:"MuiSnackbarContent",slot:"Root"})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Uy(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Uy(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),uye=me("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),dye=me("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),fye=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert",...l}=r,c=r,u=lye(c);return m.jsxs(cye,{role:a,elevation:6,className:Te(u.root,o),ownerState:c,ref:n,...l,children:[m.jsx(uye,{className:u.message,ownerState:c,children:s}),i?m.jsx(dye,{className:u.action,ownerState:c,children:i}):null]})});function hye(e){return Qe("MuiSnackbar",e)}tt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pye=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ye(n.vertical)}${ye(n.horizontal)}`]};return et(r,hye,t)},mye=me("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ye(n.anchorOrigin.vertical)}${ye(n.anchorOrigin.horizontal)}`]]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),PO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbar"}),i=ro(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:v,onClose:S,onFocus:C,onMouseEnter:w,onMouseLeave:A,open:E,resumeHideDuration:D,slots:O={},slotProps:T={},TransitionComponent:I,transitionDuration:N=o,TransitionProps:{onEnter:$,onExited:R,...F}={},...j}=r,z={...r,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:I,transitionDuration:N},L=pye(z),{getRootProps:q,onClickAway:V}=rye(z),[U,K]=_.useState(!0),B=re=>{K(!0),R&&R(re)},W=(re,oe)=>{K(!1),$&&$(re,oe)},X={slots:{transition:I,...O},slotProps:{content:g,clickAwayListener:h,transition:F,...T}},[H,Y]=lt("root",{ref:n,className:[L.root,f],elementType:mye,getSlotProps:q,externalForwardedProps:{...X,...j},ownerState:z}),[J,{ownerState:ne,...ee}]=lt("clickAwayListener",{elementType:oye,externalForwardedProps:X,getSlotProps:re=>({onClickAway:(...oe)=>{const fe=oe[0];re.onClickAway?.(...oe),!fe?.defaultMuiPrevented&&V(...oe)}}),ownerState:z}),[se,ue]=lt("content",{elementType:fye,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:b,action:s},ownerState:z}),[te,Z]=lt("transition",{elementType:Wy,externalForwardedProps:X,getSlotProps:re=>({onEnter:(...oe)=>{re.onEnter?.(...oe),W(...oe)},onExited:(...oe)=>{re.onExited?.(...oe),B(...oe)}}),additionalProps:{appear:!0,in:E,timeout:N,direction:a==="top"?"down":"up"},ownerState:z});return!E&&U?null:m.jsx(J,{...ee,...O.clickAwayListener&&{ownerState:ne},children:m.jsx(H,{...Y,children:m.jsx(te,{...Z,children:u||m.jsx(se,{...ue})})})})}),bX=_.createContext({show:()=>{}});let gye=0;const yye=e=>{const[t,n]=_.useState([]),r=_.useCallback(o=>{n(s=>[...s,{...o,autoHideDuration:o.autoHideDuration??6e3,notificationId:gye++}])},[]),i=o=>{n(s=>s.filter(a=>a.notificationId!==o))};return m.jsxs(bX.Provider,{value:{show:r},children:[e.children,t.map(o=>m.jsx(PO,{open:!0,autoHideDuration:o.autoHideDuration,onClose:()=>i(o.notificationId),children:m.jsx(vn,{severity:o.severity,variant:"filled",sx:{minWidth:"300px"},children:o.message})},o.notificationId))]})};function fo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bye=typeof Symbol=="function"&&Symbol.observable||"@@observable",BN=bye,E7=()=>Math.random().toString(36).substring(7).split("").join("."),vye={INIT:`@@redux/INIT${E7()}`,REPLACE:`@@redux/REPLACE${E7()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${E7()}`},$4=vye;function jO(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vX(e,t,n){if(typeof e!="function")throw new Error(fo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(fo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(fo(1));return n(vX)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((v,S)=>{s.set(S,v)}))}function u(){if(l)throw new Error(fo(3));return i}function f(v){if(typeof v!="function")throw new Error(fo(4));if(l)throw new Error(fo(5));let S=!0;c();const C=a++;return s.set(C,v),function(){if(S){if(l)throw new Error(fo(6));S=!1,c(),s.delete(C),o=null}}}function h(v){if(!jO(v))throw new Error(fo(7));if(typeof v.type>"u")throw new Error(fo(8));if(typeof v.type!="string")throw new Error(fo(17));if(l)throw new Error(fo(9));try{l=!0,i=r(i,v)}finally{l=!1}return(o=s).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(fo(10));r=v,h({type:$4.REPLACE})}function y(){const v=f;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(fo(11));function C(){const A=S;A.next&&A.next(u())}return C(),{unsubscribe:v(C)}},[BN](){return this}}}return h({type:$4.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:g,[BN]:y}}function xye(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$4.INIT})>"u")throw new Error(fo(12));if(typeof n(void 0,{type:$4.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fo(13))})}function Sye(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{xye(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let u=0;u<r.length;u++){const f=r[u],h=n[f],g=s[f],y=h(g,a);if(typeof y>"u")throw a&&a.type,new Error(fo(14));c[f]=y,l=l||y!==g}return l=l||r.length!==Object.keys(s).length,l?c:s}}function L4(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function wye(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(fo(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=L4(...a)(i.dispatch),{...i,dispatch:o}}}function Cye(e){return jO(e)&&"type"in e&&typeof e.type=="string"}var xX=Symbol.for("immer-nothing"),zN=Symbol.for("immer-draftable"),Uo=Symbol.for("immer-state");function Ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Is=Object,om=Is.getPrototypeOf,N4="constructor",XS="prototype",Ck="configurable",F4="enumerable",$5="writable",qy="value",yu=e=>!!e&&!!e[Uo];function nl(e){return e?SX(e)||JS(e)||!!e[zN]||!!e[N4]?.[zN]||QS(e)||ew(e):!1}var Eye=Is[XS][N4].toString(),HN=new WeakMap;function SX(e){if(!e||!$O(e))return!1;const t=om(e);if(t===null||t===Is[XS])return!0;const n=Is.hasOwnProperty.call(t,N4)&&t[N4];if(n===Object)return!0;if(!u0(n))return!1;let r=HN.get(n);return r===void 0&&(r=Function.toString.call(n),HN.set(n,r)),r===Eye}function ZS(e,t,n=!0){gb(e)===0?(n?Reflect.ownKeys(e):Is.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function gb(e){const t=e[Uo];return t?t.type_:JS(e)?1:QS(e)?2:ew(e)?3:0}var UN=(e,t,n=gb(e))=>n===2?e.has(t):Is[XS].hasOwnProperty.call(e,t),Ek=(e,t,n=gb(e))=>n===2?e.get(t):e[t],B4=(e,t,n,r=gb(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Aye(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var JS=Array.isArray,QS=e=>e instanceof Map,ew=e=>e instanceof Set,$O=e=>typeof e=="object",u0=e=>typeof e=="function",A7=e=>typeof e=="boolean";function kye(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var eu=e=>e.copy_||e.base_,LO=e=>e.modified_?e.copy_:e.base_;function Ak(e,t){if(QS(e))return new Map(e);if(ew(e))return new Set(e);if(JS(e))return Array[XS].slice.call(e);const n=SX(e);if(t===!0||t==="class_only"&&!n){const r=Is.getOwnPropertyDescriptors(e);delete r[Uo];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a[$5]===!1&&(a[$5]=!0,a[Ck]=!0),(a.get||a.set)&&(r[s]={[Ck]:!0,[$5]:!0,[F4]:a[F4],[qy]:e[s]})}return Is.create(om(e),r)}else{const r=om(e);if(r!==null&&n)return{...e};const i=Is.create(r);return Is.assign(i,e)}}function NO(e,t=!1){return tw(e)||yu(e)||!nl(e)||(gb(e)>1&&Is.defineProperties(e,{set:kx,add:kx,clear:kx,delete:kx}),Is.freeze(e),t&&ZS(e,(n,r)=>{NO(r,!0)},!1)),e}function _ye(){Ba(2)}var kx={[qy]:_ye};function tw(e){return e===null||!$O(e)?!0:Is.isFrozen(e)}var z4="MapSet",kk="Patches",VN="ArrayMethods",wX={};function Rh(e){const t=wX[e];return t||Ba(0,e),t}var WN=e=>!!wX[e],Gy,CX=()=>Gy,Dye=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:WN(z4)?Rh(z4):void 0,arrayMethodsPlugin_:WN(VN)?Rh(VN):void 0});function qN(e,t){t&&(e.patchPlugin_=Rh(kk),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _k(e){Dk(e),e.drafts_.forEach(Oye),e.drafts_=null}function Dk(e){e===Gy&&(Gy=e.parent_)}var GN=e=>Gy=Dye(Gy,e);function Oye(e){const t=e[Uo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function KN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Uo].modified_&&(_k(t),Ba(4)),nl(e)&&(e=YN(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Uo].base_,e,t)}else e=YN(t,n);return Tye(t,e,!0),_k(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xX?e:void 0}function YN(e,t){if(tw(t))return t;const n=t[Uo];if(!n)return H4(t,e.handledSet_,e);if(!nw(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);kX(n,e)}return n.copy_}function Tye(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&NO(t,n)}function EX(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var nw=(e,t)=>e.scope_===t,Mye=[];function AX(e,t,n,r){const i=eu(e),o=e.type_;if(r!==void 0&&Ek(i,r,o)===t){B4(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;ZS(i,(l,c)=>{if(yu(c)){const u=a.get(c)||[];u.push(l),a.set(c,u)}})}const s=e.draftLocations_.get(t)??Mye;for(const a of s)B4(i,a,n,o)}function Rye(e,t,n){e.callbacks_.push(function(i){const o=t;if(!o||!nw(o,i))return;i.mapSetPlugin_?.fixSetContents(o);const s=LO(o);AX(e,o.draft_??o,s,n),kX(o,i)})}function kX(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}EX(e)}}function Iye(e,t,n){const{scope_:r}=e;if(yu(n)){const i=n[Uo];nw(i,r)&&i.callbacks_.push(function(){L5(e);const s=LO(i);AX(e,n,s,t)})}else nl(n)&&e.callbacks_.push(function(){const o=eu(e);e.type_===3?o.has(n)&&H4(n,r.handledSet_,r):Ek(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&H4(Ek(e.copy_,t,e.type_),r.handledSet_,r)})}function H4(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||yu(e)||t.has(e)||!nl(e)||tw(e)||(t.add(e),ZS(e,(r,i)=>{if(yu(i)){const o=i[Uo];if(nw(o,n)){const s=LO(o);B4(e,r,s,e.type_),EX(o)}}else nl(i)&&H4(i,t,n)})),e}function Pye(e,t){const n=JS(e),r={type_:n?1:0,scope_:t?t.scope_:CX(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=U4;n&&(i=[r],o=Ky);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,[a,r]}var U4={get(e,t){if(t===Uo)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=eu(e);if(!UN(i,t,e.type_))return jye(e,i,t);const o=i[t];if(e.finalized_||!nl(o)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&kye(t))return o;if(o===k7(e.base_,t)){L5(e);const s=e.type_===1?+t:t,a=Tk(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,n){const r=_X(eu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=k7(eu(e),t),o=i?.[Uo];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Aye(n,i)&&(n!==void 0||UN(e.base_,t,e.type_)))return!0;L5(e),Ok(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Iye(e,t,n)),!0},deleteProperty(e,t){return L5(e),k7(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ok(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=eu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[$5]:!0,[Ck]:e.type_!==1||t!=="length",[F4]:r[F4],[qy]:n[t]}},defineProperty(){Ba(11)},getPrototypeOf(e){return om(e.base_)},setPrototypeOf(){Ba(12)}},Ky={};for(let e in U4){let t=U4[e];Ky[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Ky.deleteProperty=function(e,t){return Ky.set.call(this,e,t,void 0)};Ky.set=function(e,t,n){return U4.set.call(this,e[0],t,n,e[0])};function k7(e,t){const n=e[Uo];return(n?eu(n):e)[t]}function jye(e,t,n){const r=_X(t,n);return r?qy in r?r[qy]:r.get?.call(e.draft_):void 0}function _X(e,t){if(!(t in e))return;let n=om(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=om(n)}}function Ok(e){e.modified_||(e.modified_=!0,e.parent_&&Ok(e.parent_))}function L5(e){e.copy_||(e.assigned_=new Map,e.copy_=Ak(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var $ye=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(u0(t)&&!u0(n)){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,u=>n.call(this,u,...c))}}u0(n)||Ba(6),r!==void 0&&!u0(r)&&Ba(7);let i;if(nl(t)){const o=GN(this),s=Tk(o,t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?_k(o):Dk(o)}return qN(o,r),KN(i,o)}else if(!t||!$O(t)){if(i=n(t),i===void 0&&(i=t),i===xX&&(i=void 0),this.autoFreeze_&&NO(i,!0),r){const o=[],s=[];Rh(kk).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),r(o,s)}return i}else Ba(1,t)},this.produceWithPatches=(t,n)=>{if(u0(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},A7(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),A7(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),A7(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){nl(e)||Ba(8),yu(e)&&(e=Lye(e));const t=GN(this),n=Tk(t,e,void 0);return n[Uo].isManual_=!0,Dk(t),n}finishDraft(e,t){const n=e&&e[Uo];(!n||!n.isManual_)&&Ba(9);const{scope_:r}=n;return qN(r,t),KN(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Rh(kk).applyPatches_;return yu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Tk(e,t,n,r){const[i,o]=QS(t)?Rh(z4).proxyMap_(t,n):ew(t)?Rh(z4).proxySet_(t,n):Pye(t,n);return(n?.scope_??CX()).drafts_.push(i),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&r!==void 0?Rye(n,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Lye(e){return yu(e)||Ba(10,e),DX(e)}function DX(e){if(!nl(e)||tw(e))return e;const t=e[Uo];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ak(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ak(e,!0);return ZS(n,(i,o)=>{B4(n,i,DX(o))},r),t&&(t.finalized_=!1),n}var Nye=new $ye,OX=Nye.produce,V4=Symbol("NOT_FOUND");function Fye(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Bye(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function zye(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var XN=e=>Array.isArray(e)?e:[e];function Hye(e){const t=Array.isArray(e[0])?e[0]:e;return zye(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Uye(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function Vye(e){let t;return{get(n){return t&&e(t.key,n)?t.value:V4},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Wye(e,t){let n=[];function r(a){const l=n.findIndex(c=>t(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return V4}function i(a,l){r(a)===V4&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function o(){return n}function s(){n=[]}return{get:r,put:i,getEntries:o,clear:s}}var qye=(e,t)=>e===t;function Gye(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function Kye(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=qye,maxSize:i=1,resultEqualityCheck:o}=n,s=Gye(r);let a=0;const l=i<=1?Vye(s):Wye(i,s);function c(){let u=l.get(arguments);if(u===V4){if(u=e.apply(null,arguments),a++,o){const h=l.getEntries().find(g=>o(g.value,u));h&&(u=h.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Yye=class{constructor(e){this.value=e}deref(){return this.value}},Xye=typeof WeakRef<"u"?WeakRef:Yye,Zye=0,ZN=1;function _x(){return{s:Zye,v:void 0,o:null,p:null}}function TX(e,t={}){let n=_x();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let a=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f++){const g=arguments[f];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}else{let y=a.p;y===null&&(a.p=y=new Map);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}}const c=a;let u;if(a.s===ZN)u=a.v;else if(u=e.apply(null,arguments),o++,r){const f=i?.deref?.()??i;f!=null&&r(f,u)&&(u=f,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new Xye(u):u}return c.s=ZN,c.v=u,u}return s.clearCache=()=>{n=_x(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function MX(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),Fye(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:g=TX,argsMemoizeOptions:y=[]}=u,b=XN(h),v=XN(y),S=Hye(i),C=f(function(){return o++,c.apply(null,arguments)},...b),w=g(function(){s++;const E=Uye(S,arguments);return a=C.apply(null,E),a},...v);return Object.assign(w,{resultFunc:c,memoizedResultFunc:C,dependencies:S,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var RX=MX(TX),Jye=Object.assign((e,t=RX)=>{Bye(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>Jye});function IX(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Qye=IX(),e2e=IX,t2e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?L4:L4.apply(null,arguments)},n2e=e=>e&&typeof e.match=="function";function oy(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(W4(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cye(r)&&r.type===e,n}var PX=class B1 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,B1.prototype)}static get[Symbol.species](){return B1}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new B1(...t[0].concat(this)):new B1(...t.concat(this))}};function JN(e){return nl(e)?OX(e,()=>{}):e}function r2e(e){return typeof e=="boolean"}var i2e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new PX;return n&&(r2e(n)?s.push(Qye):s.push(e2e(n.extraArgument))),s},o2e="RTK_autoBatch",QN=e=>t=>{setTimeout(t,e)},s2e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:QN(10):e.type==="callback"?e.queueNotification:QN(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const f=()=>i&&u(),h=r.subscribe(f);return a.add(u),()=>{h(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[o2e],o=!i,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},a2e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new PX(e);return r&&i.push(s2e(typeof r=="object"?r:void 0)),i};function l2e(e){const t=i2e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(jO(n))a=Sye(n);else throw new Error(W4(1));let l;typeof r=="function"?l=r(t):l=t();let c=L4;i&&(c=t2e({trace:!1,...typeof i=="object"&&i}));const u=wye(...l),f=a2e(u);let h=typeof s=="function"?s(f):f();const g=c(...h);return vX(a,o,g)}function c2e(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(W4(28));if(a in t)throw new Error(W4(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function u2e(e){return typeof e=="function"}function FO(e,t){let[n,r,i]=c2e(t),o;if(u2e(e))o=()=>JN(e());else{const a=JN(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(yu(u)){const g=f(u,l);return g===void 0?u:g}else{if(nl(u))return OX(u,h=>f(h,l));{const h=f(u,l);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},a)}return s.getInitialState=o,s}var d2e=(e,t)=>n2e(e)?e.match(t):e(t);function f2e(...e){return t=>e.some(n=>d2e(n,t))}var h2e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",p2e=(e=21)=>{let t="",n=e;for(;n--;)t+=h2e[Math.random()*64|0];return t},m2e=["name","message","stack","code"],_7=class{constructor(e,t){this.payload=e,this.meta=t}_type},eF=class{constructor(e,t){this.payload=e,this.meta=t}_type},g2e=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of m2e)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},tF="External signal was aborted",y2e=(()=>{function e(t,n,r){const i=oy(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=oy(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=oy(t+"/rejected",(l,c,u,f,h)=>({payload:f,error:(r&&r.serializeError||g2e)(l||"Rejected"),meta:{...h||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,f,h)=>{const g=r?.idGenerator?r.idGenerator(l):p2e(),y=new AbortController;let b,v;function S(w){v=w,y.abort()}c&&(c.aborted?S(tF):c.addEventListener("abort",()=>S(tF),{once:!0}));const C=(async function(){let w;try{let E=r?.condition?.(l,{getState:f,extra:h});if(v2e(E)&&(E=await E),E===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const D=new Promise((O,T)=>{b=()=>{T({name:"AbortError",message:v||"Aborted"})},y.signal.addEventListener("abort",b,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:f,extra:h}))),w=await Promise.race([D,Promise.resolve(n(l,{dispatch:u,getState:f,extra:h,requestId:g,signal:y.signal,abort:S,rejectWithValue:(O,T)=>new _7(O,T),fulfillWithValue:(O,T)=>new eF(O,T)})).then(O=>{if(O instanceof _7)throw O;return O instanceof eF?i(O.payload,g,l,O.meta):i(O,g,l)})])}catch(E){w=E instanceof _7?s(null,g,l,E.payload,E.meta):s(E,g,l)}finally{b&&y.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&s.match(w)&&w.meta.condition||u(w),w})();return Object.assign(C,{abort:S,requestId:g,arg:l,unwrap(){return C.then(b2e)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:f2e(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function b2e(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function v2e(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}function W4(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}async function x2e(){return await(await fetch(`api/matter/bridges?_s=${Date.now()}`)).json()}async function jX(e){return fetch("api/matter/bridges",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json())}async function $X(e){return fetch(`api/matter/bridges/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>t.json())}async function S2e(e){await fetch(`api/matter/bridges/${e}`,{method:"DELETE"})}async function w2e(e){return await fetch(`api/matter/bridges/${e}/actions/factory-reset`,{method:"POST"}).then(t=>t.json())}async function LX(e){return await fetch(`api/matter/bridges/${e}/actions/force-sync`,{method:"POST"}).then(t=>t.json())}async function C2e(e){const t=await fetch(`api/matter/bridges/${e}/actions/open-commissioning-window`,{method:"POST"});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to open commissioning window"}));throw new Error(n.error??"Failed to open commissioning window")}return t.json()}async function E2e(e){if(!(await fetch("api/matter/bridges/priorities",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:e})})).ok)throw new Error("Failed to update priorities")}async function NX(){return(await fetch("api/matter/bridges/actions/start-all",{method:"POST"})).json()}async function FX(){return(await fetch("api/matter/bridges/actions/stop-all",{method:"POST"})).json()}async function BX(){return(await fetch("api/matter/bridges/actions/restart-all",{method:"POST"})).json()}const zm=y2e.withTypes(),rw=RX.withTypes(),Bo=zm("bridges/load",x2e),zX=zm("bridges/create",jX),HX=zm("bridges/delete",S2e),UX=zm("bridges/update",$X),VX=zm("bridges/reset",w2e),WX=oy("bridges/setFromWebSocket"),qX=oy("bridges/updateFromWebSocket"),Hs=kde.withTypes(),Hm=Ode.withTypes(),GX=_.createContext({isConnected:!1,error:null});function A2e(){return _.useContext(GX)}function k2e({children:e}){const t=Hs(),[n,r]=_.useState(!1),[i,o]=_.useState(null),s=_.useRef(null),a=_.useRef(void 0),l=_.useCallback(u=>{switch(u.type){case"bridges_update":t(WX(u.data));break;case"bridge_update":t(qX(u.data));break;case"ping":s.current?.send(JSON.stringify({type:"pong"}));break}},[t]),c=_.useCallback(()=>{if(s.current?.readyState===WebSocket.OPEN)return;const u=window.location.protocol==="https:"?"wss:":"ws:",f=document.querySelector("base")?.href||window.location.origin,h=new URL(f),g=`${u}//${h.host}${h.pathname}api/ws`.replace(/\/+/g,"/").replace(":/","://");try{const y=new WebSocket(g);s.current=y,y.onopen=()=>{r(!0),o(null)},y.onmessage=b=>{try{const v=JSON.parse(b.data);l(v)}catch{console.warn("Invalid WebSocket message")}},y.onclose=()=>{r(!1),s.current=null,a.current=setTimeout(c,3e3)},y.onerror=()=>{o(new Error("WebSocket connection error")),y.close()}}catch(y){o(y instanceof Error?y:new Error("Failed to connect"))}},[l]);return _.useEffect(()=>(c(),()=>{a.current&&clearTimeout(a.current),s.current?.close()}),[c]),m.jsx(GX.Provider,{value:{isConnected:n,error:i},children:e})}const _2e=()=>{const e=Hs();return _.useEffect(()=>{e(Bo())},[e]),m.jsx(yY,{})},yb=_e(m.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"})),iw=_e(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function D2e(e){return Qe("MuiTypography",e)}const nF=tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),O2e={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},T2e=qge(),M2e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${ye(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return et(a,D2e,s)},R2e=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ye(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ge(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ye(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),rF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ie=_.forwardRef(function(t,n){const{color:r,...i}=it({props:t,name:"MuiTypography"}),o=!O2e[r],s=T2e({...i,...o&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=rF,...b}=s,v={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:g,variantMapping:y},S=c||(h?"p":y[g]||rF[g])||"span",C=M2e(v);return m.jsx(R2e,{as:S,ref:n,className:Te(C.root,l),...b,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...b.style}})});function I2e(e){return Qe("MuiAlertTitle",e)}tt("MuiAlertTitle",["root"]);const P2e=e=>{const{classes:t}=e;return et({root:["root"]},I2e,t)},j2e=me(ie,{name:"MuiAlertTitle",slot:"Root"})(Ge(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),q4=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlertTitle"}),{className:i,...o}=r,s=r,a=P2e(s);return m.jsx(j2e,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:Te(a.root,i),...o})}),$2e=tt("MuiBox",["root"]),L2e=WS(),ce=tme({themeId:da,defaultTheme:L2e,defaultClassName:$2e.root,generateClassName:UY.generate});function N2e(e){return Qe("MuiButton",e)}const Vf=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),F2e=_.createContext({}),B2e=_.createContext(void 0),z2e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:s,loadingPosition:a,classes:l}=e,c={root:["root",s&&"loading",o,`${o}${ye(t)}`,`size${ye(i)}`,`${o}Size${ye(i)}`,`color${ye(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${ye(a)}`],startIcon:["icon","startIcon",`iconSize${ye(i)}`],endIcon:["icon","endIcon",`iconSize${ye(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=et(c,N2e,l);return{...l,...u}},KX=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],H2e=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color)}`],t[`size${ye(n.size)}`],t[`${n.variant}Size${ye(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Vf.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Vf.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Fn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vf.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Vf.loading}`]:{color:"transparent"}}}]}})),U2e=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...KX]})),V2e=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...KX]})),W2e=me("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),iF=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),kt=_.forwardRef(function(t,n){const r=_.useContext(F2e),i=_.useContext(B2e),o=im(r,t),s=it({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:v=!1,id:S,loading:C=null,loadingIndicator:w,loadingPosition:A="center",size:E="medium",startIcon:D,type:O,variant:T="text",...I}=s,N=Ou(S),$=w??m.jsx(zr,{"aria-labelledby":N,color:"inherit",size:16}),R={...s,color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:v,loading:C,loadingIndicator:$,loadingPosition:A,size:E,type:O,variant:T},F=z2e(R),j=(D||C&&A==="start")&&m.jsx(U2e,{className:F.startIcon,ownerState:R,children:D||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),z=(y||C&&A==="end")&&m.jsx(V2e,{className:F.endIcon,ownerState:R,children:y||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),L=i||"",q=typeof C=="boolean"?m.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:C&&m.jsx(W2e,{className:F.loadingIndicator,ownerState:R,children:$})}):null;return m.jsxs(H2e,{ownerState:R,className:Te(r.className,F.root,u,L),component:c,disabled:f||C,focusRipple:!g,focusVisibleClassName:Te(F.focusVisible,b),ref:n,type:O,id:C?N:S,...I,classes:F,children:[j,A!=="end"&&q,a,A==="end"&&q,z]})});function q2e(e){return Qe("MuiCollapse",e)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const G2e=e=>{const{orientation:t,classes:n}=e;return et({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},q2e,n)},K2e=me("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]}})(Ge(({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"}}]}))),Y2e=me("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),X2e=me("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fa=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:f,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:v,orientation:S="vertical",slots:C={},slotProps:w={},style:A,timeout:E=aX.standard,TransitionComponent:D=Ta,...O}=r,T={...r,orientation:S,collapsedSize:a},I=G2e(T),N=ro(),$=Od(),R=_.useRef(null),F=_.useRef(),j=typeof a=="number"?`${a}px`:a,z=S==="horizontal",L=z?"width":"height",q=_.useRef(null),V=Tr(n,q),U=fe=>be=>{if(fe){const De=q.current;be===void 0?fe(De):fe(De,be)}},K=()=>R.current?R.current[z?"clientWidth":"clientHeight"]:0,B=U((fe,be)=>{R.current&&z&&(R.current.style.position="absolute"),fe.style[L]=j,f&&f(fe,be)}),W=U((fe,be)=>{const De=K();R.current&&z&&(R.current.style.position="");const{duration:Oe,easing:Ke}=Kd({style:A,timeout:E,easing:c},{mode:"enter"});if(E==="auto"){const xe=N.transitions.getAutoHeightDuration(De);fe.style.transitionDuration=`${xe}ms`,F.current=xe}else fe.style.transitionDuration=typeof Oe=="string"?Oe:`${Oe}ms`;fe.style[L]=`${De}px`,fe.style.transitionTimingFunction=Ke,g&&g(fe,be)}),X=U((fe,be)=>{fe.style[L]="auto",h&&h(fe,be)}),H=U(fe=>{fe.style[L]=`${K()}px`,y&&y(fe)}),Y=U(b),J=U(fe=>{const be=K(),{duration:De,easing:Oe}=Kd({style:A,timeout:E,easing:c},{mode:"exit"});if(E==="auto"){const Ke=N.transitions.getAutoHeightDuration(be);fe.style.transitionDuration=`${Ke}ms`,F.current=Ke}else fe.style.transitionDuration=typeof De=="string"?De:`${De}ms`;fe.style[L]=j,fe.style.transitionTimingFunction=Oe,v&&v(fe)}),ne=fe=>{E==="auto"&&$.start(F.current||0,fe),i&&i(q.current,fe)},ee={slots:C,slotProps:w,component:l},[se,ue]=lt("root",{ref:V,className:Te(I.root,s),elementType:K2e,externalForwardedProps:ee,ownerState:T,additionalProps:{style:{[z?"minWidth":"minHeight"]:j,...A}}}),[te,Z]=lt("wrapper",{ref:R,className:I.wrapper,elementType:Y2e,externalForwardedProps:ee,ownerState:T}),[re,oe]=lt("wrapperInner",{className:I.wrapperInner,elementType:X2e,externalForwardedProps:ee,ownerState:T});return m.jsx(D,{in:u,onEnter:B,onEntered:X,onEntering:W,onExit:H,onExited:Y,onExiting:J,addEndListener:ne,nodeRef:q,timeout:E==="auto"?null:E,...O,children:(fe,{ownerState:be,...De})=>{const Oe={...T,state:fe};return m.jsx(se,{...ue,className:Te(ue.className,{entered:I.entered,exited:!u&&j==="0px"&&I.hidden}[fe]),ownerState:Oe,...De,children:m.jsx(te,{...Z,ownerState:Oe,children:m.jsx(re,{...oe,ownerState:Oe,children:o})})})}})});fa&&(fa.muiSupportAuto=!0);const Xa=_.createContext({});function Z2e(e){return Qe("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const J2e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return et({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Z2e,t)},Q2e=me("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}}]}),bc=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,f=_.useMemo(()=>({dense:a}),[a]),h={...r,component:s,dense:a,disablePadding:l},g=J2e(h);return m.jsx(Xa.Provider,{value:f,children:m.jsxs(Q2e,{as:s,className:Te(g.root,o),ref:n,ownerState:h,...u,children:[c,i]})})});function ebe(e){return Qe("MuiListItem",e)}tt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tbe(e){return Qe("MuiListItemButton",e)}const d0=tt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nbe=(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]},rbe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,c=et({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},tbe,n);return{...n,...c}},ibe=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nbe})(Ge(({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"}},[`&.${d0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${d0.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${d0.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)}},[`&.${d0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${d0.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}}]}))),obe=_.forwardRef(function(t,n){const r=it({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:f,selected:h=!1,className:g,...y}=r,b=_.useContext(Xa),v=_.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),S=_.useRef(null);Ho(()=>{o&&S.current&&S.current.focus()},[o]);const C={...r,alignItems:i,dense:v.dense,disableGutters:c,divider:u,selected:h},w=rbe(C),A=Tr(S,n);return m.jsx(Xa.Provider,{value:v,children:m.jsx(ibe,{ref:A,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:Te(w.focusVisible,f),ownerState:C,className:Te(w.root,g),...y,classes:w,children:a})})});function sbe(e){return Qe("MuiListItemSecondaryAction",e)}tt("MuiListItemSecondaryAction",["root","disableGutters"]);const abe=e=>{const{disableGutters:t,classes:n}=e;return et({root:["root",t&&"disableGutters"]},sbe,n)},lbe=me("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}}]}),BO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,disableGutters:s.disableGutters},l=abe(a);return m.jsx(lbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});BO.muiName="ListItemSecondaryAction";const cbe=(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]},ube=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return et({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},ebe,n)},dbe=me("div",{name:"MuiListItem",slot:"Root",overridesResolver:cbe})(Ge(({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:{[`& > .${d0.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}}]}))),fbe=me("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),yf=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...h}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:v=!1,secondaryAction:S,slotProps:C={},slots:w={},...A}=r,E=_.useContext(Xa),D=_.useMemo(()=>({dense:g||E.dense||!1,alignItems:i,disableGutters:y}),[i,E.dense,g,y]),O=_.useRef(null),T=_.Children.toArray(o),I=T.length&&iy(T[T.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:i,dense:D.dense,disableGutters:y,disablePadding:b,divider:v,hasSecondaryAction:I},$=ube(N),R=Tr(O,n),F={slots:w,slotProps:C},[j,z]=lt("secondaryAction",{elementType:BO,externalForwardedProps:F,ownerState:N,className:$.secondaryAction}),L=w.root||l.Root||dbe,q=C.root||c.root||{},V={className:Te($.root,q.className,s),...A};let U=a||"li";return I?(U=!V.component&&!a?"div":U,u==="li"&&(U==="li"?U="div":V.component==="li"&&(V.component="div")),m.jsx(Xa.Provider,{value:D,children:m.jsxs(fbe,{as:u,className:Te($.container,f),ref:R,ownerState:N,...h,children:[m.jsx(L,{...q,...!ic(L)&&{as:U,ownerState:{...N,...q.ownerState}},...V,children:T}),T.pop()]})})):m.jsx(Xa.Provider,{value:D,children:m.jsxs(L,{...q,as:U,ref:R,...!ic(L)&&{ownerState:{...N,...q.ownerState}},...V,children:[T,S&&m.jsx(j,{...z,children:S})]})})});function hbe(e){return Qe("MuiListItemIcon",e)}const oF=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),pbe=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hbe,n)},mbe=me("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ge(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ul=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,alignItems:s.alignItems},l=pbe(a);return m.jsx(mbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});function gbe(e){return Qe("MuiListItemText",e)}const y0=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ybe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return et({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gbe,t)},bbe=me("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${y0.primary}`]:t.primary},{[`& .${y0.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,[`.${nF.root}:where(& .${y0.primary})`]:{display:"block"},[`.${nF.root}:where(& .${y0.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Va=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,slots:h={},slotProps:g={},...y}=r,{dense:b}=_.useContext(Xa);let v=l??i,S=u;const C={...r,disableTypography:s,inset:a,primary:!!v,secondary:!!S,dense:b},w=ybe(C),A={slots:h,slotProps:{primary:c,secondary:f,...g}},[E,D]=lt("root",{className:Te(w.root,o),elementType:bbe,externalForwardedProps:{...A,...y},ownerState:C,ref:n}),[O,T]=lt("primary",{className:w.primary,elementType:ie,externalForwardedProps:A,ownerState:C}),[I,N]=lt("secondary",{className:w.secondary,elementType:ie,externalForwardedProps:A,ownerState:C});return v!=null&&v.type!==ie&&!s&&(v=m.jsx(O,{variant:b?"body2":"body1",component:T?.variant?void 0:"span",...T,children:v})),S!=null&&S.type!==ie&&!s&&(S=m.jsx(I,{variant:"body2",color:"textSecondary",...N,children:S})),m.jsxs(E,{...D,children:[v,S]})}),zt=pge({createStyledComponent:me("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>it({props:e,name:"MuiStack"})});var os="top",va="bottom",xa="right",ss="left",zO="auto",bb=[os,va,xa,ss],sm="start",Yy="end",vbe="clippingParents",YX="viewport",u1="popper",xbe="reference",sF=bb.reduce(function(e,t){return e.concat([t+"-"+sm,t+"-"+Yy])},[]),XX=[].concat(bb,[zO]).reduce(function(e,t){return e.concat([t,t+"-"+sm,t+"-"+Yy])},[]),Sbe="beforeRead",wbe="read",Cbe="afterRead",Ebe="beforeMain",Abe="main",kbe="afterMain",_be="beforeWrite",Dbe="write",Obe="afterWrite",Tbe=[Sbe,wbe,Cbe,Ebe,Abe,kbe,_be,Dbe,Obe];function dc(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ih(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function ha(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HO(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mbe(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];!ha(o)||!dc(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 Rbe(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},{});!ha(i)||!dc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Ibe={name:"applyStyles",enabled:!0,phase:"write",fn:Mbe,effect:Rbe,requires:["computeStyles"]};function oc(e){return e.split("-")[0]}var Eh=Math.max,G4=Math.min,am=Math.round;function Mk(){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(Mk())}function lm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ha(e)&&(i=e.offsetWidth>0&&am(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&am(r.height)/e.offsetHeight||1);var s=Ih(e)?Ns(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,f=r.width/i,h=r.height/o;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function UO(e){var t=lm(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 JX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HO(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 Ns(e).getComputedStyle(e)}function Pbe(e){return["table","td","th"].indexOf(dc(e))>=0}function bf(e){return((Ih(e)?e.ownerDocument:e.document)||window.document).documentElement}function ow(e){return dc(e)==="html"?e:e.assignedSlot||e.parentNode||(HO(e)?e.host:null)||bf(e)}function aF(e){return!ha(e)||bu(e).position==="fixed"?null:e.offsetParent}function jbe(e){var t=/firefox/i.test(Mk()),n=/Trident/i.test(Mk());if(n&&ha(e)){var r=bu(e);if(r.position==="fixed")return null}var i=ow(e);for(HO(i)&&(i=i.host);ha(i)&&["html","body"].indexOf(dc(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 vb(e){for(var t=Ns(e),n=aF(e);n&&Pbe(n)&&bu(n).position==="static";)n=aF(n);return n&&(dc(n)==="html"||dc(n)==="body"&&bu(n).position==="static")?t:n||jbe(e)||t}function VO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sy(e,t,n){return Eh(e,G4(t,n))}function $be(e,t,n){var r=sy(e,t,n);return r>n?n:r}function QX(){return{top:0,right:0,bottom:0,left:0}}function eZ(e){return Object.assign({},QX(),e)}function tZ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lbe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eZ(typeof t!="number"?t:tZ(t,bb))};function Nbe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=oc(n.placement),l=VO(a),c=[ss,xa].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var f=Lbe(i.padding,n),h=UO(o),g=l==="y"?os:ss,y=l==="y"?va:xa,b=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],v=s[l]-n.rects.reference[l],S=vb(o),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-v/2,A=f[g],E=C-h[u]-f[y],D=C/2-h[u]/2+w,O=sy(A,D,E),T=l;n.modifiersData[r]=(t={},t[T]=O,t.centerOffset=O-D,t)}}function Fbe(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)||JX(t.elements.popper,i)&&(t.elements.arrow=i))}const Bbe={name:"arrow",enabled:!0,phase:"main",fn:Nbe,effect:Fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cm(e){return e.split("-")[1]}var zbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hbe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:am(n*i)/i||0,y:am(r*i)/i||0}}function lF(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,f=e.isFixed,h=s.x,g=h===void 0?0:h,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=ss,A=os,E=window;if(c){var D=vb(n),O="clientHeight",T="clientWidth";if(D===Ns(n)&&(D=bf(n),bu(D).position!=="static"&&a==="absolute"&&(O="scrollHeight",T="scrollWidth")),D=D,i===os||(i===ss||i===xa)&&o===Yy){A=va;var I=f&&D===E&&E.visualViewport?E.visualViewport.height:D[O];b-=I-r.height,b*=l?1:-1}if(i===ss||(i===os||i===va)&&o===Yy){w=xa;var N=f&&D===E&&E.visualViewport?E.visualViewport.width:D[T];g-=N-r.width,g*=l?1:-1}}var $=Object.assign({position:a},c&&zbe),R=u===!0?Hbe({x:g,y:b},Ns(n)):{x:g,y:b};if(g=R.x,b=R.y,l){var F;return Object.assign({},$,(F={},F[A]=C?"0":"",F[w]=S?"0":"",F.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",F))}return Object.assign({},$,(t={},t[A]=C?b+"px":"",t[w]=S?g+"px":"",t.transform="",t))}function Ube(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:oc(t.placement),variation:cm(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,lF(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,lF(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 Vbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ube,data:{}};var Dx={passive:!0};function Wbe(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=Ns(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Dx)}),a&&l.addEventListener("resize",n.update,Dx),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Dx)}),a&&l.removeEventListener("resize",n.update,Dx)}}const qbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wbe,data:{}};var Gbe={left:"right",right:"left",bottom:"top",top:"bottom"};function N5(e){return e.replace(/left|right|bottom|top/g,function(t){return Gbe[t]})}var Kbe={start:"end",end:"start"};function cF(e){return e.replace(/start|end/g,function(t){return Kbe[t]})}function WO(e){var t=Ns(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qO(e){return lm(bf(e)).left+WO(e).scrollLeft}function Ybe(e,t){var n=Ns(e),r=bf(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+qO(e),y:l}}function Xbe(e){var t,n=bf(e),r=WO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Eh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Eh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+qO(e),l=-r.scrollTop;return bu(i||n).direction==="rtl"&&(a+=Eh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function GO(e){var t=bu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nZ(e){return["html","body","#document"].indexOf(dc(e))>=0?e.ownerDocument.body:ha(e)&&GO(e)?e:nZ(ow(e))}function ay(e,t){var n;t===void 0&&(t=[]);var r=nZ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ns(r),s=i?[o].concat(o.visualViewport||[],GO(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(ay(ow(s)))}function Rk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zbe(e,t){var n=lm(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 uF(e,t,n){return t===YX?Rk(Ybe(e,n)):Ih(t)?Zbe(t,n):Rk(Xbe(bf(e)))}function Jbe(e){var t=ay(ow(e)),n=["absolute","fixed"].indexOf(bu(e).position)>=0,r=n&&ha(e)?vb(e):e;return Ih(r)?t.filter(function(i){return Ih(i)&&JX(i,r)&&dc(i)!=="body"}):[]}function Qbe(e,t,n,r){var i=t==="clippingParents"?Jbe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=uF(e,c,r);return l.top=Eh(u.top,l.top),l.right=G4(u.right,l.right),l.bottom=G4(u.bottom,l.bottom),l.left=Eh(u.left,l.left),l},uF(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 rZ(e){var t=e.reference,n=e.element,r=e.placement,i=r?oc(r):null,o=r?cm(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case os:l={x:s,y:t.y-n.height};break;case va:l={x:s,y:t.y+t.height};break;case xa:l={x:t.x+t.width,y:a};break;case ss:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?VO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case sm:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Yy:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Xy(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?vbe:a,c=n.rootBoundary,u=c===void 0?YX:c,f=n.elementContext,h=f===void 0?u1:f,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,v=b===void 0?0:b,S=eZ(typeof v!="number"?v:tZ(v,bb)),C=h===u1?xbe:u1,w=e.rects.popper,A=e.elements[y?C:h],E=Qbe(Ih(A)?A:A.contextElement||bf(e.elements.popper),l,u,s),D=lm(e.elements.reference),O=rZ({reference:D,element:w,placement:i}),T=Rk(Object.assign({},w,O)),I=h===u1?T:D,N={top:E.top-I.top+S.top,bottom:I.bottom-E.bottom+S.bottom,left:E.left-I.left+S.left,right:I.right-E.right+S.right},$=e.modifiersData.offset;if(h===u1&&$){var R=$[i];Object.keys(N).forEach(function(F){var j=[xa,va].indexOf(F)>=0?1:-1,z=[os,va].indexOf(F)>=0?"y":"x";N[F]+=R[z]*j})}return N}function eve(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?XX:l,u=cm(r),f=u?a?sF:sF.filter(function(y){return cm(y)===u}):bb,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var g=h.reduce(function(y,b){return y[b]=Xy(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[oc(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function tve(e){if(oc(e)===zO)return[];var t=N5(e);return[cF(e),t,cF(t)]}function nve(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,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,v=t.options.placement,S=oc(v),C=S===v,w=l||(C||!y?[N5(v)]:tve(v)),A=[v].concat(w).reduce(function(H,Y){return H.concat(oc(Y)===zO?eve(t,{placement:Y,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:b}):Y)},[]),E=t.rects.reference,D=t.rects.popper,O=new Map,T=!0,I=A[0],N=0;N<A.length;N++){var $=A[N],R=oc($),F=cm($)===sm,j=[os,va].indexOf(R)>=0,z=j?"width":"height",L=Xy(t,{placement:$,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),q=j?F?xa:ss:F?va:os;E[z]>D[z]&&(q=N5(q));var V=N5(q),U=[];if(o&&U.push(L[R]<=0),a&&U.push(L[q]<=0,L[V]<=0),U.every(function(H){return H})){I=$,T=!1;break}O.set($,U)}if(T)for(var K=y?3:1,B=function(Y){var J=A.find(function(ne){var ee=O.get(ne);if(ee)return ee.slice(0,Y).every(function(se){return se})});if(J)return I=J,"break"},W=K;W>0;W--){var X=B(W);if(X==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const rve={name:"flip",enabled:!0,phase:"main",fn:nve,requiresIfExists:["offset"],data:{_skip:!1}};function dF(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 fF(e){return[os,xa,va,ss].some(function(t){return e[t]>=0})}function ive(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Xy(t,{elementContext:"reference"}),a=Xy(t,{altBoundary:!0}),l=dF(s,r),c=dF(a,i,o),u=fF(l),f=fF(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const ove={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ive};function sve(e,t,n){var r=oc(e),i=[ss,os].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,[ss,xa].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ave(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=XX.reduce(function(u,f){return u[f]=sve(f,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 lve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ave};function cve(e){var t=e.state,n=e.name;t.modifiersData[n]=rZ({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const uve={name:"popperOffsets",enabled:!0,phase:"read",fn:cve,data:{}};function dve(e){return e==="x"?"y":"x"}function fve(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,f=n.padding,h=n.tether,g=h===void 0?!0:h,y=n.tetherOffset,b=y===void 0?0:y,v=Xy(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),S=oc(t.placement),C=cm(t.placement),w=!C,A=VO(S),E=dve(A),D=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(D){if(o){var F,j=A==="y"?os:ss,z=A==="y"?va:xa,L=A==="y"?"height":"width",q=D[A],V=q+v[j],U=q-v[z],K=g?-T[L]/2:0,B=C===sm?O[L]:T[L],W=C===sm?-T[L]:-O[L],X=t.elements.arrow,H=g&&X?UO(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QX(),J=Y[j],ne=Y[z],ee=sy(0,O[L],H[L]),se=w?O[L]/2-K-ee-J-N.mainAxis:B-ee-J-N.mainAxis,ue=w?-O[L]/2+K+ee+ne+N.mainAxis:W+ee+ne+N.mainAxis,te=t.elements.arrow&&vb(t.elements.arrow),Z=te?A==="y"?te.clientTop||0:te.clientLeft||0:0,re=(F=$?.[A])!=null?F:0,oe=q+se-re-Z,fe=q+ue-re,be=sy(g?G4(V,oe):V,q,g?Eh(U,fe):U);D[A]=be,R[A]=be-q}if(a){var De,Oe=A==="x"?os:ss,Ke=A==="x"?va:xa,xe=D[E],Le=E==="y"?"height":"width",Me=xe+v[Oe],ht=xe-v[Ke],mt=[os,ss].indexOf(S)!==-1,ze=(De=$?.[E])!=null?De:0,Pe=mt?Me:xe-O[Le]-T[Le]-ze+N.altAxis,He=mt?xe+O[Le]+T[Le]-ze-N.altAxis:ht,Je=g&&mt?$be(Pe,xe,He):sy(g?Pe:Me,xe,g?He:ht);D[E]=Je,R[E]=Je-xe}t.modifiersData[r]=R}}const hve={name:"preventOverflow",enabled:!0,phase:"main",fn:fve,requiresIfExists:["offset"]};function pve(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mve(e){return e===Ns(e)||!ha(e)?WO(e):pve(e)}function gve(e){var t=e.getBoundingClientRect(),n=am(t.width)/e.offsetWidth||1,r=am(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yve(e,t,n){n===void 0&&(n=!1);var r=ha(t),i=ha(t)&&gve(t),o=bf(t),s=lm(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((dc(t)!=="body"||GO(o))&&(a=mve(t)),ha(t)?(l=lm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=qO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function bve(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 vve(e){var t=bve(e);return Tbe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function xve(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Sve(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 hF={placement:"bottom",modifiers:[],strategy:"absolute"};function pF(){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 wve(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?hF:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hF,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],h=!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:Ih(a)?ay(a):a.contextElement?ay(a.contextElement):[],popper:ay(l)};var w=vve(Sve([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(A){return A.enabled}),y(),g.update()},forceUpdate:function(){if(!h){var S=u.elements,C=S.reference,w=S.popper;if(pF(C,w)){u.rects={reference:yve(C,vb(w),u.options.strategy==="fixed"),popper:UO(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var A=0;A<u.orderedModifiers.length;A++){if(u.reset===!0){u.reset=!1,A=-1;continue}var E=u.orderedModifiers[A],D=E.fn,O=E.options,T=O===void 0?{}:O,I=E.name;typeof D=="function"&&(u=D({state:u,options:T,name:I,instance:g})||u)}}}},update:xve(function(){return new Promise(function(v){g.forceUpdate(),v(u)})}),destroy:function(){b(),h=!0}};if(!pF(a,l))return g;g.setOptions(c).then(function(v){!h&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){u.orderedModifiers.forEach(function(v){var S=v.name,C=v.options,w=C===void 0?{}:C,A=v.effect;if(typeof A=="function"){var E=A({state:u,name:S,instance:g,options:w}),D=function(){};f.push(E||D)}})}function b(){f.forEach(function(v){return v()}),f=[]}return g}}var Cve=[qbe,uve,Vbe,Ibe,lve,rve,hve,Bbe,ove],Eve=wve({defaultModifiers:Cve});function Yr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,s=i?{}:R4(n,r),{props:a,internalRef:l}=pX({...o,externalSlotProps:s}),c=Tr(l,s?.ref,e.additionalProps?.ref);return hX(t,{...a,ref:c},r)}function Ave(e){return typeof e=="function"?e():e}const iZ=_.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=_.useState(null),l=Tr(_.isValidElement(r)?gf(r):null,n);if(Ho(()=>{o||a(Ave(i)||document.body)},[i,o]),Ho(()=>{if(s&&!o)return gk(n,s),()=>{gk(n,null)}},[n,s,o]),o){if(_.isValidElement(r)){const c={ref:l};return _.cloneElement(r,c)}return r}return s&&Dd.createPortal(r,s)});function kve(e){return Qe("MuiPopper",e)}tt("MuiPopper",["root"]);function _ve(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 Ik(e){return typeof e=="function"?e():e}function Dve(e){return e.nodeType!==void 0}const Ove=e=>{const{classes:t}=e;return et({root:["root"]},kve,t)},Tve={},Mve=_.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:f,slotProps:h={},slots:g={},TransitionProps:y,ownerState:b,...v}=t,S=_.useRef(null),C=Tr(S,n),w=_.useRef(null),A=Tr(w,f),E=_.useRef(A);Ho(()=>{E.current=A},[A]),_.useImperativeHandle(f,()=>w.current,[]);const D=_ve(c,o),[O,T]=_.useState(D),[I,N]=_.useState(Ik(r));_.useEffect(()=>{w.current&&w.current.forceUpdate()}),_.useEffect(()=>{r&&N(Ik(r))},[r]),Ho(()=>{if(!I||!l)return;const z=V=>{T(V.placement)};let L=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{z(V)}}];a!=null&&(L=L.concat(a)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const q=Eve(I,S.current,{placement:D,...u,modifiers:L});return E.current(q),()=>{q.destroy(),E.current(null)}},[I,s,a,l,u,D]);const $={placement:O};y!==null&&($.TransitionProps=y);const R=Ove(t),F=g.root??"div",j=Yr({elementType:F,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:R.root});return m.jsx(F,{...j,children:typeof i=="function"?i($):i})}),Rve=_.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:f="bottom",popperOptions:h=Tve,popperRef:g,style:y,transition:b=!1,slotProps:v={},slots:S={},...C}=t,[w,A]=_.useState(!0),E=()=>{A(!1)},D=()=>{A(!0)};if(!l&&!u&&(!b||w))return null;let O;if(o)O=o;else if(r){const N=Ik(r);O=N&&Dve(N)?Di(N).body:Di(null).body}const T=!u&&l&&(!b||w)?"none":void 0,I=b?{in:u,onEnter:E,onExited:D}:void 0;return m.jsx(iZ,{disablePortal:a,container:O,children:m.jsx(Mve,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:b?!w:u,placement:f,popperOptions:h,popperRef:g,slotProps:v,slots:S,...C,style:{position:"fixed",top:0,left:0,display:T,...y},TransitionProps:I,children:i})})}),Ive=me(Rve,{name:"MuiPopper",slot:"Root"})({}),sw=_.forwardRef(function(t,n){const r=mf(),i=it({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,slots:C,slotProps:w,...A}=i,E=C?.root??a?.Root,D={anchorEl:o,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,...A};return m.jsx(Ive,{as:s,direction:r?"rtl":"ltr",slots:{root:E},slotProps:w??l,...D,ref:n})});function Pve(e){return Qe("MuiTooltip",e)}const si=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function jve(e){return Math.round(e*1e5)/1e5}const $ve=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${ye(o.split("-")[0])}`],arrow:["arrow"]};return et(s,Pve,t)},Lve=me(sw,{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]}})(Ge(({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"] .${si.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${si.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Nve=me("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${ye(n.placement.split("-")[0])}`]]}})(Ge(({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,[`.${si.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${si.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${si.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${si.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:`${jve(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fve=me("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({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 Ox=!1;const mF=new YS;let d1={x:0,y:0};function Tx(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const cn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:v=700,followCursor:S=!1,id:C,leaveDelay:w=0,leaveTouchDelay:A=1500,onClose:E,onOpen:D,open:O,placement:T="bottom",PopperComponent:I,PopperProps:N={},slotProps:$={},slots:R={},title:F,TransitionComponent:j,TransitionProps:z,...L}=r,q=_.isValidElement(o)?o:m.jsx("span",{children:o}),V=ro(),U=mf(),[K,B]=_.useState(),[W,X]=_.useState(null),H=_.useRef(!1),Y=h||S,J=Od(),ne=Od(),ee=Od(),se=Od(),[ue,te]=Ya({controlled:O,default:!1,name:"Tooltip",state:"open"});let Z=ue;const re=Ou(C),oe=_.useRef(),fe=Ni(()=>{oe.current!==void 0&&(document.body.style.WebkitUserSelect=oe.current,oe.current=void 0),se.clear()});_.useEffect(()=>fe,[fe]);const be=St=>{mF.clear(),Ox=!0,te(!0),D&&!Z&&D(St)},De=Ni(St=>{mF.start(800+w,()=>{Ox=!1}),te(!1),E&&Z&&E(St),J.start(V.transitions.duration.shortest,()=>{H.current=!1})}),Oe=St=>{H.current&&St.type!=="touchstart"||(K&&K.removeAttribute("title"),ne.clear(),ee.clear(),y||Ox&&b?ne.start(Ox?b:y,()=>{be(St)}):be(St))},Ke=St=>{ne.clear(),ee.start(w,()=>{De(St)})},[,xe]=_.useState(!1),Le=St=>{Gd(St.target)||(xe(!1),Ke(St))},Me=St=>{K||B(St.currentTarget),Gd(St.target)&&(xe(!0),Oe(St))},ht=St=>{H.current=!0;const mn=q.props;mn.onTouchStart&&mn.onTouchStart(St)},mt=St=>{ht(St),ee.clear(),J.clear(),fe(),oe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.start(v,()=>{document.body.style.WebkitUserSelect=oe.current,Oe(St)})},ze=St=>{q.props.onTouchEnd&&q.props.onTouchEnd(St),fe(),ee.start(A,()=>{De(St)})};_.useEffect(()=>{if(!Z)return;function St(mn){mn.key==="Escape"&&De(mn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[De,Z]);const Pe=Tr(gf(q),B,n);!F&&F!==0&&(Z=!1);const He=_.useRef(),Je=St=>{const mn=q.props;mn.onMouseMove&&mn.onMouseMove(St),d1={x:St.clientX,y:St.clientY},He.current&&He.current.update()},nt={},ot=typeof F=="string";c?(nt.title=!Z&&ot&&!f?F:null,nt["aria-describedby"]=Z?re:null):(nt["aria-label"]=ot?F:null,nt["aria-labelledby"]=Z&&!ot?re:null);const Xe={...nt,...L,...q.props,className:Te(L.className,q.props.className),onTouchStart:ht,ref:Pe,...S?{onMouseMove:Je}:{}},Lt={};g||(Xe.onTouchStart=mt,Xe.onTouchEnd=ze),f||(Xe.onMouseOver=Tx(Oe,Xe.onMouseOver),Xe.onMouseLeave=Tx(Ke,Xe.onMouseLeave),Y||(Lt.onMouseOver=Oe,Lt.onMouseLeave=Ke)),u||(Xe.onFocus=Tx(Me,Xe.onFocus),Xe.onBlur=Tx(Le,Xe.onBlur),Y||(Lt.onFocus=Me,Lt.onBlur=Le));const Nt={...r,isRtl:U,arrow:i,disableInteractive:Y,placement:T,PopperComponentProp:I,touch:H.current},Ot=typeof $.popper=="function"?$.popper(Nt):$.popper,Xn=_.useMemo(()=>{let St=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return N.popperOptions?.modifiers&&(St=St.concat(N.popperOptions.modifiers)),Ot?.popperOptions?.modifiers&&(St=St.concat(Ot.popperOptions.modifiers)),{...N.popperOptions,...Ot?.popperOptions,modifiers:St}},[W,N.popperOptions,Ot?.popperOptions]),rn=$ve(Nt),at=typeof $.transition=="function"?$.transition(Nt):$.transition,Ht={slots:{popper:a.Popper,transition:a.Transition??j,tooltip:a.Tooltip,arrow:a.Arrow,...R},slotProps:{arrow:$.arrow??l.arrow,popper:{...N,...Ot??l.popper},tooltip:$.tooltip??l.tooltip,transition:{...z,...at??l.transition}}},[Dn,Gn]=lt("popper",{elementType:Lve,externalForwardedProps:Ht,ownerState:Nt,className:Te(rn.popper,N?.className)}),[yr,Dt]=lt("transition",{elementType:Wy,externalForwardedProps:Ht,ownerState:Nt}),[jt,Jt]=lt("tooltip",{elementType:Nve,className:rn.tooltip,externalForwardedProps:Ht,ownerState:Nt}),[jn,on]=lt("arrow",{elementType:Fve,className:rn.arrow,externalForwardedProps:Ht,ownerState:Nt,ref:X});return m.jsxs(_.Fragment,{children:[_.cloneElement(q,Xe),m.jsx(Dn,{as:I??sw,placement:T,anchorEl:S?{getBoundingClientRect:()=>({top:d1.y,left:d1.x,right:d1.x,bottom:d1.y,width:0,height:0})}:K,popperRef:He,open:K?Z:!1,id:re,transition:!0,...Lt,...Gn,popperOptions:Xn,children:({TransitionProps:St})=>m.jsx(yr,{timeout:V.transitions.duration.shorter,...St,...Dt,children:m.jsxs(jt,{...Jt,children:[F,i?m.jsx(jn,{...on}):null]})})})]})}),Bve=_e(m.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"})),zve=me(ba,{name:"MuiBreadcrumbCollapsed"})(Ge(({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:Uy(e.palette.grey[200],.12)}:{backgroundColor:Uy(e.palette.grey[600],.12)}}}))),Hve=me(Bve)({width:24,height:16});function Uve(e){const{slots:t={},slotProps:n={},...r}=e,i=e;return m.jsx("li",{children:m.jsx(zve,{focusRipple:!0,...r,ownerState:i,children:m.jsx(Hve,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function Vve(e){return Qe("MuiBreadcrumbs",e)}const Wve=tt("MuiBreadcrumbs",["root","ol","li","separator"]),qve=e=>{const{classes:t}=e;return et({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Vve,t)},Gve=me(ie,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Wve.li}`]:t.li},t.root]})({}),Kve=me("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Yve=me("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Xve(e,t,n,r){return e.reduce((i,o,s)=>(s<e.length-1?i=i.concat(o,m.jsx(Yve,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):i.push(o),i),[])}const Zve=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBreadcrumbs"}),{children:i,className:o,component:s="nav",slots:a={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:g="/",...y}=r,[b,v]=_.useState(!1),S={...r,component:s,expanded:b,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:h,separator:g},C=qve(S),w=Yr({elementType:a.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:S}),A=_.useRef(null),E=O=>{const T=()=>{v(!0);const I=A.current.querySelector("a[href],button,[tabindex]");I&&I.focus()};return f+u>=O.length?O:[...O.slice(0,f),m.jsx(Uve,{"aria-label":c,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:T},"ellipsis"),...O.slice(O.length-u,O.length)]},D=_.Children.toArray(i).filter(O=>_.isValidElement(O)).map((O,T)=>m.jsx("li",{className:C.li,children:O},`child-${T}`));return m.jsx(Gve,{ref:n,component:s,color:"textSecondary",className:Te(C.root,o),ownerState:S,...y,children:m.jsx(Kve,{className:C.ol,ref:A,ownerState:S,children:Xve(b||h&&D.length<=h?D:E(D),C.separator,g,S)})})});function Jve(e){return Qe("MuiLink",e)}const Qve=tt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),exe=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const o=Rl(e,`palette.${n}.main`)||Rl(e,`palette.${n}`)||t.color;return e.alpha(o,.4)}const r=Rl(e,`palette.${n}.main`,!1)||Rl(e,`palette.${n}`,!1)||t.color,i=Rl(e,`palette.${n}.mainChannel`)||Rl(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Hl(r,.4)},gF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},txe=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ye(i)}`,n==="button"&&"button",r&&"focusVisible"]};return et(o,Jve,t)},nxe=me(ie,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ye(n.underline)}`],n.component==="button"&&t.button]}})(Ge(({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(Fn()).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"},[`&.${Qve.focusVisible}`]:{outline:"auto"}}}]}))),aw=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),i=ro(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:f="always",variant:h="inherit",sx:g,...y}=r,[b,v]=_.useState(!1),S=E=>{Gd(E.target)||v(!1),l&&l(E)},C=E=>{Gd(E.target)&&v(!0),c&&c(E)},w={...r,color:s,component:a,focusVisible:b,underline:f,variant:h},A=txe(w);return m.jsx(nxe,{color:s,className:Te(A.root,o),classes:u,component:a,onBlur:S,onFocus:C,ref:n,ownerState:w,variant:h,...y,sx:[...gF[s]===void 0?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...f==="always"&&s!=="inherit"&&!gF[s]&&{"--Link-underlineColor":exe({theme:i,ownerState:w})}}})}),rxe=({name:e,to:t})=>m.jsx(aw,{color:"inherit",underline:"hover",component:Du,to:t,children:e}),lw=({items:e})=>m.jsx(Zve,{separator:"›",children:e.map((t,n)=>m.jsx(rxe,{...t},n.toString()))}),fc=_e(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Ah=_e(m.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"})),Fs=_e(m.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"})),cw=_e(m.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"})),KO=_e(m.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"})),uw=_e(m.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),YO=_e(m.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"})),F5=_e(m.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"})),oZ=_e(m.jsx("path",{d:"M19 13H5v-2h14z"})),dw=_e(m.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"})),Yd=_e([m.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),m.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]),sZ=_e(m.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"})),ixe=_e(m.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 oxe(e){return Qe("MuiAvatar",e)}tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const sxe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},oxe,t)},axe=me("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ge(({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]})}}}]}))),lxe=me("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cxe=me(ixe,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function uxe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=_.useState(!1);return _.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 rl=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:g,variant:y="circular",...b}=r;let v=null;const S={...r,component:a,variant:y},C=uxe({...u,...typeof c.img=="function"?c.img(S):c.img,src:h,srcSet:g}),w=h||g,A=w&&C!=="error";S.colorDefault=!A,delete S.ownerState;const E=sxe(S),[D,O]=lt("root",{ref:n,className:Te(E.root,s),elementType:axe,externalForwardedProps:{slots:l,slotProps:c,component:a,...b},ownerState:S}),[T,I]=lt("img",{className:E.img,elementType:lxe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:i,src:h,srcSet:g,sizes:f},ownerState:S}),[N,$]=lt("fallback",{className:E.fallback,elementType:cxe,externalForwardedProps:{slots:l,slotProps:c},shouldForwardComponentProp:!0,ownerState:S});return A?v=m.jsx(T,{...I}):o||o===0?v=o:w&&i?v=i[0]:v=m.jsx(N,{...$}),m.jsx(D,{...O,children:v})});function dxe(e){return Qe("MuiCard",e)}tt("MuiCard",["root"]);const fxe=e=>{const{classes:t}=e;return et({root:["root"]},dxe,t)},hxe=me(Ur,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),tr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCard"}),{className:i,raised:o=!1,...s}=r,a={...r,raised:o},l=fxe(a);return m.jsx(hxe,{className:Te(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a,...s})});function pxe(e){return Qe("MuiCardContent",e)}tt("MuiCardContent",["root"]);const mxe=e=>{const{classes:t}=e;return et({root:["root"]},pxe,t)},gxe=me("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),gr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardContent"}),{className:i,component:o="div",...s}=r,a={...r,component:o},l=mxe(a);return m.jsx(gxe,{as:o,className:Te(l.root,i),ownerState:a,ref:n,...s})}),yxe=_e(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function bxe(e){return Qe("MuiChip",e)}const En=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),vxe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ye(r)}`,`color${ye(i)}`,a&&"clickable",a&&`clickableColor${ye(i)}`,s&&"deletable",s&&`deletableColor${ye(i)}`,`${l}${ye(i)}`],label:["label",`label${ye(r)}`],avatar:["avatar",`avatar${ye(r)}`,`avatarColor${ye(i)}`],icon:["icon",`icon${ye(r)}`,`iconColor${ye(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ye(r)}`,`deleteIconColor${ye(i)}`,`deleteIcon${ye(l)}Color${ye(i)}`]};return et(c,bxe,t)},xxe=me("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${En.avatar}`]:t.avatar},{[`& .${En.avatar}`]:t[`avatar${ye(a)}`]},{[`& .${En.avatar}`]:t[`avatarColor${ye(r)}`]},{[`& .${En.icon}`]:t.icon},{[`& .${En.icon}`]:t[`icon${ye(a)}`]},{[`& .${En.icon}`]:t[`iconColor${ye(i)}`]},{[`& .${En.deleteIcon}`]:t.deleteIcon},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(a)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIconColor${ye(r)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(l)}Color${ye(r)}`]},t.root,t[`size${ye(a)}`],t[`color${ye(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${ye(r)}`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ye(r)}`],t[l],t[`${l}${ye(r)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${En.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${En.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${En.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${En.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${En.icon}`]:{marginLeft:5,marginRight:-6},[`& .${En.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${En.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${En.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Fn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${En.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${En.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${En.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${En.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${En.avatar}`]:{marginLeft:4},[`& .${En.avatarSmall}`]:{marginLeft:2},[`& .${En.icon}`]:{marginLeft:4},[`& .${En.iconSmall}`]:{marginLeft:2},[`& .${En.deleteIcon}`]:{marginRight:5},[`& .${En.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Fn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${En.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Sxe=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ye(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function yF(e){return e.key==="Backspace"||e.key==="Delete"}const Et=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:v,size:S="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:A=!1,slots:E={},slotProps:D={},...O}=r,T=_.useRef(null),I=Tr(T,n),N=J=>{J.stopPropagation(),y(J)},$=J=>{J.currentTarget===J.target&&yF(J)&&J.preventDefault(),b&&b(J)},R=J=>{J.currentTarget===J.target&&y&&yF(J)&&y(J),v&&v(J)},F=s!==!1&&g?!0:s,j=F||y?ba:l||"div",z={...r,component:j,disabled:u,size:S,color:a,iconColor:_.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:F,variant:C},L=vxe(z),q=j===ba?{component:l||"div",focusVisibleClassName:L.focusVisible,...y&&{disableRipple:!0}}:{};let V=null;y&&(V=c&&_.isValidElement(c)?_.cloneElement(c,{className:Te(c.props.className,L.deleteIcon),onClick:N}):m.jsx(yxe,{className:L.deleteIcon,onClick:N}));let U=null;i&&_.isValidElement(i)&&(U=_.cloneElement(i,{className:Te(L.avatar,i.props.className)}));let K=null;f&&_.isValidElement(f)&&(K=_.cloneElement(f,{className:Te(L.icon,f.props.className)}));const B={slots:E,slotProps:D},[W,X]=lt("root",{elementType:xxe,externalForwardedProps:{...B,...O},ownerState:z,shouldForwardComponentProp:!0,ref:I,className:Te(L.root,o),additionalProps:{disabled:F&&u?!0:void 0,tabIndex:A&&u?-1:w,...q},getSlotProps:J=>({...J,onClick:ne=>{J.onClick?.(ne),g?.(ne)},onKeyDown:ne=>{J.onKeyDown?.(ne),$(ne)},onKeyUp:ne=>{J.onKeyUp?.(ne),R(ne)}})}),[H,Y]=lt("label",{elementType:Sxe,externalForwardedProps:B,ownerState:z,className:L.label});return m.jsxs(W,{as:j,...X,children:[U||K,m.jsx(H,{...Y,children:h}),V]})});function aZ(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function wxe(e){const t=Di(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ly(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bF(e){return parseFloat(tl(e).getComputedStyle(e).paddingRight)||0}function Cxe(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 vF(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=!o.includes(s),l=!Cxe(s);a&&l&&ly(s,i)})}function D7(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Exe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(wxe(r)){const s=aZ(tl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bF(r)+s}px`;const a=Di(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${bF(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Di(r).body;else{const s=r.parentElement,a=tl(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 Axe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class kxe{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&&ly(t.modalRef,!1);const i=Axe(n);vF(n,t.mount,t.modalRef,i,!0);const o=D7(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=D7(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=Exe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=D7(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&&ly(t.modalRef,n),vF(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&&ly(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function z1(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const _xe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dxe(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 Oxe(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 Txe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Oxe(e))}function Mxe(e){const t=[],n=[];return Array.from(e.querySelectorAll(_xe)).forEach((r,i)=>{const o=Dxe(r);o===-1||!Txe(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 Rxe(){return!0}function Ixe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Mxe,isEnabled:s=Rxe,open:a}=e,l=_.useRef(!1),c=_.useRef(null),u=_.useRef(null),f=_.useRef(null),h=_.useRef(null),g=_.useRef(!1),y=_.useRef(null),b=Tr(gf(t),y),v=_.useRef(null);_.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=z1(w);return y.current.contains(A)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=O=>{if(v.current=O,r||!s()||O.key!=="Tab")return;z1(w)===y.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{const O=y.current;if(O===null)return;const T=z1(w);if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(O.contains(T)||r&&T!==c.current&&T!==u.current)return;if(T!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let I=[];if((T===c.current||T===u.current)&&(I=o(y.current)),I.length>0){const N=!!(v.current?.shiftKey&&v.current?.key==="Tab"),$=I[0],R=I[I.length-1];typeof $!="string"&&typeof R!="string"&&(N?R.focus():$.focus())}else O.focus()};w.addEventListener("focusin",E),w.addEventListener("keydown",A,!0);const D=setInterval(()=>{const O=z1(w);O&&O.tagName==="BODY"&&E()},50);return()=>{clearInterval(D),w.removeEventListener("focusin",E),w.removeEventListener("keydown",A,!0)}},[n,r,i,s,a,o]);const S=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0,h.current=w.target;const A=t.props.onFocus;A&&A(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0};return m.jsxs(_.Fragment,{children:[m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:b,onFocus:S}),m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}const Pxe={entering:{opacity:1},entered:{opacity:1}},Pk=_.forwardRef(function(t,n){const r=ro(),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:f,onEntering:h,onExit:g,onExited:y,onExiting:b,style:v,timeout:S=i,TransitionComponent:C=Ta,...w}=t,A=_.useRef(null),E=Tr(A,gf(a),n),D=j=>z=>{if(j){const L=A.current;z===void 0?j(L):j(L,z)}},O=D(h),T=D((j,z)=>{IO(j);const L=Kd({style:v,timeout:S,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",L),j.style.transition=r.transitions.create("opacity",L),u&&u(j,z)}),I=D(f),N=D(b),$=D(j=>{const z=Kd({style:v,timeout:S,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",z),j.style.transition=r.transitions.create("opacity",z),g&&g(j)}),R=D(y),F=j=>{o&&o(A.current,j)};return m.jsx(C,{appear:s,in:c,nodeRef:A,onEnter:T,onEntered:I,onEntering:O,onExit:$,onExited:R,onExiting:N,addEndListener:F,timeout:S,...w,children:(j,{ownerState:z,...L})=>_.cloneElement(a,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,...Pxe[j],...v,...a.props.style},ref:E,...L})})});function jxe(e){return Qe("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const $xe=e=>{const{classes:t,invisible:n}=e;return et({root:["root",n&&"invisible"]},jxe,t)},Lxe=me("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"}}]}),XO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:g,transitionDuration:y,...b}=r,v={...r,component:s,invisible:a},S=$xe(v),C={transition:g,root:c.Root,...h},w={...u,...f},A={component:s,slots:C,slotProps:w},[E,D]=lt("root",{elementType:Lxe,externalForwardedProps:A,className:Te(S.root,o),ownerState:v}),[O,T]=lt("transition",{elementType:Pk,externalForwardedProps:A,ownerState:v});return m.jsx(O,{in:l,timeout:y,...b,...T,children:m.jsx(E,{"aria-hidden":!0,...D,ref:n,children:i})})});function Nxe(e){return typeof e=="function"?e():e}function Fxe(e){return e?e.props.hasOwnProperty("in"):!1}const xF=()=>{},Mx=new kxe;function Bxe(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,f=_.useRef({}),h=_.useRef(null),g=_.useRef(null),y=Tr(g,u),[b,v]=_.useState(!c),S=Fxe(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Di(h.current),A=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),E=()=>{Mx.mount(A(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},D=Ni(()=>{const z=Nxe(t)||w().body;Mx.add(A(),z),g.current&&E()}),O=()=>Mx.isTopModal(A()),T=Ni(z=>{h.current=z,z&&(c&&O()?E():g.current&&ly(g.current,C))}),I=_.useCallback(()=>{Mx.remove(A(),C)},[C]);_.useEffect(()=>()=>{I()},[I]),_.useEffect(()=>{c?D():(!S||!i)&&I()},[c,I,S,i,D]);const N=z=>L=>{z.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!O())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},$=z=>L=>{z.onClick?.(L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(z={})=>{const L=Yi(e);delete L.onTransitionEnter,delete L.onTransitionExited;const q={...L,...z};return{role:"presentation",...q,onKeyDown:N(q),ref:y}},getBackdropProps:(z={})=>{const L=z;return{"aria-hidden":!0,...L,onClick:$(L),open:c}},getTransitionProps:()=>{const z=()=>{v(!1),o&&o()},L=()=>{v(!0),s&&s(),i&&I()};return{onEnter:mk(z,a?.props.onEnter??xF),onExited:mk(L,a?.props.onExited??xF)}},rootRef:y,portalRef:T,isTopModal:O,exited:b,hasTransition:S}}function zxe(e){return Qe("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const Hxe=e=>{const{open:t,exited:n,classes:r}=e;return et({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zxe,r)},Uxe=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ge(({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"}}]}))),Vxe=me(XO,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ZO=_.forwardRef(function(t,n){const r=it({name:"MuiModal",props:t}),{BackdropComponent:i=Vxe,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:f,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:v=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:A=!1,keepMounted:E=!1,onClose:D,onTransitionEnter:O,onTransitionExited:T,open:I,slotProps:N={},slots:$={},theme:R,...F}=r,j={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:v,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:A,keepMounted:E},{getRootProps:z,getBackdropProps:L,getTransitionProps:q,portalRef:V,isTopModal:U,exited:K,hasTransition:B}=Bxe({...j,rootRef:n}),W={...j,exited:K},X=Hxe(W),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),B){const{onEnter:ue,onExited:te}=q();H.onEnter=ue,H.onExited=te}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...g,...N}},[J,ne]=lt("root",{ref:n,elementType:Uxe,externalForwardedProps:{...Y,...F,component:f},getSlotProps:z,ownerState:W,className:Te(a,X?.root,!W.open&&W.exited&&X?.hidden)}),[ee,se]=lt("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ue=>L({...ue,onClick:te=>{ue?.onClick&&ue.onClick(te)}}),className:Te(o?.className,X?.backdrop),ownerState:W});return!E&&!I&&(!B||K)?null:m.jsx(iZ,{ref:V,container:u,disablePortal:S,children:m.jsxs(J,{...ne,children:[!A&&i?m.jsx(ee,{...se}):null,m.jsx(Ixe,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:U,open:I,children:_.cloneElement(c,H)})]})})});function Wxe(e){return Qe("MuiDialog",e)}const O7=tt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lZ=_.createContext({}),qxe=me(XO,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Gxe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ye(n)}`],paper:["paper",`paperScroll${ye(n)}`,`paperWidth${ye(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return et(s,Wxe,t)},Kxe=me(ZO,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Yxe=me("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ye(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"}}}]}),Xxe=me(Ur,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ye(n.scroll)}`],t[`paperWidth${ye(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ge(({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)`,[`&.${O7.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}`,[`&.${O7.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,[`&.${O7.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialog"}),i=ro(),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:f,className:h,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:v="sm",onClick:S,onClose:C,open:w,PaperComponent:A=Ur,PaperProps:E={},scroll:D="paper",slots:O={},slotProps:T={},TransitionComponent:I=Pk,transitionDuration:N=o,TransitionProps:$,...R}=r,F={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:v,scroll:D},j=Gxe(F),z=_.useRef(),L=re=>{z.current=re.target===re.currentTarget},q=re=>{S&&S(re),z.current&&(z.current=null,C&&C(re,"backdropClick"))},V=Ou(a),U=_.useMemo(()=>({titleId:V}),[V]),K={transition:I,...O},B={transition:$,paper:E,backdrop:u,...T},W={slots:K,slotProps:B},[X,H]=lt("root",{elementType:Kxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.root,h),ref:n}),[Y,J]=lt("backdrop",{elementType:qxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:j.backdrop}),[ne,ee]=lt("paper",{elementType:Xxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.paper,E.className)}),[se,ue]=lt("container",{elementType:Yxe,externalForwardedProps:W,ownerState:F,className:j.container}),[te,Z]=lt("transition",{elementType:Pk,externalForwardedProps:W,ownerState:F,additionalProps:{appear:!0,in:w,timeout:N,role:"presentation"}});return m.jsx(X,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:N,as:c,...J}},disableEscapeKeyDown:g,onClose:C,open:w,onClick:q,...H,...R,children:m.jsx(te,{...Z,children:m.jsx(se,{onMouseDown:L,...ue,children:m.jsx(ne,{as:A,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":V,"aria-modal":l,...ee,children:m.jsx(lZ.Provider,{value:U,children:f})})})})})});function Zxe(e){return Qe("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const Jxe=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},Zxe,t)},Qxe=me("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}}}]}),Xd=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=r,a={...r,disableSpacing:o},l=Jxe(a);return m.jsx(Qxe,{className:Te(l.root,i),ownerState:a,ref:n,...s})});function e3e(e){return Qe("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function t3e(e){return Qe("MuiDialogTitle",e)}const n3e=tt("MuiDialogTitle",["root"]),r3e=e=>{const{classes:t,dividers:n}=e;return et({root:["root",n&&"dividers"]},e3e,t)},i3e=me("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ge(({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:{[`.${n3e.root} + &`]:{paddingTop:0}}}]}))),xu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=r,a={...r,dividers:o},l=r3e(a);return m.jsx(i3e,{className:Te(l.root,i),ownerState:a,ref:n,...s})}),o3e=e=>{const{classes:t}=e;return et({root:["root"]},t3e,t)},s3e=me(ie,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Su=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogTitle"}),{className:i,id:o,...s}=r,a=r,l=o3e(a),{titleId:c=o}=_.useContext(lZ);return m.jsx(s3e,{component:"h2",className:Te(l.root,i),ownerState:a,ref:n,variant:"h6",id:o??c,...s})});function a3e(e){return Qe("MuiDivider",e)}const SF=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),l3e=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return et({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"]},a3e,r)},c3e=me("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]}})(Ge(({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%"}}}]}))),u3e=me("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ge(({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)`}}]}))),gi=_.forwardRef(function(t,n){const r=it({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:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth",...y}=r,b={...r,absolute:i,component:l,flexItem:c,light:u,orientation:a,role:f,textAlign:h,variant:g},v=l3e(b);return m.jsx(c3e,{as:l,className:Te(v.root,s),role:f,ref:n,ownerState:b,"aria-orientation":f==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...y,children:o?m.jsx(u3e,{className:v.wrapper,ownerState:b,children:o}):null})});gi&&(gi.muiSkipListHighlight=!0);const dt=age({createStyledComponent:me("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>it({props:e,name:"MuiGrid"}),useTheme:ro});var d3e=Object.defineProperty,K4=Object.getOwnPropertySymbols,cZ=Object.prototype.hasOwnProperty,uZ=Object.prototype.propertyIsEnumerable,wF=(e,t,n)=>t in e?d3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jk=(e,t)=>{for(var n in t||(t={}))cZ.call(t,n)&&wF(e,n,t[n]);if(K4)for(var n of K4(t))uZ.call(t,n)&&wF(e,n,t[n]);return e},$k=(e,t)=>{var n={};for(var r in e)cZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&K4)for(var r of K4(e))t.indexOf(r)<0&&uZ.call(e,r)&&(n[r]=e[r]);return n};var Ph;(e=>{const t=class An{constructor(l,c,u,f){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<An.MIN_VERSION||l>An.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let h=[];for(let y=0;y<this.size;y++)h.push(!1);for(let y=0;y<this.size;y++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),f==-1){let y=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<y&&(f=b,y=v),this.applyMask(b)}}i(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return An.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return An.encodeSegments([u],c)}static encodeSegments(l,c,u=1,f=40,h=-1,g=!0){if(!(An.MIN_VERSION<=u&&u<=f&&f<=An.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");let y,b;for(y=u;;y++){const w=An.getNumDataCodewords(y,c)*8,A=s.getTotalBits(l,y);if(A<=w){b=A;break}if(y>=f)throw new RangeError("Data too long")}for(const w of[An.Ecc.MEDIUM,An.Ecc.QUARTILE,An.Ecc.HIGH])g&&b<=An.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 A of w.getData())v.push(A)}i(v.length==b);const S=An.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,A)=>C[A>>>3]|=w<<7-(A&7)),new An(y,c,C,h)}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 f=0;f<c;f++)u==0&&f==0||u==0&&f==c-1||u==c-1&&f==0||this.drawAlignmentPattern(l[u],l[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let h=0;h<10;h++)u=u<<1^(u>>>9)*1335;const f=(c<<10|u)^21522;i(f>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,r(f,h));this.setFunctionModule(8,7,r(f,6)),this.setFunctionModule(8,8,r(f,7)),this.setFunctionModule(7,8,r(f,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,r(f,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,r(f,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,r(f,h));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 f=r(c,u),h=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(h,g,f),this.setFunctionModule(g,h,f)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let f=-4;f<=4;f++){const h=Math.max(Math.abs(f),Math.abs(u)),g=l+f,y=c+u;0<=g&&g<this.size&&0<=y&&y<this.size&&this.setFunctionModule(g,y,h!=2&&h!=4)}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let f=-2;f<=2;f++)this.setFunctionModule(l+f,c+u,Math.max(Math.abs(f),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!=An.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const f=An.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],h=An.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(An.getNumRawDataModules(c)/8),y=f-g%f,b=Math.floor(g/f);let v=[];const S=An.reedSolomonComputeDivisor(h);for(let w=0,A=0;w<f;w++){let E=l.slice(A,A+b-h+(w<y?0:1));A+=E.length;const D=An.reedSolomonComputeRemainder(E,S);w<y&&E.push(0),v.push(E.concat(D))}let C=[];for(let w=0;w<v[0].length;w++)v.forEach((A,E)=>{(w!=b-h||E>=y)&&C.push(A[w])});return i(C.length==g),C}drawCodewords(l){if(l.length!=Math.floor(An.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 f=0;f<this.size;f++)for(let h=0;h<2;h++){const g=u-h,b=(u+1&2)==0?this.size-1-f:f;!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 f;switch(l){case 0:f=(u+c)%2==0;break;case 1:f=c%2==0;break;case 2:f=u%3==0;break;case 3:f=(u+c)%3==0;break;case 4:f=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:f=u*c%2+u*c%3==0;break;case 6:f=(u*c%2+u*c%3)%2==0;break;case 7:f=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&f&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let l=0;for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[h][v]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[h][v],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][h]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[v][h],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size-1;h++)for(let g=0;g<this.size-1;g++){const y=this.modules[h][g];y==this.modules[h][g+1]&&y==this.modules[h+1][g]&&y==this.modules[h+1][g+1]&&(l+=An.PENALTY_N2)}let c=0;for(const h of this.modules)c=h.reduce((g,y)=>g+(y?1:0),c);const u=this.size*this.size,f=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=f&&f<=9),l+=f*An.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 f=this.size-7;u.length<l;f-=c)u.splice(1,0,f);return u}}static getNumRawDataModules(l){if(l<An.MIN_VERSION||l>An.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(An.getNumRawDataModules(l)/8)-An.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*An.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 f=0;f<l-1;f++)c.push(0);c.push(1);let u=1;for(let f=0;f<l;f++){for(let h=0;h<c.length;h++)c[h]=An.reedSolomonMultiply(c[h],u),h+1<c.length&&(c[h]^=c[h+1]);u=An.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(f=>0);for(const f of l){const h=f^u.shift();u.push(0),c.forEach((g,y)=>u[y]^=An.reedSolomonMultiply(g,h))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let f=7;f>=0;f--)u=u<<1^(u>>>7)*285,u^=(c>>>f&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 ri{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 ri(ri.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!ri.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const f=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+f),10),f*3+1,c),u+=f}return new ri(ri.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!ri.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 f=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;f+=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(f,11,c)}return u<l.length&&n(ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new ri(ri.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:ri.isNumeric(l)?[ri.makeNumeric(l)]:ri.isAlphanumeric(l)?[ri.makeAlphanumeric(l)]:[ri.makeBytes(ri.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 ri(ri.Mode.ECI,0,c)}static isNumeric(l){return ri.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return ri.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const f of l){const h=f.mode.numCharCountBits(c);if(f.numChars>=1<<h)return 1/0;u+=4+h+f.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})(Ph||(Ph={}));(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={}))})(Ph||(Ph={}));(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={}))})(Ph||(Ph={}));var b0=Ph;var f3e={L:b0.QrCode.Ecc.LOW,M:b0.QrCode.Ecc.MEDIUM,Q:b0.QrCode.Ecc.QUARTILE,H:b0.QrCode.Ecc.HIGH},dZ=128,fZ="L",hZ="#FFFFFF",pZ="#000000",mZ=!1,gZ=1,h3e=4,p3e=0,m3e=.1;function yZ(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 bZ(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 g3e(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*m3e),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,f=r.opacity==null?1:r.opacity;let h=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);h={x:y,y:b,w:v,h:S}}const g=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:h,opacity:f,crossOrigin:g}}function y3e(e,t){return t!=null?Math.max(Math.floor(t),0):e?h3e:p3e}function vZ({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=qt.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((b,v)=>(b.push(...b0.QrSegment.makeSegments(v)),b),[]);return b0.QrCode.encodeSegments(y,f3e[t],n,void 0,void 0,a)},[e,t,n,a]);const{cells:c,margin:u,numCells:f,calculatedImageSettings:h}=qt.useMemo(()=>{let g=l.getModules();const y=y3e(r,i),b=g.length+y*2,v=g3e(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:f,calculatedImageSettings:h}}var b3e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),v3e=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,marginSize:h,imageSettings:g}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,S=$k(b,["style"]),C=g?.src,w=qt.useRef(null),A=qt.useRef(null),E=qt.useCallback(j=>{w.current=j,typeof n=="function"?n(j):n&&(n.current=j)},[n]),[D,O]=qt.useState(!1),{margin:T,cells:I,numCells:N,calculatedImageSettings:$}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:h,imageSettings:g,size:o});qt.useEffect(()=>{if(w.current!=null){const j=w.current,z=j.getContext("2d");if(!z)return;let L=I;const q=A.current,V=$!=null&&q!==null&&q.complete&&q.naturalHeight!==0&&q.naturalWidth!==0;V&&$.excavation!=null&&(L=bZ(I,$.excavation));const U=window.devicePixelRatio||1;j.height=j.width=o*U;const K=o/N*U;z.scale(K,K),z.fillStyle=a,z.fillRect(0,0,N,N),z.fillStyle=l,b3e?z.fill(new Path2D(yZ(L,T))):I.forEach(function(B,W){B.forEach(function(X,H){X&&z.fillRect(H+T,W+T,1,1)})}),$&&(z.globalAlpha=$.opacity),V&&z.drawImage(q,$.x+T,$.y+T,$.w,$.h)}}),qt.useEffect(()=>{O(!1)},[C]);const R=jk({height:o,width:o},v);let F=null;return C!=null&&(F=qt.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{O(!0)},ref:A,crossOrigin:$?.crossOrigin})),qt.createElement(qt.Fragment,null,qt.createElement("canvas",jk({style:R,height:o,width:o,ref:E,role:"img"},S)),F)});v3e.displayName="QRCodeCanvas";var JO=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,title:h,marginSize:g,imageSettings:y}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:S,numCells:C,calculatedImageSettings:w}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:g,imageSettings:y,size:o});let A=S,E=null;y!=null&&w!=null&&(w.excavation!=null&&(A=bZ(S,w.excavation)),E=qt.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 D=yZ(A,v);return qt.createElement("svg",jk({height:o,width:o,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},b),!!h&&qt.createElement("title",null,h),qt.createElement("path",{fill:a,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),qt.createElement("path",{fill:l,d:D,shapeRendering:"crispEdges"}),E)});JO.displayName="QRCodeSVG";const x3e=_e(m.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"})),v0=e=>_.createElement("svg",{viewBox:"0 0 250 260",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{fillRule:"evenodd"},_.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"}),_.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"}),_.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"}),_.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"}))),S3e=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:20,viewBox:"0 0 52 20",fill:"none",...e},"\\n ",_.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"),Lk=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 41.5 51",...e},_.createElement("g",null,_.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"}))),xZ=e=>_.createElement("svg",{width:80,height:48,viewBox:"0 0 80 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.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"})),w3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"AVM"),_.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"})),C3e=e=>_.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},_.createElement("defs",{id:"defs145870"}),_.createElement("g",{transform:"translate(-586.37187,-430.72069)",id:"layer1"},_.createElement("g",{transform:"matrix(3.7156602,0,0,3.7156602,-1556.9538,-1604.717)",id:"g146158"},_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"})))),E3e=e=>_.createElement("svg",{width:128,height:44,viewBox:"0 0 128 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.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)"}),_.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)"}),_.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)"}),_.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)"}),_.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)"}),_.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)"}),_.createElement("defs",null,_.createElement("linearGradient",{id:"paint0_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint1_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint2_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint3_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint4_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint5_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})))),SZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e},_.createElement("g",null,_.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"}),_.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"}),_.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"}),_.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"}))),wZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:98.36,height:40,viewBox:"0 0 98.36 40",...e},_.createElement("path",{fill:"#0058ab",d:"M98.36 40H0V0h98.36v40Z"}),_.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"}),_.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"})),A3e=e=>_.createElement("svg",{width:87,height:22,viewBox:"0 0 87 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"})),k3e=e=>_.createElement("svg",{width:225,height:99,viewBox:"0 0 225 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_415_130964)"},_.createElement("path",{d:"M134.874 68.7831H165.274V81.2487H120.202V17.2373H134.874V68.7831Z",fill:"#707070"}),_.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"}),_.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"}),_.createElement("path",{d:"M61.1184 66.6079H51.0826V28.5984H47.3721V70.3594H51.0909V70.3341H61.1268L61.1184 66.6079Z",fill:"white"}),_.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"}),_.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"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_415_130964"},_.createElement("rect",{width:223,height:99,fill:"white"})))),_3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"Lidl"),_.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"})),CZ=e=>_.createElement("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80.2 14.3",...e},_.createElement("defs",null,_.createElement("style",null,`
147
+ `:null,F1e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${ye(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ye(n)}`,i&&"circleDisableShrink"]};return et(o,$1e,t)},B1e=me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:L1e||{animation:`${xk} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),z1e=me("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),H1e=me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ye(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ge(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:N1e||{animation:`${Sk} 1.4s ease-in-out infinite`}}]}))),U1e=me("circle",{name:"MuiCircularProgress",slot:"Track"})(Ge(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),zr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate",...g}=r,y={...r,color:o,disableShrink:s,size:l,thickness:u,value:f,variant:h,enableTrackSlot:a},b=F1e(y),v={},S={},C={};if(h==="determinate"){const w=2*Math.PI*((ja-u)/2);v.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,S.transform="rotate(-90deg)"}return m.jsx(B1e,{className:Te(b.root,i),style:{width:l,height:l,...S,...c},ownerState:y,ref:n,role:"progressbar",...C,...g,children:m.jsxs(z1e,{className:b.svg,ownerState:y,viewBox:`${ja/2} ${ja/2} ${ja} ${ja}`,children:[a?m.jsx(U1e,{className:b.track,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,m.jsx(H1e,{className:b.circle,style:v,ownerState:y,cx:ja,cy:ja,r:(ja-u)/2,fill:"none",strokeWidth:u})]})})});function V1e(e){return Qe("MuiIconButton",e)}const LN=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),W1e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o,loading:s}=e,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${ye(r)}`,i&&`edge${ye(i)}`,`size${ye(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return et(a,V1e,t)},q1e=me(ba,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ye(n.color)}`],n.edge&&t[`edge${ye(n.edge)}`],t[`size${ye(n.size)}`]]}})(Ge(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ge(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${LN.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${LN.loading}`]:{color:"transparent"}}))),G1e=me("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_n=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:f,loading:h=null,loadingIndicator:g,...y}=r,b=Ou(f),v=g??m.jsx(zr,{"aria-labelledby":b,color:"inherit",size:16}),S={...r,edge:i,color:a,disabled:l,disableFocusRipple:c,loading:h,loadingIndicator:v,size:u},C=W1e(S);return m.jsxs(q1e,{id:h?b:f,className:Te(C.root,s),centerRipple:!0,focusRipple:!c,disabled:l||h,ref:n,...y,ownerState:S,children:[typeof h=="boolean"&&m.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:m.jsx(G1e,{className:C.loadingIndicator,ownerState:S,children:h&&v})}),o]})}),K1e=_e(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),Y1e=_e(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),X1e=_e(m.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Z1e=_e(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),yX=_e(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),J1e=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${ye(n||r)}`,`${t}${ye(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return et(o,l1e,i)},Q1e=me(Ur,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color||n.severity)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${PN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Fn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),eye=me("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),tye=me("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),nye=me("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),NN={success:m.jsx(K1e,{fontSize:"inherit"}),warning:m.jsx(Y1e,{fontSize:"inherit"}),error:m.jsx(X1e,{fontSize:"inherit"}),info:m.jsx(Z1e,{fontSize:"inherit"})},vn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlert"}),{action:i,children:o,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:f,iconMapping:h=NN,onClose:g,role:y="alert",severity:b="success",slotProps:v={},slots:S={},variant:C="standard",...w}=r,A={...r,color:l,severity:b,variant:C,colorSeverity:l||b},E=J1e(A),D={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...S},slotProps:{...u,...v}},[O,T]=lt("root",{ref:n,shouldForwardComponentProp:!0,className:Te(E.root,s),elementType:Q1e,externalForwardedProps:{...D,...w},ownerState:A,additionalProps:{role:y,elevation:0}}),[I,N]=lt("icon",{className:E.icon,elementType:eye,externalForwardedProps:D,ownerState:A}),[$,R]=lt("message",{className:E.message,elementType:tye,externalForwardedProps:D,ownerState:A}),[F,j]=lt("action",{className:E.action,elementType:nye,externalForwardedProps:D,ownerState:A}),[z,L]=lt("closeButton",{elementType:_n,externalForwardedProps:D,ownerState:A}),[q,V]=lt("closeIcon",{elementType:yX,externalForwardedProps:D,ownerState:A});return m.jsxs(O,{...T,children:[f!==!1?m.jsx(I,{...N,children:f||h[b]||NN[b]}):null,m.jsx($,{...R,children:o}),i!=null?m.jsx(F,{...j,children:i}):null,i==null&&g?m.jsx(F,{...j,children:m.jsx(z,{size:"small","aria-label":a,title:a,color:"inherit",onClick:g,...L,children:m.jsx(q,{fontSize:"small",...V})})}):null]})});function rye(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=Od();_.useEffect(()=>{if(!i)return;function S(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",S),()=>{document.removeEventListener("keydown",S)}},[i,r]);const a=Ni((S,C)=>{r?.(S,C)}),l=Ni(S=>{!r||S==null||s.start(S,()=>{a(null,"timeout")})});_.useEffect(()=>(i&&l(t),s.clear),[i,t,l,s]);const c=S=>{r?.(S,"clickaway")},u=s.clear,f=_.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),h=S=>C=>{const w=S.onBlur;w?.(C),f()},g=S=>C=>{const w=S.onFocus;w?.(C),u()},y=S=>C=>{const w=S.onMouseEnter;w?.(C),u()},b=S=>C=>{const w=S.onMouseLeave;w?.(C),f()};return _.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,i,f,u]),{getRootProps:(S={})=>{const C={...Yi(e),...Yi(S)};return{role:"presentation",...S,...C,onBlur:h(C),onFocus:g(C),onMouseEnter:y(C),onMouseLeave:b(C)}},onClickAway:c}}function gf(e){return parseInt(_.version,10)>=19?e?.props?.ref||null:e?.ref||null}function FN(e){return e.substring(2).toLowerCase()}function iye(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function oye(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,s=_.useRef(!1),a=_.useRef(null),l=_.useRef(!1),c=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=Tr(gf(t),a),f=Ni(y=>{const b=c.current;c.current=!1;const v=Di(a.current);if(!l.current||!a.current||"clientX"in y&&iye(y,v))return;if(s.current){s.current=!1;return}let S;y.composedPath?S=y.composedPath().includes(a.current):S=!v.documentElement.contains(y.target)||a.current.contains(y.target),!S&&(n||!b)&&i(y)}),h=y=>b=>{c.current=!0;const v=t.props[y];v&&v(b)},g={ref:u};return o!==!1&&(g[o]=h(o)),_.useEffect(()=>{if(o!==!1){const y=FN(o),b=Di(a.current),v=()=>{s.current=!0};return b.addEventListener(y,f),b.addEventListener("touchmove",v),()=>{b.removeEventListener(y,f),b.removeEventListener("touchmove",v)}}},[f,o]),r!==!1&&(g[r]=h(r)),_.useEffect(()=>{if(r!==!1){const y=FN(r),b=Di(a.current);return b.addEventListener(y,f),()=>{b.removeEventListener(y,f)}}},[f,r]),_.cloneElement(t,g)}const IO=e=>e.scrollTop;function Kd(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function wk(e){return`scale(${e}, ${e**2})`}const sye={entering:{opacity:1,transform:wk(1)},entered:{opacity:1,transform:"none"}},C7=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wy=_.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:f,onExited:h,onExiting:g,style:y,timeout:b="auto",TransitionComponent:v=Ta,...S}=t,C=Od(),w=_.useRef(),A=ro(),E=_.useRef(null),D=Tr(E,gf(o),n),O=z=>L=>{if(z){const q=E.current;L===void 0?z(q):z(q,L)}},T=O(u),I=O((z,L)=>{IO(z);const{duration:q,delay:V,easing:U}=Kd({style:y,timeout:b,easing:s},{mode:"enter"});let K;b==="auto"?(K=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=K):K=q,z.style.transition=[A.transitions.create("opacity",{duration:K,delay:V}),A.transitions.create("transform",{duration:C7?K:K*.666,delay:V,easing:U})].join(","),l&&l(z,L)}),N=O(c),$=O(g),R=O(z=>{const{duration:L,delay:q,easing:V}=Kd({style:y,timeout:b,easing:s},{mode:"exit"});let U;b==="auto"?(U=A.transitions.getAutoHeightDuration(z.clientHeight),w.current=U):U=L,z.style.transition=[A.transitions.create("opacity",{duration:U,delay:q}),A.transitions.create("transform",{duration:C7?U:U*.666,delay:C7?q:q||U*.333,easing:V})].join(","),z.style.opacity=0,z.style.transform=wk(.75),f&&f(z)}),F=O(h),j=z=>{b==="auto"&&C.start(w.current||0,z),r&&r(E.current,z)};return m.jsx(v,{appear:i,in:a,nodeRef:E,onEnter:I,onEntered:N,onEntering:T,onExit:R,onExited:F,onExiting:$,addEndListener:j,timeout:b==="auto"?null:b,...S,children:(z,{ownerState:L,...q})=>_.cloneElement(o,{style:{opacity:0,transform:wk(.75),visibility:z==="exited"&&!a?"hidden":void 0,...sye[z],...y,...o.props.style},ref:D,...q})})});Wy&&(Wy.muiSupportAuto=!0);function aye(e){return Qe("MuiSnackbarContent",e)}tt("MuiSnackbarContent",["root","message","action"]);const lye=e=>{const{classes:t}=e;return et({root:["root"],action:["action"],message:["message"]},aye,t)},cye=me(Ur,{name:"MuiSnackbarContent",slot:"Root"})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Uy(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Uy(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),uye=me("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),dye=me("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),fye=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert",...l}=r,c=r,u=lye(c);return m.jsxs(cye,{role:a,elevation:6,className:Te(u.root,o),ownerState:c,ref:n,...l,children:[m.jsx(uye,{className:u.message,ownerState:c,children:s}),i?m.jsx(dye,{className:u.action,ownerState:c,children:i}):null]})});function hye(e){return Qe("MuiSnackbar",e)}tt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pye=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ye(n.vertical)}${ye(n.horizontal)}`]};return et(r,hye,t)},mye=me("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ye(n.anchorOrigin.vertical)}${ye(n.anchorOrigin.horizontal)}`]]}})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),PO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSnackbar"}),i=ro(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:h,ContentProps:g,disableWindowBlurListener:y=!1,message:b,onBlur:v,onClose:S,onFocus:C,onMouseEnter:w,onMouseLeave:A,open:E,resumeHideDuration:D,slots:O={},slotProps:T={},TransitionComponent:I,transitionDuration:N=o,TransitionProps:{onEnter:$,onExited:R,...F}={},...j}=r,z={...r,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:I,transitionDuration:N},L=pye(z),{getRootProps:q,onClickAway:V}=rye(z),[U,K]=_.useState(!0),B=re=>{K(!0),R&&R(re)},W=(re,oe)=>{K(!1),$&&$(re,oe)},X={slots:{transition:I,...O},slotProps:{content:g,clickAwayListener:h,transition:F,...T}},[H,Y]=lt("root",{ref:n,className:[L.root,f],elementType:mye,getSlotProps:q,externalForwardedProps:{...X,...j},ownerState:z}),[J,{ownerState:ne,...ee}]=lt("clickAwayListener",{elementType:oye,externalForwardedProps:X,getSlotProps:re=>({onClickAway:(...oe)=>{const fe=oe[0];re.onClickAway?.(...oe),!fe?.defaultMuiPrevented&&V(...oe)}}),ownerState:z}),[se,ue]=lt("content",{elementType:fye,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:b,action:s},ownerState:z}),[te,Z]=lt("transition",{elementType:Wy,externalForwardedProps:X,getSlotProps:re=>({onEnter:(...oe)=>{re.onEnter?.(...oe),W(...oe)},onExited:(...oe)=>{re.onExited?.(...oe),B(...oe)}}),additionalProps:{appear:!0,in:E,timeout:N,direction:a==="top"?"down":"up"},ownerState:z});return!E&&U?null:m.jsx(J,{...ee,...O.clickAwayListener&&{ownerState:ne},children:m.jsx(H,{...Y,children:m.jsx(te,{...Z,children:u||m.jsx(se,{...ue})})})})}),bX=_.createContext({show:()=>{}});let gye=0;const yye=e=>{const[t,n]=_.useState([]),r=_.useCallback(o=>{n(s=>[...s,{...o,autoHideDuration:o.autoHideDuration??6e3,notificationId:gye++}])},[]),i=o=>{n(s=>s.filter(a=>a.notificationId!==o))};return m.jsxs(bX.Provider,{value:{show:r},children:[e.children,t.map(o=>m.jsx(PO,{open:!0,autoHideDuration:o.autoHideDuration,onClose:()=>i(o.notificationId),children:m.jsx(vn,{severity:o.severity,variant:"filled",sx:{minWidth:"300px"},children:o.message})},o.notificationId))]})};function fo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bye=typeof Symbol=="function"&&Symbol.observable||"@@observable",BN=bye,E7=()=>Math.random().toString(36).substring(7).split("").join("."),vye={INIT:`@@redux/INIT${E7()}`,REPLACE:`@@redux/REPLACE${E7()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${E7()}`},$4=vye;function jO(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vX(e,t,n){if(typeof e!="function")throw new Error(fo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(fo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(fo(1));return n(vX)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((v,S)=>{s.set(S,v)}))}function u(){if(l)throw new Error(fo(3));return i}function f(v){if(typeof v!="function")throw new Error(fo(4));if(l)throw new Error(fo(5));let S=!0;c();const C=a++;return s.set(C,v),function(){if(S){if(l)throw new Error(fo(6));S=!1,c(),s.delete(C),o=null}}}function h(v){if(!jO(v))throw new Error(fo(7));if(typeof v.type>"u")throw new Error(fo(8));if(typeof v.type!="string")throw new Error(fo(17));if(l)throw new Error(fo(9));try{l=!0,i=r(i,v)}finally{l=!1}return(o=s).forEach(C=>{C()}),v}function g(v){if(typeof v!="function")throw new Error(fo(10));r=v,h({type:$4.REPLACE})}function y(){const v=f;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(fo(11));function C(){const A=S;A.next&&A.next(u())}return C(),{unsubscribe:v(C)}},[BN](){return this}}}return h({type:$4.INIT}),{dispatch:h,subscribe:f,getState:u,replaceReducer:g,[BN]:y}}function xye(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:$4.INIT})>"u")throw new Error(fo(12));if(typeof n(void 0,{type:$4.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(fo(13))})}function Sye(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{xye(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const c={};for(let u=0;u<r.length;u++){const f=r[u],h=n[f],g=s[f],y=h(g,a);if(typeof y>"u")throw a&&a.type,new Error(fo(14));c[f]=y,l=l||y!==g}return l=l||r.length!==Object.keys(s).length,l?c:s}}function L4(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function wye(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(fo(15))};const s={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},a=e.map(l=>l(s));return o=L4(...a)(i.dispatch),{...i,dispatch:o}}}function Cye(e){return jO(e)&&"type"in e&&typeof e.type=="string"}var xX=Symbol.for("immer-nothing"),zN=Symbol.for("immer-draftable"),Uo=Symbol.for("immer-state");function Ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Is=Object,om=Is.getPrototypeOf,N4="constructor",XS="prototype",Ck="configurable",F4="enumerable",$5="writable",qy="value",yu=e=>!!e&&!!e[Uo];function nl(e){return e?SX(e)||JS(e)||!!e[zN]||!!e[N4]?.[zN]||QS(e)||ew(e):!1}var Eye=Is[XS][N4].toString(),HN=new WeakMap;function SX(e){if(!e||!$O(e))return!1;const t=om(e);if(t===null||t===Is[XS])return!0;const n=Is.hasOwnProperty.call(t,N4)&&t[N4];if(n===Object)return!0;if(!u0(n))return!1;let r=HN.get(n);return r===void 0&&(r=Function.toString.call(n),HN.set(n,r)),r===Eye}function ZS(e,t,n=!0){gb(e)===0?(n?Reflect.ownKeys(e):Is.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function gb(e){const t=e[Uo];return t?t.type_:JS(e)?1:QS(e)?2:ew(e)?3:0}var UN=(e,t,n=gb(e))=>n===2?e.has(t):Is[XS].hasOwnProperty.call(e,t),Ek=(e,t,n=gb(e))=>n===2?e.get(t):e[t],B4=(e,t,n,r=gb(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Aye(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var JS=Array.isArray,QS=e=>e instanceof Map,ew=e=>e instanceof Set,$O=e=>typeof e=="object",u0=e=>typeof e=="function",A7=e=>typeof e=="boolean";function kye(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var eu=e=>e.copy_||e.base_,LO=e=>e.modified_?e.copy_:e.base_;function Ak(e,t){if(QS(e))return new Map(e);if(ew(e))return new Set(e);if(JS(e))return Array[XS].slice.call(e);const n=SX(e);if(t===!0||t==="class_only"&&!n){const r=Is.getOwnPropertyDescriptors(e);delete r[Uo];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],a=r[s];a[$5]===!1&&(a[$5]=!0,a[Ck]=!0),(a.get||a.set)&&(r[s]={[Ck]:!0,[$5]:!0,[F4]:a[F4],[qy]:e[s]})}return Is.create(om(e),r)}else{const r=om(e);if(r!==null&&n)return{...e};const i=Is.create(r);return Is.assign(i,e)}}function NO(e,t=!1){return tw(e)||yu(e)||!nl(e)||(gb(e)>1&&Is.defineProperties(e,{set:kx,add:kx,clear:kx,delete:kx}),Is.freeze(e),t&&ZS(e,(n,r)=>{NO(r,!0)},!1)),e}function _ye(){Ba(2)}var kx={[qy]:_ye};function tw(e){return e===null||!$O(e)?!0:Is.isFrozen(e)}var z4="MapSet",kk="Patches",VN="ArrayMethods",wX={};function Rh(e){const t=wX[e];return t||Ba(0,e),t}var WN=e=>!!wX[e],Gy,CX=()=>Gy,Dye=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:WN(z4)?Rh(z4):void 0,arrayMethodsPlugin_:WN(VN)?Rh(VN):void 0});function qN(e,t){t&&(e.patchPlugin_=Rh(kk),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _k(e){Dk(e),e.drafts_.forEach(Oye),e.drafts_=null}function Dk(e){e===Gy&&(Gy=e.parent_)}var GN=e=>Gy=Dye(Gy,e);function Oye(e){const t=e[Uo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function KN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Uo].modified_&&(_k(t),Ba(4)),nl(e)&&(e=YN(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Uo].base_,e,t)}else e=YN(t,n);return Tye(t,e,!0),_k(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xX?e:void 0}function YN(e,t){if(tw(t))return t;const n=t[Uo];if(!n)return H4(t,e.handledSet_,e);if(!nw(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);kX(n,e)}return n.copy_}function Tye(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&NO(t,n)}function EX(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var nw=(e,t)=>e.scope_===t,Mye=[];function AX(e,t,n,r){const i=eu(e),o=e.type_;if(r!==void 0&&Ek(i,r,o)===t){B4(i,r,n,o);return}if(!e.draftLocations_){const a=e.draftLocations_=new Map;ZS(i,(l,c)=>{if(yu(c)){const u=a.get(c)||[];u.push(l),a.set(c,u)}})}const s=e.draftLocations_.get(t)??Mye;for(const a of s)B4(i,a,n,o)}function Rye(e,t,n){e.callbacks_.push(function(i){const o=t;if(!o||!nw(o,i))return;i.mapSetPlugin_?.fixSetContents(o);const s=LO(o);AX(e,o.draft_??o,s,n),kX(o,i)})}function kX(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}EX(e)}}function Iye(e,t,n){const{scope_:r}=e;if(yu(n)){const i=n[Uo];nw(i,r)&&i.callbacks_.push(function(){L5(e);const s=LO(i);AX(e,n,s,t)})}else nl(n)&&e.callbacks_.push(function(){const o=eu(e);e.type_===3?o.has(n)&&H4(n,r.handledSet_,r):Ek(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&H4(Ek(e.copy_,t,e.type_),r.handledSet_,r)})}function H4(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||yu(e)||t.has(e)||!nl(e)||tw(e)||(t.add(e),ZS(e,(r,i)=>{if(yu(i)){const o=i[Uo];if(nw(o,n)){const s=LO(o);B4(e,r,s,e.type_),EX(o)}}else nl(i)&&H4(i,t,n)})),e}function Pye(e,t){const n=JS(e),r={type_:n?1:0,scope_:t?t.scope_:CX(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,o=U4;n&&(i=[r],o=Ky);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,[a,r]}var U4={get(e,t){if(t===Uo)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=eu(e);if(!UN(i,t,e.type_))return jye(e,i,t);const o=i[t];if(e.finalized_||!nl(o)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&kye(t))return o;if(o===k7(e.base_,t)){L5(e);const s=e.type_===1?+t:t,a=Tk(e.scope_,o,e,s);return e.copy_[s]=a}return o},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,n){const r=_X(eu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=k7(eu(e),t),o=i?.[Uo];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Aye(n,i)&&(n!==void 0||UN(e.base_,t,e.type_)))return!0;L5(e),Ok(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Iye(e,t,n)),!0},deleteProperty(e,t){return L5(e),k7(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ok(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=eu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[$5]:!0,[Ck]:e.type_!==1||t!=="length",[F4]:r[F4],[qy]:n[t]}},defineProperty(){Ba(11)},getPrototypeOf(e){return om(e.base_)},setPrototypeOf(){Ba(12)}},Ky={};for(let e in U4){let t=U4[e];Ky[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Ky.deleteProperty=function(e,t){return Ky.set.call(this,e,t,void 0)};Ky.set=function(e,t,n){return U4.set.call(this,e[0],t,n,e[0])};function k7(e,t){const n=e[Uo];return(n?eu(n):e)[t]}function jye(e,t,n){const r=_X(t,n);return r?qy in r?r[qy]:r.get?.call(e.draft_):void 0}function _X(e,t){if(!(t in e))return;let n=om(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=om(n)}}function Ok(e){e.modified_||(e.modified_=!0,e.parent_&&Ok(e.parent_))}function L5(e){e.copy_||(e.assigned_=new Map,e.copy_=Ak(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var $ye=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(u0(t)&&!u0(n)){const o=n;n=t;const s=this;return function(l=o,...c){return s.produce(l,u=>n.call(this,u,...c))}}u0(n)||Ba(6),r!==void 0&&!u0(r)&&Ba(7);let i;if(nl(t)){const o=GN(this),s=Tk(o,t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?_k(o):Dk(o)}return qN(o,r),KN(i,o)}else if(!t||!$O(t)){if(i=n(t),i===void 0&&(i=t),i===xX&&(i=void 0),this.autoFreeze_&&NO(i,!0),r){const o=[],s=[];Rh(kk).generateReplacementPatches_(t,i,{patches_:o,inversePatches_:s}),r(o,s)}return i}else Ba(1,t)},this.produceWithPatches=(t,n)=>{if(u0(t))return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},A7(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),A7(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),A7(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){nl(e)||Ba(8),yu(e)&&(e=Lye(e));const t=GN(this),n=Tk(t,e,void 0);return n[Uo].isManual_=!0,Dk(t),n}finishDraft(e,t){const n=e&&e[Uo];(!n||!n.isManual_)&&Ba(9);const{scope_:r}=n;return qN(r,t),KN(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Rh(kk).applyPatches_;return yu(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Tk(e,t,n,r){const[i,o]=QS(t)?Rh(z4).proxyMap_(t,n):ew(t)?Rh(z4).proxySet_(t,n):Pye(t,n);return(n?.scope_??CX()).drafts_.push(i),o.callbacks_=n?.callbacks_??[],o.key_=r,n&&r!==void 0?Rye(n,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),i}function Lye(e){return yu(e)||Ba(10,e),DX(e)}function DX(e){if(!nl(e)||tw(e))return e;const t=e[Uo];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ak(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ak(e,!0);return ZS(n,(i,o)=>{B4(n,i,DX(o))},r),t&&(t.finalized_=!1),n}var Nye=new $ye,OX=Nye.produce,V4=Symbol("NOT_FOUND");function Fye(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Bye(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function zye(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var XN=e=>Array.isArray(e)?e:[e];function Hye(e){const t=Array.isArray(e[0])?e[0]:e;return zye(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Uye(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function Vye(e){let t;return{get(n){return t&&e(t.key,n)?t.value:V4},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Wye(e,t){let n=[];function r(a){const l=n.findIndex(c=>t(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return V4}function i(a,l){r(a)===V4&&(n.unshift({key:a,value:l}),n.length>e&&n.pop())}function o(){return n}function s(){n=[]}return{get:r,put:i,getEntries:o,clear:s}}var qye=(e,t)=>e===t;function Gye(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}}function Kye(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=qye,maxSize:i=1,resultEqualityCheck:o}=n,s=Gye(r);let a=0;const l=i<=1?Vye(s):Wye(i,s);function c(){let u=l.get(arguments);if(u===V4){if(u=e.apply(null,arguments),a++,o){const h=l.getEntries().find(g=>o(g.value,u));h&&(u=h.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var Yye=class{constructor(e){this.value=e}deref(){return this.value}},Xye=typeof WeakRef<"u"?WeakRef:Yye,Zye=0,ZN=1;function _x(){return{s:Zye,v:void 0,o:null,p:null}}function TX(e,t={}){let n=_x();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let a=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f++){const g=arguments[f];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}else{let y=a.p;y===null&&(a.p=y=new Map);const b=y.get(g);b===void 0?(a=_x(),y.set(g,a)):a=b}}const c=a;let u;if(a.s===ZN)u=a.v;else if(u=e.apply(null,arguments),o++,r){const f=i?.deref?.()??i;f!=null&&r(f,u)&&(u=f,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new Xye(u):u}return c.s=ZN,c.v=u,u}return s.clearCache=()=>{n=_x(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function MX(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),Fye(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:g=TX,argsMemoizeOptions:y=[]}=u,b=XN(h),v=XN(y),S=Hye(i),C=f(function(){return o++,c.apply(null,arguments)},...b),w=g(function(){s++;const E=Uye(S,arguments);return a=C.apply(null,E),a},...v);return Object.assign(w,{resultFunc:c,memoizedResultFunc:C,dependencies:S,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:f,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var RX=MX(TX),Jye=Object.assign((e,t=RX)=>{Bye(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>Jye});function IX(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Qye=IX(),e2e=IX,t2e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?L4:L4.apply(null,arguments)},n2e=e=>e&&typeof e.match=="function";function oy(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(W4(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cye(r)&&r.type===e,n}var PX=class B1 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,B1.prototype)}static get[Symbol.species](){return B1}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new B1(...t[0].concat(this)):new B1(...t.concat(this))}};function JN(e){return nl(e)?OX(e,()=>{}):e}function r2e(e){return typeof e=="boolean"}var i2e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new PX;return n&&(r2e(n)?s.push(Qye):s.push(e2e(n.extraArgument))),s},o2e="RTK_autoBatch",QN=e=>t=>{setTimeout(t,e)},s2e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:QN(10):e.type==="callback"?e.queueNotification:QN(e.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const f=()=>i&&u(),h=r.subscribe(f);return a.add(u),()=>{h(),a.delete(u)}},dispatch(u){try{return i=!u?.meta?.[o2e],o=!i,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{i=!0}}})},a2e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new PX(e);return r&&i.push(s2e(typeof r=="object"?r:void 0)),i};function l2e(e){const t=i2e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(jO(n))a=Sye(n);else throw new Error(W4(1));let l;typeof r=="function"?l=r(t):l=t();let c=L4;i&&(c=t2e({trace:!1,...typeof i=="object"&&i}));const u=wye(...l),f=a2e(u);let h=typeof s=="function"?s(f):f();const g=c(...h);return vX(a,o,g)}function c2e(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(W4(28));if(a in t)throw new Error(W4(29));return t[a]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function u2e(e){return typeof e=="function"}function FO(e,t){let[n,r,i]=c2e(t),o;if(u2e(e))o=()=>JN(e());else{const a=JN(e);o=()=>a}function s(a=o(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,f)=>{if(f)if(yu(u)){const g=f(u,l);return g===void 0?u:g}else{if(nl(u))return OX(u,h=>f(h,l));{const h=f(u,l);if(h===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return u},a)}return s.getInitialState=o,s}var d2e=(e,t)=>n2e(e)?e.match(t):e(t);function f2e(...e){return t=>e.some(n=>d2e(n,t))}var h2e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",p2e=(e=21)=>{let t="",n=e;for(;n--;)t+=h2e[Math.random()*64|0];return t},m2e=["name","message","stack","code"],_7=class{constructor(e,t){this.payload=e,this.meta=t}_type},eF=class{constructor(e,t){this.payload=e,this.meta=t}_type},g2e=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of m2e)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},tF="External signal was aborted",y2e=(()=>{function e(t,n,r){const i=oy(t+"/fulfilled",(l,c,u,f)=>({payload:l,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=oy(t+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=oy(t+"/rejected",(l,c,u,f,h)=>({payload:f,error:(r&&r.serializeError||g2e)(l||"Rejected"),meta:{...h||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,f,h)=>{const g=r?.idGenerator?r.idGenerator(l):p2e(),y=new AbortController;let b,v;function S(w){v=w,y.abort()}c&&(c.aborted?S(tF):c.addEventListener("abort",()=>S(tF),{once:!0}));const C=(async function(){let w;try{let E=r?.condition?.(l,{getState:f,extra:h});if(v2e(E)&&(E=await E),E===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const D=new Promise((O,T)=>{b=()=>{T({name:"AbortError",message:v||"Aborted"})},y.signal.addEventListener("abort",b,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:f,extra:h}))),w=await Promise.race([D,Promise.resolve(n(l,{dispatch:u,getState:f,extra:h,requestId:g,signal:y.signal,abort:S,rejectWithValue:(O,T)=>new _7(O,T),fulfillWithValue:(O,T)=>new eF(O,T)})).then(O=>{if(O instanceof _7)throw O;return O instanceof eF?i(O.payload,g,l,O.meta):i(O,g,l)})])}catch(E){w=E instanceof _7?s(null,g,l,E.payload,E.meta):s(E,g,l)}finally{b&&y.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&s.match(w)&&w.meta.condition||u(w),w})();return Object.assign(C,{abort:S,requestId:g,arg:l,unwrap(){return C.then(b2e)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:i,settled:f2e(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function b2e(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function v2e(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}function W4(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}async function x2e(){const e=await fetch(`api/matter/bridges?_s=${Date.now()}`);if(!e.ok){const t=await e.json().catch(()=>({error:"Failed to fetch bridges"}));throw new Error(t.error??`Failed to fetch bridges (${e.status})`)}return await e.json()}async function jX(e){const t=await fetch("api/matter/bridges",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to create bridge"}));throw new Error(n.error??`Failed to create bridge (${t.status})`)}return await t.json()}async function $X(e){const t=await fetch(`api/matter/bridges/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to update bridge"}));throw new Error(n.error??`Failed to update bridge (${t.status})`)}return await t.json()}async function S2e(e){await fetch(`api/matter/bridges/${e}`,{method:"DELETE"})}async function w2e(e){const t=await fetch(`api/matter/bridges/${e}/actions/factory-reset`,{method:"POST"});if(!t.ok){const n=await t.json().catch(()=>({error:"Factory reset failed"}));throw new Error(n.error??`Factory reset failed (${t.status})`)}return await t.json()}async function LX(e){return await fetch(`api/matter/bridges/${e}/actions/force-sync`,{method:"POST"}).then(t=>t.json())}async function C2e(e){const t=await fetch(`api/matter/bridges/${e}/actions/open-commissioning-window`,{method:"POST"});if(!t.ok){const n=await t.json().catch(()=>({error:"Failed to open commissioning window"}));throw new Error(n.error??"Failed to open commissioning window")}return t.json()}async function E2e(e){if(!(await fetch("api/matter/bridges/priorities",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:e})})).ok)throw new Error("Failed to update priorities")}async function NX(){return(await fetch("api/matter/bridges/actions/start-all",{method:"POST"})).json()}async function FX(){return(await fetch("api/matter/bridges/actions/stop-all",{method:"POST"})).json()}async function BX(){return(await fetch("api/matter/bridges/actions/restart-all",{method:"POST"})).json()}const zm=y2e.withTypes(),rw=RX.withTypes(),Bo=zm("bridges/load",x2e),zX=zm("bridges/create",jX),HX=zm("bridges/delete",S2e),UX=zm("bridges/update",$X),VX=zm("bridges/reset",w2e),WX=oy("bridges/setFromWebSocket"),qX=oy("bridges/updateFromWebSocket"),Hs=kde.withTypes(),Hm=Ode.withTypes(),GX=_.createContext({isConnected:!1,error:null});function A2e(){return _.useContext(GX)}function k2e({children:e}){const t=Hs(),[n,r]=_.useState(!1),[i,o]=_.useState(null),s=_.useRef(null),a=_.useRef(void 0),l=_.useCallback(u=>{switch(u.type){case"bridges_update":t(WX(u.data));break;case"bridge_update":t(qX(u.data));break;case"ping":s.current?.send(JSON.stringify({type:"pong"}));break}},[t]),c=_.useCallback(()=>{if(s.current?.readyState===WebSocket.OPEN)return;const u=window.location.protocol==="https:"?"wss:":"ws:",f=document.querySelector("base")?.href||window.location.origin,h=new URL(f),g=`${u}//${h.host}${h.pathname}api/ws`.replace(/\/+/g,"/").replace(":/","://");try{const y=new WebSocket(g);s.current=y,y.onopen=()=>{r(!0),o(null)},y.onmessage=b=>{try{const v=JSON.parse(b.data);l(v)}catch{console.warn("Invalid WebSocket message")}},y.onclose=()=>{r(!1),s.current=null,a.current=setTimeout(c,3e3)},y.onerror=()=>{o(new Error("WebSocket connection error")),y.close()}}catch(y){o(y instanceof Error?y:new Error("Failed to connect"))}},[l]);return _.useEffect(()=>(c(),()=>{a.current&&clearTimeout(a.current),s.current?.close()}),[c]),m.jsx(GX.Provider,{value:{isConnected:n,error:i},children:e})}const _2e=()=>{const e=Hs();return _.useEffect(()=>{e(Bo())},[e]),m.jsx(yY,{})},yb=_e(m.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"})),iw=_e(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}));function D2e(e){return Qe("MuiTypography",e)}const nF=tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),O2e={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},T2e=qge(),M2e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${ye(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return et(a,D2e,s)},R2e=me("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ye(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ge(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ye(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),rF={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ie=_.forwardRef(function(t,n){const{color:r,...i}=it({props:t,name:"MuiTypography"}),o=!O2e[r],s=T2e({...i,...o&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:g="body1",variantMapping:y=rF,...b}=s,v={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:g,variantMapping:y},S=c||(h?"p":y[g]||rF[g])||"span",C=M2e(v);return m.jsx(R2e,{as:S,ref:n,className:Te(C.root,l),...b,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...b.style}})});function I2e(e){return Qe("MuiAlertTitle",e)}tt("MuiAlertTitle",["root"]);const P2e=e=>{const{classes:t}=e;return et({root:["root"]},I2e,t)},j2e=me(ie,{name:"MuiAlertTitle",slot:"Root"})(Ge(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),q4=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAlertTitle"}),{className:i,...o}=r,s=r,a=P2e(s);return m.jsx(j2e,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:Te(a.root,i),...o})}),$2e=tt("MuiBox",["root"]),L2e=WS(),ce=tme({themeId:da,defaultTheme:L2e,defaultClassName:$2e.root,generateClassName:UY.generate});function N2e(e){return Qe("MuiButton",e)}const Vf=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),F2e=_.createContext({}),B2e=_.createContext(void 0),z2e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,loading:s,loadingPosition:a,classes:l}=e,c={root:["root",s&&"loading",o,`${o}${ye(t)}`,`size${ye(i)}`,`${o}Size${ye(i)}`,`color${ye(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${ye(a)}`],startIcon:["icon","startIcon",`iconSize${ye(i)}`],endIcon:["icon","endIcon",`iconSize${ye(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=et(c,N2e,l);return{...l,...u}},KX=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],H2e=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ye(n.color)}`],t[`size${ye(n.size)}`],t[`${n.variant}Size${ye(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Vf.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Vf.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Vf.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Fn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vf.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Vf.loading}`]:{color:"transparent"}}}]}})),U2e=me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...KX]})),V2e=me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ye(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...KX]})),W2e=me("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),iF=me("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),kt=_.forwardRef(function(t,n){const r=_.useContext(F2e),i=_.useContext(B2e),o=im(r,t),s=it({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:v=!1,id:S,loading:C=null,loadingIndicator:w,loadingPosition:A="center",size:E="medium",startIcon:D,type:O,variant:T="text",...I}=s,N=Ou(S),$=w??m.jsx(zr,{"aria-labelledby":N,color:"inherit",size:16}),R={...s,color:l,component:c,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:v,loading:C,loadingIndicator:$,loadingPosition:A,size:E,type:O,variant:T},F=z2e(R),j=(D||C&&A==="start")&&m.jsx(U2e,{className:F.startIcon,ownerState:R,children:D||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),z=(y||C&&A==="end")&&m.jsx(V2e,{className:F.endIcon,ownerState:R,children:y||m.jsx(iF,{className:F.loadingIconPlaceholder,ownerState:R})}),L=i||"",q=typeof C=="boolean"?m.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:C&&m.jsx(W2e,{className:F.loadingIndicator,ownerState:R,children:$})}):null;return m.jsxs(H2e,{ownerState:R,className:Te(r.className,F.root,u,L),component:c,disabled:f||C,focusRipple:!g,focusVisibleClassName:Te(F.focusVisible,b),ref:n,type:O,id:C?N:S,...I,classes:F,children:[j,A!=="end"&&q,a,A==="end"&&q,z]})});function q2e(e){return Qe("MuiCollapse",e)}tt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const G2e=e=>{const{orientation:t,classes:n}=e;return et({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},q2e,n)},K2e=me("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]}})(Ge(({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"}}]}))),Y2e=me("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),X2e=me("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fa=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:f,onEntered:h,onEntering:g,onExit:y,onExited:b,onExiting:v,orientation:S="vertical",slots:C={},slotProps:w={},style:A,timeout:E=aX.standard,TransitionComponent:D=Ta,...O}=r,T={...r,orientation:S,collapsedSize:a},I=G2e(T),N=ro(),$=Od(),R=_.useRef(null),F=_.useRef(),j=typeof a=="number"?`${a}px`:a,z=S==="horizontal",L=z?"width":"height",q=_.useRef(null),V=Tr(n,q),U=fe=>be=>{if(fe){const De=q.current;be===void 0?fe(De):fe(De,be)}},K=()=>R.current?R.current[z?"clientWidth":"clientHeight"]:0,B=U((fe,be)=>{R.current&&z&&(R.current.style.position="absolute"),fe.style[L]=j,f&&f(fe,be)}),W=U((fe,be)=>{const De=K();R.current&&z&&(R.current.style.position="");const{duration:Oe,easing:Ke}=Kd({style:A,timeout:E,easing:c},{mode:"enter"});if(E==="auto"){const xe=N.transitions.getAutoHeightDuration(De);fe.style.transitionDuration=`${xe}ms`,F.current=xe}else fe.style.transitionDuration=typeof Oe=="string"?Oe:`${Oe}ms`;fe.style[L]=`${De}px`,fe.style.transitionTimingFunction=Ke,g&&g(fe,be)}),X=U((fe,be)=>{fe.style[L]="auto",h&&h(fe,be)}),H=U(fe=>{fe.style[L]=`${K()}px`,y&&y(fe)}),Y=U(b),J=U(fe=>{const be=K(),{duration:De,easing:Oe}=Kd({style:A,timeout:E,easing:c},{mode:"exit"});if(E==="auto"){const Ke=N.transitions.getAutoHeightDuration(be);fe.style.transitionDuration=`${Ke}ms`,F.current=Ke}else fe.style.transitionDuration=typeof De=="string"?De:`${De}ms`;fe.style[L]=j,fe.style.transitionTimingFunction=Oe,v&&v(fe)}),ne=fe=>{E==="auto"&&$.start(F.current||0,fe),i&&i(q.current,fe)},ee={slots:C,slotProps:w,component:l},[se,ue]=lt("root",{ref:V,className:Te(I.root,s),elementType:K2e,externalForwardedProps:ee,ownerState:T,additionalProps:{style:{[z?"minWidth":"minHeight"]:j,...A}}}),[te,Z]=lt("wrapper",{ref:R,className:I.wrapper,elementType:Y2e,externalForwardedProps:ee,ownerState:T}),[re,oe]=lt("wrapperInner",{className:I.wrapperInner,elementType:X2e,externalForwardedProps:ee,ownerState:T});return m.jsx(D,{in:u,onEnter:B,onEntered:X,onEntering:W,onExit:H,onExited:Y,onExiting:J,addEndListener:ne,nodeRef:q,timeout:E==="auto"?null:E,...O,children:(fe,{ownerState:be,...De})=>{const Oe={...T,state:fe};return m.jsx(se,{...ue,className:Te(ue.className,{entered:I.entered,exited:!u&&j==="0px"&&I.hidden}[fe]),ownerState:Oe,...De,children:m.jsx(te,{...Z,ownerState:Oe,children:m.jsx(re,{...oe,ownerState:Oe,children:o})})})}})});fa&&(fa.muiSupportAuto=!0);const Xa=_.createContext({});function Z2e(e){return Qe("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const J2e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return et({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Z2e,t)},Q2e=me("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}}]}),bc=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,f=_.useMemo(()=>({dense:a}),[a]),h={...r,component:s,dense:a,disablePadding:l},g=J2e(h);return m.jsx(Xa.Provider,{value:f,children:m.jsxs(Q2e,{as:s,className:Te(g.root,o),ref:n,ownerState:h,...u,children:[c,i]})})});function ebe(e){return Qe("MuiListItem",e)}tt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tbe(e){return Qe("MuiListItemButton",e)}const d0=tt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nbe=(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]},rbe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,c=et({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},tbe,n);return{...n,...c}},ibe=me(ba,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nbe})(Ge(({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"}},[`&.${d0.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${d0.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${d0.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)}},[`&.${d0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${d0.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}}]}))),obe=_.forwardRef(function(t,n){const r=it({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:f,selected:h=!1,className:g,...y}=r,b=_.useContext(Xa),v=_.useMemo(()=>({dense:l||b.dense||!1,alignItems:i,disableGutters:c}),[i,b.dense,l,c]),S=_.useRef(null);Ho(()=>{o&&S.current&&S.current.focus()},[o]);const C={...r,alignItems:i,dense:v.dense,disableGutters:c,divider:u,selected:h},w=rbe(C),A=Tr(S,n);return m.jsx(Xa.Provider,{value:v,children:m.jsx(ibe,{ref:A,href:y.href||y.to,component:(y.href||y.to)&&s==="div"?"button":s,focusVisibleClassName:Te(w.focusVisible,f),ownerState:C,className:Te(w.root,g),...y,classes:w,children:a})})});function sbe(e){return Qe("MuiListItemSecondaryAction",e)}tt("MuiListItemSecondaryAction",["root","disableGutters"]);const abe=e=>{const{disableGutters:t,classes:n}=e;return et({root:["root",t&&"disableGutters"]},sbe,n)},lbe=me("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}}]}),BO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,disableGutters:s.disableGutters},l=abe(a);return m.jsx(lbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});BO.muiName="ListItemSecondaryAction";const cbe=(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]},ube=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=e;return et({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},ebe,n)},dbe=me("div",{name:"MuiListItem",slot:"Root",overridesResolver:cbe})(Ge(({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:{[`& > .${d0.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}}]}))),fbe=me("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),yf=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItem"}),{alignItems:i="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...h}={},dense:g=!1,disableGutters:y=!1,disablePadding:b=!1,divider:v=!1,secondaryAction:S,slotProps:C={},slots:w={},...A}=r,E=_.useContext(Xa),D=_.useMemo(()=>({dense:g||E.dense||!1,alignItems:i,disableGutters:y}),[i,E.dense,g,y]),O=_.useRef(null),T=_.Children.toArray(o),I=T.length&&iy(T[T.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:i,dense:D.dense,disableGutters:y,disablePadding:b,divider:v,hasSecondaryAction:I},$=ube(N),R=Tr(O,n),F={slots:w,slotProps:C},[j,z]=lt("secondaryAction",{elementType:BO,externalForwardedProps:F,ownerState:N,className:$.secondaryAction}),L=w.root||l.Root||dbe,q=C.root||c.root||{},V={className:Te($.root,q.className,s),...A};let U=a||"li";return I?(U=!V.component&&!a?"div":U,u==="li"&&(U==="li"?U="div":V.component==="li"&&(V.component="div")),m.jsx(Xa.Provider,{value:D,children:m.jsxs(fbe,{as:u,className:Te($.container,f),ref:R,ownerState:N,...h,children:[m.jsx(L,{...q,...!ic(L)&&{as:U,ownerState:{...N,...q.ownerState}},...V,children:T}),T.pop()]})})):m.jsx(Xa.Provider,{value:D,children:m.jsxs(L,{...q,as:U,ref:R,...!ic(L)&&{ownerState:{...N,...q.ownerState}},...V,children:[T,S&&m.jsx(j,{...z,children:S})]})})});function hbe(e){return Qe("MuiListItemIcon",e)}const oF=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),pbe=e=>{const{alignItems:t,classes:n}=e;return et({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hbe,n)},mbe=me("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ge(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ul=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemIcon"}),{className:i,...o}=r,s=_.useContext(Xa),a={...r,alignItems:s.alignItems},l=pbe(a);return m.jsx(mbe,{className:Te(l.root,i),ownerState:a,ref:n,...o})});function gbe(e){return Qe("MuiListItemText",e)}const y0=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ybe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return et({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},gbe,t)},bbe=me("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${y0.primary}`]:t.primary},{[`& .${y0.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,[`.${nF.root}:where(& .${y0.primary})`]:{display:"block"},[`.${nF.root}:where(& .${y0.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Va=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,slots:h={},slotProps:g={},...y}=r,{dense:b}=_.useContext(Xa);let v=l??i,S=u;const C={...r,disableTypography:s,inset:a,primary:!!v,secondary:!!S,dense:b},w=ybe(C),A={slots:h,slotProps:{primary:c,secondary:f,...g}},[E,D]=lt("root",{className:Te(w.root,o),elementType:bbe,externalForwardedProps:{...A,...y},ownerState:C,ref:n}),[O,T]=lt("primary",{className:w.primary,elementType:ie,externalForwardedProps:A,ownerState:C}),[I,N]=lt("secondary",{className:w.secondary,elementType:ie,externalForwardedProps:A,ownerState:C});return v!=null&&v.type!==ie&&!s&&(v=m.jsx(O,{variant:b?"body2":"body1",component:T?.variant?void 0:"span",...T,children:v})),S!=null&&S.type!==ie&&!s&&(S=m.jsx(I,{variant:"body2",color:"textSecondary",...N,children:S})),m.jsxs(E,{...D,children:[v,S]})}),zt=pge({createStyledComponent:me("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>it({props:e,name:"MuiStack"})});var os="top",va="bottom",xa="right",ss="left",zO="auto",bb=[os,va,xa,ss],sm="start",Yy="end",vbe="clippingParents",YX="viewport",u1="popper",xbe="reference",sF=bb.reduce(function(e,t){return e.concat([t+"-"+sm,t+"-"+Yy])},[]),XX=[].concat(bb,[zO]).reduce(function(e,t){return e.concat([t,t+"-"+sm,t+"-"+Yy])},[]),Sbe="beforeRead",wbe="read",Cbe="afterRead",Ebe="beforeMain",Abe="main",kbe="afterMain",_be="beforeWrite",Dbe="write",Obe="afterWrite",Tbe=[Sbe,wbe,Cbe,Ebe,Abe,kbe,_be,Dbe,Obe];function dc(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ih(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function ha(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HO(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mbe(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];!ha(o)||!dc(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 Rbe(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},{});!ha(i)||!dc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Ibe={name:"applyStyles",enabled:!0,phase:"write",fn:Mbe,effect:Rbe,requires:["computeStyles"]};function oc(e){return e.split("-")[0]}var Eh=Math.max,G4=Math.min,am=Math.round;function Mk(){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(Mk())}function lm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ha(e)&&(i=e.offsetWidth>0&&am(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&am(r.height)/e.offsetHeight||1);var s=Ih(e)?Ns(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,f=r.width/i,h=r.height/o;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function UO(e){var t=lm(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 JX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HO(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 Ns(e).getComputedStyle(e)}function Pbe(e){return["table","td","th"].indexOf(dc(e))>=0}function bf(e){return((Ih(e)?e.ownerDocument:e.document)||window.document).documentElement}function ow(e){return dc(e)==="html"?e:e.assignedSlot||e.parentNode||(HO(e)?e.host:null)||bf(e)}function aF(e){return!ha(e)||bu(e).position==="fixed"?null:e.offsetParent}function jbe(e){var t=/firefox/i.test(Mk()),n=/Trident/i.test(Mk());if(n&&ha(e)){var r=bu(e);if(r.position==="fixed")return null}var i=ow(e);for(HO(i)&&(i=i.host);ha(i)&&["html","body"].indexOf(dc(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 vb(e){for(var t=Ns(e),n=aF(e);n&&Pbe(n)&&bu(n).position==="static";)n=aF(n);return n&&(dc(n)==="html"||dc(n)==="body"&&bu(n).position==="static")?t:n||jbe(e)||t}function VO(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sy(e,t,n){return Eh(e,G4(t,n))}function $be(e,t,n){var r=sy(e,t,n);return r>n?n:r}function QX(){return{top:0,right:0,bottom:0,left:0}}function eZ(e){return Object.assign({},QX(),e)}function tZ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Lbe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,eZ(typeof t!="number"?t:tZ(t,bb))};function Nbe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=oc(n.placement),l=VO(a),c=[ss,xa].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var f=Lbe(i.padding,n),h=UO(o),g=l==="y"?os:ss,y=l==="y"?va:xa,b=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],v=s[l]-n.rects.reference[l],S=vb(o),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,w=b/2-v/2,A=f[g],E=C-h[u]-f[y],D=C/2-h[u]/2+w,O=sy(A,D,E),T=l;n.modifiersData[r]=(t={},t[T]=O,t.centerOffset=O-D,t)}}function Fbe(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)||JX(t.elements.popper,i)&&(t.elements.arrow=i))}const Bbe={name:"arrow",enabled:!0,phase:"main",fn:Nbe,effect:Fbe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cm(e){return e.split("-")[1]}var zbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hbe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:am(n*i)/i||0,y:am(r*i)/i||0}}function lF(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,f=e.isFixed,h=s.x,g=h===void 0?0:h,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=ss,A=os,E=window;if(c){var D=vb(n),O="clientHeight",T="clientWidth";if(D===Ns(n)&&(D=bf(n),bu(D).position!=="static"&&a==="absolute"&&(O="scrollHeight",T="scrollWidth")),D=D,i===os||(i===ss||i===xa)&&o===Yy){A=va;var I=f&&D===E&&E.visualViewport?E.visualViewport.height:D[O];b-=I-r.height,b*=l?1:-1}if(i===ss||(i===os||i===va)&&o===Yy){w=xa;var N=f&&D===E&&E.visualViewport?E.visualViewport.width:D[T];g-=N-r.width,g*=l?1:-1}}var $=Object.assign({position:a},c&&zbe),R=u===!0?Hbe({x:g,y:b},Ns(n)):{x:g,y:b};if(g=R.x,b=R.y,l){var F;return Object.assign({},$,(F={},F[A]=C?"0":"",F[w]=S?"0":"",F.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",F))}return Object.assign({},$,(t={},t[A]=C?b+"px":"",t[w]=S?g+"px":"",t.transform="",t))}function Ube(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:oc(t.placement),variation:cm(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,lF(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,lF(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 Vbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ube,data:{}};var Dx={passive:!0};function Wbe(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=Ns(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Dx)}),a&&l.addEventListener("resize",n.update,Dx),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Dx)}),a&&l.removeEventListener("resize",n.update,Dx)}}const qbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wbe,data:{}};var Gbe={left:"right",right:"left",bottom:"top",top:"bottom"};function N5(e){return e.replace(/left|right|bottom|top/g,function(t){return Gbe[t]})}var Kbe={start:"end",end:"start"};function cF(e){return e.replace(/start|end/g,function(t){return Kbe[t]})}function WO(e){var t=Ns(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qO(e){return lm(bf(e)).left+WO(e).scrollLeft}function Ybe(e,t){var n=Ns(e),r=bf(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+qO(e),y:l}}function Xbe(e){var t,n=bf(e),r=WO(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Eh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Eh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+qO(e),l=-r.scrollTop;return bu(i||n).direction==="rtl"&&(a+=Eh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function GO(e){var t=bu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nZ(e){return["html","body","#document"].indexOf(dc(e))>=0?e.ownerDocument.body:ha(e)&&GO(e)?e:nZ(ow(e))}function ay(e,t){var n;t===void 0&&(t=[]);var r=nZ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ns(r),s=i?[o].concat(o.visualViewport||[],GO(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(ay(ow(s)))}function Rk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zbe(e,t){var n=lm(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 uF(e,t,n){return t===YX?Rk(Ybe(e,n)):Ih(t)?Zbe(t,n):Rk(Xbe(bf(e)))}function Jbe(e){var t=ay(ow(e)),n=["absolute","fixed"].indexOf(bu(e).position)>=0,r=n&&ha(e)?vb(e):e;return Ih(r)?t.filter(function(i){return Ih(i)&&JX(i,r)&&dc(i)!=="body"}):[]}function Qbe(e,t,n,r){var i=t==="clippingParents"?Jbe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=uF(e,c,r);return l.top=Eh(u.top,l.top),l.right=G4(u.right,l.right),l.bottom=G4(u.bottom,l.bottom),l.left=Eh(u.left,l.left),l},uF(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 rZ(e){var t=e.reference,n=e.element,r=e.placement,i=r?oc(r):null,o=r?cm(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case os:l={x:s,y:t.y-n.height};break;case va:l={x:s,y:t.y+t.height};break;case xa:l={x:t.x+t.width,y:a};break;case ss:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?VO(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case sm:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Yy:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Xy(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?vbe:a,c=n.rootBoundary,u=c===void 0?YX:c,f=n.elementContext,h=f===void 0?u1:f,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,v=b===void 0?0:b,S=eZ(typeof v!="number"?v:tZ(v,bb)),C=h===u1?xbe:u1,w=e.rects.popper,A=e.elements[y?C:h],E=Qbe(Ih(A)?A:A.contextElement||bf(e.elements.popper),l,u,s),D=lm(e.elements.reference),O=rZ({reference:D,element:w,placement:i}),T=Rk(Object.assign({},w,O)),I=h===u1?T:D,N={top:E.top-I.top+S.top,bottom:I.bottom-E.bottom+S.bottom,left:E.left-I.left+S.left,right:I.right-E.right+S.right},$=e.modifiersData.offset;if(h===u1&&$){var R=$[i];Object.keys(N).forEach(function(F){var j=[xa,va].indexOf(F)>=0?1:-1,z=[os,va].indexOf(F)>=0?"y":"x";N[F]+=R[z]*j})}return N}function eve(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?XX:l,u=cm(r),f=u?a?sF:sF.filter(function(y){return cm(y)===u}):bb,h=f.filter(function(y){return c.indexOf(y)>=0});h.length===0&&(h=f);var g=h.reduce(function(y,b){return y[b]=Xy(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[oc(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function tve(e){if(oc(e)===zO)return[];var t=N5(e);return[cF(e),t,cF(t)]}function nve(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,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,v=t.options.placement,S=oc(v),C=S===v,w=l||(C||!y?[N5(v)]:tve(v)),A=[v].concat(w).reduce(function(H,Y){return H.concat(oc(Y)===zO?eve(t,{placement:Y,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:b}):Y)},[]),E=t.rects.reference,D=t.rects.popper,O=new Map,T=!0,I=A[0],N=0;N<A.length;N++){var $=A[N],R=oc($),F=cm($)===sm,j=[os,va].indexOf(R)>=0,z=j?"width":"height",L=Xy(t,{placement:$,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),q=j?F?xa:ss:F?va:os;E[z]>D[z]&&(q=N5(q));var V=N5(q),U=[];if(o&&U.push(L[R]<=0),a&&U.push(L[q]<=0,L[V]<=0),U.every(function(H){return H})){I=$,T=!1;break}O.set($,U)}if(T)for(var K=y?3:1,B=function(Y){var J=A.find(function(ne){var ee=O.get(ne);if(ee)return ee.slice(0,Y).every(function(se){return se})});if(J)return I=J,"break"},W=K;W>0;W--){var X=B(W);if(X==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const rve={name:"flip",enabled:!0,phase:"main",fn:nve,requiresIfExists:["offset"],data:{_skip:!1}};function dF(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 fF(e){return[os,xa,va,ss].some(function(t){return e[t]>=0})}function ive(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Xy(t,{elementContext:"reference"}),a=Xy(t,{altBoundary:!0}),l=dF(s,r),c=dF(a,i,o),u=fF(l),f=fF(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const ove={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ive};function sve(e,t,n){var r=oc(e),i=[ss,os].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,[ss,xa].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function ave(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=XX.reduce(function(u,f){return u[f]=sve(f,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 lve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ave};function cve(e){var t=e.state,n=e.name;t.modifiersData[n]=rZ({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const uve={name:"popperOffsets",enabled:!0,phase:"read",fn:cve,data:{}};function dve(e){return e==="x"?"y":"x"}function fve(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,f=n.padding,h=n.tether,g=h===void 0?!0:h,y=n.tetherOffset,b=y===void 0?0:y,v=Xy(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),S=oc(t.placement),C=cm(t.placement),w=!C,A=VO(S),E=dve(A),D=t.modifiersData.popperOffsets,O=t.rects.reference,T=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(D){if(o){var F,j=A==="y"?os:ss,z=A==="y"?va:xa,L=A==="y"?"height":"width",q=D[A],V=q+v[j],U=q-v[z],K=g?-T[L]/2:0,B=C===sm?O[L]:T[L],W=C===sm?-T[L]:-O[L],X=t.elements.arrow,H=g&&X?UO(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:QX(),J=Y[j],ne=Y[z],ee=sy(0,O[L],H[L]),se=w?O[L]/2-K-ee-J-N.mainAxis:B-ee-J-N.mainAxis,ue=w?-O[L]/2+K+ee+ne+N.mainAxis:W+ee+ne+N.mainAxis,te=t.elements.arrow&&vb(t.elements.arrow),Z=te?A==="y"?te.clientTop||0:te.clientLeft||0:0,re=(F=$?.[A])!=null?F:0,oe=q+se-re-Z,fe=q+ue-re,be=sy(g?G4(V,oe):V,q,g?Eh(U,fe):U);D[A]=be,R[A]=be-q}if(a){var De,Oe=A==="x"?os:ss,Ke=A==="x"?va:xa,xe=D[E],Le=E==="y"?"height":"width",Me=xe+v[Oe],ht=xe-v[Ke],mt=[os,ss].indexOf(S)!==-1,ze=(De=$?.[E])!=null?De:0,Pe=mt?Me:xe-O[Le]-T[Le]-ze+N.altAxis,He=mt?xe+O[Le]+T[Le]-ze-N.altAxis:ht,Je=g&&mt?$be(Pe,xe,He):sy(g?Pe:Me,xe,g?He:ht);D[E]=Je,R[E]=Je-xe}t.modifiersData[r]=R}}const hve={name:"preventOverflow",enabled:!0,phase:"main",fn:fve,requiresIfExists:["offset"]};function pve(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mve(e){return e===Ns(e)||!ha(e)?WO(e):pve(e)}function gve(e){var t=e.getBoundingClientRect(),n=am(t.width)/e.offsetWidth||1,r=am(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yve(e,t,n){n===void 0&&(n=!1);var r=ha(t),i=ha(t)&&gve(t),o=bf(t),s=lm(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((dc(t)!=="body"||GO(o))&&(a=mve(t)),ha(t)?(l=lm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=qO(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function bve(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 vve(e){var t=bve(e);return Tbe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function xve(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Sve(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 hF={placement:"bottom",modifiers:[],strategy:"absolute"};function pF(){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 wve(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?hF:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hF,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],h=!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:Ih(a)?ay(a):a.contextElement?ay(a.contextElement):[],popper:ay(l)};var w=vve(Sve([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(A){return A.enabled}),y(),g.update()},forceUpdate:function(){if(!h){var S=u.elements,C=S.reference,w=S.popper;if(pF(C,w)){u.rects={reference:yve(C,vb(w),u.options.strategy==="fixed"),popper:UO(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var A=0;A<u.orderedModifiers.length;A++){if(u.reset===!0){u.reset=!1,A=-1;continue}var E=u.orderedModifiers[A],D=E.fn,O=E.options,T=O===void 0?{}:O,I=E.name;typeof D=="function"&&(u=D({state:u,options:T,name:I,instance:g})||u)}}}},update:xve(function(){return new Promise(function(v){g.forceUpdate(),v(u)})}),destroy:function(){b(),h=!0}};if(!pF(a,l))return g;g.setOptions(c).then(function(v){!h&&c.onFirstUpdate&&c.onFirstUpdate(v)});function y(){u.orderedModifiers.forEach(function(v){var S=v.name,C=v.options,w=C===void 0?{}:C,A=v.effect;if(typeof A=="function"){var E=A({state:u,name:S,instance:g,options:w}),D=function(){};f.push(E||D)}})}function b(){f.forEach(function(v){return v()}),f=[]}return g}}var Cve=[qbe,uve,Vbe,Ibe,lve,rve,hve,Bbe,ove],Eve=wve({defaultModifiers:Cve});function Yr(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=e,s=i?{}:R4(n,r),{props:a,internalRef:l}=pX({...o,externalSlotProps:s}),c=Tr(l,s?.ref,e.additionalProps?.ref);return hX(t,{...a,ref:c},r)}function Ave(e){return typeof e=="function"?e():e}const iZ=_.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,a]=_.useState(null),l=Tr(_.isValidElement(r)?gf(r):null,n);if(Ho(()=>{o||a(Ave(i)||document.body)},[i,o]),Ho(()=>{if(s&&!o)return gk(n,s),()=>{gk(n,null)}},[n,s,o]),o){if(_.isValidElement(r)){const c={ref:l};return _.cloneElement(r,c)}return r}return s&&Dd.createPortal(r,s)});function kve(e){return Qe("MuiPopper",e)}tt("MuiPopper",["root"]);function _ve(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 Ik(e){return typeof e=="function"?e():e}function Dve(e){return e.nodeType!==void 0}const Ove=e=>{const{classes:t}=e;return et({root:["root"]},kve,t)},Tve={},Mve=_.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:f,slotProps:h={},slots:g={},TransitionProps:y,ownerState:b,...v}=t,S=_.useRef(null),C=Tr(S,n),w=_.useRef(null),A=Tr(w,f),E=_.useRef(A);Ho(()=>{E.current=A},[A]),_.useImperativeHandle(f,()=>w.current,[]);const D=_ve(c,o),[O,T]=_.useState(D),[I,N]=_.useState(Ik(r));_.useEffect(()=>{w.current&&w.current.forceUpdate()}),_.useEffect(()=>{r&&N(Ik(r))},[r]),Ho(()=>{if(!I||!l)return;const z=V=>{T(V.placement)};let L=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{z(V)}}];a!=null&&(L=L.concat(a)),u&&u.modifiers!=null&&(L=L.concat(u.modifiers));const q=Eve(I,S.current,{placement:D,...u,modifiers:L});return E.current(q),()=>{q.destroy(),E.current(null)}},[I,s,a,l,u,D]);const $={placement:O};y!==null&&($.TransitionProps=y);const R=Ove(t),F=g.root??"div",j=Yr({elementType:F,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:R.root});return m.jsx(F,{...j,children:typeof i=="function"?i($):i})}),Rve=_.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:f="bottom",popperOptions:h=Tve,popperRef:g,style:y,transition:b=!1,slotProps:v={},slots:S={},...C}=t,[w,A]=_.useState(!0),E=()=>{A(!1)},D=()=>{A(!0)};if(!l&&!u&&(!b||w))return null;let O;if(o)O=o;else if(r){const N=Ik(r);O=N&&Dve(N)?Di(N).body:Di(null).body}const T=!u&&l&&(!b||w)?"none":void 0,I=b?{in:u,onEnter:E,onExited:D}:void 0;return m.jsx(iZ,{disablePortal:a,container:O,children:m.jsx(Mve,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:b?!w:u,placement:f,popperOptions:h,popperRef:g,slotProps:v,slots:S,...C,style:{position:"fixed",top:0,left:0,display:T,...y},TransitionProps:I,children:i})})}),Ive=me(Rve,{name:"MuiPopper",slot:"Root"})({}),sw=_.forwardRef(function(t,n){const r=mf(),i=it({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,slots:C,slotProps:w,...A}=i,E=C?.root??a?.Root,D={anchorEl:o,container:c,disablePortal:u,keepMounted:f,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:S,...A};return m.jsx(Ive,{as:s,direction:r?"rtl":"ltr",slots:{root:E},slotProps:w??l,...D,ref:n})});function Pve(e){return Qe("MuiTooltip",e)}const si=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function jve(e){return Math.round(e*1e5)/1e5}const $ve=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${ye(o.split("-")[0])}`],arrow:["arrow"]};return et(s,Pve,t)},Lve=me(sw,{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]}})(Ge(({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"] .${si.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${si.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${si.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${si.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Nve=me("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${ye(n.placement.split("-")[0])}`]]}})(Ge(({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,[`.${si.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${si.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${si.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${si.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:`${jve(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${si.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${si.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${si.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Fve=me("span",{name:"MuiTooltip",slot:"Arrow"})(Ge(({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 Ox=!1;const mF=new YS;let d1={x:0,y:0};function Tx(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const cn=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:b=0,enterTouchDelay:v=700,followCursor:S=!1,id:C,leaveDelay:w=0,leaveTouchDelay:A=1500,onClose:E,onOpen:D,open:O,placement:T="bottom",PopperComponent:I,PopperProps:N={},slotProps:$={},slots:R={},title:F,TransitionComponent:j,TransitionProps:z,...L}=r,q=_.isValidElement(o)?o:m.jsx("span",{children:o}),V=ro(),U=mf(),[K,B]=_.useState(),[W,X]=_.useState(null),H=_.useRef(!1),Y=h||S,J=Od(),ne=Od(),ee=Od(),se=Od(),[ue,te]=Ya({controlled:O,default:!1,name:"Tooltip",state:"open"});let Z=ue;const re=Ou(C),oe=_.useRef(),fe=Ni(()=>{oe.current!==void 0&&(document.body.style.WebkitUserSelect=oe.current,oe.current=void 0),se.clear()});_.useEffect(()=>fe,[fe]);const be=St=>{mF.clear(),Ox=!0,te(!0),D&&!Z&&D(St)},De=Ni(St=>{mF.start(800+w,()=>{Ox=!1}),te(!1),E&&Z&&E(St),J.start(V.transitions.duration.shortest,()=>{H.current=!1})}),Oe=St=>{H.current&&St.type!=="touchstart"||(K&&K.removeAttribute("title"),ne.clear(),ee.clear(),y||Ox&&b?ne.start(Ox?b:y,()=>{be(St)}):be(St))},Ke=St=>{ne.clear(),ee.start(w,()=>{De(St)})},[,xe]=_.useState(!1),Le=St=>{Gd(St.target)||(xe(!1),Ke(St))},Me=St=>{K||B(St.currentTarget),Gd(St.target)&&(xe(!0),Oe(St))},ht=St=>{H.current=!0;const mn=q.props;mn.onTouchStart&&mn.onTouchStart(St)},mt=St=>{ht(St),ee.clear(),J.clear(),fe(),oe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.start(v,()=>{document.body.style.WebkitUserSelect=oe.current,Oe(St)})},ze=St=>{q.props.onTouchEnd&&q.props.onTouchEnd(St),fe(),ee.start(A,()=>{De(St)})};_.useEffect(()=>{if(!Z)return;function St(mn){mn.key==="Escape"&&De(mn)}return document.addEventListener("keydown",St),()=>{document.removeEventListener("keydown",St)}},[De,Z]);const Pe=Tr(gf(q),B,n);!F&&F!==0&&(Z=!1);const He=_.useRef(),Je=St=>{const mn=q.props;mn.onMouseMove&&mn.onMouseMove(St),d1={x:St.clientX,y:St.clientY},He.current&&He.current.update()},nt={},ot=typeof F=="string";c?(nt.title=!Z&&ot&&!f?F:null,nt["aria-describedby"]=Z?re:null):(nt["aria-label"]=ot?F:null,nt["aria-labelledby"]=Z&&!ot?re:null);const Xe={...nt,...L,...q.props,className:Te(L.className,q.props.className),onTouchStart:ht,ref:Pe,...S?{onMouseMove:Je}:{}},Lt={};g||(Xe.onTouchStart=mt,Xe.onTouchEnd=ze),f||(Xe.onMouseOver=Tx(Oe,Xe.onMouseOver),Xe.onMouseLeave=Tx(Ke,Xe.onMouseLeave),Y||(Lt.onMouseOver=Oe,Lt.onMouseLeave=Ke)),u||(Xe.onFocus=Tx(Me,Xe.onFocus),Xe.onBlur=Tx(Le,Xe.onBlur),Y||(Lt.onFocus=Me,Lt.onBlur=Le));const Nt={...r,isRtl:U,arrow:i,disableInteractive:Y,placement:T,PopperComponentProp:I,touch:H.current},Ot=typeof $.popper=="function"?$.popper(Nt):$.popper,Xn=_.useMemo(()=>{let St=[{name:"arrow",enabled:!!W,options:{element:W,padding:4}}];return N.popperOptions?.modifiers&&(St=St.concat(N.popperOptions.modifiers)),Ot?.popperOptions?.modifiers&&(St=St.concat(Ot.popperOptions.modifiers)),{...N.popperOptions,...Ot?.popperOptions,modifiers:St}},[W,N.popperOptions,Ot?.popperOptions]),rn=$ve(Nt),at=typeof $.transition=="function"?$.transition(Nt):$.transition,Ht={slots:{popper:a.Popper,transition:a.Transition??j,tooltip:a.Tooltip,arrow:a.Arrow,...R},slotProps:{arrow:$.arrow??l.arrow,popper:{...N,...Ot??l.popper},tooltip:$.tooltip??l.tooltip,transition:{...z,...at??l.transition}}},[Dn,Gn]=lt("popper",{elementType:Lve,externalForwardedProps:Ht,ownerState:Nt,className:Te(rn.popper,N?.className)}),[yr,Dt]=lt("transition",{elementType:Wy,externalForwardedProps:Ht,ownerState:Nt}),[jt,Jt]=lt("tooltip",{elementType:Nve,className:rn.tooltip,externalForwardedProps:Ht,ownerState:Nt}),[jn,on]=lt("arrow",{elementType:Fve,className:rn.arrow,externalForwardedProps:Ht,ownerState:Nt,ref:X});return m.jsxs(_.Fragment,{children:[_.cloneElement(q,Xe),m.jsx(Dn,{as:I??sw,placement:T,anchorEl:S?{getBoundingClientRect:()=>({top:d1.y,left:d1.x,right:d1.x,bottom:d1.y,width:0,height:0})}:K,popperRef:He,open:K?Z:!1,id:re,transition:!0,...Lt,...Gn,popperOptions:Xn,children:({TransitionProps:St})=>m.jsx(yr,{timeout:V.transitions.duration.shorter,...St,...Dt,children:m.jsxs(jt,{...Jt,children:[F,i?m.jsx(jn,{...on}):null]})})})]})}),Bve=_e(m.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"})),zve=me(ba,{name:"MuiBreadcrumbCollapsed"})(Ge(({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:Uy(e.palette.grey[200],.12)}:{backgroundColor:Uy(e.palette.grey[600],.12)}}}))),Hve=me(Bve)({width:24,height:16});function Uve(e){const{slots:t={},slotProps:n={},...r}=e,i=e;return m.jsx("li",{children:m.jsx(zve,{focusRipple:!0,...r,ownerState:i,children:m.jsx(Hve,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function Vve(e){return Qe("MuiBreadcrumbs",e)}const Wve=tt("MuiBreadcrumbs",["root","ol","li","separator"]),qve=e=>{const{classes:t}=e;return et({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Vve,t)},Gve=me(ie,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Wve.li}`]:t.li},t.root]})({}),Kve=me("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Yve=me("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Xve(e,t,n,r){return e.reduce((i,o,s)=>(s<e.length-1?i=i.concat(o,m.jsx(Yve,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${s}`)):i.push(o),i),[])}const Zve=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBreadcrumbs"}),{children:i,className:o,component:s="nav",slots:a={},slotProps:l={},expandText:c="Show path",itemsAfterCollapse:u=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:g="/",...y}=r,[b,v]=_.useState(!1),S={...r,component:s,expanded:b,expandText:c,itemsAfterCollapse:u,itemsBeforeCollapse:f,maxItems:h,separator:g},C=qve(S),w=Yr({elementType:a.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:S}),A=_.useRef(null),E=O=>{const T=()=>{v(!0);const I=A.current.querySelector("a[href],button,[tabindex]");I&&I.focus()};return f+u>=O.length?O:[...O.slice(0,f),m.jsx(Uve,{"aria-label":c,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:T},"ellipsis"),...O.slice(O.length-u,O.length)]},D=_.Children.toArray(i).filter(O=>_.isValidElement(O)).map((O,T)=>m.jsx("li",{className:C.li,children:O},`child-${T}`));return m.jsx(Gve,{ref:n,component:s,color:"textSecondary",className:Te(C.root,o),ownerState:S,...y,children:m.jsx(Kve,{className:C.ol,ref:A,ownerState:S,children:Xve(b||h&&D.length<=h?D:E(D),C.separator,g,S)})})});function Jve(e){return Qe("MuiLink",e)}const Qve=tt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),exe=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const o=Rl(e,`palette.${n}.main`)||Rl(e,`palette.${n}`)||t.color;return e.alpha(o,.4)}const r=Rl(e,`palette.${n}.main`,!1)||Rl(e,`palette.${n}`,!1)||t.color,i=Rl(e,`palette.${n}.mainChannel`)||Rl(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Hl(r,.4)},gF={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},txe=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ye(i)}`,n==="button"&&"button",r&&"focusVisible"]};return et(o,Jve,t)},nxe=me(ie,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ye(n.underline)}`],n.component==="button"&&t.button]}})(Ge(({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(Fn()).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"},[`&.${Qve.focusVisible}`]:{outline:"auto"}}}]}))),aw=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),i=ro(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:f="always",variant:h="inherit",sx:g,...y}=r,[b,v]=_.useState(!1),S=E=>{Gd(E.target)||v(!1),l&&l(E)},C=E=>{Gd(E.target)&&v(!0),c&&c(E)},w={...r,color:s,component:a,focusVisible:b,underline:f,variant:h},A=txe(w);return m.jsx(nxe,{color:s,className:Te(A.root,o),classes:u,component:a,onBlur:S,onFocus:C,ref:n,ownerState:w,variant:h,...y,sx:[...gF[s]===void 0?[{color:s}]:[],...Array.isArray(g)?g:[g]],style:{...y.style,...f==="always"&&s!=="inherit"&&!gF[s]&&{"--Link-underlineColor":exe({theme:i,ownerState:w})}}})}),rxe=({name:e,to:t})=>m.jsx(aw,{color:"inherit",underline:"hover",component:Du,to:t,children:e}),lw=({items:e})=>m.jsx(Zve,{separator:"›",children:e.map((t,n)=>m.jsx(rxe,{...t},n.toString()))}),fc=_e(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Ah=_e(m.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"})),Fs=_e(m.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"})),cw=_e(m.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"})),KO=_e(m.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"})),uw=_e(m.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),YO=_e(m.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"})),F5=_e(m.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"})),oZ=_e(m.jsx("path",{d:"M19 13H5v-2h14z"})),dw=_e(m.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"})),Yd=_e([m.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),m.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]),sZ=_e(m.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"})),ixe=_e(m.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 oxe(e){return Qe("MuiAvatar",e)}tt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const sxe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return et({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},oxe,t)},axe=me("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ge(({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]})}}}]}))),lxe=me("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cxe=me(ixe,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function uxe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=_.useState(!1);return _.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 rl=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:f,src:h,srcSet:g,variant:y="circular",...b}=r;let v=null;const S={...r,component:a,variant:y},C=uxe({...u,...typeof c.img=="function"?c.img(S):c.img,src:h,srcSet:g}),w=h||g,A=w&&C!=="error";S.colorDefault=!A,delete S.ownerState;const E=sxe(S),[D,O]=lt("root",{ref:n,className:Te(E.root,s),elementType:axe,externalForwardedProps:{slots:l,slotProps:c,component:a,...b},ownerState:S}),[T,I]=lt("img",{className:E.img,elementType:lxe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:i,src:h,srcSet:g,sizes:f},ownerState:S}),[N,$]=lt("fallback",{className:E.fallback,elementType:cxe,externalForwardedProps:{slots:l,slotProps:c},shouldForwardComponentProp:!0,ownerState:S});return A?v=m.jsx(T,{...I}):o||o===0?v=o:w&&i?v=i[0]:v=m.jsx(N,{...$}),m.jsx(D,{...O,children:v})});function dxe(e){return Qe("MuiCard",e)}tt("MuiCard",["root"]);const fxe=e=>{const{classes:t}=e;return et({root:["root"]},dxe,t)},hxe=me(Ur,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),tr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCard"}),{className:i,raised:o=!1,...s}=r,a={...r,raised:o},l=fxe(a);return m.jsx(hxe,{className:Te(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a,...s})});function pxe(e){return Qe("MuiCardContent",e)}tt("MuiCardContent",["root"]);const mxe=e=>{const{classes:t}=e;return et({root:["root"]},pxe,t)},gxe=me("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),gr=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiCardContent"}),{className:i,component:o="div",...s}=r,a={...r,component:o},l=mxe(a);return m.jsx(gxe,{as:o,className:Te(l.root,i),ownerState:a,ref:n,...s})}),yxe=_e(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function bxe(e){return Qe("MuiChip",e)}const En=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),vxe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ye(r)}`,`color${ye(i)}`,a&&"clickable",a&&`clickableColor${ye(i)}`,s&&"deletable",s&&`deletableColor${ye(i)}`,`${l}${ye(i)}`],label:["label",`label${ye(r)}`],avatar:["avatar",`avatar${ye(r)}`,`avatarColor${ye(i)}`],icon:["icon",`icon${ye(r)}`,`iconColor${ye(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ye(r)}`,`deleteIconColor${ye(i)}`,`deleteIcon${ye(l)}Color${ye(i)}`]};return et(c,bxe,t)},xxe=me("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${En.avatar}`]:t.avatar},{[`& .${En.avatar}`]:t[`avatar${ye(a)}`]},{[`& .${En.avatar}`]:t[`avatarColor${ye(r)}`]},{[`& .${En.icon}`]:t.icon},{[`& .${En.icon}`]:t[`icon${ye(a)}`]},{[`& .${En.icon}`]:t[`iconColor${ye(i)}`]},{[`& .${En.deleteIcon}`]:t.deleteIcon},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(a)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIconColor${ye(r)}`]},{[`& .${En.deleteIcon}`]:t[`deleteIcon${ye(l)}Color${ye(r)}`]},t.root,t[`size${ye(a)}`],t[`color${ye(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${ye(r)}`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ye(r)}`],t[l],t[`${l}${ye(r)}`]]}})(Ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${En.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${En.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${En.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${En.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${En.icon}`]:{marginLeft:5,marginRight:-6},[`& .${En.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${En.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${En.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Fn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${En.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${En.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${En.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Fn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${En.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${En.avatar}`]:{marginLeft:4},[`& .${En.avatarSmall}`]:{marginLeft:2},[`& .${En.icon}`]:{marginLeft:4},[`& .${En.iconSmall}`]:{marginLeft:2},[`& .${En.deleteIcon}`]:{marginRight:5},[`& .${En.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Fn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${En.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${En.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Sxe=me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ye(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function yF(e){return e.key==="Backspace"||e.key==="Delete"}const Et=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:f,label:h,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:v,size:S="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:A=!1,slots:E={},slotProps:D={},...O}=r,T=_.useRef(null),I=Tr(T,n),N=J=>{J.stopPropagation(),y(J)},$=J=>{J.currentTarget===J.target&&yF(J)&&J.preventDefault(),b&&b(J)},R=J=>{J.currentTarget===J.target&&y&&yF(J)&&y(J),v&&v(J)},F=s!==!1&&g?!0:s,j=F||y?ba:l||"div",z={...r,component:j,disabled:u,size:S,color:a,iconColor:_.isValidElement(f)&&f.props.color||a,onDelete:!!y,clickable:F,variant:C},L=vxe(z),q=j===ba?{component:l||"div",focusVisibleClassName:L.focusVisible,...y&&{disableRipple:!0}}:{};let V=null;y&&(V=c&&_.isValidElement(c)?_.cloneElement(c,{className:Te(c.props.className,L.deleteIcon),onClick:N}):m.jsx(yxe,{className:L.deleteIcon,onClick:N}));let U=null;i&&_.isValidElement(i)&&(U=_.cloneElement(i,{className:Te(L.avatar,i.props.className)}));let K=null;f&&_.isValidElement(f)&&(K=_.cloneElement(f,{className:Te(L.icon,f.props.className)}));const B={slots:E,slotProps:D},[W,X]=lt("root",{elementType:xxe,externalForwardedProps:{...B,...O},ownerState:z,shouldForwardComponentProp:!0,ref:I,className:Te(L.root,o),additionalProps:{disabled:F&&u?!0:void 0,tabIndex:A&&u?-1:w,...q},getSlotProps:J=>({...J,onClick:ne=>{J.onClick?.(ne),g?.(ne)},onKeyDown:ne=>{J.onKeyDown?.(ne),$(ne)},onKeyUp:ne=>{J.onKeyUp?.(ne),R(ne)}})}),[H,Y]=lt("label",{elementType:Sxe,externalForwardedProps:B,ownerState:z,className:L.label});return m.jsxs(W,{as:j,...X,children:[U||K,m.jsx(H,{...Y,children:h}),V]})});function aZ(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function wxe(e){const t=Di(e);return t.body===e?tl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ly(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bF(e){return parseFloat(tl(e).getComputedStyle(e).paddingRight)||0}function Cxe(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 vF(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=!o.includes(s),l=!Cxe(s);a&&l&&ly(s,i)})}function D7(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Exe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(wxe(r)){const s=aZ(tl(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bF(r)+s}px`;const a=Di(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${bF(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Di(r).body;else{const s=r.parentElement,a=tl(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 Axe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class kxe{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&&ly(t.modalRef,!1);const i=Axe(n);vF(n,t.mount,t.modalRef,i,!0);const o=D7(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=D7(this.containers,o=>o.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=Exe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=D7(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&&ly(t.modalRef,n),vF(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&&ly(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function z1(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const _xe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Dxe(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 Oxe(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 Txe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Oxe(e))}function Mxe(e){const t=[],n=[];return Array.from(e.querySelectorAll(_xe)).forEach((r,i)=>{const o=Dxe(r);o===-1||!Txe(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 Rxe(){return!0}function Ixe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Mxe,isEnabled:s=Rxe,open:a}=e,l=_.useRef(!1),c=_.useRef(null),u=_.useRef(null),f=_.useRef(null),h=_.useRef(null),g=_.useRef(!1),y=_.useRef(null),b=Tr(gf(t),y),v=_.useRef(null);_.useEffect(()=>{!a||!y.current||(g.current=!n)},[n,a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=z1(w);return y.current.contains(A)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[a]),_.useEffect(()=>{if(!a||!y.current)return;const w=Di(y.current),A=O=>{if(v.current=O,r||!s()||O.key!=="Tab")return;z1(w)===y.current&&O.shiftKey&&(l.current=!0,u.current&&u.current.focus())},E=()=>{const O=y.current;if(O===null)return;const T=z1(w);if(!w.hasFocus()||!s()||l.current){l.current=!1;return}if(O.contains(T)||r&&T!==c.current&&T!==u.current)return;if(T!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let I=[];if((T===c.current||T===u.current)&&(I=o(y.current)),I.length>0){const N=!!(v.current?.shiftKey&&v.current?.key==="Tab"),$=I[0],R=I[I.length-1];typeof $!="string"&&typeof R!="string"&&(N?R.focus():$.focus())}else O.focus()};w.addEventListener("focusin",E),w.addEventListener("keydown",A,!0);const D=setInterval(()=>{const O=z1(w);O&&O.tagName==="BODY"&&E()},50);return()=>{clearInterval(D),w.removeEventListener("focusin",E),w.removeEventListener("keydown",A,!0)}},[n,r,i,s,a,o]);const S=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0,h.current=w.target;const A=t.props.onFocus;A&&A(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),g.current=!0};return m.jsxs(_.Fragment,{children:[m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:b,onFocus:S}),m.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}const Pxe={entering:{opacity:1},entered:{opacity:1}},Pk=_.forwardRef(function(t,n){const r=ro(),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:f,onEntering:h,onExit:g,onExited:y,onExiting:b,style:v,timeout:S=i,TransitionComponent:C=Ta,...w}=t,A=_.useRef(null),E=Tr(A,gf(a),n),D=j=>z=>{if(j){const L=A.current;z===void 0?j(L):j(L,z)}},O=D(h),T=D((j,z)=>{IO(j);const L=Kd({style:v,timeout:S,easing:l},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",L),j.style.transition=r.transitions.create("opacity",L),u&&u(j,z)}),I=D(f),N=D(b),$=D(j=>{const z=Kd({style:v,timeout:S,easing:l},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",z),j.style.transition=r.transitions.create("opacity",z),g&&g(j)}),R=D(y),F=j=>{o&&o(A.current,j)};return m.jsx(C,{appear:s,in:c,nodeRef:A,onEnter:T,onEntered:I,onEntering:O,onExit:$,onExited:R,onExiting:N,addEndListener:F,timeout:S,...w,children:(j,{ownerState:z,...L})=>_.cloneElement(a,{style:{opacity:0,visibility:j==="exited"&&!c?"hidden":void 0,...Pxe[j],...v,...a.props.style},ref:E,...L})})});function jxe(e){return Qe("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const $xe=e=>{const{classes:t,invisible:n}=e;return et({root:["root",n&&"invisible"]},jxe,t)},Lxe=me("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"}}]}),XO=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:f={},slots:h={},TransitionComponent:g,transitionDuration:y,...b}=r,v={...r,component:s,invisible:a},S=$xe(v),C={transition:g,root:c.Root,...h},w={...u,...f},A={component:s,slots:C,slotProps:w},[E,D]=lt("root",{elementType:Lxe,externalForwardedProps:A,className:Te(S.root,o),ownerState:v}),[O,T]=lt("transition",{elementType:Pk,externalForwardedProps:A,ownerState:v});return m.jsx(O,{in:l,timeout:y,...b,...T,children:m.jsx(E,{"aria-hidden":!0,...D,ref:n,children:i})})});function Nxe(e){return typeof e=="function"?e():e}function Fxe(e){return e?e.props.hasOwnProperty("in"):!1}const xF=()=>{},Mx=new kxe;function Bxe(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,f=_.useRef({}),h=_.useRef(null),g=_.useRef(null),y=Tr(g,u),[b,v]=_.useState(!c),S=Fxe(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Di(h.current),A=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),E=()=>{Mx.mount(A(),{disableScrollLock:r}),g.current&&(g.current.scrollTop=0)},D=Ni(()=>{const z=Nxe(t)||w().body;Mx.add(A(),z),g.current&&E()}),O=()=>Mx.isTopModal(A()),T=Ni(z=>{h.current=z,z&&(c&&O()?E():g.current&&ly(g.current,C))}),I=_.useCallback(()=>{Mx.remove(A(),C)},[C]);_.useEffect(()=>()=>{I()},[I]),_.useEffect(()=>{c?D():(!S||!i)&&I()},[c,I,S,i,D]);const N=z=>L=>{z.onKeyDown?.(L),!(L.key!=="Escape"||L.which===229||!O())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},$=z=>L=>{z.onClick?.(L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(z={})=>{const L=Yi(e);delete L.onTransitionEnter,delete L.onTransitionExited;const q={...L,...z};return{role:"presentation",...q,onKeyDown:N(q),ref:y}},getBackdropProps:(z={})=>{const L=z;return{"aria-hidden":!0,...L,onClick:$(L),open:c}},getTransitionProps:()=>{const z=()=>{v(!1),o&&o()},L=()=>{v(!0),s&&s(),i&&I()};return{onEnter:mk(z,a?.props.onEnter??xF),onExited:mk(L,a?.props.onExited??xF)}},rootRef:y,portalRef:T,isTopModal:O,exited:b,hasTransition:S}}function zxe(e){return Qe("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const Hxe=e=>{const{open:t,exited:n,classes:r}=e;return et({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zxe,r)},Uxe=me("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ge(({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"}}]}))),Vxe=me(XO,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ZO=_.forwardRef(function(t,n){const r=it({name:"MuiModal",props:t}),{BackdropComponent:i=Vxe,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:f,components:h={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:v=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:A=!1,keepMounted:E=!1,onClose:D,onTransitionEnter:O,onTransitionExited:T,open:I,slotProps:N={},slots:$={},theme:R,...F}=r,j={...r,closeAfterTransition:l,disableAutoFocus:y,disableEnforceFocus:b,disableEscapeKeyDown:v,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:A,keepMounted:E},{getRootProps:z,getBackdropProps:L,getTransitionProps:q,portalRef:V,isTopModal:U,exited:K,hasTransition:B}=Bxe({...j,rootRef:n}),W={...j,exited:K},X=Hxe(W),H={};if(c.props.tabIndex===void 0&&(H.tabIndex="-1"),B){const{onEnter:ue,onExited:te}=q();H.onEnter=ue,H.onExited=te}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...g,...N}},[J,ne]=lt("root",{ref:n,elementType:Uxe,externalForwardedProps:{...Y,...F,component:f},getSlotProps:z,ownerState:W,className:Te(a,X?.root,!W.open&&W.exited&&X?.hidden)}),[ee,se]=lt("backdrop",{ref:o?.ref,elementType:i,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ue=>L({...ue,onClick:te=>{ue?.onClick&&ue.onClick(te)}}),className:Te(o?.className,X?.backdrop),ownerState:W});return!E&&!I&&(!B||K)?null:m.jsx(iZ,{ref:V,container:u,disablePortal:S,children:m.jsxs(J,{...ne,children:[!A&&i?m.jsx(ee,{...se}):null,m.jsx(Ixe,{disableEnforceFocus:b,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:U,open:I,children:_.cloneElement(c,H)})]})})});function Wxe(e){return Qe("MuiDialog",e)}const O7=tt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),lZ=_.createContext({}),qxe=me(XO,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Gxe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ye(n)}`],paper:["paper",`paperScroll${ye(n)}`,`paperWidth${ye(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return et(s,Wxe,t)},Kxe=me(ZO,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Yxe=me("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ye(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"}}}]}),Xxe=me(Ur,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ye(n.scroll)}`],t[`paperWidth${ye(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ge(({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)`,[`&.${O7.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}`,[`&.${O7.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,[`&.${O7.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),vu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialog"}),i=ro(),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:f,className:h,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:b=!1,maxWidth:v="sm",onClick:S,onClose:C,open:w,PaperComponent:A=Ur,PaperProps:E={},scroll:D="paper",slots:O={},slotProps:T={},TransitionComponent:I=Pk,transitionDuration:N=o,TransitionProps:$,...R}=r,F={...r,disableEscapeKeyDown:g,fullScreen:y,fullWidth:b,maxWidth:v,scroll:D},j=Gxe(F),z=_.useRef(),L=re=>{z.current=re.target===re.currentTarget},q=re=>{S&&S(re),z.current&&(z.current=null,C&&C(re,"backdropClick"))},V=Ou(a),U=_.useMemo(()=>({titleId:V}),[V]),K={transition:I,...O},B={transition:$,paper:E,backdrop:u,...T},W={slots:K,slotProps:B},[X,H]=lt("root",{elementType:Kxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.root,h),ref:n}),[Y,J]=lt("backdrop",{elementType:qxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:j.backdrop}),[ne,ee]=lt("paper",{elementType:Xxe,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:F,className:Te(j.paper,E.className)}),[se,ue]=lt("container",{elementType:Yxe,externalForwardedProps:W,ownerState:F,className:j.container}),[te,Z]=lt("transition",{elementType:Pk,externalForwardedProps:W,ownerState:F,additionalProps:{appear:!0,in:w,timeout:N,role:"presentation"}});return m.jsx(X,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:N,as:c,...J}},disableEscapeKeyDown:g,onClose:C,open:w,onClick:q,...H,...R,children:m.jsx(te,{...Z,children:m.jsx(se,{onMouseDown:L,...ue,children:m.jsx(ne,{as:A,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":V,"aria-modal":l,...ee,children:m.jsx(lZ.Provider,{value:U,children:f})})})})})});function Zxe(e){return Qe("MuiDialogActions",e)}tt("MuiDialogActions",["root","spacing"]);const Jxe=e=>{const{classes:t,disableSpacing:n}=e;return et({root:["root",!n&&"spacing"]},Zxe,t)},Qxe=me("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}}}]}),Xd=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=r,a={...r,disableSpacing:o},l=Jxe(a);return m.jsx(Qxe,{className:Te(l.root,i),ownerState:a,ref:n,...s})});function e3e(e){return Qe("MuiDialogContent",e)}tt("MuiDialogContent",["root","dividers"]);function t3e(e){return Qe("MuiDialogTitle",e)}const n3e=tt("MuiDialogTitle",["root"]),r3e=e=>{const{classes:t,dividers:n}=e;return et({root:["root",n&&"dividers"]},e3e,t)},i3e=me("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ge(({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:{[`.${n3e.root} + &`]:{paddingTop:0}}}]}))),xu=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=r,a={...r,dividers:o},l=r3e(a);return m.jsx(i3e,{className:Te(l.root,i),ownerState:a,ref:n,...s})}),o3e=e=>{const{classes:t}=e;return et({root:["root"]},t3e,t)},s3e=me(ie,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Su=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDialogTitle"}),{className:i,id:o,...s}=r,a=r,l=o3e(a),{titleId:c=o}=_.useContext(lZ);return m.jsx(s3e,{component:"h2",className:Te(l.root,i),ownerState:a,ref:n,variant:"h6",id:o??c,...s})});function a3e(e){return Qe("MuiDivider",e)}const SF=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),l3e=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=e;return et({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"]},a3e,r)},c3e=me("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]}})(Ge(({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%"}}}]}))),u3e=me("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ge(({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)`}}]}))),gi=_.forwardRef(function(t,n){const r=it({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:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth",...y}=r,b={...r,absolute:i,component:l,flexItem:c,light:u,orientation:a,role:f,textAlign:h,variant:g},v=l3e(b);return m.jsx(c3e,{as:l,className:Te(v.root,s),role:f,ref:n,ownerState:b,"aria-orientation":f==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...y,children:o?m.jsx(u3e,{className:v.wrapper,ownerState:b,children:o}):null})});gi&&(gi.muiSkipListHighlight=!0);const dt=age({createStyledComponent:me("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>it({props:e,name:"MuiGrid"}),useTheme:ro});var d3e=Object.defineProperty,K4=Object.getOwnPropertySymbols,cZ=Object.prototype.hasOwnProperty,uZ=Object.prototype.propertyIsEnumerable,wF=(e,t,n)=>t in e?d3e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jk=(e,t)=>{for(var n in t||(t={}))cZ.call(t,n)&&wF(e,n,t[n]);if(K4)for(var n of K4(t))uZ.call(t,n)&&wF(e,n,t[n]);return e},$k=(e,t)=>{var n={};for(var r in e)cZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&K4)for(var r of K4(e))t.indexOf(r)<0&&uZ.call(e,r)&&(n[r]=e[r]);return n};var Ph;(e=>{const t=class An{constructor(l,c,u,f){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<An.MIN_VERSION||l>An.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let h=[];for(let y=0;y<this.size;y++)h.push(!1);for(let y=0;y<this.size;y++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();const g=this.addEccAndInterleave(u);if(this.drawCodewords(g),f==-1){let y=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<y&&(f=b,y=v),this.applyMask(b)}}i(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(l,c){const u=e.QrSegment.makeSegments(l);return An.encodeSegments(u,c)}static encodeBinary(l,c){const u=e.QrSegment.makeBytes(l);return An.encodeSegments([u],c)}static encodeSegments(l,c,u=1,f=40,h=-1,g=!0){if(!(An.MIN_VERSION<=u&&u<=f&&f<=An.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");let y,b;for(y=u;;y++){const w=An.getNumDataCodewords(y,c)*8,A=s.getTotalBits(l,y);if(A<=w){b=A;break}if(y>=f)throw new RangeError("Data too long")}for(const w of[An.Ecc.MEDIUM,An.Ecc.QUARTILE,An.Ecc.HIGH])g&&b<=An.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 A of w.getData())v.push(A)}i(v.length==b);const S=An.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,A)=>C[A>>>3]|=w<<7-(A&7)),new An(y,c,C,h)}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 f=0;f<c;f++)u==0&&f==0||u==0&&f==c-1||u==c-1&&f==0||this.drawAlignmentPattern(l[u],l[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let h=0;h<10;h++)u=u<<1^(u>>>9)*1335;const f=(c<<10|u)^21522;i(f>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,r(f,h));this.setFunctionModule(8,7,r(f,6)),this.setFunctionModule(8,8,r(f,7)),this.setFunctionModule(7,8,r(f,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,r(f,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,r(f,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,r(f,h));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 f=r(c,u),h=this.size-11+u%3,g=Math.floor(u/3);this.setFunctionModule(h,g,f),this.setFunctionModule(g,h,f)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let f=-4;f<=4;f++){const h=Math.max(Math.abs(f),Math.abs(u)),g=l+f,y=c+u;0<=g&&g<this.size&&0<=y&&y<this.size&&this.setFunctionModule(g,y,h!=2&&h!=4)}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let f=-2;f<=2;f++)this.setFunctionModule(l+f,c+u,Math.max(Math.abs(f),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!=An.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");const f=An.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],h=An.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],g=Math.floor(An.getNumRawDataModules(c)/8),y=f-g%f,b=Math.floor(g/f);let v=[];const S=An.reedSolomonComputeDivisor(h);for(let w=0,A=0;w<f;w++){let E=l.slice(A,A+b-h+(w<y?0:1));A+=E.length;const D=An.reedSolomonComputeRemainder(E,S);w<y&&E.push(0),v.push(E.concat(D))}let C=[];for(let w=0;w<v[0].length;w++)v.forEach((A,E)=>{(w!=b-h||E>=y)&&C.push(A[w])});return i(C.length==g),C}drawCodewords(l){if(l.length!=Math.floor(An.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 f=0;f<this.size;f++)for(let h=0;h<2;h++){const g=u-h,b=(u+1&2)==0?this.size-1-f:f;!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 f;switch(l){case 0:f=(u+c)%2==0;break;case 1:f=c%2==0;break;case 2:f=u%3==0;break;case 3:f=(u+c)%3==0;break;case 4:f=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:f=u*c%2+u*c%3==0;break;case 6:f=(u*c%2+u*c%3)%2==0;break;case 7:f=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&f&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let l=0;for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[h][v]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[h][v],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size;h++){let g=!1,y=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][h]==g?(y++,y==5?l+=An.PENALTY_N1:y>5&&l++):(this.finderPenaltyAddHistory(y,b),g||(l+=this.finderPenaltyCountPatterns(b)*An.PENALTY_N3),g=this.modules[v][h],y=1);l+=this.finderPenaltyTerminateAndCount(g,y,b)*An.PENALTY_N3}for(let h=0;h<this.size-1;h++)for(let g=0;g<this.size-1;g++){const y=this.modules[h][g];y==this.modules[h][g+1]&&y==this.modules[h+1][g]&&y==this.modules[h+1][g+1]&&(l+=An.PENALTY_N2)}let c=0;for(const h of this.modules)c=h.reduce((g,y)=>g+(y?1:0),c);const u=this.size*this.size,f=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=f&&f<=9),l+=f*An.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 f=this.size-7;u.length<l;f-=c)u.splice(1,0,f);return u}}static getNumRawDataModules(l){if(l<An.MIN_VERSION||l>An.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(An.getNumRawDataModules(l)/8)-An.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*An.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 f=0;f<l-1;f++)c.push(0);c.push(1);let u=1;for(let f=0;f<l;f++){for(let h=0;h<c.length;h++)c[h]=An.reedSolomonMultiply(c[h],u),h+1<c.length&&(c[h]^=c[h+1]);u=An.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(f=>0);for(const f of l){const h=f^u.shift();u.push(0),c.forEach((g,y)=>u[y]^=An.reedSolomonMultiply(g,h))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let f=7;f>=0;f--)u=u<<1^(u>>>7)*285,u^=(c>>>f&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 ri{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 ri(ri.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!ri.isNumeric(l))throw new RangeError("String contains non-numeric characters");let c=[];for(let u=0;u<l.length;){const f=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+f),10),f*3+1,c),u+=f}return new ri(ri.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!ri.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 f=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;f+=ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(f,11,c)}return u<l.length&&n(ri.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new ri(ri.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:ri.isNumeric(l)?[ri.makeNumeric(l)]:ri.isAlphanumeric(l)?[ri.makeAlphanumeric(l)]:[ri.makeBytes(ri.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 ri(ri.Mode.ECI,0,c)}static isNumeric(l){return ri.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return ri.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const f of l){const h=f.mode.numCharCountBits(c);if(f.numChars>=1<<h)return 1/0;u+=4+h+f.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})(Ph||(Ph={}));(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={}))})(Ph||(Ph={}));(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={}))})(Ph||(Ph={}));var b0=Ph;var f3e={L:b0.QrCode.Ecc.LOW,M:b0.QrCode.Ecc.MEDIUM,Q:b0.QrCode.Ecc.QUARTILE,H:b0.QrCode.Ecc.HIGH},dZ=128,fZ="L",hZ="#FFFFFF",pZ="#000000",mZ=!1,gZ=1,h3e=4,p3e=0,m3e=.1;function yZ(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 bZ(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 g3e(e,t,n,r){if(r==null)return null;const i=e.length+n*2,o=Math.floor(t*m3e),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,f=r.opacity==null?1:r.opacity;let h=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);h={x:y,y:b,w:v,h:S}}const g=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:h,opacity:f,crossOrigin:g}}function y3e(e,t){return t!=null?Math.max(Math.floor(t),0):e?h3e:p3e}function vZ({value:e,level:t,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=qt.useMemo(()=>{const y=(Array.isArray(e)?e:[e]).reduce((b,v)=>(b.push(...b0.QrSegment.makeSegments(v)),b),[]);return b0.QrCode.encodeSegments(y,f3e[t],n,void 0,void 0,a)},[e,t,n,a]);const{cells:c,margin:u,numCells:f,calculatedImageSettings:h}=qt.useMemo(()=>{let g=l.getModules();const y=y3e(r,i),b=g.length+y*2,v=g3e(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:f,calculatedImageSettings:h}}var b3e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),v3e=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,marginSize:h,imageSettings:g}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,S=$k(b,["style"]),C=g?.src,w=qt.useRef(null),A=qt.useRef(null),E=qt.useCallback(j=>{w.current=j,typeof n=="function"?n(j):n&&(n.current=j)},[n]),[D,O]=qt.useState(!1),{margin:T,cells:I,numCells:N,calculatedImageSettings:$}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:h,imageSettings:g,size:o});qt.useEffect(()=>{if(w.current!=null){const j=w.current,z=j.getContext("2d");if(!z)return;let L=I;const q=A.current,V=$!=null&&q!==null&&q.complete&&q.naturalHeight!==0&&q.naturalWidth!==0;V&&$.excavation!=null&&(L=bZ(I,$.excavation));const U=window.devicePixelRatio||1;j.height=j.width=o*U;const K=o/N*U;z.scale(K,K),z.fillStyle=a,z.fillRect(0,0,N,N),z.fillStyle=l,b3e?z.fill(new Path2D(yZ(L,T))):I.forEach(function(B,W){B.forEach(function(X,H){X&&z.fillRect(H+T,W+T,1,1)})}),$&&(z.globalAlpha=$.opacity),V&&z.drawImage(q,$.x+T,$.y+T,$.w,$.h)}}),qt.useEffect(()=>{O(!1)},[C]);const R=jk({height:o,width:o},v);let F=null;return C!=null&&(F=qt.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{O(!0)},ref:A,crossOrigin:$?.crossOrigin})),qt.createElement(qt.Fragment,null,qt.createElement("canvas",jk({style:R,height:o,width:o,ref:E,role:"img"},S)),F)});v3e.displayName="QRCodeCanvas";var JO=qt.forwardRef(function(t,n){const r=t,{value:i,size:o=dZ,level:s=fZ,bgColor:a=hZ,fgColor:l=pZ,includeMargin:c=mZ,minVersion:u=gZ,boostLevel:f,title:h,marginSize:g,imageSettings:y}=r,b=$k(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:S,numCells:C,calculatedImageSettings:w}=vZ({value:i,level:s,minVersion:u,boostLevel:f,includeMargin:c,marginSize:g,imageSettings:y,size:o});let A=S,E=null;y!=null&&w!=null&&(w.excavation!=null&&(A=bZ(S,w.excavation)),E=qt.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 D=yZ(A,v);return qt.createElement("svg",jk({height:o,width:o,viewBox:`0 0 ${C} ${C}`,ref:n,role:"img"},b),!!h&&qt.createElement("title",null,h),qt.createElement("path",{fill:a,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),qt.createElement("path",{fill:l,d:D,shapeRendering:"crispEdges"}),E)});JO.displayName="QRCodeSVG";const x3e=_e(m.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"})),v0=e=>_.createElement("svg",{viewBox:"0 0 250 260",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{fillRule:"evenodd"},_.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"}),_.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"}),_.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"}),_.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"}))),S3e=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:52,height:20,viewBox:"0 0 52 20",fill:"none",...e},"\\n ",_.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"),Lk=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 41.5 51",...e},_.createElement("g",null,_.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"}))),xZ=e=>_.createElement("svg",{width:80,height:48,viewBox:"0 0 80 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.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"})),w3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"AVM"),_.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"})),C3e=e=>_.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},_.createElement("defs",{id:"defs145870"}),_.createElement("g",{transform:"translate(-586.37187,-430.72069)",id:"layer1"},_.createElement("g",{transform:"matrix(3.7156602,0,0,3.7156602,-1556.9538,-1604.717)",id:"g146158"},_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"})))),E3e=e=>_.createElement("svg",{width:128,height:44,viewBox:"0 0 128 44",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.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)"}),_.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)"}),_.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)"}),_.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)"}),_.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)"}),_.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)"}),_.createElement("defs",null,_.createElement("linearGradient",{id:"paint0_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint1_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint2_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint3_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint4_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})),_.createElement("linearGradient",{id:"paint5_linear_3809_68339",x1:146567e-12,y1:6.00012,x2:17,y2:32.0001,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{stopColor:"#6B4CFF"}),_.createElement("stop",{offset:1,stopColor:"#222222"})))),SZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...e},_.createElement("g",null,_.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"}),_.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"}),_.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"}),_.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"}))),wZ=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:98.36,height:40,viewBox:"0 0 98.36 40",...e},_.createElement("path",{fill:"#0058ab",d:"M98.36 40H0V0h98.36v40Z"}),_.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"}),_.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"})),A3e=e=>_.createElement("svg",{width:87,height:22,viewBox:"0 0 87 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"}),_.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"})),k3e=e=>_.createElement("svg",{width:225,height:99,viewBox:"0 0 225 99",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{clipPath:"url(#clip0_415_130964)"},_.createElement("path",{d:"M134.874 68.7831H165.274V81.2487H120.202V17.2373H134.874V68.7831Z",fill:"#707070"}),_.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"}),_.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"}),_.createElement("path",{d:"M61.1184 66.6079H51.0826V28.5984H47.3721V70.3594H51.0909V70.3341H61.1268L61.1184 66.6079Z",fill:"white"}),_.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"}),_.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"})),_.createElement("defs",null,_.createElement("clipPath",{id:"clip0_415_130964"},_.createElement("rect",{width:223,height:99,fill:"white"})))),_3e=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"Lidl"),_.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"})),CZ=e=>_.createElement("svg",{id:"a",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80.2 14.3",...e},_.createElement("defs",null,_.createElement("style",null,`
148
148
  .st0 {
149
149
  fill: #0097e0;
150
150
  }
@@ -160,7 +160,7 @@ export default theme;`}function MN(e){return typeof e=="number"?`${(e*100).toFix
160
160
  .cls-3 {\r
161
161
  clip-path: url(#clippath);\r
162
162
  }\r
163
- `),_.createElement("clipPath",{id:"clippath"},_.createElement("path",{className:"cls-1",d:"M152.8,32.08h-6.03V12.37c0-.27-.22-.49-.49-.49h-9.76c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h5.28v15.63h-6.03c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h17.02c.27,0,.49-.22.49-.49v-3.59c0-.27-.22-.49-.49-.49ZM119.4,11.55c-2.76,0-5.17,1.2-6.76,3.04v-2.22c0-.27-.22-.49-.49-.49h-3.99c-.27,0-.49.22-.49.49v23.79c0,.27.22.49.49.49h3.99c.27,0,.49-.22.49-.49v-13.83c0-3.47,2.43-6.2,5.75-6.2,2.96,0,4.81,1.77,5.33,4.08.13.6.21,1.5.21,2.24v13.72c0,.27.22.49.49.49h3.99c.27,0,.49-.22.49-.49v-12.78c0-1.99-.09-2.88-.23-3.9-.67-4.51-4.29-7.93-9.26-7.93ZM24.16,15.84c2.71,0,4.28,1.34,4.7,3.59.05.28.29.48.57.48h4.08c.29,0,.52-.26.48-.55-.63-5.02-4.72-7.97-9.72-7.97-4.7,0-9.24,2.57-9.24,7.68,0,4.22,3.14,6.1,6.72,6.96l3.95.92c2.01.48,3.32,1.34,3.32,2.83,0,2.04-2.09,2.85-4.33,2.85-2.92,0-4.6-1.29-5.02-3.69-.05-.29-.3-.5-.59-.5h-4.05c-.29,0-.52.25-.48.54.65,5.4,5.16,8.14,9.96,8.14,4.69,0,9.66-2.41,9.66-7.88,0-3.59-2.32-5.74-6.77-6.78l-3.83-.89c-1.46-.33-3.42-1.01-3.42-2.88,0-1.8,1.64-2.85,4.02-2.85ZM48.68,24.28c0,13.74-10.55,24.16-24.34,24.16S0,38.01,0,24.28C0,11.45,9.22,1.37,21.88,0c.29-.03.54.19.54.48v3.67c0,.29-.22.54-.51.58C11.97,6.03,4.87,14.14,4.87,24.32c0,11.05,8.36,19.53,19.47,19.53,11.11,0,19.47-8.48,19.47-19.53,0-10.18-7.13-18.3-17.04-19.59-.29-.04-.51-.28-.51-.58V.49c0-.29.25-.51.54-.48,12.66,1.37,21.88,11.44,21.88,24.27ZM155.55,16.45h5.07v19.71c0,.27.22.49.49.49h3.99c.27,0,.49-.22.49-.49v-19.71h7.39c.27,0,.49-.22.49-.49v-3.59c0-.27-.22-.49-.49-.49h-7.39v-3.22c0-2.47,1.59-3.65,3.61-3.65,1.52,0,3.03.58,4.28,1.48.31.22.73,0,.73-.38v-3.62c0-.27-.14-.52-.37-.66-1.45-.89-3.19-1.41-5.17-1.41-4.65,0-8.04,3.09-8.04,8.25v3.22h-5.07c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49ZM62.17,8.47c2.04,0,3.71-1.67,3.71-3.76,0-2.07-1.67-3.71-3.71-3.71s-3.71,1.64-3.71,3.71c0,2.09,1.67,3.76,3.71,3.76ZM143.95,8.47c2.04,0,3.71-1.67,3.71-3.76s-1.67-3.71-3.71-3.71-3.71,1.64-3.71,3.71c0,2.09,1.67,3.76,3.71,3.76ZM71.02,32.08h-6.03V12.37c0-.27-.22-.49-.49-.49h-9.76c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h5.28v15.63h-6.03c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h17.02c.27,0,.49-.22.49-.49v-3.59c0-.27-.22-.49-.49-.49ZM185.95,35.65l-1.51,3.8c-.79,2-1.95,2.91-3.31,2.91-1.07,0-2.39-.44-3.52-1.46-.28-.26-.73-.06-.73.32v4.21c.02.27.16.53.39.67,1.21.72,2.51,1.12,4.03,1.12,3.85,0,6.35-2.38,8.25-7.36l10.41-27.32c.12-.32-.11-.66-.45-.66h-4.14c-.33,0-.62.2-.73.51l-6.21,17.07-6.7-17.09c-.12-.3-.4-.49-.72-.49h-4.23c-.35,0-.58.35-.45.67l9.62,23.09ZM98.39,11.88h-3.9c-.27,0-.49.22-.49.49v2.08c-1.13-1.31-2.65-2.25-4.66-2.65-.27-.05-.52.15-.52.43v3.81c0,.27.17.5.43.58,3.09.95,4.87,3.87,4.87,7.52,0,4.52-2.66,7.88-7.01,7.88-3.99,0-7.06-3.36-7.06-7.91,0-3.42,1.76-6.36,4.56-7.43.23-.09.39-.32.39-.57v-3.87c0-.28-.26-.49-.53-.43-5.61,1.28-9.45,6.17-9.45,12.41,0,7.17,4.76,12.37,11.46,12.37,3.35,0,5.79-1.3,7.44-3.33v3.21c0,1.09-.13,1.95-.35,2.7-.67,2.27-2.67,3.78-5.67,3.78-2.98,0-5.1-1.41-5.69-4.01-.06-.24-.28-.41-.52-.41h-3.99c-.29,0-.52.26-.48.55.84,5.76,5.31,8.48,10.6,8.48,5.08,0,9.42-2.56,10.64-7.34.29-1.12.44-2.96.44-4.29V12.37c0-.27-.22-.49-.49-.49Z"})),_.createElement("linearGradient",{id:"Naamloos_verloop_7","data-name":"Naamloos verloop 7",x1:-48.59,y1:128.26,x2:186.52,y2:-36.37,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{offset:.5,stopColor:"#00e487"}),_.createElement("stop",{offset:1,stopColor:"#1ecbd0"}))),_.createElement("g",{className:"cls-3"},_.createElement("rect",{className:"cls-2",width:200,height:48.44}))),T7=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"TP-Link"),_.createElement("path",{d:"M15.185 0C10.218 0 6.25 3.984 6.25 8.903V10.8h4.99V8.903c0-2.135 1.736-3.863 3.946-3.863 2.187 0 3.708 1.536 3.708 3.815 0 2.257-1.64 3.912-3.827 3.912h-1.878v5.039h1.878c4.874 0 8.819-4.007 8.819-8.952C23.885 3.72 20.2 0 15.185 0zM.115 12.6v4.103c0 .624.523 1.248 1.236 1.248h4.753v4.801c0 .624.523 1.248 1.236 1.248h4.065V12.6Z"})),Nk=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2000.000000pt",height:"1000.000000pt",viewBox:"0 0 2000.000000 1000.000000",preserveAspectRatio:"xMidYMid meet",...e},_.createElement("g",{transform:"translate(0.000000,1000.000000) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none"},_.createElement("path",{d:"M214 9972 c-78 -27 -142 -88 -182 -172 -16 -33 -17 -289 -20 -3655 -2 -2604 0 -3659 8 -3760 34 -430 121 -759 286 -1083 332 -650 912 -1075 1680 -1231 328 -66 -433 -61 9102 -61 7915 0 8652 1 8696 16 60 21 147 100 177 161 l24 48 0 3700 c0 3520 -1 3707 -18 3840 -55 422 -181 789 -380 1112 -173 279 -448 550 -728 718 -317 189 -636 299 -1059 362 -108 16 -626 18 -8825 20 -8317 2 -8712 2 -8761 -15z m17121 -1089 c446 -67 853 -276 1161 -595 290 -300 477 -684 541 -1106 19 -129 22 -413 5 -526 -20 -133 -77 -212 -192 -264 -147 -68 -330 2 -406 156 -17 33 -19 58 -16 222 3 201 -8 331 -39 453 -67 265 -191 479 -385 666 -199 192 -424 309 -692 361 -275 53 -508 30 -791 -80 -108 -41 -142 -50 -194 -50 -172 0 -294 117 -305 291 -8 129 40 223 143 283 164 97 481 186 735 206 121 10 306 3 435 -17z m-135 -1188 c354 -86 627 -356 727 -720 24 -87 27 -118 28 -245 0 -139 -1 -148 -29 -207 -55 -121 -157 -187 -286 -188 -95 0 -168 33 -234 106 -60 66 -76 119 -76 244 0 194 -68 309 -224 381 -83 38 -164 41 -261 10 -132 -42 -168 -47 -227 -35 -105 23 -182 83 -226 179 -74 159 -6 336 161 418 180 88 427 110 647 57z m-14089 -45 c139 -26 263 -123 327 -257 l37 -78 -2 -265 c-1 -146 -4 -311 -8 -367 l-6 -103 689 0 c649 0 694 -1 751 -19 149 -46 267 -168 305 -316 59 -223 -53 -454 -270 -562 l-78 -38 -712 -3 -712 -3 -6 -72 c-10 -121 -31 -773 -30 -927 0 -114 5 -164 22 -233 81 -326 319 -564 643 -643 61 -15 136 -19 444 -24 398 -7 402 -7 500 -64 62 -37 142 -128 178 -203 30 -65 32 -74 32 -188 0 -118 -1 -121 -37 -198 -53 -110 -128 -186 -237 -240 l-85 -42 -425 0 c-443 0 -462 1 -646 47 -193 47 -383 132 -562 250 -151 101 -362 312 -462 462 -160 241 -254 484 -296 764 -17 112 -19 386 -5 722 5 124 12 307 16 407 l7 182 -290 3 -289 3 -75 37 c-331 164 -350 616 -35 820 110 71 151 78 457 78 l269 0 0 113 c0 247 20 550 40 617 70 234 314 384 551 340z m12624 -1019 c66 -12 172 -37 235 -57 145 -44 388 -164 503 -247 371 -268 618 -648 719 -1108 21 -96 23 -128 23 -429 0 -380 -31 -1310 -46 -1390 -38 -193 -216 -363 -409 -389 -246 -33 -474 128 -520 367 -7 37 -5 170 5 440 43 1141 43 1136 -9 1290 -61 178 -189 347 -341 452 -62 43 -196 104 -270 125 -81 22 -290 31 -384 16 -381 -60 -704 -368 -782 -746 -93 -452 149 -890 574 -1036 81 -28 210 -49 297 -49 149 0 297 -83 381 -212 82 -128 93 -302 26 -442 -59 -125 -156 -214 -284 -262 -66 -25 -74 -26 -238 -21 -479 13 -917 207 -1243 552 -121 128 -209 256 -291 420 -104 210 -154 378 -181 610 -61 539 142 1121 534 1532 324 339 732 545 1196 602 117 15 368 6 505 -18z m-9341 -130 c98 -48 177 -126 223 -218 25 -52 28 -71 32 -174 1 -64 -7 -409 -19 -765 -29 -839 -25 -945 45 -1130 80 -213 222 -352 430 -421 71 -23 96 -26 220 -27 149 0 180 5 305 55 235 93 407 336 465 654 14 79 31 428 59 1261 13 371 17 416 36 474 93 276 404 416 656 296 130 -62 224 -178 256 -316 12 -52 11 -76 -23 -1015 -26 -740 -37 -854 -109 -1123 -92 -344 -272 -646 -509 -855 -306 -269 -757 -406 -1244 -376 -461 28 -806 171 -1083 447 -230 229 -375 533 -446 937 -21 118 -23 158 -22 440 1 171 6 425 12 565 7 140 16 399 22 575 6 176 15 345 21 375 23 118 121 255 227 317 93 55 167 74 270 70 85 -4 100 -8 176 -46z m3885 30 c148 -46 263 -164 307 -316 13 -47 15 -82 10 -175 -3 -63 -15 -281 -26 -485 -46 -866 -51 -980 -40 -1082 22 -207 90 -383 192 -498 212 -237 608 -284 907 -106 154 91 270 247 341 459 54 162 60 225 95 912 32 647 46 877 55 923 22 108 110 232 214 301 29 19 89 47 132 62 69 23 90 26 166 21 74 -4 99 -10 163 -41 146 -69 242 -204 252 -355 5 -74 -7 -402 -27 -726 -5 -82 -21 -377 -35 -655 -14 -278 -32 -622 -40 -765 -8 -143 -21 -402 -30 -575 -8 -173 -20 -366 -25 -429 -26 -290 -125 -564 -288 -801 -79 -115 -274 -311 -390 -394 -266 -188 -597 -320 -932 -371 -152 -23 -384 -31 -461 -16 -227 45 -387 273 -352 502 38 240 249 428 483 429 186 1 410 45 547 110 212 99 339 236 409 442 23 70 43 178 31 178 -3 0 -24 -16 -46 -35 -113 -94 -281 -175 -419 -201 -392 -75 -837 8 -1157 217 -298 193 -520 491 -639 854 -96 294 -113 528 -80 1090 17 293 31 571 44 850 13 279 20 320 66 413 105 213 358 330 573 263z"}))),_Z=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"Xiaomi"),_.createElement("path",{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"})),I3e=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",...e},_.createElement("path",{d:"M129.5 512V345.9L18.5 48h55.8l81.8 229.7L250.2 0h51.3L180.8 347.8V512h-51.3z"})),P3e={1:"Panasonic",4107:"Signify",4125:"Fortune Brands",4129:"Legrand",4142:"LG Electronics",4151:"NXP Semiconductors",4161:"STMicroelectronics",4169:"Silicon Labs",4190:"Schneider Electric",4216:"ntve home",4240:"Green Energy Options",4251:"Leviton",4304:"Qorvo",4321:"Samsung",4334:"UEI",4338:"ubisys",4362:"Samsung SmartThings",4381:"Comcast",4388:"Jasco Products",4405:"dresden elektronik",4417:"Tuya",4442:"LG ThinQ",4447:"Aqara",4448:"Amazon Alexa",4454:"Innr",4456:"Leedarson",4469:"D-Link",4472:"WNC Corporation",4474:"Insta GmbH",4476:"IKEA",4478:"Feibit",4488:"TP-Link",4489:"LEDVANCE",4492:"Midea",4501:"CommScope",4614:"EME Americas",4617:"Bosch",4619:"HEIMAN",4631:"Amazon Alexa",4633:"ORVIBO",4644:"Sunricher",4653:"AduroSmart",4662:"Allegion",4673:"Samjin",4689:"Neonlite",4701:"Tuya",4711:"ARC Technology",4718:"Xiaomi",4724:"Trust International",4735:"Nordic Semiconductor",4736:"Siterwell",4738:"SEI Robotics",4741:"Hager",4742:"CoolKit",4745:"Lidl",4746:"Changhong Network",4751:"EGLO",4757:"AVM",4762:"Delta Dore Rademacher",4767:"Level Home",4874:"Eve",4876:"EVVR",4877:"BouffaloLab",4882:"Yeelight",4886:"Realtek",4889:"Mitsubishi Electric",4890:"Resideo",4891:"Espressif",4892:"HELLA",4894:"CAME",4895:"Longan.link",4897:"SONOFF",4903:"Mill International",4910:"Energetic",4911:"Yandex",4915:"Becker Antriebe",4916:"TCL",4917:"Dexatek",4921:"GE Lighting",4923:"WAREMA",4927:"ASR",4930:"Beken",4932:"Eltako",4933:"Meross",4934:"Rafael",4937:"Apple Home",4938:"Rollease Acmeda",4939:"Home Assistant",4940:"Simon",4942:"tado°",4943:"mediola",4945:"HooRii Technology",4946:"Häfele",4950:"Lennox",4952:"TPV",4953:"GOQUAL",4954:"SIEGENIA",4957:"Nuki",4961:"Inovelli",4962:"deveritec",4965:"Dooya",4969:"BHtronics",4972:"Onewish",4974:"Ambi Labs",4977:"Tridonic",4978:"innovation matters",4987:"Amazon Basics",4991:"NEO",4993:"Amazon Prime Video",4994:"ION INDUSTRIES",4996:"Apple (iCloud Keychain)",4998:"Skylux",4999:"Govee",5e3:"Infineon",5002:"Nature",5003:"ULTRON",5004:"Hisense",5006:"Twinkly",5009:"Kasa",5010:"Tapo",5014:"AiDot",5015:"SwitchBot",5019:"ITIUS",5020:"Zemismart",5022:"Dyson",5023:"Razer",5120:"Uascent",5123:"Grid Connect",5124:"Phaten",5125:"Ecovacs",5127:"ThirdReality",5128:"VELUX",5131:"70mai",5136:"Quectel",5137:"Freedompro",5138:"SMARTWIZ",5139:"1Home",5141:"Nanoleaf (Caveman)",5142:"Nanoleaf (Umbra)",5143:"Konnected",5144:"Klite",5145:"Lorex",5147:"Rang Dong",5149:"Secuyou",5150:"arre home",5151:"Ductech",5152:"EcoFlow",5153:"Kwikset",5155:"Feit Electric",5158:"ELEGRP",5159:"Hama",5161:"Albrecht Jung",5163:"LETIANPAI",5165:"QIHANG",5167:"QIACHIP",5168:"L-TRADE",5170:"ELKO EP",5171:"MOMAX",5174:"SinuxSoft",5175:"ACCEL LAB",5176:"Topstar Lighting",5181:"Onvis",5184:"VerLuce",5185:"Snowball",5186:"REHAU",5187:"Goods iQ",5189:"Finesse Decor",5190:"TAKE AS GLOBAL",5192:"LivingStyle",5193:"Lloyd's",5196:"TrustAsia",5197:"Atios",5199:"Yale",5202:"Big Ass Fans",5205:"MagentaHome",5207:"Wistar",5212:"Lockly",5213:"Hosiden",5215:"Good Way Technology",5216:"lipro",5217:"Xinda",5218:"Energy Magic Cube",5219:"Eberle",5221:"Hunter Douglas",5222:"Hemos Lighting",5224:"Anona Security",5226:"Intecular",5229:"Polyaire",5230:"SMART",5231:"SmartWings",5232:"HOPERF",5234:"Jiecang",5235:"Lelight",5239:"Multi IR",5240:"APYNOV",5242:"Realwe",5243:"LUMIFLOW",5244:"SHENAN YANGGUANG",5245:"Morning Electronics",5246:"MIWA LOCK",5247:"U-tec",5248:"Roborock",5249:"Xenon Industrial",5250:"Lengceoi",5251:"jhome",5254:"Infibrite",5256:"Flic",5258:"Occhio",5259:"Samraj",5261:"EME",5262:"Binthen",5264:"Shelly",5266:"xxter",5267:"NIE-TECH",5268:"Martin Renz",5269:"Pacific Hogar",5270:"InnoPhase IOT",5271:"DMA",5273:"CLIO",5274:"Guangdong A-OK",5275:"AIGOSTAR",5276:"Launray",5279:"Deyi Smart",5282:"Brennenstuhl",5293:"Raex",5376:"SmartWave",5379:"Ronco",5380:"Mango Network",5382:"SAFEMO",5383:"Bweetech",5384:"Rui Teng",5385:"SmartSetup",5387:"Technology Nexus",5388:"Nexxt Solutions",5389:"Huayu Lian",5391:"in-lite",5393:"Saishigao",5394:"Yourlite",5395:"Alpha Tubular Motors",5396:"Chuan Dian",5398:"iRobot",5399:"Huacheng Network",5401:"i3 Engineering",5402:"Leviosa",5403:"Sunfree Motor",5404:"Schoenberger",5405:"Dendo Systems",5406:"Kudelski IoT",5407:"Apporo",5408:"Rachio",5409:"NEWLAB",5410:"Zimi",5411:"Yooksmart",5412:"BofuSmart",5415:"habi",5416:"ntve home",5418:"BSH Home Appliances",5419:"Kumho Electric",5420:"Dreame",5421:"Neo Smart Blinds",5424:"Taiwan Fu Hsing",5425:"Solity",5426:"Arpobot",5427:"Anker",5428:"WAGO",5430:"DomoPlus",5431:"PEARL",5432:"Beca",5433:"WISeKey",5435:"Griesser",5436:"alre",5437:"Amlogic",5438:"ART DOM",5439:"Brel",5441:"Kärcher",5442:"Lanbon",5447:"MACO",5450:"Sciener",5451:"SkyAngle",5452:"VIZO Technology",5456:"AvatarControls",5457:"Kaijet",5458:"DEWENWILS",5459:"SuperBrightLEDS",5461:"MIUC Technology",5464:"Ai-Thinker",5465:"tink",5467:"MinebeaMitsumi",5468:"Feierge",5470:"Sandstrom",5472:"SIXWGH",5474:"Renesas",5475:"StrongKey",5476:"NEXTY ELECTRONICS",5478:"ODELIC",5479:"Haier",5480:"Econet",5481:"Feller",5482:"xCREAS",5483:"ShinDong-A ES",5484:"Motionblinds",5486:"BrizLabs",5489:"Eurotronic",5490:"Babai",5491:"SELVE",5493:"Xizhen Electronics",5494:"Enlight",5496:"WINTEC KOREA",5497:"Hinkley",5498:"SMARTSPEC",5500:"L&S Lighting",5502:"APICAL",5506:"KEGU",5507:"MAMABA",5510:"Megaman",5512:"Atouch Winwel",5513:"Warmup",5514:"Flipper",5515:"Deasino",5516:"ZFL SMART",5518:"A solution",5519:"Bold Smart Lock",5520:"GL.iNet",5521:"ZH Currtain",5522:"MEAN WELL",5525:"Kotonic",5526:"Sensereo",5529:"Huarui",5530:"HAOJAI",5533:"wibutler",5534:"UIOT",5535:"Ltech",5537:"Delta Dore",5539:"Intermatic",5540:"Mikrotik",5541:"Laticrete",5543:"Hunter Fan",5544:"LOCKIN",5546:"GLEDOPTO",5547:"Accurate Lock & Hardware",5548:"SWAN Lite",5549:"AnablepSecurity",5551:"Corston",5552:"JustPlus",5553:"INSIIDA",5555:"MiBoxer",5557:"Brighter Lighting",5564:"Lysome",5565:"TBS",5566:"Easfina",5567:"Korrus",5568:"DIANXIAOKU",5570:"Kaadas",5572:"FAST ČR",5574:"Wozart",5575:"Homewell",5576:"Maktar",5577:"Ci Global",5580:"Schüco",5582:"MAKEGOOD",5583:"Globe Electric",5584:"Vantiva",5586:"Desjoyaux",5591:"Boldr",5594:"JEM Accessories",5597:"SG Armaturen",5598:"VoxAura",5599:"Vitrumshade",5600:"Leaguer MicroElectronics",5601:"NOVO",5603:"YCZNWL",5607:"Fresh Electric",5608:"Doorma",5609:"Sukces",5614:"moorgen",5615:"KASTA",5618:"Viomi",5620:"Tedee",5621:"Bouygues Telecom",5623:"AC Infinity",5625:"Narwal",5627:"nomos system",5630:"Senscomm",5637:"Remac Smart",5645:"SUFN",5646:"LLW",5647:"POYAL",5648:"Zhuhai Shengchang",5651:"Calex",5653:"Rayrun",5655:"Jianbian",5656:"Matterize Labs",5661:"ACME",5663:"Fatboy",5668:"Zhenghui",5669:"United Electric",5695:"ADT",24582:"Google Home"};function Zy(e){return P3e[e]??`Vendor ${e}`}const j3e={Alexa:v0,Amazon:v0,Apple:Lk,Google:SZ,SmartThings:AZ,Samsung:EZ,IKEA:wZ,Tuya:Nk,Xiaomi:_Z,Aqara:xZ,Shelly:kZ,Meross:CZ},$3e={1:O3e,4107:R3e,4142:k3e,4321:EZ,4362:AZ,4417:Nk,4447:xZ,4448:v0,4469:C3e,4476:wZ,4488:T7,4631:v0,4701:Nk,4718:_Z,4745:_3e,4757:w3e,4911:I3e,4933:CZ,4937:Lk,4957:D3e,4987:v0,4993:v0,4996:Lk,5009:T7,5010:T7,5023:T3e,5248:M3e,5264:kZ,5420:E3e,5398:A3e,5427:S3e,24582:SZ};function L3e(e){const t=$3e[e.rootVendorId];return t||Object.entries(j3e).find(([n])=>e.label.toUpperCase().includes(n.toUpperCase()))?.[1]}const DZ=({fabric:e})=>{const t=_.useMemo(()=>L3e(e),[e]);return m.jsx(cn,{title:`${e.label||Zy(e.rootVendorId)} (0x${e.rootVendorId.toString(16).toUpperCase().padStart(4,"0")})`,arrow:!0,children:m.jsx(ce,{component:"span",sx:{fill:n=>n.palette.text.primary},children:t?m.jsx(t,{style:{height:"1.4em",width:"auto",maxWidth:"3em",display:"block"}}):m.jsx(x3e,{})})})},N3e=e=>m.jsx(m.Fragment,{children:e.fabrics.map(t=>m.jsxs(ce,{display:"flex",alignItems:"center",gap:1.5,py:.5,children:[m.jsx(DZ,{fabric:t}),m.jsx(ie,{variant:"body2",children:t.label||Zy(t.rootVendorId)})]},t.fabricId))});function Tu(){return{show:_.useContext(bX).show}}const F3e=({bridge:e})=>m.jsxs(dt,{container:!0,spacing:2,children:[e.featureFlags?.serverMode&&e.featureFlags?.vacuumOnOff===!1&&m.jsx(dt,{size:{xs:12},children:m.jsxs(vn,{severity:"warning",icon:m.jsx(Yd,{}),children:[m.jsx(q4,{children:"Vacuum OnOff Disabled (Alexa incompatible)"}),"Alexa ",m.jsx("strong",{children:"requires"})," the OnOff cluster (PowerController) for robotic vacuums. With OnOff disabled, the vacuum commissions but never appears in the Alexa app. Only disable this if you exclusively use ",m.jsx("strong",{children:"Apple Home"}),"."]})}),!e.featureFlags?.serverMode&&e.featureFlags?.vacuumOnOff&&m.jsx(dt,{size:{xs:12},children:m.jsxs(vn,{severity:"info",icon:m.jsx(Yd,{}),children:[m.jsx(q4,{children:"Vacuum OnOff Cluster Enabled (Alexa)"}),"OnOff cluster is active for Alexa PowerController compatibility. This may cause issues with ",m.jsx("strong",{children:"Apple Home"})," and"," ",m.jsx("strong",{children:"Google Home"}),"."]})}),m.jsx(dt,{size:{xs:12,md:4},children:m.jsx(B3e,{bridge:e})}),m.jsx(dt,{size:{xs:12,md:4},children:m.jsx(z3e,{bridge:e})}),m.jsx(dt,{size:{xs:12,md:4},children:m.jsx(H3e,{bridge:e})}),m.jsx(dt,{size:{xs:12},children:m.jsx(U3e,{bridge:e})}),m.jsx(dt,{size:{xs:12},children:m.jsx(W3e,{bridge:e})})]}),B3e=({bridge:e})=>{const[t,n]=_.useState(!1),[r,i]=_.useState(!1),o=Tu(),s=async()=>{i(!0);try{await C2e(e.id),n(!0)}catch(l){o.show({message:`Failed to open commissioning window: ${l instanceof Error?l.message:String(l)}`,severity:"error"})}finally{i(!1)}};if(!e.commissioning)return m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"grey.500"},children:m.jsx(F5,{})}),m.jsx(ie,{variant:"h6",children:"Pairing"})]}),m.jsx(ie,{color:"text.secondary",children:"Bridge is not running. Start the bridge to see pairing information."})]})});const a=l=>{navigator.clipboard.writeText(l)};return m.jsxs(m.Fragment,{children:[m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"primary.main"},children:m.jsx(F5,{})}),m.jsx(ie,{variant:"h6",children:"Pairing"})]}),m.jsxs(ce,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,children:[m.jsxs(ce,{position:"relative",children:[e.commissioning.isCommissioned&&m.jsx(ce,{position:"absolute",top:"50%",left:"50%",sx:{transform:"translate(-50%, -50%) rotate(-45deg)",zIndex:1},children:m.jsx(Et,{label:"Commissioned",color:"success",size:"small"})}),m.jsx(ce,{sx:{background:"white",padding:1,borderRadius:1,opacity:e.commissioning.isCommissioned?.5:1},children:m.jsx(JO,{value:e.commissioning.qrPairingCode,size:120})})]}),m.jsx(zt,{spacing:1,width:"100%",children:m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Manual Code:"}),m.jsxs(ce,{display:"flex",alignItems:"center",gap:.5,children:[m.jsx(ie,{variant:"body2",fontFamily:"monospace",children:e.commissioning.manualPairingCode}),m.jsx(_n,{size:"small",onClick:()=>a(e.commissioning.manualPairingCode),children:m.jsx(Ah,{fontSize:"small"})})]})]})}),e.commissioning.isCommissioned&&m.jsx(kt,{variant:"outlined",size:"small",startIcon:r?m.jsx(zr,{size:16}):m.jsx(F5,{}),onClick:s,disabled:r,fullWidth:!0,children:r?"Opening Commissioning Window...":"Add Another Controller"})]})]})}),m.jsx(V3e,{bridge:e,open:t,onClose:()=>n(!1)})]})},z3e=({bridge:e})=>m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"info.main"},children:m.jsx(YO,{})}),m.jsx(ie,{variant:"h6",children:"Bridge Info"})]}),m.jsxs(zt,{spacing:1.5,children:[m.jsxs(ce,{children:[m.jsx(ie,{variant:"caption",color:"text.secondary",children:"Bridge ID"}),m.jsx(ie,{variant:"body2",fontFamily:"monospace",noWrap:!0,children:e.id})]}),m.jsx(gi,{}),m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Port"}),m.jsx(ie,{variant:"body2",fontWeight:"medium",children:e.port})]}),m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Devices"}),m.jsx(Et,{icon:m.jsx(Fs,{}),label:e.deviceCount,size:"small",color:"primary",variant:"outlined"})]}),e.commissioning&&m.jsxs(m.Fragment,{children:[m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Passcode"}),m.jsx(ie,{variant:"body2",fontFamily:"monospace",children:e.commissioning.passcode})]}),m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Discriminator"}),m.jsx(ie,{variant:"body2",fontFamily:"monospace",children:e.commissioning.discriminator})]})]})]})]})}),H3e=({bridge:e})=>{const t=e.commissioning?.fabrics??[],[n,r]=_.useState(!1),i=Tu(),o=async()=>{r(!0);try{const s=await LX(e.id);i.show({message:`Synced ${s.syncedCount} devices to controllers`,severity:"success"})}catch(s){i.show({message:`Force sync failed: ${s instanceof Error?s.message:String(s)}`,severity:"error"})}finally{r(!1)}};return m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:t.length>0?"success.main":"grey.500"},children:m.jsx(sZ,{})}),m.jsxs(ie,{variant:"h6",children:["Connected Fabrics (",t.length,")"]})]}),t.length===0?m.jsx(ie,{color:"text.secondary",children:"No controllers connected yet. Scan the QR code with your Matter controller to pair this bridge."}):m.jsxs(zt,{spacing:2,children:[m.jsx(N3e,{fabrics:t}),m.jsx(cn,{title:"Push all current device states to connected controllers",children:m.jsx(kt,{variant:"outlined",size:"small",startIcon:n?m.jsx(zr,{size:16}):m.jsx(dw,{}),onClick:o,disabled:n,fullWidth:!0,children:n?"Syncing...":"Force Sync"})})]})]})})},U3e=({bridge:e})=>{const t=hf(),n=e.filter.include.length>0||e.filter.exclude.length>0;return m.jsx(tr,{children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"warning.main"},children:m.jsx(uw,{})}),m.jsx(ie,{variant:"h6",sx:{flexGrow:1},children:"Entity Filters"}),m.jsx(cn,{title:n?"Edit Filters":"Add Filters",children:m.jsx(_n,{size:"small",onClick:()=>t(Pt.editBridge(e.id)),children:n?m.jsx(cw,{}):m.jsx(fc,{})})})]}),n?m.jsxs(zt,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[e.filter.include.map(r=>m.jsx(Et,{size:"small",icon:m.jsx(fc,{}),label:m.jsxs("span",{children:[m.jsx("strong",{children:r.type}),": ",r.value]}),color:"success",variant:"outlined"},`include-${r.type}-${r.value}`)),e.filter.exclude.map(r=>m.jsx(Et,{size:"small",icon:m.jsx(oZ,{}),label:m.jsxs("span",{children:[m.jsx("strong",{children:r.type}),": ",r.value]}),color:"error",variant:"outlined"},`exclude-${r.type}-${r.value}`))]}):m.jsx(ie,{variant:"body2",color:"text.secondary",children:"No filters configured. All supported entities will be exposed."})]})})},V3e=({bridge:e,open:t,onClose:n})=>{if(!e.commissioning)return null;const r=i=>{navigator.clipboard.writeText(i)};return m.jsxs(vu,{open:t,onClose:n,maxWidth:"sm",fullWidth:!0,children:[m.jsx(Su,{children:m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,children:[m.jsx(F5,{}),"Add Another Controller"]})}),m.jsxs(xu,{children:[m.jsx(ie,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"Scan this QR code with your Matter controller (Apple Home, Google Home, Alexa, etc.) to add this bridge to another ecosystem."}),m.jsx(ce,{display:"flex",justifyContent:"center",my:3,children:m.jsx(ce,{sx:{background:"white",padding:2,borderRadius:1},children:m.jsx(JO,{value:e.commissioning.qrPairingCode,size:200})})}),m.jsxs(zt,{spacing:1,children:[m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsxs(ie,{variant:"body2",children:[m.jsx("strong",{children:"Manual Code:"})," ",e.commissioning.manualPairingCode]}),m.jsx(cn,{title:"Copy",children:m.jsx(_n,{size:"small",onClick:()=>r(e.commissioning.manualPairingCode),children:m.jsx(Ah,{fontSize:"small"})})})]}),m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsxs(ie,{variant:"body2",children:[m.jsx("strong",{children:"Passcode:"})," ",e.commissioning.passcode]}),m.jsx(cn,{title:"Copy",children:m.jsx(_n,{size:"small",onClick:()=>r(e.commissioning.passcode.toString()),children:m.jsx(Ah,{fontSize:"small"})})})]}),m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsxs(ie,{variant:"body2",children:[m.jsx("strong",{children:"Discriminator:"})," ",e.commissioning.discriminator]}),m.jsx(cn,{title:"Copy",children:m.jsx(_n,{size:"small",onClick:()=>r(e.commissioning.discriminator.toString()),children:m.jsx(Ah,{fontSize:"small"})})})]})]}),m.jsx(vn,{severity:"info",sx:{mt:2},children:m.jsx(ie,{variant:"body2",children:"Matter supports connecting the same bridge to multiple controllers simultaneously. Each controller will have independent control."})})]}),m.jsx(Xd,{children:m.jsx(kt,{onClick:n,children:"Close"})})]})},W3e=({bridge:e})=>{const t=e.failedEntities;return!t||t.length===0?null:m.jsx(tr,{children:m.jsx(gr,{children:m.jsxs(vn,{severity:"warning",icon:m.jsx(KO,{}),children:[m.jsxs(q4,{children:["Failed Entities (",t.length,")"]}),m.jsx(ie,{variant:"body2",component:"div",children:"The following entities could not be added to the bridge:"}),m.jsx(ce,{sx:{mt:1,maxHeight:200,overflow:"auto"},children:t.map(n=>m.jsxs(ce,{sx:{mb:.5},children:[m.jsx(ie,{variant:"body2",component:"span",fontWeight:"bold",children:n.entityId}),m.jsxs(ie,{variant:"body2",component:"span",color:"text.secondary",children:[" — ",n.reason]})]},n.entityId))})]})})})};var Vl;(function(e){e.Starting="starting",e.Running="running",e.Stopped="stopped",e.Failed="failed"})(Vl||(Vl={}));var Ar;(function(e){e.Pattern="pattern",e.Regex="regex",e.Domain="domain",e.Platform="platform",e.Label="label",e.EntityLabel="entity_label",e.DeviceLabel="device_label",e.Area="area",e.EntityCategory="entity_category",e.DeviceName="device_name",e.ProductName="product_name",e.DeviceClass="device_class"})(Ar||(Ar={}));const OZ=[{id:"all_lights",name:"All Lights",description:"Expose all light entities. Ideal for controlling lights via Apple Home, Google Home, or Alexa.",icon:"light",filter:{include:[{type:Ar.Domain,value:"light"}],exclude:[]},featureFlags:{autoBatteryMapping:!0},tags:["lights","popular"]},{id:"all_switches",name:"All Switches & Plugs",description:"Expose all switch entities including smart plugs. Includes power and energy monitoring.",icon:"switch",filter:{include:[{type:Ar.Domain,value:"switch"}],exclude:[]},featureFlags:{},tags:["switches","plugs"]},{id:"sensors_only",name:"All Sensors",description:"Expose temperature, humidity, pressure, and other sensors. Auto-combines related sensors from the same device.",icon:"sensor",filter:{include:[{type:Ar.Domain,value:"sensor"},{type:Ar.Domain,value:"binary_sensor"}],exclude:[]},featureFlags:{autoBatteryMapping:!0,autoHumidityMapping:!0,autoPressureMapping:!0},tags:["sensors","temperature","humidity"]},{id:"climate_control",name:"Climate & Covers",description:"Expose thermostats, fans, covers, and humidifiers for climate control.",icon:"climate",filter:{include:[{type:Ar.Domain,value:"climate"},{type:Ar.Domain,value:"fan"},{type:Ar.Domain,value:"cover"},{type:Ar.Domain,value:"humidifier"}],exclude:[]},featureFlags:{autoBatteryMapping:!0},tags:["climate","thermostat","covers"]},{id:"security",name:"Security & Locks",description:"Expose locks, alarm panels, and security-related binary sensors (motion, door, window).",icon:"lock",filter:{include:[{type:Ar.Domain,value:"lock"},{type:Ar.Domain,value:"alarm_control_panel"},{type:Ar.DeviceClass,value:"motion"},{type:Ar.DeviceClass,value:"door"},{type:Ar.DeviceClass,value:"window"}],exclude:[],includeMode:"any"},featureFlags:{autoBatteryMapping:!0},tags:["security","locks","alarm"]},{id:"robot_vacuum",name:"Robot Vacuum (Server Mode)",description:"Single vacuum bridge with Server Mode enabled. Required for Apple Home Siri commands and proper Alexa discovery. Add only ONE vacuum to this bridge.",icon:"vacuum",filter:{include:[{type:Ar.Domain,value:"vacuum"}],exclude:[]},featureFlags:{serverMode:!0},tags:["vacuum","server-mode","apple-home"]},{id:"media_players",name:"Media Players & Speakers",description:"Expose media players, speakers, and TVs for volume and playback control.",icon:"media_player",filter:{include:[{type:Ar.Domain,value:"media_player"}],exclude:[]},featureFlags:{},tags:["media","speakers","tv"]},{id:"google_home_optimized",name:"Google Home Optimized",description:"All devices with Auto Force Sync enabled. Prevents Google Home from showing devices as offline after a few hours.",icon:"default",filter:{include:[{type:Ar.Pattern,value:"*"}],exclude:[]},featureFlags:{autoForceSync:!0,autoBatteryMapping:!0,autoHumidityMapping:!0,autoPressureMapping:!0},tags:["google-home","all-devices"]},{id:"alexa_covers",name:"Alexa-Optimized Covers",description:"Covers with Alexa-friendly percentage display. Displayed percentage matches Home Assistant values.",icon:"cover",filter:{include:[{type:Ar.Domain,value:"cover"}],exclude:[]},featureFlags:{coverUseHomeAssistantPercentage:!0,autoBatteryMapping:!0},tags:["alexa","covers"]},{id:"automations_scripts",name:"Automations & Scripts",description:"Expose Home Assistant automations, scripts, and scenes as Matter switches.",icon:"remote",filter:{include:[{type:Ar.Domain,value:"automation"},{type:Ar.Domain,value:"script"},{type:Ar.Domain,value:"scene"}],exclude:[]},featureFlags:{},tags:["automations","scripts","scenes"]}];var CF;(function(e){e[e.locked=1]="locked",e[e.unlocked=2]="unlocked"})(CF||(CF={}));var EF;(function(e){e[e.Off=0]="Off",e[e.Low=1]="Low",e[e.Medium=2]="Medium",e[e.High=3]="High",e[e.On=4]="On",e[e.Auto=5]="Auto",e[e.Smart=6]="Smart"})(EF||(EF={}));var AF;(function(e){e[e.Forward=0]="Forward",e[e.Reverse=1]="Reverse"})(AF||(AF={}));var kF;(function(e){e[e.OffLowMedHigh=0]="OffLowMedHigh",e[e.OffLowHigh=1]="OffLowHigh",e[e.OffLowMedHighAuto=2]="OffLowMedHighAuto",e[e.OffLowHighAuto=3]="OffLowHighAuto",e[e.OffHighAuto=4]="OffHighAuto",e[e.OffHigh=5]="OffHigh"})(kF||(kF={}));var _F;(function(e){e[e.Stopped=0]="Stopped",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Error=3]="Error",e[e.SeekingCharger=64]="SeekingCharger",e[e.Charging=65]="Charging",e[e.Docked=66]="Docked"})(_F||(_F={}));var DF;(function(e){e[e.Off=0]="Off",e[e.Auto=1]="Auto",e[e.Cool=3]="Cool",e[e.Heat=4]="Heat",e[e.EmergencyHeat=5]="EmergencyHeat",e[e.Precooling=6]="Precooling",e[e.FanOnly=7]="FanOnly",e[e.Dry=8]="Dry",e[e.Sleep=9]="Sleep"})(DF||(DF={}));var Fk;(function(e){e.homeAssistantEntity="homeAssistantEntity",e.identify="identify",e.groups="groups",e.scenesManagement="scenesManagement",e.bridgedDeviceBasicInformation="bridgedDeviceBasicInformation",e.airQuality="airQuality",e.booleanState="booleanState",e.colorControl="colorControl",e.doorLock="doorLock",e.flowMeasurement="flowMeasurement",e.levelControl="levelControl",e.fanControl="fanControl",e.illuminanceMeasurement="illuminanceMeasurement",e.occupancySensing="occupancySensing",e.onOff="onOff",e.powerSource="powerSource",e.pressureMeasurement="pressureMeasurement",e.relativeHumidityMeasurement="relativeHumidityMeasurement",e.smokeCoAlarm="smokeCoAlarm",e.temperatureMeasurement="temperatureMeasurement",e.thermostat="thermostat",e.thermostatUserInterfaceConfiguration="thermostatUserInterfaceConfiguration",e.valveConfigurationAndControl="valveConfigurationAndControl",e.windowCovering="windowCovering",e.mediaInput="mediaInput",e.rvcCleanMode="rvcCleanMode",e.rvcRunMode="rvcRunMode",e.rvcOperationalState="rvcOperationalState",e.serviceArea="serviceArea",e.switch="switch",e.modeSelect="modeSelect"})(Fk||(Fk={}));var OF;(function(e){e.Battery="battery",e.BatteryCharging="battery_charging",e.CarbonMonoxide="carbon_monoxide",e.Cold="cold",e.Connectivity="connectivity",e.Door="door",e.GarageDoor="garage_door",e.Gas="gas",e.Heat="heat",e.Light="light",e.Lock="lock",e.Moisture="moisture",e.Motion="motion",e.Moving="moving",e.Occupancy="occupancy",e.Opening="opening",e.Plug="plug",e.Power="power",e.Presence="presence",e.Problem="problem",e.Running="running",e.Safety="safety",e.Smoke="smoke",e.Sound="sound",e.Tamper="tamper",e.Update="update",e.Vibration="vibration",e.Window="window"})(OF||(OF={}));var TF;(function(e){e.off="off",e.heat="heat",e.cool="cool",e.heat_cool="heat_cool",e.auto="auto",e.dry="dry",e.fan_only="fan_only"})(TF||(TF={}));var MF;(function(e){e.off="off",e.preheating="preheating",e.heating="heating",e.cooling="cooling",e.drying="drying",e.fan="fan",e.idle="idle",e.defrosting="defrosting"})(MF||(MF={}));var RF;(function(e){e[e.TARGET_TEMPERATURE=1]="TARGET_TEMPERATURE",e[e.TARGET_TEMPERATURE_RANGE=2]="TARGET_TEMPERATURE_RANGE",e[e.TARGET_HUMIDITY=4]="TARGET_HUMIDITY",e[e.FAN_MODE=8]="FAN_MODE",e[e.PRESET_MODE=16]="PRESET_MODE",e[e.SWING_MODE=32]="SWING_MODE",e[e.AUX_HEAT=64]="AUX_HEAT",e[e.TURN_OFF=128]="TURN_OFF",e[e.TURN_ON=256]="TURN_ON",e[e.SWING_HORIZONTAL_MODE=512]="SWING_HORIZONTAL_MODE"})(RF||(RF={}));var IF;(function(e){e.closed="closed",e.open="open",e.closing="closing",e.opening="opening"})(IF||(IF={}));var PF;(function(e){e.button="button",e.doorbell="doorbell",e.motion="motion"})(PF||(PF={}));var jF;(function(e){e.FORWARD="forward",e.REVERSE="reverse"})(jF||(jF={}));var $F;(function(e){e[e.SET_SPEED=1]="SET_SPEED",e[e.OSCILLATE=2]="OSCILLATE",e[e.DIRECTION=4]="DIRECTION",e[e.PRESET_MODE=8]="PRESET_MODE",e[e.TURN_OFF=16]="TURN_OFF",e[e.TURN_ON=32]="TURN_ON"})($F||($F={}));var LF;(function(e){e.UNKNOWN="unknown",e.ONOFF="onoff",e.BRIGHTNESS="brightness",e.COLOR_TEMP="color_temp",e.HS="hs",e.XY="xy",e.RGB="rgb",e.RGBW="rgbw",e.RGBWW="rgbww",e.WHITE="white"})(LF||(LF={}));var NF;(function(e){e.Tv="tv",e.Speaker="speaker",e.Receiver="receiver"})(NF||(NF={}));var FF;(function(e){e[e.PAUSE=1]="PAUSE",e[e.SEEK=2]="SEEK",e[e.VOLUME_SET=4]="VOLUME_SET",e[e.VOLUME_MUTE=8]="VOLUME_MUTE",e[e.PREVIOUS_TRACK=16]="PREVIOUS_TRACK",e[e.NEXT_TRACK=32]="NEXT_TRACK",e[e.TURN_ON=128]="TURN_ON",e[e.TURN_OFF=256]="TURN_OFF",e[e.PLAY_MEDIA=512]="PLAY_MEDIA",e[e.VOLUME_STEP=1024]="VOLUME_STEP",e[e.SELECT_SOURCE=2048]="SELECT_SOURCE",e[e.STOP=4096]="STOP",e[e.CLEAR_PLAYLIST=8192]="CLEAR_PLAYLIST",e[e.PLAY=16384]="PLAY",e[e.SHUFFLE_SET=32768]="SHUFFLE_SET",e[e.SELECT_SOUND_MODE=65536]="SELECT_SOUND_MODE",e[e.BROWSE_MEDIA=131072]="BROWSE_MEDIA",e[e.REPEAT_SET=262144]="REPEAT_SET",e[e.GROUPING=524288]="GROUPING",e[e.MEDIA_ANNOUNCE=1048576]="MEDIA_ANNOUNCE",e[e.MEDIA_ENQUEUE=2097152]="MEDIA_ENQUEUE"})(FF||(FF={}));var BF;(function(e){e.None="None",e.apparent_power="apparent_power",e.aqi="aqi",e.atmospheric_pressure="atmospheric_pressure",e.battery="battery",e.carbon_dioxide="carbon_dioxide",e.carbon_monoxide="carbon_monoxide",e.current="current",e.data_rate="data_rate",e.data_size="data_size",e.date="date",e.distance="distance",e.duration="duration",e.energy="energy",e.energy_storage="energy_storage",e.enum="enum",e.frequency="frequency",e.gas="gas",e.humidity="humidity",e.illuminance="illuminance",e.irradiance="irradiance",e.moisture="moisture",e.monetary="monetary",e.nitrogen_dioxide="nitrogen_dioxide",e.nitrogen_monoxide="nitrogen_monoxide",e.nitrous_oxide="nitrous_oxide",e.ozone="ozone",e.ph="ph",e.pm1="pm1",e.pm25="pm25",e.pm10="pm10",e.power_factor="power_factor",e.power="power",e.precipitation="precipitation",e.precipitation_intensity="precipitation_intensity",e.pressure="pressure",e.reactive_power="reactive_power",e.signal_strength="signal_strength",e.sound_pressure="sound_pressure",e.speed="speed",e.sulphur_dioxide="sulphur_dioxide",e.temperature="temperature",e.timestamp="timestamp",e.volatile_organic_compounds="volatile_organic_compounds",e.volatile_organic_compounds_parts="volatile_organic_compounds_parts",e.voltage="voltage",e.volume="volume",e.volume_flow_rate="volume_flow_rate",e.volume_storage="volume_storage",e.water="water",e.weight="weight",e.wind_speed="wind_speed"})(BF||(BF={}));var zF;(function(e){e.cleaning="cleaning",e.docked="docked",e.returning="returning",e.error="error",e.idle="idle",e.paused="paused",e.segment_cleaning="segment_cleaning",e.zone_cleaning="zone_cleaning",e.spot_cleaning="spot_cleaning",e.mop_cleaning="mop_cleaning"})(zF||(zF={}));var HF;(function(e){e[e.TURN_ON=1]="TURN_ON",e[e.TURN_OFF=2]="TURN_OFF",e[e.PAUSE=4]="PAUSE",e[e.STOP=8]="STOP",e[e.RETURN_HOME=16]="RETURN_HOME",e[e.FAN_SPEED=32]="FAN_SPEED",e[e.BATTERY=64]="BATTERY",e[e.STATUS=128]="STATUS",e[e.SEND_COMMAND=256]="SEND_COMMAND",e[e.LOCATE=512]="LOCATE",e[e.CLEAN_SPOT=1024]="CLEAN_SPOT",e[e.MAP=2048]="MAP",e[e.STATE=4096]="STATE",e[e.START=8192]="START"})(HF||(HF={}));var UF;(function(e){e.off="off",e.low="low",e.medium="medium",e.high="high",e.turbo="turbo",e.auto="auto",e.max="max"})(UF||(UF={}));var VF;(function(e){e.off="off",e.eco="eco",e.electric="electric",e.gas="gas",e.heat_pump="heat_pump",e.high_demand="high_demand",e.performance="performance"})(VF||(VF={}));var WF;(function(e){e[e.TARGET_TEMPERATURE=1]="TARGET_TEMPERATURE",e[e.OPERATION_MODE=2]="OPERATION_MODE",e[e.AWAY_MODE=4]="AWAY_MODE",e[e.ON_OFF=8]="ON_OFF"})(WF||(WF={}));const qF={air_purifier:"Air Purifier",air_quality_sensor:"Air Quality Sensor",basic_video_player:"Basic Video Player (TV)",battery_storage:"Battery Sensor",color_dimmer_switch:"Color Dimmer Switch",color_temperature_light:"Color Temperature Light",contact_sensor:"Contact Sensor",dimmable_light:"Dimmable Light",dimmable_plugin_unit:"Dimmable Plug-in Unit",dimmer_switch:"Dimmer Switch",door_lock:"Door Lock",extended_color_light:"Extended Color Light",fan:"Fan",flow_sensor:"Flow Sensor",generic_switch:"Generic Switch (Button)",humidifier_dehumidifier:"Humidifier/Dehumidifier",humidity_sensor:"Humidity Sensor",light_sensor:"Light Sensor",mode_select:"Mode Select",occupancy_sensor:"Occupancy Sensor",on_off_light:"On/Off Light",on_off_plugin_unit:"On/Off Plug-in Unit",on_off_switch:"On/Off Switch",pressure_sensor:"Pressure Sensor",pump:"Pump",robot_vacuum_cleaner:"Robot Vacuum Cleaner",smoke_co_alarm:"Smoke/CO Alarm",speaker:"Speaker",temperature_sensor:"Temperature Sensor",thermostat:"Thermostat",tvoc_sensor:"TVOC / VOC Index Sensor",water_heater:"Water Heater",water_freeze_detector:"Water Freeze Detector",water_leak_detector:"Water Leak Detector",water_valve:"Water Valve",window_covering:"Window Covering"},f1={Auto:0,Quick:1,Quiet:2,LowNoise:3,LowEnergy:4,Vacation:5,Min:6,Max:7,Night:8,Day:9,DeepClean:16384,Vacuum:16385,Mop:16386,VacuumThenMop:16387},q3e={alarm_control_panel:["mode_select","on_off_plugin_unit"],automation:["on_off_switch"],binary_sensor:["contact_sensor","occupancy_sensor","smoke_co_alarm","water_freeze_detector","water_leak_detector"],button:["generic_switch"],climate:["thermostat"],cover:["window_covering"],event:["generic_switch"],fan:["air_purifier","fan"],humidifier:["humidifier_dehumidifier"],input_boolean:["on_off_plugin_unit","on_off_switch"],input_select:["mode_select"],input_button:["generic_switch"],light:["color_temperature_light","dimmable_light","extended_color_light","on_off_light"],lock:["door_lock"],media_player:["basic_video_player","on_off_switch","speaker"],scene:["on_off_switch"],script:["on_off_switch"],sensor:["air_quality_sensor","battery_storage","humidity_sensor","light_sensor","pressure_sensor","temperature_sensor","tvoc_sensor"],select:["mode_select"],switch:["on_off_plugin_unit","on_off_switch","pump","water_valve"],vacuum:["robot_vacuum_cleaner"],valve:["water_valve","on_off_plugin_unit"],water_heater:["water_heater","thermostat"]};var GF;(function(e){e.alarm_control_panel="alarm_control_panel",e.automation="automation",e.button="button",e.binary_sensor="binary_sensor",e.climate="climate",e.cover="cover",e.event="event",e.fan="fan",e.humidifier="humidifier",e.input_boolean="input_boolean",e.input_button="input_button",e.input_select="input_select",e.light="light",e.lock="lock",e.media_player="media_player",e.remote="remote",e.scene="scene",e.select="select",e.script="script",e.sensor="sensor",e.switch="switch",e.vacuum="vacuum",e.valve="valve",e.water_heater="water_heater"})(GF||(GF={}));const KF={type:"object",default:{type:"",value:""},properties:{type:{title:"Type",type:"string",oneOf:[{const:"pattern",title:"pattern",description:"Wildcard pattern matching entity IDs. Use * as wildcard. Example: 'light.living_room_*' matches all lights in the living room."},{const:"regex",title:"regex",description:"Full regular expression matching entity IDs. Use ^ and $ for anchors. Example: '^(light|switch)\\.kitchen_.*' matches all kitchen lights and switches."},{const:"domain",title:"domain",description:"Match entities by their domain (the part before the dot). Example: 'light', 'switch', 'sensor'."},{const:"platform",title:"platform",description:"Match entities by their integration/platform. Example: 'hue', 'zwave', 'mqtt'."},{const:"entity_label",title:"entity_label",description:"Matches only entities that have this label assigned directly. Other entities of the same device are NOT included."},{const:"device_label",title:"device_label",description:"Matches ALL entities of a device if the device has this label. Use this to include a complete device with all its entities."},{const:"area",title:"area",description:"Match entities by their area slug. Example: 'living_room', 'bedroom'."},{const:"entity_category",title:"entity_category",description:"Match entities by their category. Example: 'config', 'diagnostic' to exclude configuration entities."},{const:"device_name",title:"device_name",description:"Match entities by their device name. Supports wildcards. Example: '*Philips*' matches all Philips devices."},{const:"product_name",title:"product_name",description:"Match entities by their product/model name. Supports wildcards. Example: 'Hue*Bulb'."},{const:"device_class",title:"device_class",description:"Match entities by their device class attribute. Example: 'temperature', 'motion', 'door', 'window'."}]},value:{title:"Value",description:"For labels, use the display name or the label_id (slug). You can look up both on the Labels page in the sidebar.",type:"string",minLength:1}},required:["type","value"],additionalProperties:!1},G3e={title:"Include or exclude entities",type:"object",properties:{include:{title:"Include",type:"array",items:KF},exclude:{title:"Exclude",type:"array",items:KF},includeMode:{title:"Include Mode",type:"string",description:"How to combine include rules: 'any' matches if ANY rule matches (OR), 'all' matches only if ALL rules match (AND). Default: 'any'",enum:["any","all"],default:"any"}},required:["include","exclude"],additionalProperties:!1},K3e={title:"Feature Flags",type:"object",properties:{coverDoNotInvertPercentage:{title:"Do not invert Percentages for Covers",description:"Do not invert the percentage of covers to match Home Assistant (not Matter compliant)",type:"boolean",default:!1},coverUseHomeAssistantPercentage:{title:"Use Home Assistant Percentage for Covers (Alexa-friendly)",description:"Display cover percentages matching Home Assistant values in Matter controllers like Alexa. This makes the displayed percentage match what you see in Home Assistant, but the semantic meaning differs: in HA, higher percentage = more open; in Alexa, higher percentage is typically interpreted as more closed. Open/Close commands will still work correctly.",type:"boolean",default:!1},coverSwapOpenClose:{title:"Swap Open/Close for Covers",description:"Swap open/close commands and invert position reporting for covers. Enable this if Alexa voice commands are reversed (saying 'close' opens the blinds and vice versa).",type:"boolean",default:!1},includeHiddenEntities:{title:"Include Hidden Entities",description:"Include entities that are marked as hidden in Home Assistant",type:"boolean",default:!1},alexaPreserveBrightnessOnTurnOn:{title:"Alexa: Preserve Brightness on Turn-On (Deprecated)",description:"This workaround is now always active and this setting has no effect. The bridge automatically ignores brightness commands that set lights to 100% immediately after a turn-on command.",type:"boolean",default:!0},serverMode:{title:"Server Mode (for Robot Vacuums)",description:"Expose the device as a standalone Matter device instead of a bridged device. This is required for Apple Home to properly support Siri voice commands for Robot Vacuums. IMPORTANT: Only ONE device should be in this bridge when server mode is enabled.",type:"boolean",default:!1},autoBatteryMapping:{title:"Auto Battery Mapping",description:"Automatically assign battery sensors from the same Home Assistant device to the main entity. When enabled, battery sensors will be merged into their parent devices instead of appearing as separate devices.",type:"boolean",default:!1},autoHumidityMapping:{title:"Auto Humidity Mapping",description:"Automatically combine humidity sensors with temperature sensors from the same Home Assistant device. When enabled, humidity sensors will be merged into temperature sensors to create combined TemperatureHumiditySensor devices.",type:"boolean",default:!0},autoPressureMapping:{title:"Auto Pressure Mapping",description:"Automatically combine pressure sensors with temperature sensors from the same Home Assistant device. When enabled, pressure sensors will be merged into temperature sensors to create combined sensor devices.",type:"boolean",default:!0},autoComposedDevices:{title:"Auto Composed Devices",description:"Master toggle: automatically combine related entities from the same Home Assistant device into single Matter endpoints. Enables battery, humidity, pressure, power, and energy auto-mapping at once. This provides a cleaner device experience in Matter controllers (e.g., a Shelly Plug appears as one device with power monitoring).",type:"boolean",default:!1},autoForceSync:{title:"Auto Force Sync",description:"Periodically compare and push all device states to connected controllers every 90 seconds. Enable this if devices get out of sync after extended periods. Health checks for dead sessions always run regardless of this setting.",type:"boolean",default:!1},vacuumOnOff:{title:"Vacuum: Include OnOff Cluster (Alexa)",description:"Add an OnOff cluster to robot vacuum endpoints. Alexa REQUIRES this (PowerController) to show robotic vacuums in the app. Without it, Alexa commissions the device but never displays it. In Server Mode this is enabled automatically — only check this for bridge mode. WARNING: OnOff is NOT part of the Matter RVC device type specification. Enabling this may break Apple Home (shows 'Updating') and Google Home.",type:"boolean"},vacuumMinimalClusters:{title:"Vacuum: Minimal Clusters (Alexa troubleshooting)",description:"Strip the vacuum endpoint to only the clusters required by the Matter RVC spec. Removes PowerSource (battery) and the default ServiceArea placeholder. Enable this if Alexa commissions the vacuum but the device never appears in the app. Trade-off: battery percentage will not be reported to Matter controllers.",type:"boolean",default:!1}},additionalProperties:!1},cy={type:"object",title:"Bridge Config",properties:{name:{title:"Name",type:"string",minLength:1,maxLength:32},port:{title:"Port",type:"number",minimum:1},icon:{title:"Icon",type:"string",description:"Icon to display for this bridge in the UI",enum:["light","switch","climate","cover","fan","lock","sensor","media_player","vacuum","remote","humidifier","speaker","garage","door","window","motion","battery","power","camera","default"]},countryCode:{title:"Country Code",type:"string",description:"An ISO 3166-1 alpha-2 code to represent the country in which the Node is located. Only needed if the commissioning fails due to missing country code.",minLength:2,maxLength:3},priority:{title:"Startup Priority",type:"number",description:"Startup order priority. Lower values start first. Default is 100.",default:100,minimum:1,maximum:999},filter:G3e,featureFlags:K3e},required:["name","port","filter"],additionalProperties:!1};({...cy,properties:{...cy.properties},required:[...cy?.required??[]]});const Y3e={[Vl.Failed]:"error",[Vl.Stopped]:"warning",[Vl.Starting]:"info",[Vl.Running]:"success"},X3e=({status:e,reason:t})=>{if(t)return m.jsx(vn,{severity:Y3e[e],variant:"outlined",children:t})},Mu=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),vf=_e(m.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-2h2zm0-4h-2V7h2z"})),Z3e=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 14H9V8h2zm4 0h-2V8h2z"})),J3e={[Vl.Starting]:{label:"Starting",color:"info",icon:m.jsx(dw,{fontSize:"small"})},[Vl.Running]:{label:"Running",color:"success",icon:m.jsx(Mu,{fontSize:"small"})},[Vl.Stopped]:{label:"Stopped",color:"warning",icon:m.jsx(Z3e,{fontSize:"small"})},[Vl.Failed]:{label:"Failed",color:"error",icon:m.jsx(vf,{fontSize:"small"})}},TZ=({status:e,reason:t})=>{const n=J3e[e],r=m.jsx(Et,{icon:n.icon,label:n.label,size:"small",color:n.color,variant:"filled",sx:{fontWeight:500}});return t?m.jsx(cn,{title:t,children:r}):r},MZ=_e(m.jsx("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4M13 18h-2v-2h2zm0-4h-2V9h2z"})),RZ=_e(m.jsx("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4M11 20v-5.5H9L13 7v5.5h2z"})),Bk=_e(m.jsx("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"})),Jy=_e(m.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"})),QO=_e([m.jsx("path",{d:"M15.11 12.45 14 10.24l-3.11 6.21c-.16.34-.51.55-.89.55s-.73-.21-.89-.55L7.38 13H2v5c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-5h-6c-.38 0-.73-.21-.89-.55"},"0"),m.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v5h6c.38 0 .73.21.89.55L10 13.76l3.11-6.21c.34-.68 1.45-.68 1.79 0L16.62 11H22V6c0-1.1-.9-2-2-2"},"1")]);function Q3e(e){return Qe("MuiLinearProgress",e)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const zk=4,Hk=pf`
163
+ `),_.createElement("clipPath",{id:"clippath"},_.createElement("path",{className:"cls-1",d:"M152.8,32.08h-6.03V12.37c0-.27-.22-.49-.49-.49h-9.76c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h5.28v15.63h-6.03c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h17.02c.27,0,.49-.22.49-.49v-3.59c0-.27-.22-.49-.49-.49ZM119.4,11.55c-2.76,0-5.17,1.2-6.76,3.04v-2.22c0-.27-.22-.49-.49-.49h-3.99c-.27,0-.49.22-.49.49v23.79c0,.27.22.49.49.49h3.99c.27,0,.49-.22.49-.49v-13.83c0-3.47,2.43-6.2,5.75-6.2,2.96,0,4.81,1.77,5.33,4.08.13.6.21,1.5.21,2.24v13.72c0,.27.22.49.49.49h3.99c.27,0,.49-.22.49-.49v-12.78c0-1.99-.09-2.88-.23-3.9-.67-4.51-4.29-7.93-9.26-7.93ZM24.16,15.84c2.71,0,4.28,1.34,4.7,3.59.05.28.29.48.57.48h4.08c.29,0,.52-.26.48-.55-.63-5.02-4.72-7.97-9.72-7.97-4.7,0-9.24,2.57-9.24,7.68,0,4.22,3.14,6.1,6.72,6.96l3.95.92c2.01.48,3.32,1.34,3.32,2.83,0,2.04-2.09,2.85-4.33,2.85-2.92,0-4.6-1.29-5.02-3.69-.05-.29-.3-.5-.59-.5h-4.05c-.29,0-.52.25-.48.54.65,5.4,5.16,8.14,9.96,8.14,4.69,0,9.66-2.41,9.66-7.88,0-3.59-2.32-5.74-6.77-6.78l-3.83-.89c-1.46-.33-3.42-1.01-3.42-2.88,0-1.8,1.64-2.85,4.02-2.85ZM48.68,24.28c0,13.74-10.55,24.16-24.34,24.16S0,38.01,0,24.28C0,11.45,9.22,1.37,21.88,0c.29-.03.54.19.54.48v3.67c0,.29-.22.54-.51.58C11.97,6.03,4.87,14.14,4.87,24.32c0,11.05,8.36,19.53,19.47,19.53,11.11,0,19.47-8.48,19.47-19.53,0-10.18-7.13-18.3-17.04-19.59-.29-.04-.51-.28-.51-.58V.49c0-.29.25-.51.54-.48,12.66,1.37,21.88,11.44,21.88,24.27ZM155.55,16.45h5.07v19.71c0,.27.22.49.49.49h3.99c.27,0,.49-.22.49-.49v-19.71h7.39c.27,0,.49-.22.49-.49v-3.59c0-.27-.22-.49-.49-.49h-7.39v-3.22c0-2.47,1.59-3.65,3.61-3.65,1.52,0,3.03.58,4.28,1.48.31.22.73,0,.73-.38v-3.62c0-.27-.14-.52-.37-.66-1.45-.89-3.19-1.41-5.17-1.41-4.65,0-8.04,3.09-8.04,8.25v3.22h-5.07c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49ZM62.17,8.47c2.04,0,3.71-1.67,3.71-3.76,0-2.07-1.67-3.71-3.71-3.71s-3.71,1.64-3.71,3.71c0,2.09,1.67,3.76,3.71,3.76ZM143.95,8.47c2.04,0,3.71-1.67,3.71-3.76s-1.67-3.71-3.71-3.71-3.71,1.64-3.71,3.71c0,2.09,1.67,3.76,3.71,3.76ZM71.02,32.08h-6.03V12.37c0-.27-.22-.49-.49-.49h-9.76c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h5.28v15.63h-6.03c-.27,0-.49.22-.49.49v3.59c0,.27.22.49.49.49h17.02c.27,0,.49-.22.49-.49v-3.59c0-.27-.22-.49-.49-.49ZM185.95,35.65l-1.51,3.8c-.79,2-1.95,2.91-3.31,2.91-1.07,0-2.39-.44-3.52-1.46-.28-.26-.73-.06-.73.32v4.21c.02.27.16.53.39.67,1.21.72,2.51,1.12,4.03,1.12,3.85,0,6.35-2.38,8.25-7.36l10.41-27.32c.12-.32-.11-.66-.45-.66h-4.14c-.33,0-.62.2-.73.51l-6.21,17.07-6.7-17.09c-.12-.3-.4-.49-.72-.49h-4.23c-.35,0-.58.35-.45.67l9.62,23.09ZM98.39,11.88h-3.9c-.27,0-.49.22-.49.49v2.08c-1.13-1.31-2.65-2.25-4.66-2.65-.27-.05-.52.15-.52.43v3.81c0,.27.17.5.43.58,3.09.95,4.87,3.87,4.87,7.52,0,4.52-2.66,7.88-7.01,7.88-3.99,0-7.06-3.36-7.06-7.91,0-3.42,1.76-6.36,4.56-7.43.23-.09.39-.32.39-.57v-3.87c0-.28-.26-.49-.53-.43-5.61,1.28-9.45,6.17-9.45,12.41,0,7.17,4.76,12.37,11.46,12.37,3.35,0,5.79-1.3,7.44-3.33v3.21c0,1.09-.13,1.95-.35,2.7-.67,2.27-2.67,3.78-5.67,3.78-2.98,0-5.1-1.41-5.69-4.01-.06-.24-.28-.41-.52-.41h-3.99c-.29,0-.52.26-.48.55.84,5.76,5.31,8.48,10.6,8.48,5.08,0,9.42-2.56,10.64-7.34.29-1.12.44-2.96.44-4.29V12.37c0-.27-.22-.49-.49-.49Z"})),_.createElement("linearGradient",{id:"Naamloos_verloop_7","data-name":"Naamloos verloop 7",x1:-48.59,y1:128.26,x2:186.52,y2:-36.37,gradientUnits:"userSpaceOnUse"},_.createElement("stop",{offset:.5,stopColor:"#00e487"}),_.createElement("stop",{offset:1,stopColor:"#1ecbd0"}))),_.createElement("g",{className:"cls-3"},_.createElement("rect",{className:"cls-2",width:200,height:48.44}))),T7=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"TP-Link"),_.createElement("path",{d:"M15.185 0C10.218 0 6.25 3.984 6.25 8.903V10.8h4.99V8.903c0-2.135 1.736-3.863 3.946-3.863 2.187 0 3.708 1.536 3.708 3.815 0 2.257-1.64 3.912-3.827 3.912h-1.878v5.039h1.878c4.874 0 8.819-4.007 8.819-8.952C23.885 3.72 20.2 0 15.185 0zM.115 12.6v4.103c0 .624.523 1.248 1.236 1.248h4.753v4.801c0 .624.523 1.248 1.236 1.248h4.065V12.6Z"})),Nk=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"2000.000000pt",height:"1000.000000pt",viewBox:"0 0 2000.000000 1000.000000",preserveAspectRatio:"xMidYMid meet",...e},_.createElement("g",{transform:"translate(0.000000,1000.000000) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none"},_.createElement("path",{d:"M214 9972 c-78 -27 -142 -88 -182 -172 -16 -33 -17 -289 -20 -3655 -2 -2604 0 -3659 8 -3760 34 -430 121 -759 286 -1083 332 -650 912 -1075 1680 -1231 328 -66 -433 -61 9102 -61 7915 0 8652 1 8696 16 60 21 147 100 177 161 l24 48 0 3700 c0 3520 -1 3707 -18 3840 -55 422 -181 789 -380 1112 -173 279 -448 550 -728 718 -317 189 -636 299 -1059 362 -108 16 -626 18 -8825 20 -8317 2 -8712 2 -8761 -15z m17121 -1089 c446 -67 853 -276 1161 -595 290 -300 477 -684 541 -1106 19 -129 22 -413 5 -526 -20 -133 -77 -212 -192 -264 -147 -68 -330 2 -406 156 -17 33 -19 58 -16 222 3 201 -8 331 -39 453 -67 265 -191 479 -385 666 -199 192 -424 309 -692 361 -275 53 -508 30 -791 -80 -108 -41 -142 -50 -194 -50 -172 0 -294 117 -305 291 -8 129 40 223 143 283 164 97 481 186 735 206 121 10 306 3 435 -17z m-135 -1188 c354 -86 627 -356 727 -720 24 -87 27 -118 28 -245 0 -139 -1 -148 -29 -207 -55 -121 -157 -187 -286 -188 -95 0 -168 33 -234 106 -60 66 -76 119 -76 244 0 194 -68 309 -224 381 -83 38 -164 41 -261 10 -132 -42 -168 -47 -227 -35 -105 23 -182 83 -226 179 -74 159 -6 336 161 418 180 88 427 110 647 57z m-14089 -45 c139 -26 263 -123 327 -257 l37 -78 -2 -265 c-1 -146 -4 -311 -8 -367 l-6 -103 689 0 c649 0 694 -1 751 -19 149 -46 267 -168 305 -316 59 -223 -53 -454 -270 -562 l-78 -38 -712 -3 -712 -3 -6 -72 c-10 -121 -31 -773 -30 -927 0 -114 5 -164 22 -233 81 -326 319 -564 643 -643 61 -15 136 -19 444 -24 398 -7 402 -7 500 -64 62 -37 142 -128 178 -203 30 -65 32 -74 32 -188 0 -118 -1 -121 -37 -198 -53 -110 -128 -186 -237 -240 l-85 -42 -425 0 c-443 0 -462 1 -646 47 -193 47 -383 132 -562 250 -151 101 -362 312 -462 462 -160 241 -254 484 -296 764 -17 112 -19 386 -5 722 5 124 12 307 16 407 l7 182 -290 3 -289 3 -75 37 c-331 164 -350 616 -35 820 110 71 151 78 457 78 l269 0 0 113 c0 247 20 550 40 617 70 234 314 384 551 340z m12624 -1019 c66 -12 172 -37 235 -57 145 -44 388 -164 503 -247 371 -268 618 -648 719 -1108 21 -96 23 -128 23 -429 0 -380 -31 -1310 -46 -1390 -38 -193 -216 -363 -409 -389 -246 -33 -474 128 -520 367 -7 37 -5 170 5 440 43 1141 43 1136 -9 1290 -61 178 -189 347 -341 452 -62 43 -196 104 -270 125 -81 22 -290 31 -384 16 -381 -60 -704 -368 -782 -746 -93 -452 149 -890 574 -1036 81 -28 210 -49 297 -49 149 0 297 -83 381 -212 82 -128 93 -302 26 -442 -59 -125 -156 -214 -284 -262 -66 -25 -74 -26 -238 -21 -479 13 -917 207 -1243 552 -121 128 -209 256 -291 420 -104 210 -154 378 -181 610 -61 539 142 1121 534 1532 324 339 732 545 1196 602 117 15 368 6 505 -18z m-9341 -130 c98 -48 177 -126 223 -218 25 -52 28 -71 32 -174 1 -64 -7 -409 -19 -765 -29 -839 -25 -945 45 -1130 80 -213 222 -352 430 -421 71 -23 96 -26 220 -27 149 0 180 5 305 55 235 93 407 336 465 654 14 79 31 428 59 1261 13 371 17 416 36 474 93 276 404 416 656 296 130 -62 224 -178 256 -316 12 -52 11 -76 -23 -1015 -26 -740 -37 -854 -109 -1123 -92 -344 -272 -646 -509 -855 -306 -269 -757 -406 -1244 -376 -461 28 -806 171 -1083 447 -230 229 -375 533 -446 937 -21 118 -23 158 -22 440 1 171 6 425 12 565 7 140 16 399 22 575 6 176 15 345 21 375 23 118 121 255 227 317 93 55 167 74 270 70 85 -4 100 -8 176 -46z m3885 30 c148 -46 263 -164 307 -316 13 -47 15 -82 10 -175 -3 -63 -15 -281 -26 -485 -46 -866 -51 -980 -40 -1082 22 -207 90 -383 192 -498 212 -237 608 -284 907 -106 154 91 270 247 341 459 54 162 60 225 95 912 32 647 46 877 55 923 22 108 110 232 214 301 29 19 89 47 132 62 69 23 90 26 166 21 74 -4 99 -10 163 -41 146 -69 242 -204 252 -355 5 -74 -7 -402 -27 -726 -5 -82 -21 -377 -35 -655 -14 -278 -32 -622 -40 -765 -8 -143 -21 -402 -30 -575 -8 -173 -20 -366 -25 -429 -26 -290 -125 -564 -288 -801 -79 -115 -274 -311 -390 -394 -266 -188 -597 -320 -932 -371 -152 -23 -384 -31 -461 -16 -227 45 -387 273 -352 502 38 240 249 428 483 429 186 1 410 45 547 110 212 99 339 236 409 442 23 70 43 178 31 178 -3 0 -24 -16 -46 -35 -113 -94 -281 -175 -419 -201 -392 -75 -837 8 -1157 217 -298 193 -520 491 -639 854 -96 294 -113 528 -80 1090 17 293 31 571 44 850 13 279 20 320 66 413 105 213 358 330 573 263z"}))),_Z=e=>_.createElement("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("title",null,"Xiaomi"),_.createElement("path",{d:"M12 0C8.016 0 4.756.255 2.493 2.516.23 4.776 0 8.033 0 12.012c0 3.98.23 7.235 2.494 9.497C4.757 23.77 8.017 24 12 24c3.983 0 7.243-.23 9.506-2.491C23.77 19.247 24 15.99 24 12.012c0-3.984-.233-7.243-2.502-9.504C19.234.252 15.978 0 12 0zM4.906 7.405h5.624c1.47 0 3.007.068 3.764.827.746.746.827 2.233.83 3.676v4.54a.15.15 0 0 1-.152.147h-1.947a.15.15 0 0 1-.152-.148V11.83c-.002-.806-.048-1.634-.464-2.051-.358-.36-1.026-.441-1.72-.458H7.158a.15.15 0 0 0-.151.147v6.98a.15.15 0 0 1-.152.148H4.906a.15.15 0 0 1-.15-.148V7.554a.15.15 0 0 1 .15-.149zm12.131 0h1.949a.15.15 0 0 1 .15.15v8.892a.15.15 0 0 1-.15.148h-1.949a.15.15 0 0 1-.151-.148V7.554a.15.15 0 0 1 .151-.149zM8.92 10.948h2.046c.083 0 .15.066.15.147v5.352a.15.15 0 0 1-.15.148H8.92a.15.15 0 0 1-.152-.148v-5.352a.15.15 0 0 1 .152-.147Z"})),I3e=e=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",...e},_.createElement("path",{d:"M129.5 512V345.9L18.5 48h55.8l81.8 229.7L250.2 0h51.3L180.8 347.8V512h-51.3z"})),P3e={1:"Panasonic",4107:"Signify",4125:"Fortune Brands",4129:"Legrand",4142:"LG Electronics",4151:"NXP Semiconductors",4161:"STMicroelectronics",4169:"Silicon Labs",4190:"Schneider Electric",4216:"ntve home",4240:"Green Energy Options",4251:"Leviton",4304:"Qorvo",4321:"Samsung",4334:"UEI",4338:"ubisys",4362:"Samsung SmartThings",4381:"Comcast",4388:"Jasco Products",4405:"dresden elektronik",4417:"Tuya",4442:"LG ThinQ",4447:"Aqara",4448:"Amazon Alexa",4454:"Innr",4456:"Leedarson",4469:"D-Link",4472:"WNC Corporation",4474:"Insta GmbH",4476:"IKEA",4478:"Feibit",4488:"TP-Link",4489:"LEDVANCE",4492:"Midea",4501:"CommScope",4614:"EME Americas",4617:"Bosch",4619:"HEIMAN",4631:"Amazon Alexa",4633:"ORVIBO",4644:"Sunricher",4653:"AduroSmart",4662:"Allegion",4673:"Samjin",4689:"Neonlite",4701:"Tuya",4711:"ARC Technology",4718:"Xiaomi",4724:"Trust International",4735:"Nordic Semiconductor",4736:"Siterwell",4738:"SEI Robotics",4741:"Hager",4742:"CoolKit",4745:"Lidl",4746:"Changhong Network",4751:"EGLO",4757:"AVM",4762:"Delta Dore Rademacher",4767:"Level Home",4874:"Eve",4876:"EVVR",4877:"BouffaloLab",4882:"Yeelight",4886:"Realtek",4889:"Mitsubishi Electric",4890:"Resideo",4891:"Espressif",4892:"HELLA",4894:"CAME",4895:"Longan.link",4897:"SONOFF",4903:"Mill International",4910:"Energetic",4911:"Yandex",4915:"Becker Antriebe",4916:"TCL",4917:"Dexatek",4921:"GE Lighting",4923:"WAREMA",4927:"ASR",4930:"Beken",4932:"Eltako",4933:"Meross",4934:"Rafael",4937:"Apple Home",4938:"Rollease Acmeda",4939:"Home Assistant",4940:"Simon",4942:"tado°",4943:"mediola",4945:"HooRii Technology",4946:"Häfele",4950:"Lennox",4952:"TPV",4953:"GOQUAL",4954:"SIEGENIA",4957:"Nuki",4961:"Inovelli",4962:"deveritec",4965:"Dooya",4969:"BHtronics",4972:"Onewish",4974:"Ambi Labs",4977:"Tridonic",4978:"innovation matters",4987:"Amazon Basics",4991:"NEO",4993:"Amazon Prime Video",4994:"ION INDUSTRIES",4996:"Apple (iCloud Keychain)",4998:"Skylux",4999:"Govee",5e3:"Infineon",5002:"Nature",5003:"ULTRON",5004:"Hisense",5006:"Twinkly",5009:"Kasa",5010:"Tapo",5014:"AiDot",5015:"SwitchBot",5019:"ITIUS",5020:"Zemismart",5022:"Dyson",5023:"Razer",5120:"Uascent",5123:"Grid Connect",5124:"Phaten",5125:"Ecovacs",5127:"ThirdReality",5128:"VELUX",5131:"70mai",5136:"Quectel",5137:"Freedompro",5138:"SMARTWIZ",5139:"1Home",5141:"Nanoleaf (Caveman)",5142:"Nanoleaf (Umbra)",5143:"Konnected",5144:"Klite",5145:"Lorex",5147:"Rang Dong",5149:"Secuyou",5150:"arre home",5151:"Ductech",5152:"EcoFlow",5153:"Kwikset",5155:"Feit Electric",5158:"ELEGRP",5159:"Hama",5161:"Albrecht Jung",5163:"LETIANPAI",5165:"QIHANG",5167:"QIACHIP",5168:"L-TRADE",5170:"ELKO EP",5171:"MOMAX",5174:"SinuxSoft",5175:"ACCEL LAB",5176:"Topstar Lighting",5181:"Onvis",5184:"VerLuce",5185:"Snowball",5186:"REHAU",5187:"Goods iQ",5189:"Finesse Decor",5190:"TAKE AS GLOBAL",5192:"LivingStyle",5193:"Lloyd's",5196:"TrustAsia",5197:"Atios",5199:"Yale",5202:"Big Ass Fans",5205:"MagentaHome",5207:"Wistar",5212:"Lockly",5213:"Hosiden",5215:"Good Way Technology",5216:"lipro",5217:"Xinda",5218:"Energy Magic Cube",5219:"Eberle",5221:"Hunter Douglas",5222:"Hemos Lighting",5224:"Anona Security",5226:"Intecular",5229:"Polyaire",5230:"SMART",5231:"SmartWings",5232:"HOPERF",5234:"Jiecang",5235:"Lelight",5239:"Multi IR",5240:"APYNOV",5242:"Realwe",5243:"LUMIFLOW",5244:"SHENAN YANGGUANG",5245:"Morning Electronics",5246:"MIWA LOCK",5247:"U-tec",5248:"Roborock",5249:"Xenon Industrial",5250:"Lengceoi",5251:"jhome",5254:"Infibrite",5256:"Flic",5258:"Occhio",5259:"Samraj",5261:"EME",5262:"Binthen",5264:"Shelly",5266:"xxter",5267:"NIE-TECH",5268:"Martin Renz",5269:"Pacific Hogar",5270:"InnoPhase IOT",5271:"DMA",5273:"CLIO",5274:"Guangdong A-OK",5275:"AIGOSTAR",5276:"Launray",5279:"Deyi Smart",5282:"Brennenstuhl",5293:"Raex",5376:"SmartWave",5379:"Ronco",5380:"Mango Network",5382:"SAFEMO",5383:"Bweetech",5384:"Rui Teng",5385:"SmartSetup",5387:"Technology Nexus",5388:"Nexxt Solutions",5389:"Huayu Lian",5391:"in-lite",5393:"Saishigao",5394:"Yourlite",5395:"Alpha Tubular Motors",5396:"Chuan Dian",5398:"iRobot",5399:"Huacheng Network",5401:"i3 Engineering",5402:"Leviosa",5403:"Sunfree Motor",5404:"Schoenberger",5405:"Dendo Systems",5406:"Kudelski IoT",5407:"Apporo",5408:"Rachio",5409:"NEWLAB",5410:"Zimi",5411:"Yooksmart",5412:"BofuSmart",5415:"habi",5416:"ntve home",5418:"BSH Home Appliances",5419:"Kumho Electric",5420:"Dreame",5421:"Neo Smart Blinds",5424:"Taiwan Fu Hsing",5425:"Solity",5426:"Arpobot",5427:"Anker",5428:"WAGO",5430:"DomoPlus",5431:"PEARL",5432:"Beca",5433:"WISeKey",5435:"Griesser",5436:"alre",5437:"Amlogic",5438:"ART DOM",5439:"Brel",5441:"Kärcher",5442:"Lanbon",5447:"MACO",5450:"Sciener",5451:"SkyAngle",5452:"VIZO Technology",5456:"AvatarControls",5457:"Kaijet",5458:"DEWENWILS",5459:"SuperBrightLEDS",5461:"MIUC Technology",5464:"Ai-Thinker",5465:"tink",5467:"MinebeaMitsumi",5468:"Feierge",5470:"Sandstrom",5472:"SIXWGH",5474:"Renesas",5475:"StrongKey",5476:"NEXTY ELECTRONICS",5478:"ODELIC",5479:"Haier",5480:"Econet",5481:"Feller",5482:"xCREAS",5483:"ShinDong-A ES",5484:"Motionblinds",5486:"BrizLabs",5489:"Eurotronic",5490:"Babai",5491:"SELVE",5493:"Xizhen Electronics",5494:"Enlight",5496:"WINTEC KOREA",5497:"Hinkley",5498:"SMARTSPEC",5500:"L&S Lighting",5502:"APICAL",5506:"KEGU",5507:"MAMABA",5510:"Megaman",5512:"Atouch Winwel",5513:"Warmup",5514:"Flipper",5515:"Deasino",5516:"ZFL SMART",5518:"A solution",5519:"Bold Smart Lock",5520:"GL.iNet",5521:"ZH Currtain",5522:"MEAN WELL",5525:"Kotonic",5526:"Sensereo",5529:"Huarui",5530:"HAOJAI",5533:"wibutler",5534:"UIOT",5535:"Ltech",5537:"Delta Dore",5539:"Intermatic",5540:"Mikrotik",5541:"Laticrete",5543:"Hunter Fan",5544:"LOCKIN",5546:"GLEDOPTO",5547:"Accurate Lock & Hardware",5548:"SWAN Lite",5549:"AnablepSecurity",5551:"Corston",5552:"JustPlus",5553:"INSIIDA",5555:"MiBoxer",5557:"Brighter Lighting",5564:"Lysome",5565:"TBS",5566:"Easfina",5567:"Korrus",5568:"DIANXIAOKU",5570:"Kaadas",5572:"FAST ČR",5574:"Wozart",5575:"Homewell",5576:"Maktar",5577:"Ci Global",5580:"Schüco",5582:"MAKEGOOD",5583:"Globe Electric",5584:"Vantiva",5586:"Desjoyaux",5591:"Boldr",5594:"JEM Accessories",5597:"SG Armaturen",5598:"VoxAura",5599:"Vitrumshade",5600:"Leaguer MicroElectronics",5601:"NOVO",5603:"YCZNWL",5607:"Fresh Electric",5608:"Doorma",5609:"Sukces",5614:"moorgen",5615:"KASTA",5618:"Viomi",5620:"Tedee",5621:"Bouygues Telecom",5623:"AC Infinity",5625:"Narwal",5627:"nomos system",5630:"Senscomm",5637:"Remac Smart",5645:"SUFN",5646:"LLW",5647:"POYAL",5648:"Zhuhai Shengchang",5651:"Calex",5653:"Rayrun",5655:"Jianbian",5656:"Matterize Labs",5661:"ACME",5663:"Fatboy",5668:"Zhenghui",5669:"United Electric",5695:"ADT",24582:"Google Home"};function Zy(e){return P3e[e]??`Vendor ${e}`}const j3e={Alexa:v0,Amazon:v0,Apple:Lk,Google:SZ,SmartThings:AZ,Samsung:EZ,IKEA:wZ,Tuya:Nk,Xiaomi:_Z,Aqara:xZ,Shelly:kZ,Meross:CZ},$3e={1:O3e,4107:R3e,4142:k3e,4321:EZ,4362:AZ,4417:Nk,4447:xZ,4448:v0,4469:C3e,4476:wZ,4488:T7,4631:v0,4701:Nk,4718:_Z,4745:_3e,4757:w3e,4911:I3e,4933:CZ,4937:Lk,4957:D3e,4987:v0,4993:v0,4996:Lk,5009:T7,5010:T7,5023:T3e,5248:M3e,5264:kZ,5420:E3e,5398:A3e,5427:S3e,24582:SZ};function L3e(e){const t=$3e[e.rootVendorId];return t||Object.entries(j3e).find(([n])=>e.label.toUpperCase().includes(n.toUpperCase()))?.[1]}const DZ=({fabric:e})=>{const t=_.useMemo(()=>L3e(e),[e]);return m.jsx(cn,{title:`${e.label||Zy(e.rootVendorId)} (0x${e.rootVendorId.toString(16).toUpperCase().padStart(4,"0")})`,arrow:!0,children:m.jsx(ce,{component:"span",sx:{fill:n=>n.palette.text.primary},children:t?m.jsx(t,{style:{height:"1.4em",width:"auto",maxWidth:"3em",display:"block"}}):m.jsx(x3e,{})})})},N3e=e=>m.jsx(m.Fragment,{children:e.fabrics.map(t=>m.jsxs(ce,{display:"flex",alignItems:"center",gap:1.5,py:.5,children:[m.jsx(DZ,{fabric:t}),m.jsx(ie,{variant:"body2",children:t.label||Zy(t.rootVendorId)})]},t.fabricId))});function Tu(){return{show:_.useContext(bX).show}}const F3e=({bridge:e})=>m.jsxs(dt,{container:!0,spacing:2,children:[e.featureFlags?.serverMode&&e.featureFlags?.vacuumOnOff===!1&&m.jsx(dt,{size:{xs:12},children:m.jsxs(vn,{severity:"warning",icon:m.jsx(Yd,{}),children:[m.jsx(q4,{children:"Vacuum OnOff Disabled (Alexa incompatible)"}),"Alexa ",m.jsx("strong",{children:"requires"})," the OnOff cluster (PowerController) for robotic vacuums. With OnOff disabled, the vacuum commissions but never appears in the Alexa app. Only disable this if you exclusively use ",m.jsx("strong",{children:"Apple Home"}),"."]})}),!e.featureFlags?.serverMode&&e.featureFlags?.vacuumOnOff&&m.jsx(dt,{size:{xs:12},children:m.jsxs(vn,{severity:"info",icon:m.jsx(Yd,{}),children:[m.jsx(q4,{children:"Vacuum OnOff Cluster Enabled (Alexa)"}),"OnOff cluster is active for Alexa PowerController compatibility. This may cause issues with ",m.jsx("strong",{children:"Apple Home"})," and"," ",m.jsx("strong",{children:"Google Home"}),"."]})}),m.jsx(dt,{size:{xs:12,md:4},children:m.jsx(B3e,{bridge:e})}),m.jsx(dt,{size:{xs:12,md:4},children:m.jsx(z3e,{bridge:e})}),m.jsx(dt,{size:{xs:12,md:4},children:m.jsx(H3e,{bridge:e})}),m.jsx(dt,{size:{xs:12},children:m.jsx(U3e,{bridge:e})}),m.jsx(dt,{size:{xs:12},children:m.jsx(W3e,{bridge:e})})]}),B3e=({bridge:e})=>{const[t,n]=_.useState(!1),[r,i]=_.useState(!1),o=Tu(),s=async()=>{i(!0);try{await C2e(e.id),n(!0)}catch(l){o.show({message:`Failed to open commissioning window: ${l instanceof Error?l.message:String(l)}`,severity:"error"})}finally{i(!1)}};if(!e.commissioning)return m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"grey.500"},children:m.jsx(F5,{})}),m.jsx(ie,{variant:"h6",children:"Pairing"})]}),m.jsx(ie,{color:"text.secondary",children:"Bridge is not running. Start the bridge to see pairing information."})]})});const a=l=>{navigator.clipboard.writeText(l)};return m.jsxs(m.Fragment,{children:[m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"primary.main"},children:m.jsx(F5,{})}),m.jsx(ie,{variant:"h6",children:"Pairing"})]}),m.jsxs(ce,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,children:[m.jsxs(ce,{position:"relative",children:[e.commissioning.isCommissioned&&m.jsx(ce,{position:"absolute",top:"50%",left:"50%",sx:{transform:"translate(-50%, -50%) rotate(-45deg)",zIndex:1},children:m.jsx(Et,{label:"Commissioned",color:"success",size:"small"})}),m.jsx(ce,{sx:{background:"white",padding:1,borderRadius:1,opacity:e.commissioning.isCommissioned?.5:1},children:m.jsx(JO,{value:e.commissioning.qrPairingCode,size:120})})]}),m.jsx(zt,{spacing:1,width:"100%",children:m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Manual Code:"}),m.jsxs(ce,{display:"flex",alignItems:"center",gap:.5,children:[m.jsx(ie,{variant:"body2",fontFamily:"monospace",children:e.commissioning.manualPairingCode}),m.jsx(_n,{size:"small",onClick:()=>a(e.commissioning.manualPairingCode),children:m.jsx(Ah,{fontSize:"small"})})]})]})}),e.commissioning.isCommissioned&&m.jsx(kt,{variant:"outlined",size:"small",startIcon:r?m.jsx(zr,{size:16}):m.jsx(F5,{}),onClick:s,disabled:r,fullWidth:!0,children:r?"Opening Commissioning Window...":"Add Another Controller"})]})]})}),m.jsx(V3e,{bridge:e,open:t,onClose:()=>n(!1)})]})},z3e=({bridge:e})=>m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"info.main"},children:m.jsx(YO,{})}),m.jsx(ie,{variant:"h6",children:"Bridge Info"})]}),m.jsxs(zt,{spacing:1.5,children:[m.jsxs(ce,{children:[m.jsx(ie,{variant:"caption",color:"text.secondary",children:"Bridge ID"}),m.jsx(ie,{variant:"body2",fontFamily:"monospace",noWrap:!0,children:e.id})]}),m.jsx(gi,{}),m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Port"}),m.jsx(ie,{variant:"body2",fontWeight:"medium",children:e.port})]}),m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Devices"}),m.jsx(Et,{icon:m.jsx(Fs,{}),label:e.deviceCount,size:"small",color:"primary",variant:"outlined"})]}),e.commissioning&&m.jsxs(m.Fragment,{children:[m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Passcode"}),m.jsx(ie,{variant:"body2",fontFamily:"monospace",children:e.commissioning.passcode})]}),m.jsxs(ce,{display:"flex",justifyContent:"space-between",children:[m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Discriminator"}),m.jsx(ie,{variant:"body2",fontFamily:"monospace",children:e.commissioning.discriminator})]})]})]})]})}),H3e=({bridge:e})=>{const t=e.commissioning?.fabrics??[],[n,r]=_.useState(!1),i=Tu(),o=async()=>{r(!0);try{const s=await LX(e.id);i.show({message:`Synced ${s.syncedCount} devices to controllers`,severity:"success"})}catch(s){i.show({message:`Force sync failed: ${s instanceof Error?s.message:String(s)}`,severity:"error"})}finally{r(!1)}};return m.jsx(tr,{sx:{height:"100%"},children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:t.length>0?"success.main":"grey.500"},children:m.jsx(sZ,{})}),m.jsxs(ie,{variant:"h6",children:["Connected Fabrics (",t.length,")"]})]}),t.length===0?m.jsx(ie,{color:"text.secondary",children:"No controllers connected yet. Scan the QR code with your Matter controller to pair this bridge."}):m.jsxs(zt,{spacing:2,children:[m.jsx(N3e,{fabrics:t}),m.jsx(cn,{title:"Push all current device states to connected controllers",children:m.jsx(kt,{variant:"outlined",size:"small",startIcon:n?m.jsx(zr,{size:16}):m.jsx(dw,{}),onClick:o,disabled:n,fullWidth:!0,children:n?"Syncing...":"Force Sync"})})]})]})})},U3e=({bridge:e})=>{const t=hf(),n=e.filter.include.length>0||e.filter.exclude.length>0;return m.jsx(tr,{children:m.jsxs(gr,{children:[m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,mb:2,children:[m.jsx(rl,{sx:{bgcolor:"warning.main"},children:m.jsx(uw,{})}),m.jsx(ie,{variant:"h6",sx:{flexGrow:1},children:"Entity Filters"}),m.jsx(cn,{title:n?"Edit Filters":"Add Filters",children:m.jsx(_n,{size:"small",onClick:()=>t(Pt.editBridge(e.id)),children:n?m.jsx(cw,{}):m.jsx(fc,{})})})]}),n?m.jsxs(zt,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[e.filter.include.map(r=>m.jsx(Et,{size:"small",icon:m.jsx(fc,{}),label:m.jsxs("span",{children:[m.jsx("strong",{children:r.type}),": ",r.value]}),color:"success",variant:"outlined"},`include-${r.type}-${r.value}`)),e.filter.exclude.map(r=>m.jsx(Et,{size:"small",icon:m.jsx(oZ,{}),label:m.jsxs("span",{children:[m.jsx("strong",{children:r.type}),": ",r.value]}),color:"error",variant:"outlined"},`exclude-${r.type}-${r.value}`))]}):m.jsx(ie,{variant:"body2",color:"text.secondary",children:"No filters configured. All supported entities will be exposed."})]})})},V3e=({bridge:e,open:t,onClose:n})=>{if(!e.commissioning)return null;const r=i=>{navigator.clipboard.writeText(i)};return m.jsxs(vu,{open:t,onClose:n,maxWidth:"sm",fullWidth:!0,children:[m.jsx(Su,{children:m.jsxs(ce,{display:"flex",alignItems:"center",gap:1,children:[m.jsx(F5,{}),"Add Another Controller"]})}),m.jsxs(xu,{children:[m.jsx(ie,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"Scan this QR code with your Matter controller (Apple Home, Google Home, Alexa, etc.) to add this bridge to another ecosystem."}),m.jsx(ce,{display:"flex",justifyContent:"center",my:3,children:m.jsx(ce,{sx:{background:"white",padding:2,borderRadius:1},children:m.jsx(JO,{value:e.commissioning.qrPairingCode,size:200})})}),m.jsxs(zt,{spacing:1,children:[m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsxs(ie,{variant:"body2",children:[m.jsx("strong",{children:"Manual Code:"})," ",e.commissioning.manualPairingCode]}),m.jsx(cn,{title:"Copy",children:m.jsx(_n,{size:"small",onClick:()=>r(e.commissioning.manualPairingCode),children:m.jsx(Ah,{fontSize:"small"})})})]}),m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsxs(ie,{variant:"body2",children:[m.jsx("strong",{children:"Passcode:"})," ",e.commissioning.passcode]}),m.jsx(cn,{title:"Copy",children:m.jsx(_n,{size:"small",onClick:()=>r(e.commissioning.passcode.toString()),children:m.jsx(Ah,{fontSize:"small"})})})]}),m.jsxs(ce,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[m.jsxs(ie,{variant:"body2",children:[m.jsx("strong",{children:"Discriminator:"})," ",e.commissioning.discriminator]}),m.jsx(cn,{title:"Copy",children:m.jsx(_n,{size:"small",onClick:()=>r(e.commissioning.discriminator.toString()),children:m.jsx(Ah,{fontSize:"small"})})})]})]}),m.jsx(vn,{severity:"info",sx:{mt:2},children:m.jsx(ie,{variant:"body2",children:"Matter supports connecting the same bridge to multiple controllers simultaneously. Each controller will have independent control."})})]}),m.jsx(Xd,{children:m.jsx(kt,{onClick:n,children:"Close"})})]})},W3e=({bridge:e})=>{const t=e.failedEntities;return!t||t.length===0?null:m.jsx(tr,{children:m.jsx(gr,{children:m.jsxs(vn,{severity:"warning",icon:m.jsx(KO,{}),children:[m.jsxs(q4,{children:["Failed Entities (",t.length,")"]}),m.jsx(ie,{variant:"body2",component:"div",children:"The following entities could not be added to the bridge:"}),m.jsx(ce,{sx:{mt:1,maxHeight:200,overflow:"auto"},children:t.map(n=>m.jsxs(ce,{sx:{mb:.5},children:[m.jsx(ie,{variant:"body2",component:"span",fontWeight:"bold",children:n.entityId}),m.jsxs(ie,{variant:"body2",component:"span",color:"text.secondary",children:[" — ",n.reason]})]},n.entityId))})]})})})};var Vl;(function(e){e.Starting="starting",e.Running="running",e.Stopped="stopped",e.Failed="failed"})(Vl||(Vl={}));var Ar;(function(e){e.Pattern="pattern",e.Regex="regex",e.Domain="domain",e.Platform="platform",e.Label="label",e.EntityLabel="entity_label",e.DeviceLabel="device_label",e.Area="area",e.EntityCategory="entity_category",e.DeviceName="device_name",e.ProductName="product_name",e.DeviceClass="device_class"})(Ar||(Ar={}));const OZ=[{id:"all_lights",name:"All Lights",description:"Expose all light entities. Ideal for controlling lights via Apple Home, Google Home, or Alexa.",icon:"light",filter:{include:[{type:Ar.Domain,value:"light"}],exclude:[]},featureFlags:{autoBatteryMapping:!0},tags:["lights","popular"]},{id:"all_switches",name:"All Switches & Plugs",description:"Expose all switch entities including smart plugs. Includes power and energy monitoring.",icon:"switch",filter:{include:[{type:Ar.Domain,value:"switch"}],exclude:[]},featureFlags:{},tags:["switches","plugs"]},{id:"sensors_only",name:"All Sensors",description:"Expose temperature, humidity, pressure, and other sensors. Auto-combines related sensors from the same device.",icon:"sensor",filter:{include:[{type:Ar.Domain,value:"sensor"},{type:Ar.Domain,value:"binary_sensor"}],exclude:[]},featureFlags:{autoBatteryMapping:!0,autoHumidityMapping:!0,autoPressureMapping:!0},tags:["sensors","temperature","humidity"]},{id:"climate_control",name:"Climate & Covers",description:"Expose thermostats, fans, covers, and humidifiers for climate control.",icon:"climate",filter:{include:[{type:Ar.Domain,value:"climate"},{type:Ar.Domain,value:"fan"},{type:Ar.Domain,value:"cover"},{type:Ar.Domain,value:"humidifier"}],exclude:[]},featureFlags:{autoBatteryMapping:!0},tags:["climate","thermostat","covers"]},{id:"security",name:"Security & Locks",description:"Expose locks, alarm panels, and security-related binary sensors (motion, door, window).",icon:"lock",filter:{include:[{type:Ar.Domain,value:"lock"},{type:Ar.Domain,value:"alarm_control_panel"},{type:Ar.DeviceClass,value:"motion"},{type:Ar.DeviceClass,value:"door"},{type:Ar.DeviceClass,value:"window"}],exclude:[],includeMode:"any"},featureFlags:{autoBatteryMapping:!0},tags:["security","locks","alarm"]},{id:"robot_vacuum",name:"Robot Vacuum (Server Mode)",description:"Single vacuum bridge with Server Mode enabled. Required for Apple Home Siri commands and proper Alexa discovery. Add only ONE vacuum to this bridge.",icon:"vacuum",filter:{include:[{type:Ar.Domain,value:"vacuum"}],exclude:[]},featureFlags:{serverMode:!0},tags:["vacuum","server-mode","apple-home"]},{id:"media_players",name:"Media Players & Speakers",description:"Expose media players, speakers, and TVs for volume and playback control.",icon:"media_player",filter:{include:[{type:Ar.Domain,value:"media_player"}],exclude:[]},featureFlags:{},tags:["media","speakers","tv"]},{id:"google_home_optimized",name:"Google Home Optimized",description:"All devices with Auto Force Sync enabled. Prevents Google Home from showing devices as offline after a few hours.",icon:"default",filter:{include:[{type:Ar.Pattern,value:"*"}],exclude:[]},featureFlags:{autoForceSync:!0,autoBatteryMapping:!0,autoHumidityMapping:!0,autoPressureMapping:!0},tags:["google-home","all-devices"]},{id:"alexa_covers",name:"Alexa-Optimized Covers",description:"Covers with Alexa-friendly percentage display. Displayed percentage matches Home Assistant values.",icon:"cover",filter:{include:[{type:Ar.Domain,value:"cover"}],exclude:[]},featureFlags:{coverUseHomeAssistantPercentage:!0,autoBatteryMapping:!0},tags:["alexa","covers"]},{id:"automations_scripts",name:"Automations & Scripts",description:"Expose Home Assistant automations, scripts, and scenes as Matter switches.",icon:"remote",filter:{include:[{type:Ar.Domain,value:"automation"},{type:Ar.Domain,value:"script"},{type:Ar.Domain,value:"scene"}],exclude:[]},featureFlags:{},tags:["automations","scripts","scenes"]}];var CF;(function(e){e[e.locked=1]="locked",e[e.unlocked=2]="unlocked"})(CF||(CF={}));var EF;(function(e){e[e.Off=0]="Off",e[e.Low=1]="Low",e[e.Medium=2]="Medium",e[e.High=3]="High",e[e.On=4]="On",e[e.Auto=5]="Auto",e[e.Smart=6]="Smart"})(EF||(EF={}));var AF;(function(e){e[e.Forward=0]="Forward",e[e.Reverse=1]="Reverse"})(AF||(AF={}));var kF;(function(e){e[e.OffLowMedHigh=0]="OffLowMedHigh",e[e.OffLowHigh=1]="OffLowHigh",e[e.OffLowMedHighAuto=2]="OffLowMedHighAuto",e[e.OffLowHighAuto=3]="OffLowHighAuto",e[e.OffHighAuto=4]="OffHighAuto",e[e.OffHigh=5]="OffHigh"})(kF||(kF={}));var _F;(function(e){e[e.Stopped=0]="Stopped",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Error=3]="Error",e[e.SeekingCharger=64]="SeekingCharger",e[e.Charging=65]="Charging",e[e.Docked=66]="Docked"})(_F||(_F={}));var DF;(function(e){e[e.Off=0]="Off",e[e.Auto=1]="Auto",e[e.Cool=3]="Cool",e[e.Heat=4]="Heat",e[e.EmergencyHeat=5]="EmergencyHeat",e[e.Precooling=6]="Precooling",e[e.FanOnly=7]="FanOnly",e[e.Dry=8]="Dry",e[e.Sleep=9]="Sleep"})(DF||(DF={}));var Fk;(function(e){e.homeAssistantEntity="homeAssistantEntity",e.identify="identify",e.groups="groups",e.scenesManagement="scenesManagement",e.bridgedDeviceBasicInformation="bridgedDeviceBasicInformation",e.airQuality="airQuality",e.booleanState="booleanState",e.colorControl="colorControl",e.doorLock="doorLock",e.flowMeasurement="flowMeasurement",e.levelControl="levelControl",e.fanControl="fanControl",e.illuminanceMeasurement="illuminanceMeasurement",e.occupancySensing="occupancySensing",e.onOff="onOff",e.powerSource="powerSource",e.pressureMeasurement="pressureMeasurement",e.relativeHumidityMeasurement="relativeHumidityMeasurement",e.smokeCoAlarm="smokeCoAlarm",e.temperatureMeasurement="temperatureMeasurement",e.thermostat="thermostat",e.thermostatUserInterfaceConfiguration="thermostatUserInterfaceConfiguration",e.valveConfigurationAndControl="valveConfigurationAndControl",e.windowCovering="windowCovering",e.mediaInput="mediaInput",e.rvcCleanMode="rvcCleanMode",e.rvcRunMode="rvcRunMode",e.rvcOperationalState="rvcOperationalState",e.serviceArea="serviceArea",e.switch="switch",e.modeSelect="modeSelect"})(Fk||(Fk={}));var OF;(function(e){e.Battery="battery",e.BatteryCharging="battery_charging",e.CarbonMonoxide="carbon_monoxide",e.Cold="cold",e.Connectivity="connectivity",e.Door="door",e.GarageDoor="garage_door",e.Gas="gas",e.Heat="heat",e.Light="light",e.Lock="lock",e.Moisture="moisture",e.Motion="motion",e.Moving="moving",e.Occupancy="occupancy",e.Opening="opening",e.Plug="plug",e.Power="power",e.Presence="presence",e.Problem="problem",e.Running="running",e.Safety="safety",e.Smoke="smoke",e.Sound="sound",e.Tamper="tamper",e.Update="update",e.Vibration="vibration",e.Window="window"})(OF||(OF={}));var TF;(function(e){e.off="off",e.heat="heat",e.cool="cool",e.heat_cool="heat_cool",e.auto="auto",e.dry="dry",e.fan_only="fan_only"})(TF||(TF={}));var MF;(function(e){e.off="off",e.preheating="preheating",e.heating="heating",e.cooling="cooling",e.drying="drying",e.fan="fan",e.idle="idle",e.defrosting="defrosting"})(MF||(MF={}));var RF;(function(e){e[e.TARGET_TEMPERATURE=1]="TARGET_TEMPERATURE",e[e.TARGET_TEMPERATURE_RANGE=2]="TARGET_TEMPERATURE_RANGE",e[e.TARGET_HUMIDITY=4]="TARGET_HUMIDITY",e[e.FAN_MODE=8]="FAN_MODE",e[e.PRESET_MODE=16]="PRESET_MODE",e[e.SWING_MODE=32]="SWING_MODE",e[e.AUX_HEAT=64]="AUX_HEAT",e[e.TURN_OFF=128]="TURN_OFF",e[e.TURN_ON=256]="TURN_ON",e[e.SWING_HORIZONTAL_MODE=512]="SWING_HORIZONTAL_MODE"})(RF||(RF={}));var IF;(function(e){e.closed="closed",e.open="open",e.closing="closing",e.opening="opening"})(IF||(IF={}));var PF;(function(e){e.button="button",e.doorbell="doorbell",e.motion="motion"})(PF||(PF={}));var jF;(function(e){e.FORWARD="forward",e.REVERSE="reverse"})(jF||(jF={}));var $F;(function(e){e[e.SET_SPEED=1]="SET_SPEED",e[e.OSCILLATE=2]="OSCILLATE",e[e.DIRECTION=4]="DIRECTION",e[e.PRESET_MODE=8]="PRESET_MODE",e[e.TURN_ON=16]="TURN_ON",e[e.TURN_OFF=32]="TURN_OFF"})($F||($F={}));var LF;(function(e){e.UNKNOWN="unknown",e.ONOFF="onoff",e.BRIGHTNESS="brightness",e.COLOR_TEMP="color_temp",e.HS="hs",e.XY="xy",e.RGB="rgb",e.RGBW="rgbw",e.RGBWW="rgbww",e.WHITE="white"})(LF||(LF={}));var NF;(function(e){e.Tv="tv",e.Speaker="speaker",e.Receiver="receiver"})(NF||(NF={}));var FF;(function(e){e[e.PAUSE=1]="PAUSE",e[e.SEEK=2]="SEEK",e[e.VOLUME_SET=4]="VOLUME_SET",e[e.VOLUME_MUTE=8]="VOLUME_MUTE",e[e.PREVIOUS_TRACK=16]="PREVIOUS_TRACK",e[e.NEXT_TRACK=32]="NEXT_TRACK",e[e.TURN_ON=128]="TURN_ON",e[e.TURN_OFF=256]="TURN_OFF",e[e.PLAY_MEDIA=512]="PLAY_MEDIA",e[e.VOLUME_STEP=1024]="VOLUME_STEP",e[e.SELECT_SOURCE=2048]="SELECT_SOURCE",e[e.STOP=4096]="STOP",e[e.CLEAR_PLAYLIST=8192]="CLEAR_PLAYLIST",e[e.PLAY=16384]="PLAY",e[e.SHUFFLE_SET=32768]="SHUFFLE_SET",e[e.SELECT_SOUND_MODE=65536]="SELECT_SOUND_MODE",e[e.BROWSE_MEDIA=131072]="BROWSE_MEDIA",e[e.REPEAT_SET=262144]="REPEAT_SET",e[e.GROUPING=524288]="GROUPING",e[e.MEDIA_ANNOUNCE=1048576]="MEDIA_ANNOUNCE",e[e.MEDIA_ENQUEUE=2097152]="MEDIA_ENQUEUE"})(FF||(FF={}));var BF;(function(e){e.None="None",e.apparent_power="apparent_power",e.aqi="aqi",e.atmospheric_pressure="atmospheric_pressure",e.battery="battery",e.carbon_dioxide="carbon_dioxide",e.carbon_monoxide="carbon_monoxide",e.current="current",e.data_rate="data_rate",e.data_size="data_size",e.date="date",e.distance="distance",e.duration="duration",e.energy="energy",e.energy_storage="energy_storage",e.enum="enum",e.frequency="frequency",e.gas="gas",e.humidity="humidity",e.illuminance="illuminance",e.irradiance="irradiance",e.moisture="moisture",e.monetary="monetary",e.nitrogen_dioxide="nitrogen_dioxide",e.nitrogen_monoxide="nitrogen_monoxide",e.nitrous_oxide="nitrous_oxide",e.ozone="ozone",e.ph="ph",e.pm1="pm1",e.pm25="pm25",e.pm10="pm10",e.power_factor="power_factor",e.power="power",e.precipitation="precipitation",e.precipitation_intensity="precipitation_intensity",e.pressure="pressure",e.reactive_power="reactive_power",e.signal_strength="signal_strength",e.sound_pressure="sound_pressure",e.speed="speed",e.sulphur_dioxide="sulphur_dioxide",e.temperature="temperature",e.timestamp="timestamp",e.volatile_organic_compounds="volatile_organic_compounds",e.volatile_organic_compounds_parts="volatile_organic_compounds_parts",e.voltage="voltage",e.volume="volume",e.volume_flow_rate="volume_flow_rate",e.volume_storage="volume_storage",e.water="water",e.weight="weight",e.wind_speed="wind_speed"})(BF||(BF={}));var zF;(function(e){e.cleaning="cleaning",e.docked="docked",e.returning="returning",e.error="error",e.idle="idle",e.paused="paused",e.segment_cleaning="segment_cleaning",e.zone_cleaning="zone_cleaning",e.spot_cleaning="spot_cleaning",e.mop_cleaning="mop_cleaning"})(zF||(zF={}));var HF;(function(e){e[e.TURN_ON=1]="TURN_ON",e[e.TURN_OFF=2]="TURN_OFF",e[e.PAUSE=4]="PAUSE",e[e.STOP=8]="STOP",e[e.RETURN_HOME=16]="RETURN_HOME",e[e.FAN_SPEED=32]="FAN_SPEED",e[e.BATTERY=64]="BATTERY",e[e.STATUS=128]="STATUS",e[e.SEND_COMMAND=256]="SEND_COMMAND",e[e.LOCATE=512]="LOCATE",e[e.CLEAN_SPOT=1024]="CLEAN_SPOT",e[e.MAP=2048]="MAP",e[e.STATE=4096]="STATE",e[e.START=8192]="START"})(HF||(HF={}));var UF;(function(e){e.off="off",e.low="low",e.medium="medium",e.high="high",e.turbo="turbo",e.auto="auto",e.max="max"})(UF||(UF={}));var VF;(function(e){e.off="off",e.eco="eco",e.electric="electric",e.gas="gas",e.heat_pump="heat_pump",e.high_demand="high_demand",e.performance="performance"})(VF||(VF={}));var WF;(function(e){e[e.TARGET_TEMPERATURE=1]="TARGET_TEMPERATURE",e[e.OPERATION_MODE=2]="OPERATION_MODE",e[e.AWAY_MODE=4]="AWAY_MODE",e[e.ON_OFF=8]="ON_OFF"})(WF||(WF={}));const qF={air_purifier:"Air Purifier",air_quality_sensor:"Air Quality Sensor",basic_video_player:"Basic Video Player (TV)",battery_storage:"Battery Sensor",color_dimmer_switch:"Color Dimmer Switch",color_temperature_light:"Color Temperature Light",contact_sensor:"Contact Sensor",dimmable_light:"Dimmable Light",dimmable_plugin_unit:"Dimmable Plug-in Unit",dimmer_switch:"Dimmer Switch",door_lock:"Door Lock",extended_color_light:"Extended Color Light",fan:"Fan",flow_sensor:"Flow Sensor",generic_switch:"Generic Switch (Button)",humidifier_dehumidifier:"Humidifier/Dehumidifier",humidity_sensor:"Humidity Sensor",light_sensor:"Light Sensor",mode_select:"Mode Select",occupancy_sensor:"Occupancy Sensor",on_off_light:"On/Off Light",on_off_plugin_unit:"On/Off Plug-in Unit",on_off_switch:"On/Off Switch",pressure_sensor:"Pressure Sensor",pump:"Pump",robot_vacuum_cleaner:"Robot Vacuum Cleaner",smoke_co_alarm:"Smoke/CO Alarm",speaker:"Speaker",temperature_sensor:"Temperature Sensor",thermostat:"Thermostat",tvoc_sensor:"TVOC / VOC Index Sensor",water_heater:"Water Heater",water_freeze_detector:"Water Freeze Detector",water_leak_detector:"Water Leak Detector",water_valve:"Water Valve",window_covering:"Window Covering"},f1={Auto:0,Quick:1,Quiet:2,LowNoise:3,LowEnergy:4,Vacation:5,Min:6,Max:7,Night:8,Day:9,DeepClean:16384,Vacuum:16385,Mop:16386,VacuumThenMop:16387},q3e={alarm_control_panel:["mode_select","on_off_plugin_unit"],automation:["on_off_switch"],binary_sensor:["contact_sensor","occupancy_sensor","smoke_co_alarm","water_freeze_detector","water_leak_detector"],button:["generic_switch"],climate:["thermostat"],cover:["window_covering"],event:["generic_switch"],fan:["air_purifier","fan"],humidifier:["humidifier_dehumidifier"],input_boolean:["on_off_plugin_unit","on_off_switch"],input_select:["mode_select"],input_button:["generic_switch"],light:["color_temperature_light","dimmable_light","extended_color_light","on_off_light"],lock:["door_lock"],media_player:["basic_video_player","on_off_switch","speaker"],scene:["on_off_switch"],script:["on_off_switch"],sensor:["air_quality_sensor","battery_storage","humidity_sensor","light_sensor","pressure_sensor","temperature_sensor","tvoc_sensor"],select:["mode_select"],switch:["on_off_plugin_unit","on_off_switch","pump","water_valve"],vacuum:["robot_vacuum_cleaner"],valve:["water_valve","on_off_plugin_unit"],water_heater:["water_heater","thermostat"]};var GF;(function(e){e.alarm_control_panel="alarm_control_panel",e.automation="automation",e.button="button",e.binary_sensor="binary_sensor",e.climate="climate",e.cover="cover",e.event="event",e.fan="fan",e.humidifier="humidifier",e.input_boolean="input_boolean",e.input_button="input_button",e.input_select="input_select",e.light="light",e.lock="lock",e.media_player="media_player",e.remote="remote",e.scene="scene",e.select="select",e.script="script",e.sensor="sensor",e.switch="switch",e.vacuum="vacuum",e.valve="valve",e.water_heater="water_heater"})(GF||(GF={}));const KF={type:"object",default:{type:"",value:""},properties:{type:{title:"Type",type:"string",oneOf:[{const:"pattern",title:"pattern",description:"Wildcard pattern matching entity IDs. Use * as wildcard. Example: 'light.living_room_*' matches all lights in the living room."},{const:"regex",title:"regex",description:"Full regular expression matching entity IDs. Use ^ and $ for anchors. Example: '^(light|switch)\\.kitchen_.*' matches all kitchen lights and switches."},{const:"domain",title:"domain",description:"Match entities by their domain (the part before the dot). Example: 'light', 'switch', 'sensor'."},{const:"platform",title:"platform",description:"Match entities by their integration/platform. Example: 'hue', 'zwave', 'mqtt'."},{const:"entity_label",title:"entity_label",description:"Matches only entities that have this label assigned directly. Other entities of the same device are NOT included."},{const:"device_label",title:"device_label",description:"Matches ALL entities of a device if the device has this label. Use this to include a complete device with all its entities."},{const:"area",title:"area",description:"Match entities by their area slug. Example: 'living_room', 'bedroom'."},{const:"entity_category",title:"entity_category",description:"Match entities by their category. Example: 'config', 'diagnostic' to exclude configuration entities."},{const:"device_name",title:"device_name",description:"Match entities by their device name. Supports wildcards. Example: '*Philips*' matches all Philips devices."},{const:"product_name",title:"product_name",description:"Match entities by their product/model name. Supports wildcards. Example: 'Hue*Bulb'."},{const:"device_class",title:"device_class",description:"Match entities by their device class attribute. Example: 'temperature', 'motion', 'door', 'window'."}]},value:{title:"Value",description:"For labels, use the display name or the label_id (slug). You can look up both on the Labels page in the sidebar.",type:"string",minLength:1}},required:["type","value"],additionalProperties:!1},G3e={title:"Include or exclude entities",type:"object",properties:{include:{title:"Include",type:"array",items:KF},exclude:{title:"Exclude",type:"array",items:KF},includeMode:{title:"Include Mode",type:"string",description:"How to combine include rules: 'any' matches if ANY rule matches (OR), 'all' matches only if ALL rules match (AND). Default: 'any'",enum:["any","all"],default:"any"}},required:["include","exclude"],additionalProperties:!1},K3e={title:"Feature Flags",type:"object",properties:{coverDoNotInvertPercentage:{title:"Do not invert Percentages for Covers",description:"Do not invert the percentage of covers to match Home Assistant (not Matter compliant)",type:"boolean",default:!1},coverUseHomeAssistantPercentage:{title:"Use Home Assistant Percentage for Covers (Alexa-friendly)",description:"Display cover percentages matching Home Assistant values in Matter controllers like Alexa. This makes the displayed percentage match what you see in Home Assistant, but the semantic meaning differs: in HA, higher percentage = more open; in Alexa, higher percentage is typically interpreted as more closed. Open/Close commands will still work correctly.",type:"boolean",default:!1},coverSwapOpenClose:{title:"Swap Open/Close for Covers",description:"Swap open/close commands and invert position reporting for covers. Enable this if Alexa voice commands are reversed (saying 'close' opens the blinds and vice versa).",type:"boolean",default:!1},includeHiddenEntities:{title:"Include Hidden Entities",description:"Include entities that are marked as hidden in Home Assistant",type:"boolean",default:!1},alexaPreserveBrightnessOnTurnOn:{title:"Alexa: Preserve Brightness on Turn-On (Deprecated)",description:"This workaround is now always active and this setting has no effect. The bridge automatically ignores brightness commands that set lights to 100% immediately after a turn-on command.",type:"boolean",default:!0},serverMode:{title:"Server Mode (for Robot Vacuums)",description:"Expose the device as a standalone Matter device instead of a bridged device. This is required for Apple Home to properly support Siri voice commands for Robot Vacuums. IMPORTANT: Only ONE device should be in this bridge when server mode is enabled.",type:"boolean",default:!1},autoBatteryMapping:{title:"Auto Battery Mapping",description:"Automatically assign battery sensors from the same Home Assistant device to the main entity. When enabled, battery sensors will be merged into their parent devices instead of appearing as separate devices.",type:"boolean",default:!1},autoHumidityMapping:{title:"Auto Humidity Mapping",description:"Automatically combine humidity sensors with temperature sensors from the same Home Assistant device. When enabled, humidity sensors will be merged into temperature sensors to create combined TemperatureHumiditySensor devices.",type:"boolean",default:!1},autoPressureMapping:{title:"Auto Pressure Mapping",description:"Automatically combine pressure sensors with temperature sensors from the same Home Assistant device. When enabled, pressure sensors will be merged into temperature sensors to create combined sensor devices.",type:"boolean",default:!0},autoComposedDevices:{title:"Auto Composed Devices",description:"Master toggle: automatically combine related entities from the same Home Assistant device into single Matter endpoints. Enables battery, humidity, pressure, power, and energy auto-mapping at once. This provides a cleaner device experience in Matter controllers (e.g., a Shelly Plug appears as one device with power monitoring).",type:"boolean",default:!1},autoForceSync:{title:"Auto Force Sync",description:"Periodically compare and push all device states to connected controllers every 90 seconds. Enable this if devices get out of sync after extended periods. Health checks for dead sessions always run regardless of this setting.",type:"boolean",default:!1},vacuumOnOff:{title:"Vacuum: Include OnOff Cluster (Alexa)",description:"Add an OnOff cluster to robot vacuum endpoints. Alexa REQUIRES this (PowerController) to show robotic vacuums in the app. Without it, Alexa commissions the device but never displays it. In Server Mode this is enabled automatically — only check this for bridge mode. WARNING: OnOff is NOT part of the Matter RVC device type specification. Enabling this may break Apple Home (shows 'Updating') and Google Home.",type:"boolean"},vacuumMinimalClusters:{title:"Vacuum: Minimal Clusters (Alexa troubleshooting)",description:"Strip the vacuum endpoint to only the clusters required by the Matter RVC spec. Removes PowerSource (battery) and the default ServiceArea placeholder. Enable this if Alexa commissions the vacuum but the device never appears in the app. Trade-off: battery percentage will not be reported to Matter controllers.",type:"boolean",default:!1}},additionalProperties:!1},cy={type:"object",title:"Bridge Config",properties:{name:{title:"Name",type:"string",minLength:1,maxLength:32},port:{title:"Port",type:"number",minimum:1},icon:{title:"Icon",type:"string",description:"Icon to display for this bridge in the UI",enum:["light","switch","climate","cover","fan","lock","sensor","media_player","vacuum","remote","humidifier","speaker","garage","door","window","motion","battery","power","camera","default"]},countryCode:{title:"Country Code",type:"string",description:"An ISO 3166-1 alpha-2 code to represent the country in which the Node is located. Only needed if the commissioning fails due to missing country code.",minLength:2,maxLength:3},priority:{title:"Startup Priority",type:"number",description:"Startup order priority. Lower values start first. Default is 100.",default:100,minimum:1,maximum:999},filter:G3e,featureFlags:K3e},required:["name","port","filter"],additionalProperties:!1};({...cy,properties:{...cy.properties},required:[...cy?.required??[]]});const Y3e={[Vl.Failed]:"error",[Vl.Stopped]:"warning",[Vl.Starting]:"info",[Vl.Running]:"success"},X3e=({status:e,reason:t})=>{if(t)return m.jsx(vn,{severity:Y3e[e],variant:"outlined",children:t})},Mu=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),vf=_e(m.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-2h2zm0-4h-2V7h2z"})),Z3e=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 14H9V8h2zm4 0h-2V8h2z"})),J3e={[Vl.Starting]:{label:"Starting",color:"info",icon:m.jsx(dw,{fontSize:"small"})},[Vl.Running]:{label:"Running",color:"success",icon:m.jsx(Mu,{fontSize:"small"})},[Vl.Stopped]:{label:"Stopped",color:"warning",icon:m.jsx(Z3e,{fontSize:"small"})},[Vl.Failed]:{label:"Failed",color:"error",icon:m.jsx(vf,{fontSize:"small"})}},TZ=({status:e,reason:t})=>{const n=J3e[e],r=m.jsx(Et,{icon:n.icon,label:n.label,size:"small",color:n.color,variant:"filled",sx:{fontWeight:500}});return t?m.jsx(cn,{title:t,children:r}):r},MZ=_e(m.jsx("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4M13 18h-2v-2h2zm0-4h-2V9h2z"})),RZ=_e(m.jsx("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4M11 20v-5.5H9L13 7v5.5h2z"})),Bk=_e(m.jsx("path",{d:"M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4"})),Jy=_e(m.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"})),QO=_e([m.jsx("path",{d:"M15.11 12.45 14 10.24l-3.11 6.21c-.16.34-.51.55-.89.55s-.73-.21-.89-.55L7.38 13H2v5c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-5h-6c-.38 0-.73-.21-.89-.55"},"0"),m.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v5h6c.38 0 .73.21.89.55L10 13.76l3.11-6.21c.34-.68 1.45-.68 1.79 0L16.62 11H22V6c0-1.1-.9-2-2-2"},"1")]);function Q3e(e){return Qe("MuiLinearProgress",e)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const zk=4,Hk=pf`
164
164
  0% {
165
165
  left: -35%;
166
166
  right: 100%;
@@ -251,7 +251,7 @@ export default theme;`}function MN(e){return typeof e=="number"?`${(e*100).toFix
251
251
  || ${T} === "boolean" || ${D} === null`).assign(I,(0,r._)`[${D}]`)}}}function h({gen:C,parentData:w,parentDataProperty:A},E){C.if((0,r._)`${w} !== undefined`,()=>C.assign((0,r._)`${w}[${A}]`,E))}function g(C,w,A,E=o.Correct){const D=E===o.Correct?r.operators.EQ:r.operators.NEQ;let O;switch(C){case"null":return(0,r._)`${w} ${D} null`;case"array":O=(0,r._)`Array.isArray(${w})`;break;case"object":O=(0,r._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":O=T((0,r._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":O=T();break;default:return(0,r._)`typeof ${w} ${D} ${C}`}return E===o.Correct?O:(0,r.not)(O);function T(I=r.nil){return(0,r.and)((0,r._)`typeof ${w} == "number"`,I,A?(0,r._)`isFinite(${w})`:r.nil)}}uo.checkDataType=g;function y(C,w,A,E){if(C.length===1)return g(C[0],w,A,E);let D;const O=(0,i.toHash)(C);if(O.array&&O.object){const T=(0,r._)`typeof ${w} != "object"`;D=O.null?T:(0,r._)`!${w} || ${T}`,delete O.null,delete O.array,delete O.object}else D=r.nil;O.number&&delete O.integer;for(const T in O)D=(0,r.and)(D,g(T,w,A,E));return D}uo.checkDataTypes=y;const b={message:({schema:C})=>`must be ${C}`,params:({schema:C,schemaValue:w})=>typeof C=="string"?(0,r._)`{type: ${C}}`:(0,r._)`{type: ${w}}`};function v(C){const w=S(C);(0,n.reportError)(w,b)}uo.reportTypeError=v;function S(C){const{gen:w,data:A,schema:E}=C,D=(0,i.schemaRefOrVal)(C,E,"type");return{gen:w,keyword:"type",data:A,schema:E.type,schemaCode:D,schemaValue:D,parentSchema:E,params:{},it:C}}return uo}var S1={},MH;function zRe(){if(MH)return S1;MH=1,Object.defineProperty(S1,"__esModule",{value:!0}),S1.assignDefaults=void 0;const e=pn(),t=qn();function n(i,o){const{properties:s,items:a}=i.schema;if(o==="object"&&s)for(const l in s)r(i,l,s[l].default);else o==="array"&&Array.isArray(a)&&a.forEach((l,c)=>r(i,c,l.default))}S1.assignDefaults=n;function r(i,o,s){const{gen:a,compositeRule:l,data:c,opts:u}=i;if(s===void 0)return;const f=(0,e._)`${c}${(0,e.getProperty)(o)}`;if(l){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let h=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(h=(0,e._)`${h} || ${f} === null || ${f} === ""`),a.if(h,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return S1}var $a={},lr={},RH;function cl(){if(RH)return lr;RH=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.validateUnion=lr.validateArray=lr.usePattern=lr.callValidateCode=lr.schemaProperties=lr.allSchemaProperties=lr.noPropertyInData=lr.propertyInData=lr.isOwnProperty=lr.hasPropFunc=lr.reportMissingProp=lr.checkMissingProp=lr.checkReportMissingProp=void 0;const e=pn(),t=qn(),n=Sf(),r=qn();function i(C,w){const{gen:A,data:E,it:D}=C;A.if(u(A,E,w,D.opts.ownProperties),()=>{C.setParams({missingProperty:(0,e._)`${w}`},!0),C.error()})}lr.checkReportMissingProp=i;function o({gen:C,data:w,it:{opts:A}},E,D){return(0,e.or)(...E.map(O=>(0,e.and)(u(C,w,O,A.ownProperties),(0,e._)`${D} = ${O}`)))}lr.checkMissingProp=o;function s(C,w){C.setParams({missingProperty:w},!0),C.error()}lr.reportMissingProp=s;function a(C){return C.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}lr.hasPropFunc=a;function l(C,w,A){return(0,e._)`${a(C)}.call(${w}, ${A})`}lr.isOwnProperty=l;function c(C,w,A,E){const D=(0,e._)`${w}${(0,e.getProperty)(A)} !== undefined`;return E?(0,e._)`${D} && ${l(C,w,A)}`:D}lr.propertyInData=c;function u(C,w,A,E){const D=(0,e._)`${w}${(0,e.getProperty)(A)} === undefined`;return E?(0,e.or)(D,(0,e.not)(l(C,w,A))):D}lr.noPropertyInData=u;function f(C){return C?Object.keys(C).filter(w=>w!=="__proto__"):[]}lr.allSchemaProperties=f;function h(C,w){return f(w).filter(A=>!(0,t.alwaysValidSchema)(C,w[A]))}lr.schemaProperties=h;function g({schemaCode:C,data:w,it:{gen:A,topSchemaRef:E,schemaPath:D,errorPath:O},it:T},I,N,$){const R=$?(0,e._)`${C}, ${w}, ${E}${D}`:w,F=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,O)],[n.default.parentData,T.parentData],[n.default.parentDataProperty,T.parentDataProperty],[n.default.rootData,n.default.rootData]];T.opts.dynamicRef&&F.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const j=(0,e._)`${R}, ${A.object(...F)}`;return N!==e.nil?(0,e._)`${I}.call(${N}, ${j})`:(0,e._)`${I}(${j})`}lr.callValidateCode=g;const y=(0,e._)`new RegExp`;function b({gen:C,it:{opts:w}},A){const E=w.unicodeRegExp?"u":"",{regExp:D}=w.code,O=D(A,E);return C.scopeValue("pattern",{key:O.toString(),ref:O,code:(0,e._)`${D.code==="new RegExp"?y:(0,r.useFunc)(C,D)}(${A}, ${E})`})}lr.usePattern=b;function v(C){const{gen:w,data:A,keyword:E,it:D}=C,O=w.name("valid");if(D.allErrors){const I=w.let("valid",!0);return T(()=>w.assign(I,!1)),I}return w.var(O,!0),T(()=>w.break()),O;function T(I){const N=w.const("len",(0,e._)`${A}.length`);w.forRange("i",0,N,$=>{C.subschema({keyword:E,dataProp:$,dataPropType:t.Type.Num},O),w.if((0,e.not)(O),I)})}}lr.validateArray=v;function S(C){const{gen:w,schema:A,keyword:E,it:D}=C;if(!Array.isArray(A))throw new Error("ajv implementation error");if(A.some(N=>(0,t.alwaysValidSchema)(D,N))&&!D.opts.unevaluated)return;const T=w.let("valid",!1),I=w.name("_valid");w.block(()=>A.forEach((N,$)=>{const R=C.subschema({keyword:E,schemaProp:$,compositeRule:!0},I);w.assign(T,(0,e._)`${T} || ${I}`),C.mergeValidEvaluated(R,I)||w.if((0,e.not)(T))})),C.result(T,()=>C.reset(),()=>C.error(!0))}return lr.validateUnion=S,lr}var IH;function HRe(){if(IH)return $a;IH=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.validateKeywordUsage=$a.validSchemaType=$a.funcKeywordCode=$a.macroKeywordCode=void 0;const e=pn(),t=Sf(),n=cl(),r=Ww();function i(h,g){const{gen:y,keyword:b,schema:v,parentSchema:S,it:C}=h,w=g.macro.call(C.self,v,S,C),A=c(y,b,w);C.opts.validateSchema!==!1&&C.self.validateSchema(w,!0);const E=y.name("valid");h.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${C.errSchemaPath}/${b}`,topSchemaRef:A,compositeRule:!0},E),h.pass(E,()=>h.error(!0))}$a.macroKeywordCode=i;function o(h,g){var y;const{gen:b,keyword:v,schema:S,parentSchema:C,$data:w,it:A}=h;l(A,g);const E=!w&&g.compile?g.compile.call(A.self,S,C,A):g.validate,D=c(b,v,E),O=b.let("valid");h.block$data(O,T),h.ok((y=g.valid)!==null&&y!==void 0?y:O);function T(){if(g.errors===!1)$(),g.modifying&&s(h),R(()=>h.error());else{const F=g.async?I():N();g.modifying&&s(h),R(()=>a(h,F))}}function I(){const F=b.let("ruleErrs",null);return b.try(()=>$((0,e._)`await `),j=>b.assign(O,!1).if((0,e._)`${j} instanceof ${A.ValidationError}`,()=>b.assign(F,(0,e._)`${j}.errors`),()=>b.throw(j))),F}function N(){const F=(0,e._)`${D}.errors`;return b.assign(F,null),$(e.nil),F}function $(F=g.async?(0,e._)`await `:e.nil){const j=A.opts.passContext?t.default.this:t.default.self,z=!("compile"in g&&!w||g.schema===!1);b.assign(O,(0,e._)`${F}${(0,n.callValidateCode)(h,D,j,z)}`,g.modifying)}function R(F){var j;b.if((0,e.not)((j=g.valid)!==null&&j!==void 0?j:O),F)}}$a.funcKeywordCode=o;function s(h){const{gen:g,data:y,it:b}=h;g.if(b.parentData,()=>g.assign(y,(0,e._)`${b.parentData}[${b.parentDataProperty}]`))}function a(h,g){const{gen:y}=h;y.if((0,e._)`Array.isArray(${g})`,()=>{y.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,r.extendErrors)(h)},()=>h.error())}function l({schemaEnv:h},g){if(g.async&&!h.$async)throw new Error("async keyword in sync schema")}function c(h,g,y){if(y===void 0)throw new Error(`keyword "${g}" failed to compile`);return h.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,e.stringify)(y)})}function u(h,g,y=!1){return!g.length||g.some(b=>b==="array"?Array.isArray(h):b==="object"?h&&typeof h=="object"&&!Array.isArray(h):typeof h==b||y&&typeof h>"u")}$a.validSchemaType=u;function f({schema:h,opts:g,self:y,errSchemaPath:b},v,S){if(Array.isArray(v.keyword)?!v.keyword.includes(S):v.keyword!==S)throw new Error("ajv implementation error");const C=v.dependencies;if(C?.some(w=>!Object.prototype.hasOwnProperty.call(h,w)))throw new Error(`parent schema must have dependencies of ${S}: ${C.join(",")}`);if(v.validateSchema&&!v.validateSchema(h[S])){const A=`keyword "${S}" value is invalid at path "${b}": `+y.errorsText(v.validateSchema.errors);if(g.validateSchema==="log")y.logger.error(A);else throw new Error(A)}}return $a.validateKeywordUsage=f,$a}var Yc={},PH;function URe(){if(PH)return Yc;PH=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.extendSubschemaMode=Yc.extendSubschemaData=Yc.getSubschema=void 0;const e=pn(),t=qn();function n(o,{keyword:s,schemaProp:a,schema:l,schemaPath:c,errSchemaPath:u,topSchemaRef:f}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const h=o.schema[s];return a===void 0?{schema:h,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:h[a],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(a)}`}}if(l!==void 0){if(c===void 0||u===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:c,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}Yc.getSubschema=n;function r(o,s,{dataProp:a,dataPropType:l,data:c,dataTypes:u,propertyName:f}){if(c!==void 0&&a!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:h}=s;if(a!==void 0){const{errorPath:y,dataPathArr:b,opts:v}=s,S=h.let("data",(0,e._)`${s.data}${(0,e.getProperty)(a)}`,!0);g(S),o.errorPath=(0,e.str)`${y}${(0,t.getErrorPath)(a,l,v.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${a}`,o.dataPathArr=[...b,o.parentDataProperty]}if(c!==void 0){const y=c instanceof e.Name?c:h.let("data",c,!0);g(y),f!==void 0&&(o.propertyName=f)}u&&(o.dataTypes=u);function g(y){o.data=y,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,y]}}Yc.extendSubschemaData=r;function i(o,{jtdDiscriminator:s,jtdMetadata:a,compositeRule:l,createErrors:c,allErrors:u}){l!==void 0&&(o.compositeRule=l),c!==void 0&&(o.createErrors=c),u!==void 0&&(o.allErrors=u),o.jtdDiscriminator=s,o.jtdMetadata=a}return Yc.extendSubschemaMode=i,Yc}var To={},EE,jH;function SM(){return jH||(jH=1,EE=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(o=Object.keys(t),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}),EE}var AE={exports:{}},$H;function VRe(){if($H)return AE.exports;$H=1;var e=AE.exports=function(r,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var s=typeof o=="function"?o:o.pre||function(){},a=o.post||function(){};t(i,s,a,r,"",r)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(r,i,o,s,a,l,c,u,f,h){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,a,l,c,u,f,h);for(var g in s){var y=s[g];if(Array.isArray(y)){if(g in e.arrayKeywords)for(var b=0;b<y.length;b++)t(r,i,o,y[b],a+"/"+g+"/"+b,l,a,g,s,b)}else if(g in e.propsKeywords){if(y&&typeof y=="object")for(var v in y)t(r,i,o,y[v],a+"/"+g+"/"+n(v),l,a,g,s,v)}else(g in e.keywords||r.allKeys&&!(g in e.skipKeywords))&&t(r,i,o,y,a+"/"+g,l,a,g,s)}o(s,a,l,c,u,f,h)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return AE.exports}var LH;function qw(){if(LH)return To;LH=1,Object.defineProperty(To,"__esModule",{value:!0}),To.getSchemaRefs=To.resolveUrl=To.normalizeId=To._getFullPath=To.getFullPath=To.inlineRef=void 0;const e=qn(),t=SM(),n=VRe(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(b,v=!0){return typeof b=="boolean"?!0:v===!0?!s(b):v?a(b)<=v:!1}To.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(b){for(const v in b){if(o.has(v))return!0;const S=b[v];if(Array.isArray(S)&&S.some(s)||typeof S=="object"&&s(S))return!0}return!1}function a(b){let v=0;for(const S in b){if(S==="$ref")return 1/0;if(v++,!r.has(S)&&(typeof b[S]=="object"&&(0,e.eachItem)(b[S],C=>v+=a(C)),v===1/0))return 1/0}return v}function l(b,v="",S){S!==!1&&(v=f(v));const C=b.parse(v);return c(b,C)}To.getFullPath=l;function c(b,v){return b.serialize(v).split("#")[0]+"#"}To._getFullPath=c;const u=/#\/?$/;function f(b){return b?b.replace(u,""):""}To.normalizeId=f;function h(b,v,S){return S=f(S),b.resolve(v,S)}To.resolveUrl=h;const g=/^[a-z_][-a-z0-9._]*$/i;function y(b,v){if(typeof b=="boolean")return{};const{schemaId:S,uriResolver:C}=this.opts,w=f(b[S]||v),A={"":w},E=l(C,w,!1),D={},O=new Set;return n(b,{allKeys:!0},(N,$,R,F)=>{if(F===void 0)return;const j=E+$;let z=A[F];typeof N[S]=="string"&&(z=L.call(this,N[S])),q.call(this,N.$anchor),q.call(this,N.$dynamicAnchor),A[$]=z;function L(V){const U=this.opts.uriResolver.resolve;if(V=f(z?U(z,V):V),O.has(V))throw I(V);O.add(V);let K=this.refs[V];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?T(N,K.schema,V):V!==f(j)&&(V[0]==="#"?(T(N,D[V],V),D[V]=N):this.refs[V]=j),V}function q(V){if(typeof V=="string"){if(!g.test(V))throw new Error(`invalid anchor "${V}"`);L.call(this,`#${V}`)}}}),D;function T(N,$,R){if($!==void 0&&!t(N,$))throw I(R)}function I(N){return new Error(`reference "${N}" resolves to more than one schema`)}}return To.getSchemaRefs=y,To}var NH;function Gw(){if(NH)return Gc;NH=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.getData=Gc.KeywordCxt=Gc.validateFunctionCode=void 0;const e=BRe(),t=c6(),n=Eee(),r=c6(),i=zRe(),o=HRe(),s=URe(),a=pn(),l=Sf(),c=qw(),u=qn(),f=Ww();function h(te){if(E(te)&&(O(te),A(te))){v(te);return}g(te,()=>(0,e.topBoolOrEmptySchema)(te))}Gc.validateFunctionCode=h;function g({gen:te,validateName:Z,schema:re,schemaEnv:oe,opts:fe},be){fe.code.es5?te.func(Z,(0,a._)`${l.default.data}, ${l.default.valCxt}`,oe.$async,()=>{te.code((0,a._)`"use strict"; ${C(re,fe)}`),b(te,fe),te.code(be)}):te.func(Z,(0,a._)`${l.default.data}, ${y(fe)}`,oe.$async,()=>te.code(C(re,fe)).code(be))}function y(te){return(0,a._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${te.dynamicRef?(0,a._)`, ${l.default.dynamicAnchors}={}`:a.nil}}={}`}function b(te,Z){te.if(l.default.valCxt,()=>{te.var(l.default.instancePath,(0,a._)`${l.default.valCxt}.${l.default.instancePath}`),te.var(l.default.parentData,(0,a._)`${l.default.valCxt}.${l.default.parentData}`),te.var(l.default.parentDataProperty,(0,a._)`${l.default.valCxt}.${l.default.parentDataProperty}`),te.var(l.default.rootData,(0,a._)`${l.default.valCxt}.${l.default.rootData}`),Z.dynamicRef&&te.var(l.default.dynamicAnchors,(0,a._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{te.var(l.default.instancePath,(0,a._)`""`),te.var(l.default.parentData,(0,a._)`undefined`),te.var(l.default.parentDataProperty,(0,a._)`undefined`),te.var(l.default.rootData,l.default.data),Z.dynamicRef&&te.var(l.default.dynamicAnchors,(0,a._)`{}`)})}function v(te){const{schema:Z,opts:re,gen:oe}=te;g(te,()=>{re.$comment&&Z.$comment&&F(te),N(te),oe.let(l.default.vErrors,null),oe.let(l.default.errors,0),re.unevaluated&&S(te),T(te),j(te)})}function S(te){const{gen:Z,validateName:re}=te;te.evaluated=Z.const("evaluated",(0,a._)`${re}.evaluated`),Z.if((0,a._)`${te.evaluated}.dynamicProps`,()=>Z.assign((0,a._)`${te.evaluated}.props`,(0,a._)`undefined`)),Z.if((0,a._)`${te.evaluated}.dynamicItems`,()=>Z.assign((0,a._)`${te.evaluated}.items`,(0,a._)`undefined`))}function C(te,Z){const re=typeof te=="object"&&te[Z.schemaId];return re&&(Z.code.source||Z.code.process)?(0,a._)`/*# sourceURL=${re} */`:a.nil}function w(te,Z){if(E(te)&&(O(te),A(te))){D(te,Z);return}(0,e.boolOrEmptySchema)(te,Z)}function A({schema:te,self:Z}){if(typeof te=="boolean")return!te;for(const re in te)if(Z.RULES.all[re])return!0;return!1}function E(te){return typeof te.schema!="boolean"}function D(te,Z){const{schema:re,gen:oe,opts:fe}=te;fe.$comment&&re.$comment&&F(te),$(te),R(te);const be=oe.const("_errs",l.default.errors);T(te,be),oe.var(Z,(0,a._)`${be} === ${l.default.errors}`)}function O(te){(0,u.checkUnknownRules)(te),I(te)}function T(te,Z){if(te.opts.jtd)return L(te,[],!1,Z);const re=(0,t.getSchemaTypes)(te.schema),oe=(0,t.coerceAndCheckDataType)(te,re);L(te,re,!oe,Z)}function I(te){const{schema:Z,errSchemaPath:re,opts:oe,self:fe}=te;Z.$ref&&oe.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(Z,fe.RULES)&&fe.logger.warn(`$ref: keywords ignored in schema at path "${re}"`)}function N(te){const{schema:Z,opts:re}=te;Z.default!==void 0&&re.useDefaults&&re.strictSchema&&(0,u.checkStrictMode)(te,"default is ignored in the schema root")}function $(te){const Z=te.schema[te.opts.schemaId];Z&&(te.baseId=(0,c.resolveUrl)(te.opts.uriResolver,te.baseId,Z))}function R(te){if(te.schema.$async&&!te.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:te,schemaEnv:Z,schema:re,errSchemaPath:oe,opts:fe}){const be=re.$comment;if(fe.$comment===!0)te.code((0,a._)`${l.default.self}.logger.log(${be})`);else if(typeof fe.$comment=="function"){const De=(0,a.str)`${oe}/$comment`,Oe=te.scopeValue("root",{ref:Z.root});te.code((0,a._)`${l.default.self}.opts.$comment(${be}, ${De}, ${Oe}.schema)`)}}function j(te){const{gen:Z,schemaEnv:re,validateName:oe,ValidationError:fe,opts:be}=te;re.$async?Z.if((0,a._)`${l.default.errors} === 0`,()=>Z.return(l.default.data),()=>Z.throw((0,a._)`new ${fe}(${l.default.vErrors})`)):(Z.assign((0,a._)`${oe}.errors`,l.default.vErrors),be.unevaluated&&z(te),Z.return((0,a._)`${l.default.errors} === 0`))}function z({gen:te,evaluated:Z,props:re,items:oe}){re instanceof a.Name&&te.assign((0,a._)`${Z}.props`,re),oe instanceof a.Name&&te.assign((0,a._)`${Z}.items`,oe)}function L(te,Z,re,oe){const{gen:fe,schema:be,data:De,allErrors:Oe,opts:Ke,self:xe}=te,{RULES:Le}=xe;if(be.$ref&&(Ke.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(be,Le))){fe.block(()=>ne(te,"$ref",Le.all.$ref.definition));return}Ke.jtd||V(te,Z),fe.block(()=>{for(const ht of Le.rules)Me(ht);Me(Le.post)});function Me(ht){(0,n.shouldUseGroup)(be,ht)&&(ht.type?(fe.if((0,r.checkDataType)(ht.type,De,Ke.strictNumbers)),q(te,ht),Z.length===1&&Z[0]===ht.type&&re&&(fe.else(),(0,r.reportTypeError)(te)),fe.endIf()):q(te,ht),Oe||fe.if((0,a._)`${l.default.errors} === ${oe||0}`))}}function q(te,Z){const{gen:re,schema:oe,opts:{useDefaults:fe}}=te;fe&&(0,i.assignDefaults)(te,Z.type),re.block(()=>{for(const be of Z.rules)(0,n.shouldUseRule)(oe,be)&&ne(te,be.keyword,be.definition,Z.type)})}function V(te,Z){te.schemaEnv.meta||!te.opts.strictTypes||(U(te,Z),te.opts.allowUnionTypes||K(te,Z),B(te,te.dataTypes))}function U(te,Z){if(Z.length){if(!te.dataTypes.length){te.dataTypes=Z;return}Z.forEach(re=>{X(te.dataTypes,re)||Y(te,`type "${re}" not allowed by context "${te.dataTypes.join(",")}"`)}),H(te,Z)}}function K(te,Z){Z.length>1&&!(Z.length===2&&Z.includes("null"))&&Y(te,"use allowUnionTypes to allow union type keyword")}function B(te,Z){const re=te.self.RULES.all;for(const oe in re){const fe=re[oe];if(typeof fe=="object"&&(0,n.shouldUseRule)(te.schema,fe)){const{type:be}=fe.definition;be.length&&!be.some(De=>W(Z,De))&&Y(te,`missing type "${be.join(",")}" for keyword "${oe}"`)}}}function W(te,Z){return te.includes(Z)||Z==="number"&&te.includes("integer")}function X(te,Z){return te.includes(Z)||Z==="integer"&&te.includes("number")}function H(te,Z){const re=[];for(const oe of te.dataTypes)X(Z,oe)?re.push(oe):Z.includes("integer")&&oe==="number"&&re.push("integer");te.dataTypes=re}function Y(te,Z){const re=te.schemaEnv.baseId+te.errSchemaPath;Z+=` at "${re}" (strictTypes)`,(0,u.checkStrictMode)(te,Z,te.opts.strictTypes)}class J{constructor(Z,re,oe){if((0,o.validateKeywordUsage)(Z,re,oe),this.gen=Z.gen,this.allErrors=Z.allErrors,this.keyword=oe,this.data=Z.data,this.schema=Z.schema[oe],this.$data=re.$data&&Z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(Z,this.schema,oe,this.$data),this.schemaType=re.schemaType,this.parentSchema=Z.schema,this.params={},this.it=Z,this.def=re,this.$data)this.schemaCode=Z.gen.const("vSchema",ue(this.$data,Z));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,re.schemaType,re.allowUndefined))throw new Error(`${oe} value must be ${JSON.stringify(re.schemaType)}`);("code"in re?re.trackErrors:re.errors!==!1)&&(this.errsCount=Z.gen.const("_errs",l.default.errors))}result(Z,re,oe){this.failResult((0,a.not)(Z),re,oe)}failResult(Z,re,oe){this.gen.if(Z),oe?oe():this.error(),re?(this.gen.else(),re(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(Z,re){this.failResult((0,a.not)(Z),void 0,re)}fail(Z){if(Z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(Z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(Z){if(!this.$data)return this.fail(Z);const{schemaCode:re}=this;this.fail((0,a._)`${re} !== undefined && (${(0,a.or)(this.invalid$data(),Z)})`)}error(Z,re,oe){if(re){this.setParams(re),this._error(Z,oe),this.setParams({});return}this._error(Z,oe)}_error(Z,re){(Z?f.reportExtraError:f.reportError)(this,this.def.error,re)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(Z){this.allErrors||this.gen.if(Z)}setParams(Z,re){re?Object.assign(this.params,Z):this.params=Z}block$data(Z,re,oe=a.nil){this.gen.block(()=>{this.check$data(Z,oe),re()})}check$data(Z=a.nil,re=a.nil){if(!this.$data)return;const{gen:oe,schemaCode:fe,schemaType:be,def:De}=this;oe.if((0,a.or)((0,a._)`${fe} === undefined`,re)),Z!==a.nil&&oe.assign(Z,!0),(be.length||De.validateSchema)&&(oe.elseIf(this.invalid$data()),this.$dataError(),Z!==a.nil&&oe.assign(Z,!1)),oe.else()}invalid$data(){const{gen:Z,schemaCode:re,schemaType:oe,def:fe,it:be}=this;return(0,a.or)(De(),Oe());function De(){if(oe.length){if(!(re instanceof a.Name))throw new Error("ajv implementation error");const Ke=Array.isArray(oe)?oe:[oe];return(0,a._)`${(0,r.checkDataTypes)(Ke,re,be.opts.strictNumbers,r.DataType.Wrong)}`}return a.nil}function Oe(){if(fe.validateSchema){const Ke=Z.scopeValue("validate$data",{ref:fe.validateSchema});return(0,a._)`!${Ke}(${re})`}return a.nil}}subschema(Z,re){const oe=(0,s.getSubschema)(this.it,Z);(0,s.extendSubschemaData)(oe,this.it,Z),(0,s.extendSubschemaMode)(oe,Z);const fe={...this.it,...oe,items:void 0,props:void 0};return w(fe,re),fe}mergeEvaluated(Z,re){const{it:oe,gen:fe}=this;oe.opts.unevaluated&&(oe.props!==!0&&Z.props!==void 0&&(oe.props=u.mergeEvaluated.props(fe,Z.props,oe.props,re)),oe.items!==!0&&Z.items!==void 0&&(oe.items=u.mergeEvaluated.items(fe,Z.items,oe.items,re)))}mergeValidEvaluated(Z,re){const{it:oe,gen:fe}=this;if(oe.opts.unevaluated&&(oe.props!==!0||oe.items!==!0))return fe.if(re,()=>this.mergeEvaluated(Z,a.Name)),!0}}Gc.KeywordCxt=J;function ne(te,Z,re,oe){const fe=new J(te,re,Z);"code"in re?re.code(fe,oe):fe.$data&&re.validate?(0,o.funcKeywordCode)(fe,re):"macro"in re?(0,o.macroKeywordCode)(fe,re):(re.compile||re.validate)&&(0,o.funcKeywordCode)(fe,re)}const ee=/^\/(?:[^~]|~0|~1)*$/,se=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ue(te,{dataLevel:Z,dataNames:re,dataPathArr:oe}){let fe,be;if(te==="")return l.default.rootData;if(te[0]==="/"){if(!ee.test(te))throw new Error(`Invalid JSON-pointer: ${te}`);fe=te,be=l.default.rootData}else{const xe=se.exec(te);if(!xe)throw new Error(`Invalid JSON-pointer: ${te}`);const Le=+xe[1];if(fe=xe[2],fe==="#"){if(Le>=Z)throw new Error(Ke("property/index",Le));return oe[Z-Le]}if(Le>Z)throw new Error(Ke("data",Le));if(be=re[Z-Le],!fe)return be}let De=be;const Oe=fe.split("/");for(const xe of Oe)xe&&(be=(0,a._)`${be}${(0,a.getProperty)((0,u.unescapeJsonPointer)(xe))}`,De=(0,a._)`${De} && ${be}`);return De;function Ke(xe,Le){return`Cannot access ${xe} ${Le} levels up, current level is ${Z}`}}return Gc.getData=ue,Gc}var Hx={},FH;function wM(){if(FH)return Hx;FH=1,Object.defineProperty(Hx,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return Hx.default=e,Hx}var Ux={},BH;function Kw(){if(BH)return Ux;BH=1,Object.defineProperty(Ux,"__esModule",{value:!0});const e=qw();class t extends Error{constructor(r,i,o,s){super(s||`can't resolve reference ${o} from id ${i}`),this.missingRef=(0,e.resolveUrl)(r,i,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Ux.default=t,Ux}var Ss={},zH;function CM(){if(zH)return Ss;zH=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.resolveSchema=Ss.getCompilingSchema=Ss.resolveRef=Ss.compileSchema=Ss.SchemaEnv=void 0;const e=pn(),t=wM(),n=Sf(),r=qw(),i=qn(),o=Gw();class s{constructor(S){var C;this.refs={},this.dynamicAnchors={};let w;typeof S.schema=="object"&&(w=S.schema),this.schema=S.schema,this.schemaId=S.schemaId,this.root=S.root||this,this.baseId=(C=S.baseId)!==null&&C!==void 0?C:(0,r.normalizeId)(w?.[S.schemaId||"$id"]),this.schemaPath=S.schemaPath,this.localRefs=S.localRefs,this.meta=S.meta,this.$async=w?.$async,this.refs={}}}Ss.SchemaEnv=s;function a(v){const S=u.call(this,v);if(S)return S;const C=(0,r.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:A}=this.opts.code,{ownProperties:E}=this.opts,D=new e.CodeGen(this.scope,{es5:w,lines:A,ownProperties:E});let O;v.$async&&(O=D.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const T=D.scopeName("validate");v.validateName=T;const I={gen:D,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:D.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:T,ValidationError:O,schema:v.schema,schemaEnv:v,rootId:C,baseId:v.baseId||C,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let N;try{this._compilations.add(v),(0,o.validateFunctionCode)(I),D.optimize(this.opts.code.optimize);const $=D.toString();N=`${D.scopeRefs(n.default.scope)}return ${$}`,this.opts.code.process&&(N=this.opts.code.process(N,v));const F=new Function(`${n.default.self}`,`${n.default.scope}`,N)(this,this.scope.get());if(this.scope.value(T,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:T,validateCode:$,scopeValues:D._values}),this.opts.unevaluated){const{props:j,items:z}=I;F.evaluated={props:j instanceof e.Name?void 0:j,items:z instanceof e.Name?void 0:z,dynamicProps:j instanceof e.Name,dynamicItems:z instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch($){throw delete v.validate,delete v.validateName,N&&this.logger.error("Error compiling schema, function code:",N),$}finally{this._compilations.delete(v)}}Ss.compileSchema=a;function l(v,S,C){var w;C=(0,r.resolveUrl)(this.opts.uriResolver,S,C);const A=v.refs[C];if(A)return A;let E=h.call(this,v,C);if(E===void 0){const D=(w=v.localRefs)===null||w===void 0?void 0:w[C],{schemaId:O}=this.opts;D&&(E=new s({schema:D,schemaId:O,root:v,baseId:S}))}if(E!==void 0)return v.refs[C]=c.call(this,E)}Ss.resolveRef=l;function c(v){return(0,r.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:a.call(this,v)}function u(v){for(const S of this._compilations)if(f(S,v))return S}Ss.getCompilingSchema=u;function f(v,S){return v.schema===S.schema&&v.root===S.root&&v.baseId===S.baseId}function h(v,S){let C;for(;typeof(C=this.refs[S])=="string";)S=C;return C||this.schemas[S]||g.call(this,v,S)}function g(v,S){const C=this.opts.uriResolver.parse(S),w=(0,r._getFullPath)(this.opts.uriResolver,C);let A=(0,r.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===A)return b.call(this,C,v);const E=(0,r.normalizeId)(w),D=this.refs[E]||this.schemas[E];if(typeof D=="string"){const O=g.call(this,v,D);return typeof O?.schema!="object"?void 0:b.call(this,C,O)}if(typeof D?.schema=="object"){if(D.validate||a.call(this,D),E===(0,r.normalizeId)(S)){const{schema:O}=D,{schemaId:T}=this.opts,I=O[T];return I&&(A=(0,r.resolveUrl)(this.opts.uriResolver,A,I)),new s({schema:O,schemaId:T,root:v,baseId:A})}return b.call(this,C,D)}}Ss.resolveSchema=g;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(v,{baseId:S,schema:C,root:w}){var A;if(((A=v.fragment)===null||A===void 0?void 0:A[0])!=="/")return;for(const O of v.fragment.slice(1).split("/")){if(typeof C=="boolean")return;const T=C[(0,i.unescapeFragment)(O)];if(T===void 0)return;C=T;const I=typeof C=="object"&&C[this.opts.schemaId];!y.has(O)&&I&&(S=(0,r.resolveUrl)(this.opts.uriResolver,S,I))}let E;if(typeof C!="boolean"&&C.$ref&&!(0,i.schemaHasRulesButRef)(C,this.RULES)){const O=(0,r.resolveUrl)(this.opts.uriResolver,S,C.$ref);E=g.call(this,w,O)}const{schemaId:D}=this.opts;if(E=E||new s({schema:C,schemaId:D,root:w,baseId:S}),E.schema!==E.root.schema)return E}return Ss}const WRe="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",qRe="Meta-schema for $data reference (JSON AnySchema extension proposal)",GRe="object",KRe=["$data"],YRe={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},XRe=!1,ZRe={$id:WRe,description:qRe,type:GRe,required:KRe,properties:YRe,additionalProperties:XRe};var Vx={},HH;function JRe(){if(HH)return Vx;HH=1,Object.defineProperty(Vx,"__esModule",{value:!0});const e=AQ();return e.code='require("ajv/dist/runtime/uri").default',Vx.default=e,Vx}var UH;function QRe(){return UH||(UH=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Gw();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=pn();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=wM(),i=Kw(),o=Cee(),s=CM(),a=pn(),l=qw(),c=c6(),u=qn(),f=ZRe,h=JRe(),g=(K,B)=>new RegExp(K,B);g.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},S={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},C=200;function w(K){var B,W,X,H,Y,J,ne,ee,se,ue,te,Z,re,oe,fe,be,De,Oe,Ke,xe,Le,Me,ht,mt,ze;const Pe=K.strict,He=(B=K.code)===null||B===void 0?void 0:B.optimize,Je=He===!0||He===void 0?1:He||0,nt=(X=(W=K.code)===null||W===void 0?void 0:W.regExp)!==null&&X!==void 0?X:g,ot=(H=K.uriResolver)!==null&&H!==void 0?H:h.default;return{strictSchema:(J=(Y=K.strictSchema)!==null&&Y!==void 0?Y:Pe)!==null&&J!==void 0?J:!0,strictNumbers:(ee=(ne=K.strictNumbers)!==null&&ne!==void 0?ne:Pe)!==null&&ee!==void 0?ee:!0,strictTypes:(ue=(se=K.strictTypes)!==null&&se!==void 0?se:Pe)!==null&&ue!==void 0?ue:"log",strictTuples:(Z=(te=K.strictTuples)!==null&&te!==void 0?te:Pe)!==null&&Z!==void 0?Z:"log",strictRequired:(oe=(re=K.strictRequired)!==null&&re!==void 0?re:Pe)!==null&&oe!==void 0?oe:!1,code:K.code?{...K.code,optimize:Je,regExp:nt}:{optimize:Je,regExp:nt},loopRequired:(fe=K.loopRequired)!==null&&fe!==void 0?fe:C,loopEnum:(be=K.loopEnum)!==null&&be!==void 0?be:C,meta:(De=K.meta)!==null&&De!==void 0?De:!0,messages:(Oe=K.messages)!==null&&Oe!==void 0?Oe:!0,inlineRefs:(Ke=K.inlineRefs)!==null&&Ke!==void 0?Ke:!0,schemaId:(xe=K.schemaId)!==null&&xe!==void 0?xe:"$id",addUsedSchema:(Le=K.addUsedSchema)!==null&&Le!==void 0?Le:!0,validateSchema:(Me=K.validateSchema)!==null&&Me!==void 0?Me:!0,validateFormats:(ht=K.validateFormats)!==null&&ht!==void 0?ht:!0,unicodeRegExp:(mt=K.unicodeRegExp)!==null&&mt!==void 0?mt:!0,int32range:(ze=K.int32range)!==null&&ze!==void 0?ze:!0,uriResolver:ot}}class A{constructor(B={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,B=this.opts={...B,...w(B)};const{es5:W,lines:X}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:b,es5:W,lines:X}),this.logger=R(B.logger);const H=B.validateFormats;B.validateFormats=!1,this.RULES=(0,o.getRules)(),E.call(this,v,B,"NOT SUPPORTED"),E.call(this,S,B,"DEPRECATED","warn"),this._metaOpts=N.call(this),B.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),B.keywords&&I.call(this,B.keywords),typeof B.meta=="object"&&this.addMetaSchema(B.meta),O.call(this),B.validateFormats=H}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:B,meta:W,schemaId:X}=this.opts;let H=f;X==="id"&&(H={...f},H.id=H.$id,delete H.$id),W&&B&&this.addMetaSchema(H,H[X],!1)}defaultMeta(){const{meta:B,schemaId:W}=this.opts;return this.opts.defaultMeta=typeof B=="object"?B[W]||B:void 0}validate(B,W){let X;if(typeof B=="string"){if(X=this.getSchema(B),!X)throw new Error(`no schema with key or ref "${B}"`)}else X=this.compile(B);const H=X(W);return"$async"in X||(this.errors=X.errors),H}compile(B,W){const X=this._addSchema(B,W);return X.validate||this._compileSchemaEnv(X)}compileAsync(B,W){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:X}=this.opts;return H.call(this,B,W);async function H(ue,te){await Y.call(this,ue.$schema);const Z=this._addSchema(ue,te);return Z.validate||J.call(this,Z)}async function Y(ue){ue&&!this.getSchema(ue)&&await H.call(this,{$ref:ue},!0)}async function J(ue){try{return this._compileSchemaEnv(ue)}catch(te){if(!(te instanceof i.default))throw te;return ne.call(this,te),await ee.call(this,te.missingSchema),J.call(this,ue)}}function ne({missingSchema:ue,missingRef:te}){if(this.refs[ue])throw new Error(`AnySchema ${ue} is loaded but ${te} cannot be resolved`)}async function ee(ue){const te=await se.call(this,ue);this.refs[ue]||await Y.call(this,te.$schema),this.refs[ue]||this.addSchema(te,ue,W)}async function se(ue){const te=this._loading[ue];if(te)return te;try{return await(this._loading[ue]=X(ue))}finally{delete this._loading[ue]}}}addSchema(B,W,X,H=this.opts.validateSchema){if(Array.isArray(B)){for(const J of B)this.addSchema(J,void 0,X,H);return this}let Y;if(typeof B=="object"){const{schemaId:J}=this.opts;if(Y=B[J],Y!==void 0&&typeof Y!="string")throw new Error(`schema ${J} must be string`)}return W=(0,l.normalizeId)(W||Y),this._checkUnique(W),this.schemas[W]=this._addSchema(B,X,W,H,!0),this}addMetaSchema(B,W,X=this.opts.validateSchema){return this.addSchema(B,W,!0,X),this}validateSchema(B,W){if(typeof B=="boolean")return!0;let X;if(X=B.$schema,X!==void 0&&typeof X!="string")throw new Error("$schema must be a string");if(X=X||this.opts.defaultMeta||this.defaultMeta(),!X)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const H=this.validate(X,B);if(!H&&W){const Y="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Y);else throw new Error(Y)}return H}getSchema(B){let W;for(;typeof(W=D.call(this,B))=="string";)B=W;if(W===void 0){const{schemaId:X}=this.opts,H=new s.SchemaEnv({schema:{},schemaId:X});if(W=s.resolveSchema.call(this,H,B),!W)return;this.refs[B]=W}return W.validate||this._compileSchemaEnv(W)}removeSchema(B){if(B instanceof RegExp)return this._removeAllSchemas(this.schemas,B),this._removeAllSchemas(this.refs,B),this;switch(typeof B){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const W=D.call(this,B);return typeof W=="object"&&this._cache.delete(W.schema),delete this.schemas[B],delete this.refs[B],this}case"object":{const W=B;this._cache.delete(W);let X=B[this.opts.schemaId];return X&&(X=(0,l.normalizeId)(X),delete this.schemas[X],delete this.refs[X]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(B){for(const W of B)this.addKeyword(W);return this}addKeyword(B,W){let X;if(typeof B=="string")X=B,typeof W=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),W.keyword=X);else if(typeof B=="object"&&W===void 0){if(W=B,X=W.keyword,Array.isArray(X)&&!X.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(j.call(this,X,W),!W)return(0,u.eachItem)(X,Y=>z.call(this,Y)),this;q.call(this,W);const H={...W,type:(0,c.getJSONTypes)(W.type),schemaType:(0,c.getJSONTypes)(W.schemaType)};return(0,u.eachItem)(X,H.type.length===0?Y=>z.call(this,Y,H):Y=>H.type.forEach(J=>z.call(this,Y,H,J))),this}getKeyword(B){const W=this.RULES.all[B];return typeof W=="object"?W.definition:!!W}removeKeyword(B){const{RULES:W}=this;delete W.keywords[B],delete W.all[B];for(const X of W.rules){const H=X.rules.findIndex(Y=>Y.keyword===B);H>=0&&X.rules.splice(H,1)}return this}addFormat(B,W){return typeof W=="string"&&(W=new RegExp(W)),this.formats[B]=W,this}errorsText(B=this.errors,{separator:W=", ",dataVar:X="data"}={}){return!B||B.length===0?"No errors":B.map(H=>`${X}${H.instancePath} ${H.message}`).reduce((H,Y)=>H+W+Y)}$dataMetaSchema(B,W){const X=this.RULES.all;B=JSON.parse(JSON.stringify(B));for(const H of W){const Y=H.split("/").slice(1);let J=B;for(const ne of Y)J=J[ne];for(const ne in X){const ee=X[ne];if(typeof ee!="object")continue;const{$data:se}=ee.definition,ue=J[ne];se&&ue&&(J[ne]=U(ue))}}return B}_removeAllSchemas(B,W){for(const X in B){const H=B[X];(!W||W.test(X))&&(typeof H=="string"?delete B[X]:H&&!H.meta&&(this._cache.delete(H.schema),delete B[X]))}}_addSchema(B,W,X,H=this.opts.validateSchema,Y=this.opts.addUsedSchema){let J;const{schemaId:ne}=this.opts;if(typeof B=="object")J=B[ne];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof B!="boolean")throw new Error("schema must be object or boolean")}let ee=this._cache.get(B);if(ee!==void 0)return ee;X=(0,l.normalizeId)(J||X);const se=l.getSchemaRefs.call(this,B,X);return ee=new s.SchemaEnv({schema:B,schemaId:ne,meta:W,baseId:X,localRefs:se}),this._cache.set(ee.schema,ee),Y&&!X.startsWith("#")&&(X&&this._checkUnique(X),this.refs[X]=ee),H&&this.validateSchema(B,!0),ee}_checkUnique(B){if(this.schemas[B]||this.refs[B])throw new Error(`schema with key or id "${B}" already exists`)}_compileSchemaEnv(B){if(B.meta?this._compileMetaSchema(B):s.compileSchema.call(this,B),!B.validate)throw new Error("ajv implementation error");return B.validate}_compileMetaSchema(B){const W=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,B)}finally{this.opts=W}}}A.ValidationError=r.default,A.MissingRefError=i.default,e.default=A;function E(K,B,W,X="error"){for(const H in K){const Y=H;Y in B&&this.logger[X](`${W}: option ${H}. ${K[Y]}`)}}function D(K){return K=(0,l.normalizeId)(K),this.schemas[K]||this.refs[K]}function O(){const K=this.opts.schemas;if(K)if(Array.isArray(K))this.addSchema(K);else for(const B in K)this.addSchema(K[B],B)}function T(){for(const K in this.opts.formats){const B=this.opts.formats[K];B&&this.addFormat(K,B)}}function I(K){if(Array.isArray(K)){this.addVocabulary(K);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const B in K){const W=K[B];W.keyword||(W.keyword=B),this.addKeyword(W)}}function N(){const K={...this.opts};for(const B of y)delete K[B];return K}const $={log(){},warn(){},error(){}};function R(K){if(K===!1)return $;if(K===void 0)return console;if(K.log&&K.warn&&K.error)return K;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function j(K,B){const{RULES:W}=this;if((0,u.eachItem)(K,X=>{if(W.keywords[X])throw new Error(`Keyword ${X} is already defined`);if(!F.test(X))throw new Error(`Keyword ${X} has invalid name`)}),!!B&&B.$data&&!("code"in B||"validate"in B))throw new Error('$data keyword must have "code" or "validate" function')}function z(K,B,W){var X;const H=B?.post;if(W&&H)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Y}=this;let J=H?Y.post:Y.rules.find(({type:ee})=>ee===W);if(J||(J={type:W,rules:[]},Y.rules.push(J)),Y.keywords[K]=!0,!B)return;const ne={keyword:K,definition:{...B,type:(0,c.getJSONTypes)(B.type),schemaType:(0,c.getJSONTypes)(B.schemaType)}};B.before?L.call(this,J,ne,B.before):J.rules.push(ne),Y.all[K]=ne,(X=B.implements)===null||X===void 0||X.forEach(ee=>this.addKeyword(ee))}function L(K,B,W){const X=K.rules.findIndex(H=>H.keyword===W);X>=0?K.rules.splice(X,0,B):(K.rules.push(B),this.logger.warn(`rule ${W} is not defined`))}function q(K){let{metaSchema:B}=K;B!==void 0&&(K.$data&&this.opts.$data&&(B=U(B)),K.validateSchema=this.compile(B,!0))}const V={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function U(K){return{anyOf:[K,V]}}})(vE)),vE}var Wx={},qx={},Gx={},VH;function eIe(){if(VH)return Gx;VH=1,Object.defineProperty(Gx,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Gx.default=e,Gx}var ld={},WH;function tIe(){if(WH)return ld;WH=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.callRef=ld.getValidate=void 0;const e=Kw(),t=cl(),n=pn(),r=Sf(),i=CM(),o=qn(),s={keyword:"$ref",schemaType:"string",code(c){const{gen:u,schema:f,it:h}=c,{baseId:g,schemaEnv:y,validateName:b,opts:v,self:S}=h,{root:C}=y;if((f==="#"||f==="#/")&&g===C.baseId)return A();const w=i.resolveRef.call(S,C,g,f);if(w===void 0)throw new e.default(h.opts.uriResolver,g,f);if(w instanceof i.SchemaEnv)return E(w);return D(w);function A(){if(y===C)return l(c,b,y,y.$async);const O=u.scopeValue("root",{ref:C});return l(c,(0,n._)`${O}.validate`,C,C.$async)}function E(O){const T=a(c,O);l(c,T,O,O.$async)}function D(O){const T=u.scopeValue("schema",v.code.source===!0?{ref:O,code:(0,n.stringify)(O)}:{ref:O}),I=u.name("valid"),N=c.subschema({schema:O,dataTypes:[],schemaPath:n.nil,topSchemaRef:T,errSchemaPath:f},I);c.mergeEvaluated(N),c.ok(I)}}};function a(c,u){const{gen:f}=c;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,n._)`${f.scopeValue("wrapper",{ref:u})}.validate`}ld.getValidate=a;function l(c,u,f,h){const{gen:g,it:y}=c,{allErrors:b,schemaEnv:v,opts:S}=y,C=S.passContext?r.default.this:n.nil;h?w():A();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const O=g.let("valid");g.try(()=>{g.code((0,n._)`await ${(0,t.callValidateCode)(c,u,C)}`),D(u),b||g.assign(O,!0)},T=>{g.if((0,n._)`!(${T} instanceof ${y.ValidationError})`,()=>g.throw(T)),E(T),b||g.assign(O,!1)}),c.ok(O)}function A(){c.result((0,t.callValidateCode)(c,u,C),()=>D(u),()=>E(u))}function E(O){const T=(0,n._)`${O}.errors`;g.assign(r.default.vErrors,(0,n._)`${r.default.vErrors} === null ? ${T} : ${r.default.vErrors}.concat(${T})`),g.assign(r.default.errors,(0,n._)`${r.default.vErrors}.length`)}function D(O){var T;if(!y.opts.unevaluated)return;const I=(T=f?.validate)===null||T===void 0?void 0:T.evaluated;if(y.props!==!0)if(I&&!I.dynamicProps)I.props!==void 0&&(y.props=o.mergeEvaluated.props(g,I.props,y.props));else{const N=g.var("props",(0,n._)`${O}.evaluated.props`);y.props=o.mergeEvaluated.props(g,N,y.props,n.Name)}if(y.items!==!0)if(I&&!I.dynamicItems)I.items!==void 0&&(y.items=o.mergeEvaluated.items(g,I.items,y.items));else{const N=g.var("items",(0,n._)`${O}.evaluated.items`);y.items=o.mergeEvaluated.items(g,N,y.items,n.Name)}}}return ld.callRef=l,ld.default=s,ld}var qH;function nIe(){if(qH)return qx;qH=1,Object.defineProperty(qx,"__esModule",{value:!0});const e=eIe(),t=tIe(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return qx.default=n,qx}var Kx={},Yx={},GH;function rIe(){if(GH)return Yx;GH=1,Object.defineProperty(Yx,"__esModule",{value:!0});const e=pn(),t=e.operators,n={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},r={message:({keyword:o,schemaCode:s})=>(0,e.str)`must be ${n[o].okStr} ${s}`,params:({keyword:o,schemaCode:s})=>(0,e._)`{comparison: ${n[o].okStr}, limit: ${s}}`},i={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(o){const{keyword:s,data:a,schemaCode:l}=o;o.fail$data((0,e._)`${a} ${n[s].fail} ${l} || isNaN(${a})`)}};return Yx.default=i,Yx}var Xx={},KH;function iIe(){if(KH)return Xx;KH=1,Object.defineProperty(Xx,"__esModule",{value:!0});const e=pn(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:i,data:o,schemaCode:s,it:a}=r,l=a.opts.multipleOfPrecision,c=i.let("res"),u=l?(0,e._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${l}`:(0,e._)`${c} !== parseInt(${c})`;r.fail$data((0,e._)`(${s} === 0 || (${c} = ${o}/${s}, ${u}))`)}};return Xx.default=n,Xx}var Zx={},Jx={},YH;function oIe(){if(YH)return Jx;YH=1,Object.defineProperty(Jx,"__esModule",{value:!0});function e(t){const n=t.length;let r=0,i=0,o;for(;i<n;)r++,o=t.charCodeAt(i++),o>=55296&&o<=56319&&i<n&&(o=t.charCodeAt(i),(o&64512)===56320&&i++);return r}return Jx.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Jx}var XH;function sIe(){if(XH)return Zx;XH=1,Object.defineProperty(Zx,"__esModule",{value:!0});const e=pn(),t=qn(),n=oIe(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const a=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${a} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:a,schemaCode:l,it:c}=o,u=s==="maxLength"?e.operators.GT:e.operators.LT,f=c.opts.unicode===!1?(0,e._)`${a}.length`:(0,e._)`${(0,t.useFunc)(o.gen,n.default)}(${a})`;o.fail$data((0,e._)`${f} ${u} ${l}`)}};return Zx.default=i,Zx}var Qx={},ZH;function aIe(){if(ZH)return Qx;ZH=1,Object.defineProperty(Qx,"__esModule",{value:!0});const e=cl(),t=qn(),n=pn(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,n.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,n._)`{pattern: ${o}}`},code(o){const{gen:s,data:a,$data:l,schema:c,schemaCode:u,it:f}=o,h=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:g}=f.opts.code,y=g.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(s,g),b=s.let("valid");s.try(()=>s.assign(b,(0,n._)`${y}(${u}, ${h}).test(${a})`),()=>s.assign(b,!1)),o.fail$data((0,n._)`!${b}`)}else{const g=(0,e.usePattern)(o,c);o.fail$data((0,n._)`!${g}.test(${a})`)}}};return Qx.default=i,Qx}var e3={},JH;function lIe(){if(JH)return e3;JH=1,Object.defineProperty(e3,"__esModule",{value:!0});const e=pn(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const o=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:o,schemaCode:s}=r,a=i==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${o}).length ${a} ${s}`)}};return e3.default=n,e3}var t3={},QH;function cIe(){if(QH)return t3;QH=1,Object.defineProperty(t3,"__esModule",{value:!0});const e=cl(),t=pn(),n=qn(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:o}})=>(0,t.str)`must have required property '${o}'`,params:({params:{missingProperty:o}})=>(0,t._)`{missingProperty: ${o}}`},code(o){const{gen:s,schema:a,schemaCode:l,data:c,$data:u,it:f}=o,{opts:h}=f;if(!u&&a.length===0)return;const g=a.length>=h.loopRequired;if(f.allErrors?y():b(),h.strictRequired){const C=o.parentSchema.properties,{definedProperties:w}=o.it;for(const A of a)if(C?.[A]===void 0&&!w.has(A)){const E=f.schemaEnv.baseId+f.errSchemaPath,D=`required property "${A}" is not defined at "${E}" (strictRequired)`;(0,n.checkStrictMode)(f,D,f.opts.strictRequired)}}function y(){if(g||u)o.block$data(t.nil,v);else for(const C of a)(0,e.checkReportMissingProp)(o,C)}function b(){const C=s.let("missing");if(g||u){const w=s.let("valid",!0);o.block$data(w,()=>S(C,w)),o.ok(w)}else s.if((0,e.checkMissingProp)(o,a,C)),(0,e.reportMissingProp)(o,C),s.else()}function v(){s.forOf("prop",l,C=>{o.setParams({missingProperty:C}),s.if((0,e.noPropertyInData)(s,c,C,h.ownProperties),()=>o.error())})}function S(C,w){o.setParams({missingProperty:C}),s.forOf(C,l,()=>{s.assign(w,(0,e.propertyInData)(s,c,C,h.ownProperties)),s.if((0,t.not)(w),()=>{o.error(),s.break()})},t.nil)}}};return t3.default=i,t3}var n3={},eU;function uIe(){if(eU)return n3;eU=1,Object.defineProperty(n3,"__esModule",{value:!0});const e=pn(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const o=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:o,schemaCode:s}=r,a=i==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${o}.length ${a} ${s}`)}};return n3.default=n,n3}var r3={},i3={},tU;function EM(){if(tU)return i3;tU=1,Object.defineProperty(i3,"__esModule",{value:!0});const e=SM();return e.code='require("ajv/dist/runtime/equal").default',i3.default=e,i3}var nU;function dIe(){if(nU)return r3;nU=1,Object.defineProperty(r3,"__esModule",{value:!0});const e=c6(),t=pn(),n=qn(),r=EM(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:a}})=>(0,t.str)`must NOT have duplicate items (items ## ${a} and ${s} are identical)`,params:({params:{i:s,j:a}})=>(0,t._)`{i: ${s}, j: ${a}}`},code(s){const{gen:a,data:l,$data:c,schema:u,parentSchema:f,schemaCode:h,it:g}=s;if(!c&&!u)return;const y=a.let("valid"),b=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(y,v,(0,t._)`${h} === false`),s.ok(y);function v(){const A=a.let("i",(0,t._)`${l}.length`),E=a.let("j");s.setParams({i:A,j:E}),a.assign(y,!0),a.if((0,t._)`${A} > 1`,()=>(S()?C:w)(A,E))}function S(){return b.length>0&&!b.some(A=>A==="object"||A==="array")}function C(A,E){const D=a.name("item"),O=(0,e.checkDataTypes)(b,D,g.opts.strictNumbers,e.DataType.Wrong),T=a.const("indices",(0,t._)`{}`);a.for((0,t._)`;${A}--;`,()=>{a.let(D,(0,t._)`${l}[${A}]`),a.if(O,(0,t._)`continue`),b.length>1&&a.if((0,t._)`typeof ${D} == "string"`,(0,t._)`${D} += "_"`),a.if((0,t._)`typeof ${T}[${D}] == "number"`,()=>{a.assign(E,(0,t._)`${T}[${D}]`),s.error(),a.assign(y,!1).break()}).code((0,t._)`${T}[${D}] = ${A}`)})}function w(A,E){const D=(0,n.useFunc)(a,r.default),O=a.name("outer");a.label(O).for((0,t._)`;${A}--;`,()=>a.for((0,t._)`${E} = ${A}; ${E}--;`,()=>a.if((0,t._)`${D}(${l}[${A}], ${l}[${E}])`,()=>{s.error(),a.assign(y,!1).break(O)})))}}};return r3.default=o,r3}var o3={},rU;function fIe(){if(rU)return o3;rU=1,Object.defineProperty(o3,"__esModule",{value:!0});const e=pn(),t=qn(),n=EM(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:a,$data:l,schemaCode:c,schema:u}=o;l||u&&typeof u=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,n.default)}(${a}, ${c})`):o.fail((0,e._)`${u} !== ${a}`)}};return o3.default=i,o3}var s3={},iU;function hIe(){if(iU)return s3;iU=1,Object.defineProperty(s3,"__esModule",{value:!0});const e=pn(),t=qn(),n=EM(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:a,$data:l,schema:c,schemaCode:u,it:f}=o;if(!l&&c.length===0)throw new Error("enum must have non-empty array");const h=c.length>=f.opts.loopEnum;let g;const y=()=>g??(g=(0,t.useFunc)(s,n.default));let b;if(h||l)b=s.let("valid"),o.block$data(b,v);else{if(!Array.isArray(c))throw new Error("ajv implementation error");const C=s.const("vSchema",u);b=(0,e.or)(...c.map((w,A)=>S(C,A)))}o.pass(b);function v(){s.assign(b,!1),s.forOf("v",u,C=>s.if((0,e._)`${y()}(${a}, ${C})`,()=>s.assign(b,!0).break()))}function S(C,w){const A=c[w];return typeof A=="object"&&A!==null?(0,e._)`${y()}(${a}, ${C}[${w}])`:(0,e._)`${a} === ${A}`}}};return s3.default=i,s3}var oU;function pIe(){if(oU)return Kx;oU=1,Object.defineProperty(Kx,"__esModule",{value:!0});const e=rIe(),t=iIe(),n=sIe(),r=aIe(),i=lIe(),o=cIe(),s=uIe(),a=dIe(),l=fIe(),c=hIe(),u=[e.default,t.default,n.default,r.default,i.default,o.default,s.default,a.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,c.default];return Kx.default=u,Kx}var a3={},Jp={},sU;function Aee(){if(sU)return Jp;sU=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.validateAdditionalItems=void 0;const e=pn(),t=qn(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:a}=o,{items:l}=s;if(!Array.isArray(l)){(0,t.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(o,l)}};function i(o,s){const{gen:a,schema:l,data:c,keyword:u,it:f}=o;f.items=!0;const h=a.const("len",(0,e._)`${c}.length`);if(l===!1)o.setParams({len:s.length}),o.pass((0,e._)`${h} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const y=a.var("valid",(0,e._)`${h} <= ${s.length}`);a.if((0,e.not)(y),()=>g(y)),o.ok(y)}function g(y){a.forRange("i",s.length,h,b=>{o.subschema({keyword:u,dataProp:b,dataPropType:t.Type.Num},y),f.allErrors||a.if((0,e.not)(y),()=>a.break())})}}return Jp.validateAdditionalItems=i,Jp.default=r,Jp}var l3={},Qp={},aU;function kee(){if(aU)return Qp;aU=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.validateTuple=void 0;const e=pn(),t=qn(),n=cl(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:a}=o;if(Array.isArray(s))return i(o,"additionalItems",s);a.items=!0,!(0,t.alwaysValidSchema)(a,s)&&o.ok((0,n.validateArray)(o))}};function i(o,s,a=o.schema){const{gen:l,parentSchema:c,data:u,keyword:f,it:h}=o;b(c),h.opts.unevaluated&&a.length&&h.items!==!0&&(h.items=t.mergeEvaluated.items(l,a.length,h.items));const g=l.name("valid"),y=l.const("len",(0,e._)`${u}.length`);a.forEach((v,S)=>{(0,t.alwaysValidSchema)(h,v)||(l.if((0,e._)`${y} > ${S}`,()=>o.subschema({keyword:f,schemaProp:S,dataProp:S},g)),o.ok(g))});function b(v){const{opts:S,errSchemaPath:C}=h,w=a.length,A=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(S.strictTuples&&!A){const E=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${C}"`;(0,t.checkStrictMode)(h,E,S.strictTuples)}}}return Qp.validateTuple=i,Qp.default=r,Qp}var lU;function mIe(){if(lU)return l3;lU=1,Object.defineProperty(l3,"__esModule",{value:!0});const e=kee(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return l3.default=t,l3}var c3={},cU;function gIe(){if(cU)return c3;cU=1,Object.defineProperty(c3,"__esModule",{value:!0});const e=pn(),t=qn(),n=cl(),r=Aee(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:a,parentSchema:l,it:c}=s,{prefixItems:u}=l;c.items=!0,!(0,t.alwaysValidSchema)(c,a)&&(u?(0,r.validateAdditionalItems)(s,u):s.ok((0,n.validateArray)(s)))}};return c3.default=o,c3}var u3={},uU;function yIe(){if(uU)return u3;uU=1,Object.defineProperty(u3,"__esModule",{value:!0});const e=pn(),t=qn(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:o}})=>o===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${o} valid item(s)`,params:({params:{min:i,max:o}})=>o===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${o}}`},code(i){const{gen:o,schema:s,parentSchema:a,data:l,it:c}=i;let u,f;const{minContains:h,maxContains:g}=a;c.opts.next?(u=h===void 0?1:h,f=g):u=1;const y=o.const("len",(0,e._)`${l}.length`);if(i.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(c,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(c,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(c,s)){let w=(0,e._)`${y} >= ${u}`;f!==void 0&&(w=(0,e._)`${w} && ${y} <= ${f}`),i.pass(w);return}c.items=!0;const b=o.name("valid");f===void 0&&u===1?S(b,()=>o.if(b,()=>o.break())):u===0?(o.let(b,!0),f!==void 0&&o.if((0,e._)`${l}.length > 0`,v)):(o.let(b,!1),v()),i.result(b,()=>i.reset());function v(){const w=o.name("_valid"),A=o.let("count",0);S(w,()=>o.if(w,()=>C(A)))}function S(w,A){o.forRange("i",0,y,E=>{i.subschema({keyword:"contains",dataProp:E,dataPropType:t.Type.Num,compositeRule:!0},w),A()})}function C(w){o.code((0,e._)`${w}++`),f===void 0?o.if((0,e._)`${w} >= ${u}`,()=>o.assign(b,!0).break()):(o.if((0,e._)`${w} > ${f}`,()=>o.assign(b,!1).break()),u===1?o.assign(b,!0):o.if((0,e._)`${w} >= ${u}`,()=>o.assign(b,!0)))}}};return u3.default=r,u3}var kE={},dU;function bIe(){return dU||(dU=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=pn(),n=qn(),r=cl();e.error={message:({params:{property:l,depsCount:c,deps:u}})=>{const f=c===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:u,missingProperty:f}})=>(0,t._)`{property: ${l},
252
252
  missingProperty: ${f},
253
253
  depsCount: ${c},
254
- deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=o(l);s(l,c),a(l,u)}};function o({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const h=Array.isArray(l[f])?c:u;h[f]=l[f]}return[c,u]}function s(l,c=l.schema){const{gen:u,data:f,it:h}=l;if(Object.keys(c).length===0)return;const g=u.let("missing");for(const y in c){const b=c[y];if(b.length===0)continue;const v=(0,r.propertyInData)(u,f,y,h.opts.ownProperties);l.setParams({property:y,depsCount:b.length,deps:b.join(", ")}),h.allErrors?u.if(v,()=>{for(const S of b)(0,r.checkReportMissingProp)(l,S)}):(u.if((0,t._)`${v} && (${(0,r.checkMissingProp)(l,b,g)})`),(0,r.reportMissingProp)(l,g),u.else())}}e.validatePropertyDeps=s;function a(l,c=l.schema){const{gen:u,data:f,keyword:h,it:g}=l,y=u.name("valid");for(const b in c)(0,n.alwaysValidSchema)(g,c[b])||(u.if((0,r.propertyInData)(u,f,b,g.opts.ownProperties),()=>{const v=l.subschema({keyword:h,schemaProp:b},y);l.mergeValidEvaluated(v,y)},()=>u.var(y,!0)),l.ok(y))}e.validateSchemaDeps=a,e.default=i})(kE)),kE}var d3={},fU;function vIe(){if(fU)return d3;fU=1,Object.defineProperty(d3,"__esModule",{value:!0});const e=pn(),t=qn(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:s,data:a,it:l}=i;if((0,t.alwaysValidSchema)(l,s))return;const c=o.name("valid");o.forIn("key",a,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),o.if((0,e.not)(c),()=>{i.error(!0),l.allErrors||o.break()})}),i.ok(c)}};return d3.default=r,d3}var f3={},hU;function _ee(){if(hU)return f3;hU=1,Object.defineProperty(f3,"__esModule",{value:!0});const e=cl(),t=pn(),n=Sf(),r=qn(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:a,schema:l,parentSchema:c,data:u,errsCount:f,it:h}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:g,opts:y}=h;if(h.props=!0,y.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(h,l))return;const b=(0,e.allSchemaProperties)(c.properties),v=(0,e.allSchemaProperties)(c.patternProperties);S(),s.ok((0,t._)`${f} === ${n.default.errors}`);function S(){a.forIn("key",u,D=>{!b.length&&!v.length?A(D):a.if(C(D),()=>A(D))})}function C(D){let O;if(b.length>8){const T=(0,r.schemaRefOrVal)(h,c.properties,"properties");O=(0,e.isOwnProperty)(a,T,D)}else b.length?O=(0,t.or)(...b.map(T=>(0,t._)`${D} === ${T}`)):O=t.nil;return v.length&&(O=(0,t.or)(O,...v.map(T=>(0,t._)`${(0,e.usePattern)(s,T)}.test(${D})`))),(0,t.not)(O)}function w(D){a.code((0,t._)`delete ${u}[${D}]`)}function A(D){if(y.removeAdditional==="all"||y.removeAdditional&&l===!1){w(D);return}if(l===!1){s.setParams({additionalProperty:D}),s.error(),g||a.break();return}if(typeof l=="object"&&!(0,r.alwaysValidSchema)(h,l)){const O=a.name("valid");y.removeAdditional==="failing"?(E(D,O,!1),a.if((0,t.not)(O),()=>{s.reset(),w(D)})):(E(D,O),g||a.if((0,t.not)(O),()=>a.break()))}}function E(D,O,T){const I={keyword:"additionalProperties",dataProp:D,dataPropType:r.Type.Str};T===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(I,O)}}};return f3.default=o,f3}var h3={},pU;function xIe(){if(pU)return h3;pU=1,Object.defineProperty(h3,"__esModule",{value:!0});const e=Gw(),t=cl(),n=qn(),r=_ee(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,parentSchema:l,data:c,it:u}=o;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(u,r.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(a);for(const v of f)u.definedProperties.add(v);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=n.mergeEvaluated.props(s,(0,n.toHash)(f),u.props));const h=f.filter(v=>!(0,n.alwaysValidSchema)(u,a[v]));if(h.length===0)return;const g=s.name("valid");for(const v of h)y(v)?b(v):(s.if((0,t.propertyInData)(s,c,v,u.opts.ownProperties)),b(v),u.allErrors||s.else().var(g,!0),s.endIf()),o.it.definedProperties.add(v),o.ok(g);function y(v){return u.opts.useDefaults&&!u.compositeRule&&a[v].default!==void 0}function b(v){o.subschema({keyword:"properties",schemaProp:v,dataProp:v},g)}}};return h3.default=i,h3}var p3={},mU;function SIe(){if(mU)return p3;mU=1,Object.defineProperty(p3,"__esModule",{value:!0});const e=cl(),t=pn(),n=qn(),r=qn(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,data:l,parentSchema:c,it:u}=o,{opts:f}=u,h=(0,e.allSchemaProperties)(a),g=h.filter(A=>(0,n.alwaysValidSchema)(u,a[A]));if(h.length===0||g.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const y=f.strictSchema&&!f.allowMatchingProperties&&c.properties,b=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,r.evaluatedPropsToName)(s,u.props));const{props:v}=u;S();function S(){for(const A of h)y&&C(A),u.allErrors?w(A):(s.var(b,!0),w(A),s.if(b))}function C(A){for(const E in y)new RegExp(A).test(E)&&(0,n.checkStrictMode)(u,`property ${E} matches pattern ${A} (use allowMatchingProperties)`)}function w(A){s.forIn("key",l,E=>{s.if((0,t._)`${(0,e.usePattern)(o,A)}.test(${E})`,()=>{const D=g.includes(A);D||o.subschema({keyword:"patternProperties",schemaProp:A,dataProp:E,dataPropType:r.Type.Str},b),u.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${E}]`,!0):!D&&!u.allErrors&&s.if((0,t.not)(b),()=>s.break())})})}}};return p3.default=i,p3}var m3={},gU;function wIe(){if(gU)return m3;gU=1,Object.defineProperty(m3,"__esModule",{value:!0});const e=qn(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:i,it:o}=n;if((0,e.alwaysValidSchema)(o,i)){n.fail();return}const s=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),n.failResult(s,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return m3.default=t,m3}var g3={},yU;function CIe(){if(yU)return g3;yU=1,Object.defineProperty(g3,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:cl().validateUnion,error:{message:"must match a schema in anyOf"}};return g3.default=t,g3}var y3={},bU;function EIe(){if(bU)return y3;bU=1,Object.defineProperty(y3,"__esModule",{value:!0});const e=pn(),t=qn(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:s,parentSchema:a,it:l}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&a.discriminator)return;const c=s,u=o.let("valid",!1),f=o.let("passing",null),h=o.name("_valid");i.setParams({passing:f}),o.block(g),i.result(u,()=>i.reset(),()=>i.error(!0));function g(){c.forEach((y,b)=>{let v;(0,t.alwaysValidSchema)(l,y)?o.var(h,!0):v=i.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},h),b>0&&o.if((0,e._)`${h} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${b}]`).else(),o.if(h,()=>{o.assign(u,!0),o.assign(f,b),v&&i.mergeEvaluated(v,e.Name)})})}}};return y3.default=r,y3}var b3={},vU;function AIe(){if(vU)return b3;vU=1,Object.defineProperty(b3,"__esModule",{value:!0});const e=qn(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:i,it:o}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=r.name("valid");i.forEach((a,l)=>{if((0,e.alwaysValidSchema)(o,a))return;const c=n.subschema({keyword:"allOf",schemaProp:l},s);n.ok(s),n.mergeEvaluated(c)})}};return b3.default=t,b3}var v3={},xU;function kIe(){if(xU)return v3;xU=1,Object.defineProperty(v3,"__esModule",{value:!0});const e=pn(),t=qn(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:a,it:l}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const c=i(l,"then"),u=i(l,"else");if(!c&&!u)return;const f=s.let("valid",!0),h=s.name("_valid");if(g(),o.reset(),c&&u){const b=s.let("ifClause");o.setParams({ifClause:b}),s.if(h,y("then",b),y("else",b))}else c?s.if(h,y("then")):s.if((0,e.not)(h),y("else"));o.pass(f,()=>o.error(!0));function g(){const b=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);o.mergeEvaluated(b)}function y(b,v){return()=>{const S=o.subschema({keyword:b},h);s.assign(f,h),o.mergeValidEvaluated(S,f),v?s.assign(v,(0,e._)`${b}`):o.setParams({ifClause:b})}}}};function i(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return v3.default=r,v3}var x3={},SU;function _Ie(){if(SU)return x3;SU=1,Object.defineProperty(x3,"__esModule",{value:!0});const e=qn(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:i}){r.if===void 0&&(0,e.checkStrictMode)(i,`"${n}" without "if" is ignored`)}};return x3.default=t,x3}var wU;function DIe(){if(wU)return a3;wU=1,Object.defineProperty(a3,"__esModule",{value:!0});const e=Aee(),t=mIe(),n=kee(),r=gIe(),i=yIe(),o=bIe(),s=vIe(),a=_ee(),l=xIe(),c=SIe(),u=wIe(),f=CIe(),h=EIe(),g=AIe(),y=kIe(),b=_Ie();function v(S=!1){const C=[u.default,f.default,h.default,g.default,y.default,b.default,s.default,a.default,o.default,l.default,c.default];return S?C.push(t.default,r.default):C.push(e.default,n.default),C.push(i.default),C}return a3.default=v,a3}var S3={},w3={},CU;function OIe(){if(CU)return w3;CU=1,Object.defineProperty(w3,"__esModule",{value:!0});const e=pn(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,i){const{gen:o,data:s,$data:a,schema:l,schemaCode:c,it:u}=r,{opts:f,errSchemaPath:h,schemaEnv:g,self:y}=u;if(!f.validateFormats)return;a?b():v();function b(){const S=o.scopeValue("formats",{ref:y.formats,code:f.code.formats}),C=o.const("fDef",(0,e._)`${S}[${c}]`),w=o.let("fType"),A=o.let("format");o.if((0,e._)`typeof ${C} == "object" && !(${C} instanceof RegExp)`,()=>o.assign(w,(0,e._)`${C}.type || "string"`).assign(A,(0,e._)`${C}.validate`),()=>o.assign(w,(0,e._)`"string"`).assign(A,C)),r.fail$data((0,e.or)(E(),D()));function E(){return f.strictSchema===!1?e.nil:(0,e._)`${c} && !${A}`}function D(){const O=g.$async?(0,e._)`(${C}.async ? await ${A}(${s}) : ${A}(${s}))`:(0,e._)`${A}(${s})`,T=(0,e._)`(typeof ${A} == "function" ? ${O} : ${A}.test(${s}))`;return(0,e._)`${A} && ${A} !== true && ${w} === ${i} && !${T}`}}function v(){const S=y.formats[l];if(!S){E();return}if(S===!0)return;const[C,w,A]=D(S);C===i&&r.pass(O());function E(){if(f.strictSchema===!1){y.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${l}" ignored in schema at path "${h}"`}}function D(T){const I=T instanceof RegExp?(0,e.regexpCode)(T):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,N=o.scopeValue("formats",{key:l,ref:T,code:I});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,e._)`${N}.validate`]:["string",T,N]}function O(){if(typeof S=="object"&&!(S instanceof RegExp)&&S.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${A}(${s})`}return typeof w=="function"?(0,e._)`${A}(${s})`:(0,e._)`${A}.test(${s})`}}}};return w3.default=n,w3}var EU;function TIe(){if(EU)return S3;EU=1,Object.defineProperty(S3,"__esModule",{value:!0});const t=[OIe().default];return S3.default=t,S3}var Yf={},AU;function MIe(){return AU||(AU=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.contentVocabulary=Yf.metadataVocabulary=void 0,Yf.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Yf.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Yf}var kU;function RIe(){if(kU)return Wx;kU=1,Object.defineProperty(Wx,"__esModule",{value:!0});const e=nIe(),t=pIe(),n=DIe(),r=TIe(),i=MIe(),o=[e.default,t.default,(0,n.default)(),r.default,i.metadataVocabulary,i.contentVocabulary];return Wx.default=o,Wx}var C3={},w1={},_U;function IIe(){if(_U)return w1;_U=1,Object.defineProperty(w1,"__esModule",{value:!0}),w1.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(w1.DiscrError=e={})),w1}var DU;function PIe(){if(DU)return C3;DU=1,Object.defineProperty(C3,"__esModule",{value:!0});const e=pn(),t=IIe(),n=CM(),r=Kw(),i=qn(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:l}})=>a===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:a,tag:l,tagName:c}})=>(0,e._)`{error: ${a}, tag: ${c}, tagValue: ${l}}`},code(a){const{gen:l,data:c,schema:u,parentSchema:f,it:h}=a,{oneOf:g}=f;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=u.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!g)throw new Error("discriminator: requires oneOf keyword");const b=l.let("valid",!1),v=l.const("tag",(0,e._)`${c}${(0,e.getProperty)(y)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>S(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:y})),a.ok(b);function S(){const A=w();l.if(!1);for(const E in A)l.elseIf((0,e._)`${v} === ${E}`),l.assign(b,C(A[E]));l.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:y}),l.endIf()}function C(A){const E=l.name("valid"),D=a.subschema({keyword:"oneOf",schemaProp:A},E);return a.mergeEvaluated(D,e.Name),E}function w(){var A;const E={},D=T(f);let O=!0;for(let $=0;$<g.length;$++){let R=g[$];if(R?.$ref&&!(0,i.schemaHasRulesButRef)(R,h.self.RULES)){const j=R.$ref;if(R=n.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,j),R instanceof n.SchemaEnv&&(R=R.schema),R===void 0)throw new r.default(h.opts.uriResolver,h.baseId,j)}const F=(A=R?.properties)===null||A===void 0?void 0:A[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);O=O&&(D||T(R)),I(F,$)}if(!O)throw new Error(`discriminator: "${y}" must be required`);return E;function T({required:$}){return Array.isArray($)&&$.includes(y)}function I($,R){if($.const)N($.const,R);else if($.enum)for(const F of $.enum)N(F,R);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function N($,R){if(typeof $!="string"||$ in E)throw new Error(`discriminator: "${y}" values must be unique strings`);E[$]=R}}}};return C3.default=s,C3}const jIe="http://json-schema.org/draft-07/schema#",$Ie="http://json-schema.org/draft-07/schema#",LIe="Core schema meta-schema",NIe={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},FIe=["object","boolean"],BIe={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},zIe={$schema:jIe,$id:$Ie,title:LIe,definitions:NIe,type:FIe,properties:BIe,default:!0};var OU;function Dee(){return OU||(OU=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=QRe(),r=RIe(),i=PIe(),o=zIe,s=["/properties"],a="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(y,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Gw();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=pn();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=wM();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=Kw();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Bx,Bx.exports)),Bx.exports}var HIe=Dee();const Oee=us(HIe);var E3={exports:{}},_E={},TU;function UIe(){return TU||(TU=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,N){return{validate:I,compare:N}}e.fullFormats={date:t(o,s),time:t(l,c),"date-time":t(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:b,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:T,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:S,int32:{type:"number",validate:A},int64:{type:"number",validate:E},float:{type:"number",validate:D},double:{type:"number",validate:D},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(I){const N=r.exec(I);if(!N)return!1;const $=+N[1],R=+N[2],F=+N[3];return R>=1&&R<=12&&F>=1&&F<=(R===2&&n($)?29:i[R])}function s(I,N){if(I&&N)return I>N?1:I<N?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(I,N){const $=a.exec(I);if(!$)return!1;const R=+$[1],F=+$[2],j=+$[3],z=$[5];return(R<=23&&F<=59&&j<=59||R===23&&F===59&&j===60)&&(!N||z!=="")}function c(I,N){if(!(I&&N))return;const $=a.exec(I),R=a.exec(N);if($&&R)return I=$[1]+$[2]+$[3]+($[4]||""),N=R[1]+R[2]+R[3]+(R[4]||""),I>N?1:I<N?-1:0}const u=/t|\s/i;function f(I){const N=I.split(u);return N.length===2&&o(N[0])&&l(N[1],!0)}function h(I,N){if(!(I&&N))return;const[$,R]=I.split(u),[F,j]=N.split(u),z=s($,F);if(z!==void 0)return z||c(R,j)}const g=/\/|:/,y=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function b(I){return g.test(I)&&y.test(I)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function S(I){return v.lastIndex=0,v.test(I)}const C=-2147483648,w=2**31-1;function A(I){return Number.isInteger(I)&&I<=w&&I>=C}function E(I){return Number.isInteger(I)}function D(){return!0}const O=/[^\\]\\Z/;function T(I){if(O.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(_E)),_E}var DE={},MU;function VIe(){return MU||(MU=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Dee(),n=pn(),r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},o={message:({keyword:a,schemaCode:l})=>n.str`should be ${i[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>n._`{comparison: ${i[a].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(a){const{gen:l,data:c,schemaCode:u,keyword:f,it:h}=a,{opts:g,self:y}=h;if(!g.validateFormats)return;const b=new t.KeywordCxt(h,y.RULES.all.format.definition,"format");b.$data?v():S();function v(){const w=l.scopeValue("formats",{ref:y.formats,code:g.code.formats}),A=l.const("fmt",n._`${w}[${b.schemaCode}]`);a.fail$data(n.or(n._`typeof ${A} != "object"`,n._`${A} instanceof RegExp`,n._`typeof ${A}.compare != "function"`,C(A)))}function S(){const w=b.schema,A=y.formats[w];if(!A||A===!0)return;if(typeof A!="object"||A instanceof RegExp||typeof A.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const E=l.scopeValue("formats",{key:w,ref:A,code:g.code.formats?n._`${g.code.formats}${n.getProperty(w)}`:void 0});a.fail$data(C(E))}function C(w){return n._`${w}.compare(${c}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const s=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=s})(DE)),DE}var RU;function WIe(){return RU||(RU=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=UIe(),r=VIe(),i=pn(),o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),a=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,o),c;const[f,h]=u.mode==="fast"?[n.fastFormats,s]:[n.fullFormats,o],g=u.formats||n.formatNames;return l(c,g,f,h),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!h)throw new Error(`Unknown format "${c}"`);return h};function l(c,u,f,h){var g,y;(g=(y=c.opts.code).formats)!==null&&g!==void 0||(y.formats=i._`require("ajv-formats/dist/formats").${h}`);for(const b of u)c.addFormat(b,f[b])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(E3,E3.exports)),E3.exports}var qIe=WIe();const IU=us(qIe),GIe={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},KIe=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,YIe=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function XIe(e,t,n={},r,i=Oee,o){let s=new i({...GIe,...n});return r?IU(s,r):r!==!1&&IU(s),s.addFormat("data-url",YIe),s.addFormat("color",KIe),s.addKeyword(fu),s.addKeyword(jT),Array.isArray(e)&&s.addMetaSchema(e),Bn(t)&&Object.keys(t).forEach(a=>{s.addFormat(a,t[a])}),o&&(s=o(s)),s}function ZIe(e=[],t){return e.map(r=>{var i;const{instancePath:o,keyword:s,params:a,schemaPath:l,parentSchema:c,...u}=r;let{message:f=""}=u,h=o.replace(/\//g,"."),g=`${h} ${f}`.trim(),y="";const b=[...((i=a.deps)===null||i===void 0?void 0:i.split(", "))||[],a.missingProperty,a.property].filter(v=>v);if(b.length>0)b.forEach(v=>{const S=h?`${h}.${v}`:v;let C=$t(We(t,`${S.replace(/^\./,"")}`)).title;if(C===void 0){const w=l.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([v]);C=$t(We(t,w)).title}if(C)f=f.replace(`'${v}'`,`'${C}'`),y=C;else{const w=We(c,[Un,v,"title"]);w&&(f=f.replace(`'${v}'`,`'${w}'`),y=w)}}),g=f;else{const v=$t(We(t,`${h.replace(/^\./,"")}`)).title;if(v)g=`'${v}' ${f}`.trim(),y=v;else{const S=c?.title;S&&(g=`'${S}' ${f}`.trim(),y=S)}}return"missingProperty"in a&&(h=h?`${h}.${a.missingProperty}`:a.missingProperty),{name:s,property:h,message:f,params:a,stack:g,schemaPath:l,title:y}}).reduce((r,i)=>{const{message:o,schemaPath:s}=i,a=s?.indexOf(`/${Pn}/`),l=s?.indexOf(`/${nn}/`);let c;return a&&a>=0?c=s?.substring(0,a):l&&l>=0&&(c=s?.substring(0,l)),c&&r.find(f=>{var h;return f.message===o&&((h=f.schemaPath)===null||h===void 0?void 0:h.startsWith(c))})||r.push(i),r},[])}function JIe(e,t,n,r,i,o,s){const{validationError:a}=t;let l=ZIe(t.errors,s);a&&(l=[...l,{stack:a.message}]),typeof o=="function"&&(l=o(l,s));let c=AOe(l);if(a&&(c={...c,$schema:{__errors:[a.message]}}),typeof i!="function")return{errors:l,errorSchema:c};const u=FQ(e,r,n,r,!0),f=i(u,Qk(u),s,c),h=ree(f);return Z5({errors:l,errorSchema:c},h)}class QIe{constructor(t,n){const{additionalMetaSchemas:r,customFormats:i,ajvOptionsOverrides:o,ajvFormatOptions:s,AjvClass:a,extenderFn:l}=t;this.ajv=XIe(r,i,o,s,a,l),this.localizer=n}reset(){this.ajv.removeSchema()}rawValidation(t,n){var r,i;let o,s;try{t[pr]&&(s=this.ajv.getSchema(t[pr])),s===void 0&&(s=this.ajv.compile(t)),s(n)}catch(l){o=l}let a;return s&&(typeof this.localizer=="function"&&(((r=s.errors)!==null&&r!==void 0?r:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var f;!((f=l.params)===null||f===void 0)&&f[u]&&(l.params[u]=`'${l.params[u]}'`)}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(s.errors),((i=s.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var f;!((f=l.params)===null||f===void 0)&&f[u]&&(l.params[u]=l.params[u].slice(1,-1))}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),a=s.errors||void 0,s.errors=null),{errors:a,validationError:o}}validateFormData(t,n,r,i,o){const s=this.rawValidation(n,t);return JIe(this,s,t,n,r,i,o)}handleSchemaUpdate(t){var n,r;const i=(n=t[pr])!==null&&n!==void 0?n:MJ;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):_r(t,(r=this.ajv.getSchema(i))===null||r===void 0?void 0:r.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i))}isValid(t,n,r){var i;try{this.handleSchemaUpdate(r);const o=pM(t),s=(i=o[pr])!==null&&i!==void 0?i:yOe(o);let a;return a=this.ajv.getSchema(s),a===void 0&&(a=this.ajv.addSchema(o,s).getSchema(s)||this.ajv.compile(o)),a(n)}catch(o){return console.warn("Error encountered compiling schema:",o),!1}}}function ePe(e={},t){return new QIe(e,t)}const tPe=ePe();function nPe({uiSchema:e,registry:t,...n}){const{translateString:r}=t;return m.jsx(_n,{title:r(un.AddItemButton),...n,color:"primary",children:m.jsx(fc,{})})}function rPe(e){const{children:t,buttonsProps:n,hasDescription:r,hasToolbar:i,uiSchema:o,registry:s}=e,a=$t(o),l=Bt("ArrayFieldItemButtonsTemplate",s,a),c={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return m.jsxs(dt,{container:!0,alignItems:"center",children:[m.jsx(dt,{size:{xs:8,sm:9,md:10,lg:11,xl:11.25},style:{overflow:"auto"},children:m.jsx(ce,{mb:2,children:m.jsx(Ur,{elevation:2,children:m.jsx(ce,{p:2,children:t})})})}),i&&m.jsx(dt,{sx:{mt:r?-5:-1.5},children:m.jsx(l,{...n,style:c})})]})}function iPe(e){const{canAdd:t,disabled:n,fieldPathId:r,uiSchema:i,items:o,optionalDataControl:s,onAddClick:a,readonly:l,registry:c,required:u,schema:f,title:h}=e,g=$t(i),y=Bt("ArrayFieldDescriptionTemplate",c,g),b=Bt("ArrayFieldTitleTemplate",c,g),v=!l&&!n,{ButtonTemplates:{AddButton:S}}=c.templates;return m.jsx(Ur,{elevation:2,children:m.jsxs(ce,{p:2,children:[m.jsx(b,{fieldPathId:r,title:g.title||h,schema:f,uiSchema:i,required:u,registry:c,optionalDataControl:v?s:void 0}),m.jsx(y,{fieldPathId:r,description:g.description||f.description,schema:f,uiSchema:i,registry:c}),v?void 0:s,o,t&&m.jsx(dt,{container:!0,justifyContent:"flex-end",children:m.jsx(dt,{children:m.jsx(ce,{mt:2,children:m.jsx(S,{id:Kl(r,"add"),className:"rjsf-array-item-add",onClick:a,disabled:n||l,uiSchema:i,registry:c})})})})]})})}function oPe(e){return Qe("MuiInputAdornment",e)}const PU=tt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var jU;const sPe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},aPe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:s}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${ye(i)}`,s,r&&"hiddenLabel",o&&`size${ye(o)}`]};return et(a,oPe,t)},lPe=me("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:sPe})(Ge(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${PU.positionStart}&:not(.${PU.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),AM=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...f}=r,h=ll()||{};let g=u;u&&h.variant,h&&!g&&(g=h.variant);const y={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g},b=aPe(y);return m.jsx(fw.Provider,{value:null,children:m.jsx(lPe,{as:s,ownerState:y,className:Te(b.root,o),ref:n,...f,children:typeof i=="string"&&!l?m.jsx(ie,{color:"textSecondary",children:i}):m.jsxs(_.Fragment,{children:[c==="start"?jU||(jU=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})}),cPe=["date","datetime-local","file","time"];function uPe(e){const{id:t,name:n,htmlName:r,placeholder:i,required:o,readonly:s,disabled:a,type:l,label:c,hideLabel:u,hideError:f,value:h,onChange:g,onChangeOverride:y,onBlur:b,onFocus:v,autofocus:S,options:C,schema:w,uiSchema:A,rawErrors:E=[],errorSchema:D,registry:O,InputLabelProps:T,InputProps:I,slotProps:N,...$}=e,{ClearButton:R}=O.templates.ButtonTemplates,{step:F,min:j,max:z,accept:L,...q}=JQ(w,l,C),V={...N?.htmlInput,step:F,min:j,max:z,accept:L,...w.examples?{list:Bw(t)}:void 0},U=({target:{value:Y}})=>g(Y===""?C.emptyValue:Y),K=({target:Y})=>b(t,Y&&Y.value),B=({target:Y})=>v(t,Y&&Y.value),W=cPe.includes(l)?{...N?.inputLabel,...T,shrink:!0}:{...N?.inputLabel,...T},X=_.useCallback(Y=>{var J;Y.preventDefault(),Y.stopPropagation(),g((J=C.emptyValue)!==null&&J!==void 0?J:"")},[g,C.emptyValue]),H={...I,...N?.input};if(C.allowClearTextInputs&&h&&!s&&!a){const Y=m.jsx(AM,{position:"end",children:m.jsx(R,{registry:O,onClick:X})});H.endAdornment=H.endAdornment?m.jsxs(m.Fragment,{children:[H.endAdornment,Y]}):Y}return m.jsxs(m.Fragment,{children:[m.jsx(Lr,{id:t,name:r||t,placeholder:i,label:sp(c||void 0,u,void 0),autoFocus:S,required:o,disabled:a||s,slotProps:{...N,input:H,htmlInput:V,inputLabel:W},...q,value:h||h===0?h:"",error:E.length>0,onChange:y||U,onBlur:K,onFocus:B,...$,"aria-describedby":Us(t,!!w.examples)}),m.jsx(bee,{id:t,schema:w})]})}function dPe(e){const{id:t,description:n,registry:r,uiSchema:i}=e;return n?m.jsx(ie,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:m.jsx(vM,{description:n,registry:r,uiSchema:i})}):null}function fPe({errors:e,registry:t}){const{translateString:n}=t;return m.jsx(Ur,{elevation:2,children:m.jsxs(ce,{mb:2,p:2,children:[m.jsx(ie,{variant:"h6",children:n(un.ErrorsLabel)}),m.jsx(bc,{dense:!0,children:e.map((r,i)=>m.jsxs(yf,{children:[m.jsx(Ul,{children:m.jsx(vf,{color:"error"})}),m.jsx(Va,{primary:r.stack})]},i))})]})})}function Xm(e){const{icon:t,color:n,uiSchema:r,registry:i,...o}=e;return m.jsx(_n,{...o,size:"small",color:n,children:t})}function hPe(e){const{registry:{translateString:t}}=e;return m.jsx(Xm,{title:t(un.CopyButton),...e,icon:m.jsx(Ah,{fontSize:"small"})})}function pPe(e){const{registry:{translateString:t}}=e;return m.jsx(Xm,{title:t(un.MoveDownButton),...e,icon:m.jsx(vT,{fontSize:"small"})})}function mPe(e){const{registry:{translateString:t}}=e;return m.jsx(Xm,{title:t(un.MoveUpButton),...e,icon:m.jsx(xT,{fontSize:"small"})})}function Tee(e){const{iconType:t,...n}=e,{registry:{translateString:r}}=n;return m.jsx(Xm,{title:r(un.RemoveButton),...n,color:"error",icon:m.jsx(oZ,{fontSize:t==="default"?void 0:"small"})})}function gPe(e){const{iconType:t,...n}=e,{registry:{translateString:r}}=n;return m.jsx(Xm,{title:r(un.ClearButton),...n,icon:m.jsx(VCe,{fontSize:t==="default"?void 0:"small"})})}function yPe(e){const{errors:t=[],fieldPathId:n}=e;if(t.length===0)return null;const r=uM(n);return m.jsx(bc,{id:r,dense:!0,disablePadding:!0,children:t.map((i,o)=>m.jsx(yf,{disableGutters:!0,children:m.jsx(bw,{component:"div",id:`${r}-${o}`,children:i})},o))})}function bPe(e){const{fieldPathId:t,help:n,uiSchema:r,registry:i}=e;return n?m.jsx(bw,{component:"div",id:dM(t),style:{marginTop:"5px"},children:m.jsx(xM,{help:n,registry:i,uiSchema:r})}):null}function vPe(e){const{id:t,children:n,classNames:r,style:i,disabled:o,displayLabel:s,hidden:a,label:l,onKeyRename:c,onKeyRenameBlur:u,onRemoveProperty:f,readonly:h,required:g,rawErrors:y=[],errors:b,help:v,description:S,rawDescription:C,schema:w,uiSchema:A,registry:E}=e,D=$t(A),O=Bt("WrapIfAdditionalTemplate",E,D);if(a)return m.jsx("div",{style:{display:"none"},children:n});const T=D.widget==="checkbox";return m.jsx(O,{classNames:r,style:i,disabled:o,id:t,label:l,displayLabel:s,rawDescription:C,onKeyRename:c,onKeyRenameBlur:u,onRemoveProperty:f,readonly:h,required:g,schema:w,uiSchema:A,registry:E,children:m.jsxs(pa,{fullWidth:!0,error:!!y.length,required:g,children:[n,s&&!T&&C?m.jsx(ie,{variant:"caption",color:"textSecondary",children:S}):null,b,v]})})}function xPe(e){const{children:t,column:n,...r}=e;return m.jsx(dt,{container:!n,...r,children:t})}function SPe(e){const{optionSchemaField:t,selector:n}=e;return m.jsxs(ce,{sx:{mb:2},children:[m.jsx(pa,{fullWidth:!0,sx:{mb:2},children:n}),t]})}function wPe(e){const{description:t,title:n,properties:r,required:i,disabled:o,readonly:s,uiSchema:a,fieldPathId:l,schema:c,formData:u,optionalDataControl:f,onAddProperty:h,registry:g}=e,y=$t(a),b=Bt("TitleFieldTemplate",g,y),v=Bt("DescriptionFieldTemplate",g,y),S=!s&&!o,{ButtonTemplates:{AddButton:C}}=g.templates;return m.jsxs(m.Fragment,{children:[n&&m.jsx(b,{id:zw(l),title:n,required:i,schema:c,uiSchema:a,registry:g,optionalDataControl:S?f:void 0}),t&&m.jsx(v,{id:op(l),description:t,schema:c,uiSchema:a,registry:g}),m.jsxs(dt,{container:!0,spacing:2,style:{marginTop:"10px"},children:[S?void 0:f,r.map((w,A)=>w.hidden?w.content:m.jsx(dt,{size:{xs:12},style:{marginBottom:"10px"},children:w.content},A))]}),RJ(c,a,u)&&m.jsx(dt,{container:!0,justifyContent:"flex-end",children:m.jsx(dt,{children:m.jsx(C,{id:Kl(l,"add"),className:"rjsf-object-property-expand",onClick:h,disabled:o||s,uiSchema:a,registry:g})})})]})}function CPe(e){const{id:t,registry:n,label:r,onAddClick:i,onRemoveClick:o}=e;return i?m.jsx(Xm,{id:t,registry:n,className:"rjsf-add-optional-data",onClick:i,title:r,icon:m.jsx(fc,{fontSize:"small"})}):o?m.jsx(Tee,{id:t,registry:n,className:"rjsf-remove-optional-data",onClick:o,title:r}):m.jsx("em",{id:t,children:r})}function EPe({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=QQ(e);return n?null:m.jsx(ce,{marginTop:3,children:m.jsx(kt,{type:"submit",variant:"contained",color:"primary",...r,children:t})})}function APe({id:e,title:t,optionalDataControl:n}){let r=m.jsx(ie,{variant:"h5",children:t});return n&&(r=m.jsxs(dt,{container:!0,spacing:0,children:[m.jsx(dt,{size:"grow",children:r}),m.jsx(dt,{justifyContent:"flex-end",children:n})]})),m.jsxs(ce,{id:e,mb:1,mt:1,children:[r,m.jsx(gi,{})]})}function kPe(e){const{children:t,classNames:n,style:r,disabled:i,id:o,label:s,displayLabel:a,onKeyRenameBlur:l,onRemoveProperty:c,readonly:u,required:f,schema:h,uiSchema:g,registry:y}=e,{templates:b,translateString:v}=y,{RemoveButton:S}=b.ButtonTemplates,C=v(un.KeyLabel,[s]),w=fu in h,A={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return w?m.jsxs(dt,{container:!0,alignItems:"flex-start",spacing:2,className:n,style:r,children:[m.jsx(dt,{size:5.5,children:m.jsx(Lr,{fullWidth:!0,required:f,label:a?C:void 0,defaultValue:s,disabled:i||u,id:`${o}-key`,name:`${o}-key`,onBlur:u?void 0:l,type:"text"})}),m.jsx(dt,{size:5.5,children:t}),m.jsx(dt,{sx:{mt:1.5},children:m.jsx(S,{id:Kl(o,"remove"),className:"rjsf-object-property-remove",iconType:"default",style:A,disabled:i||u,onClick:c,uiSchema:g,registry:y})})]},`${o}-key`):m.jsx("div",{className:n,style:r,children:t})}function Mee(){return{ArrayFieldItemTemplate:rPe,ArrayFieldTemplate:iPe,BaseInputTemplate:uPe,ButtonTemplates:{AddButton:nPe,CopyButton:hPe,MoveDownButton:pPe,MoveUpButton:mPe,RemoveButton:Tee,SubmitButton:EPe,ClearButton:gPe},DescriptionFieldTemplate:dPe,ErrorListTemplate:fPe,FieldErrorTemplate:yPe,FieldHelpTemplate:bPe,FieldTemplate:vPe,GridTemplate:xPe,MultiSchemaFieldTemplate:SPe,ObjectFieldTemplate:wPe,OptionalDataControlsTemplate:CPe,TitleFieldTemplate:APe,WrapIfAdditionalTemplate:kPe}}function _Pe(e){var t;const{schema:n,id:r,htmlName:i,value:o,disabled:s,readonly:a,label:l="",hideLabel:c,autofocus:u,onChange:f,onBlur:h,onFocus:g,registry:y,options:b,uiSchema:v}=e,S=Bt("DescriptionFieldTemplate",y,b),C=py(n),w=(O,T)=>f(T),A=()=>h(r,o),E=()=>g(r,o),D=(t=b.description)!==null&&t!==void 0?t:n.description;return m.jsxs(m.Fragment,{children:[!c&&D&&m.jsx(S,{id:op(r),description:D,schema:n,uiSchema:v,registry:y}),m.jsx(Ls,{control:m.jsx(Wl,{id:r,name:i||r,checked:typeof o>"u"?!1:!!o,required:C,disabled:s||a,autoFocus:u,onChange:w,onBlur:A,onFocus:E,"aria-describedby":Us(r)}),label:sp(l,c,!1)})]})}function DPe(e){return Qe("MuiFormGroup",e)}tt("MuiFormGroup",["root","row","error"]);const OPe=e=>{const{classes:t,row:n,error:r}=e;return et({root:["root",n&&"row",r&&"error"]},DPe,t)},TPe=me("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Ree=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1,...s}=r,a=ll(),l=xf({props:r,muiFormControl:a,states:["error"]}),c={...r,row:o,error:l.error},u=OPe(c);return m.jsx(TPe,{className:Te(u.root,i),ownerState:c,ref:n,...s})});function MPe({label:e,hideLabel:t,id:n,htmlName:r,disabled:i,options:o,value:s,autofocus:a,readonly:l,required:c,onChange:u,onBlur:f,onFocus:h}){const{enumOptions:g,enumDisabled:y,inline:b,emptyValue:v}=o,S=Array.isArray(s)?s:[s],C=E=>({target:{checked:D}})=>{u(D?YQ(E,S,g):KQ(E,S,g))},w=({target:E})=>f(n,no(E&&E.value,g,v)),A=({target:E})=>h(n,no(E&&E.value,g,v));return m.jsxs(m.Fragment,{children:[sp(m.jsx(hw,{required:c,htmlFor:n,children:e||void 0}),t),m.jsx(Ree,{id:n,row:!!b,children:Array.isArray(g)&&g.map((E,D)=>{const O=Fw(E.value,S),T=Array.isArray(y)&&y.indexOf(E.value)!==-1,I=m.jsx(Wl,{id:Hw(n,D),name:r||n,checked:O,disabled:i||T||l,autoFocus:a&&D===0,onChange:C(D),onBlur:w,onFocus:A,"aria-describedby":Us(n)});return m.jsx(Ls,{control:I,label:E.label},D)})})]})}const RPe=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),IPe=_e(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),PPe=me("span",{name:"MuiRadioButtonIcon",shouldForwardProp:io})({position:"relative",display:"flex"}),jPe=me(RPe,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),$Pe=me(IPe,{name:"MuiRadioButtonIcon"})(Ge(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Iee(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return m.jsxs(PPe,{className:n.root,ownerState:i,children:[m.jsx(jPe,{fontSize:r,className:n.background,ownerState:i}),m.jsx($Pe,{fontSize:r,className:n.dot,ownerState:i})]})}const Pee=_.createContext(void 0);function LPe(){return _.useContext(Pee)}function NPe(e){return Qe("MuiRadio",e)}const $U=tt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),FPe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ye(n)}`,r!=="medium"&&`size${ye(r)}`]};return{...t,...et(i,NPe,t)}},BPe=me(uT,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ye(n.size)}`],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${$U.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${$U.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function zPe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const HPe=m.jsx(Iee,{checked:!0}),UPe=m.jsx(Iee,{}),VPe=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:o=HPe,color:s="primary",icon:a=UPe,name:l,onChange:c,size:u="medium",className:f,disabled:h,disableRipple:g=!1,slots:y={},slotProps:b={},inputProps:v,...S}=r,C=ll();let w=h;C&&typeof w>"u"&&(w=C.disabled),w??=!1;const A={...r,disabled:w,disableRipple:g,color:s,size:u},E=FPe(A),D=LPe();let O=i;const T=mk(c,D&&D.onChange);let I=l;D&&(typeof O>"u"&&(O=zPe(D.value,r.value)),typeof I>"u"&&(I=D.name));const N=b.input??v,[$,R]=lt("root",{ref:n,elementType:BPe,className:Te(E.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,...S},getSlotProps:F=>({...F,onChange:(j,...z)=>{F.onChange?.(j,...z),T(j,...z)}}),ownerState:A,additionalProps:{type:"radio",icon:_.cloneElement(a,{fontSize:a.props.fontSize??u}),checkedIcon:_.cloneElement(o,{fontSize:o.props.fontSize??u}),disabled:w,name:I,checked:O,slots:y,slotProps:{input:typeof N=="function"?N(A):N}}});return m.jsx($,{...R,classes:E})});function WPe(e){return Qe("MuiRadioGroup",e)}tt("MuiRadioGroup",["root","row","error"]);const qPe=e=>{const{classes:t,row:n,error:r}=e;return et({root:["root",n&&"row",r&&"error"]},WPe,t)},GPe=_.forwardRef(function(t,n){const{actions:r,children:i,className:o,defaultValue:s,name:a,onChange:l,value:c,...u}=t,f=_.useRef(null),h=qPe(t),[g,y]=Ya({controlled:c,default:s,name:"RadioGroup"});_.useImperativeHandle(r,()=>({focus:()=>{let C=f.current.querySelector("input:not(:disabled):checked");C||(C=f.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const b=Tr(n,f),v=Ou(a),S=_.useMemo(()=>({name:v,onChange(C){y(C.target.value),l&&l(C,C.target.value)},value:g}),[v,l,y,g]);return m.jsx(Pee.Provider,{value:S,children:m.jsx(Ree,{role:"radiogroup",ref:b,className:Te(h.root,o),...u,children:i})})});function KPe({id:e,htmlName:t,options:n,value:r,required:i,disabled:o,readonly:s,label:a,hideLabel:l,onChange:c,onBlur:u,onFocus:f}){var h;const{enumOptions:g,enumDisabled:y,emptyValue:b}=n,v=(E,D)=>c(no(D,g,b)),S=({target:E})=>u(e,no(E&&E.value,g,b)),C=({target:E})=>f(e,no(E&&E.value,g,b)),w=n?n.inline:!1,A=(h=aM(r,g))!==null&&h!==void 0?h:null;return m.jsxs(m.Fragment,{children:[sp(m.jsx(hw,{required:i,htmlFor:e,children:a||void 0}),l),m.jsx(GPe,{id:e,name:t||e,value:A,row:w,onChange:v,onBlur:S,onFocus:C,"aria-describedby":Us(e),children:Array.isArray(g)&&g.map((E,D)=>{const O=Array.isArray(y)&&y.indexOf(E.value)!==-1;return m.jsx(Ls,{control:m.jsx(VPe,{name:t||e,id:Hw(e,D),color:"primary"}),label:E.label,value:String(D),disabled:o||O||s},D)})})]})}const YPe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function XPe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const ZPe=2;function e0(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function jee(e,t){return e-t}function LU(e,t){const{index:n}=e.reduce((r,i,o)=>{const s=Math.abs(t-i);return r===null||s<r.distance||s===r.distance?{distance:s,index:o}:r},null)??{};return n}function A3(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function u6(e,t,n){return(e-t)*100/(n-t)}function JPe(e,t,n){return(n-t)*e+t}function QPe(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function eje(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(QPe(t)))}function NU({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(jee)}function k3({sliderRef:e,activeIndex:t,setActive:n}){const r=Di(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function _3(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?XPe(e,t):!1}const tje={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},nje=e=>e;let D3;function FU(){return D3===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?D3=CSS.supports("touch-action","none"):D3=!0),D3}function rje(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:h="horizontal",rootRef:g,scale:y=nje,step:b=1,shiftStep:v=10,tabIndex:S,value:C}=e,w=_.useRef(void 0),[A,E]=_.useState(-1),[D,O]=_.useState(-1),[T,I]=_.useState(!1),N=_.useRef(0),$=_.useRef(null),[R,F]=Ya({controlled:C,default:n??l,name:"Slider"}),j=u&&((ze,Pe,He)=>{const Je=ze.nativeEvent||ze,nt=new Je.constructor(Je.type,Je);Object.defineProperty(nt,"target",{writable:!0,value:{value:Pe,name:c}}),$.current=Pe,u(nt,Pe,He)}),z=Array.isArray(R);let L=z?R.slice().sort(jee):[R];L=L.map(ze=>ze==null?l:l0(ze,l,a));const q=s===!0&&b!==null?[...Array(Math.floor((a-l)/b)+1)].map((ze,Pe)=>({value:l+b*Pe})):s||[],V=q.map(ze=>ze.value),[U,K]=_.useState(-1),B=_.useRef(null),W=Tr(g,B),X=ze=>Pe=>{const He=Number(Pe.currentTarget.getAttribute("data-index"));Gd(Pe.target)&&K(He),O(He),ze?.onFocus?.(Pe)},H=ze=>Pe=>{Gd(Pe.target)||K(-1),O(-1),ze?.onBlur?.(Pe)},Y=(ze,Pe)=>{const He=Number(ze.currentTarget.getAttribute("data-index")),Je=L[He],nt=V.indexOf(Je);let ot=Pe;if(q&&b==null){const Xe=V[V.length-1];ot>=Xe?ot=Xe:ot<=V[0]?ot=V[0]:ot=ot<Je?V[nt-1]:V[nt+1]}if(ot=l0(ot,l,a),z){i&&(ot=l0(ot,L[He-1]||-1/0,L[He+1]||1/0));const Xe=ot;ot=NU({values:L,newValue:ot,index:He});let Lt=He;i||(Lt=ot.indexOf(Xe)),k3({sliderRef:B,activeIndex:Lt})}F(ot),K(He),j&&!_3(ot,R)&&j(ze,ot,He),f&&f(ze,$.current??ot)},J=ze=>Pe=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Pe.key)){Pe.preventDefault();const He=Number(Pe.currentTarget.getAttribute("data-index")),Je=L[He];let nt=null;if(b!=null){const ot=Pe.shiftKey?v:b;switch(Pe.key){case"ArrowUp":nt=e0(Je,ot,1,l,a);break;case"ArrowRight":nt=e0(Je,ot,o?-1:1,l,a);break;case"ArrowDown":nt=e0(Je,ot,-1,l,a);break;case"ArrowLeft":nt=e0(Je,ot,o?1:-1,l,a);break;case"PageUp":nt=e0(Je,v,1,l,a);break;case"PageDown":nt=e0(Je,v,-1,l,a);break;case"Home":nt=l;break;case"End":nt=a;break}}else if(q){const ot=V[V.length-1],Xe=V.indexOf(Je),Lt=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Nt=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Lt.includes(Pe.key)?Xe===0?nt=V[0]:nt=V[Xe-1]:Nt.includes(Pe.key)&&(Xe===V.length-1?nt=ot:nt=V[Xe+1])}nt!=null&&Y(Pe,nt)}ze?.onKeyDown?.(Pe)};Ho(()=>{r&&B.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&A!==-1&&E(-1),r&&U!==-1&&K(-1);const ne=ze=>Pe=>{ze.onChange?.(Pe),Y(Pe,Pe.target.valueAsNumber)},ee=_.useRef(void 0);let se=h;o&&h==="horizontal"&&(se+="-reverse");const ue=({finger:ze,move:Pe=!1})=>{const{current:He}=B,{width:Je,height:nt,bottom:ot,left:Xe}=He.getBoundingClientRect();let Lt;se.startsWith("vertical")?Lt=(ot-ze.y)/nt:Lt=(ze.x-Xe)/Je,se.includes("-reverse")&&(Lt=1-Lt);let Nt;if(Nt=JPe(Lt,l,a),b)Nt=eje(Nt,b,l);else{const Xn=LU(V,Nt);Nt=V[Xn]}Nt=l0(Nt,l,a);let Ot=0;if(z){Pe?Ot=ee.current:Ot=LU(L,Nt),i&&(Nt=l0(Nt,L[Ot-1]||-1/0,L[Ot+1]||1/0));const Xn=Nt;Nt=NU({values:L,newValue:Nt,index:Ot}),i&&Pe||(Ot=Nt.indexOf(Xn),ee.current=Ot)}return{newValue:Nt,activeIndex:Ot}},te=Ni(ze=>{const Pe=A3(ze,w);if(!Pe)return;if(N.current+=1,ze.type==="mousemove"&&ze.buttons===0){Z(ze);return}const{newValue:He,activeIndex:Je}=ue({finger:Pe,move:!0});k3({sliderRef:B,activeIndex:Je,setActive:E}),F(He),!T&&N.current>ZPe&&I(!0),j&&!_3(He,R)&&j(ze,He,Je)}),Z=Ni(ze=>{const Pe=A3(ze,w);if(I(!1),!Pe)return;const{newValue:He}=ue({finger:Pe,move:!0});E(-1),ze.type==="touchend"&&O(-1),f&&f(ze,$.current??He),w.current=void 0,oe()}),re=Ni(ze=>{if(r)return;FU()||ze.preventDefault();const Pe=ze.changedTouches[0];Pe!=null&&(w.current=Pe.identifier);const He=A3(ze,w);if(He!==!1){const{newValue:nt,activeIndex:ot}=ue({finger:He});k3({sliderRef:B,activeIndex:ot,setActive:E}),F(nt),j&&!_3(nt,R)&&j(ze,nt,ot)}N.current=0;const Je=Di(B.current);Je.addEventListener("touchmove",te,{passive:!0}),Je.addEventListener("touchend",Z,{passive:!0})}),oe=_.useCallback(()=>{const ze=Di(B.current);ze.removeEventListener("mousemove",te),ze.removeEventListener("mouseup",Z),ze.removeEventListener("touchmove",te),ze.removeEventListener("touchend",Z)},[Z,te]);_.useEffect(()=>{const{current:ze}=B;return ze.addEventListener("touchstart",re,{passive:FU()}),()=>{ze.removeEventListener("touchstart",re),oe()}},[oe,re]),_.useEffect(()=>{r&&oe()},[r,oe]);const fe=ze=>Pe=>{if(ze.onMouseDown?.(Pe),r||Pe.defaultPrevented||Pe.button!==0)return;Pe.preventDefault();const He=A3(Pe,w);if(He!==!1){const{newValue:nt,activeIndex:ot}=ue({finger:He});k3({sliderRef:B,activeIndex:ot,setActive:E}),F(nt),j&&!_3(nt,R)&&j(Pe,nt,ot)}N.current=0;const Je=Di(B.current);Je.addEventListener("mousemove",te,{passive:!0}),Je.addEventListener("mouseup",Z)},be=u6(z?L[0]:l,l,a),De=u6(L[L.length-1],l,a)-be,Oe=(ze={})=>{const Pe=Yi(ze),He={onMouseDown:fe(Pe||{})},Je={...Pe,...He};return{...ze,ref:W,...Je}},Ke=ze=>Pe=>{ze.onMouseOver?.(Pe);const He=Number(Pe.currentTarget.getAttribute("data-index"));O(He)},xe=ze=>Pe=>{ze.onMouseLeave?.(Pe),O(-1)},Le=(ze={})=>{const Pe=Yi(ze),He={onMouseOver:Ke(Pe||{}),onMouseLeave:xe(Pe||{})};return{...ze,...Pe,...He}},Me=ze=>({pointerEvents:A!==-1&&A!==ze?"none":void 0});let ht;return h==="vertical"&&(ht=o?"vertical-rl":"vertical-lr"),{active:A,axis:se,axisProps:tje,dragging:T,focusedThumbIndex:U,getHiddenInputProps:(ze={})=>{const Pe=Yi(ze),He={onChange:ne(Pe||{}),onFocus:X(Pe||{}),onBlur:H(Pe||{}),onKeyDown:J(Pe||{})},Je={...Pe,...He};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...ze,...Je,style:{...YPe,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:ht}}},getRootProps:Oe,getThumbProps:Le,marks:q,open:D,range:z,rootRef:W,trackLeap:De,trackOffset:be,values:L,getThumbStyle:Me}}const ije=e=>!e||!ic(e);function oje(e){return Qe("MuiSlider",e)}const aa=tt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),sje=e=>{const{open:t}=e;return{offset:Te(t&&aa.valueLabelOpen),circle:aa.valueLabelCircle,label:aa.valueLabelLabel}};function aje(e){const{children:t,className:n,value:r}=e,i=sje(e);return t?_.cloneElement(t,{className:t.props.className},m.jsxs(_.Fragment,{children:[t.props.children,m.jsx("span",{className:Te(i.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:i.circle,children:m.jsx("span",{className:i.label,children:r})})})]})):null}function BU(e){return e}const lje=me("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ye(n.color)}`],n.size!=="medium"&&t[`size${ye(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ge(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${aa.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${aa.dragging}`]:{[`& .${aa.thumb}, & .${aa.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),cje=me("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),uje=me("span",{name:"MuiSlider",slot:"Track"})(Ge(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),dje=me("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ye(n.color)}`],n.size!=="medium"&&t[`thumbSize${ye(n.size)}`]]}})(Ge(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${aa.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${aa.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${aa.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),fje=me(aje,{name:"MuiSlider",slot:"ValueLabel"})(Ge(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${aa.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${aa.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),hje=me("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>GS(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ge(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),pje=me("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>GS(e)&&e!=="markLabelActive"})(Ge(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),mje=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${ye(a)}`,l&&`size${ye(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ye(l)}`,a&&`thumbColor${ye(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return et(c,oje,s)},gje=({children:e})=>e,yje=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSlider"}),i=mf(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:f="primary",classes:h,className:g,disableSwap:y=!1,disabled:b=!1,getAriaLabel:v,getAriaValueText:S,marks:C=!1,max:w=100,min:A=0,name:E,onChange:D,onChangeCommitted:O,orientation:T="horizontal",shiftStep:I=10,size:N="medium",step:$=1,scale:R=BU,slotProps:F,slots:j,tabIndex:z,track:L="normal",value:q,valueLabelDisplay:V="off",valueLabelFormat:U=BU,...K}=r,B={...r,isRtl:i,max:w,min:A,classes:h,disabled:b,disableSwap:y,orientation:T,marks:C,color:f,size:N,step:$,shiftStep:I,scale:R,track:L,valueLabelDisplay:V,valueLabelFormat:U},{axisProps:W,getRootProps:X,getHiddenInputProps:H,getThumbProps:Y,open:J,active:ne,axis:ee,focusedThumbIndex:se,range:ue,dragging:te,marks:Z,values:re,trackOffset:oe,trackLeap:fe,getThumbStyle:be}=rje({...B,rootRef:n});B.marked=Z.length>0&&Z.some(Dt=>Dt.label),B.dragging=te,B.focusedThumbIndex=se;const De=mje(B),Oe=j?.root??c.Root??lje,Ke=j?.rail??c.Rail??cje,xe=j?.track??c.Track??uje,Le=j?.thumb??c.Thumb??dje,Me=j?.valueLabel??c.ValueLabel??fje,ht=j?.mark??c.Mark??hje,mt=j?.markLabel??c.MarkLabel??pje,ze=j?.input??c.Input??"input",Pe=F?.root??u.root,He=F?.rail??u.rail,Je=F?.track??u.track,nt=F?.thumb??u.thumb,ot=F?.valueLabel??u.valueLabel,Xe=F?.mark??u.mark,Lt=F?.markLabel??u.markLabel,Nt=F?.input??u.input,Ot=Yr({elementType:Oe,getSlotProps:X,externalSlotProps:Pe,externalForwardedProps:K,additionalProps:{...ije(Oe)&&{as:l}},ownerState:{...B,...Pe?.ownerState},className:[De.root,g]}),Xn=Yr({elementType:Ke,externalSlotProps:He,ownerState:B,className:De.rail}),rn=Yr({elementType:xe,externalSlotProps:Je,additionalProps:{style:{...W[ee].offset(oe),...W[ee].leap(fe)}},ownerState:{...B,...Je?.ownerState},className:De.track}),at=Yr({elementType:Le,getSlotProps:Y,externalSlotProps:nt,ownerState:{...B,...nt?.ownerState},className:De.thumb}),Ht=Yr({elementType:Me,externalSlotProps:ot,ownerState:{...B,...ot?.ownerState},className:De.valueLabel}),Dn=Yr({elementType:ht,externalSlotProps:Xe,ownerState:B,className:De.mark}),Gn=Yr({elementType:mt,externalSlotProps:Lt,ownerState:B,className:De.markLabel}),yr=Yr({elementType:ze,getSlotProps:H,externalSlotProps:Nt,ownerState:B});return m.jsxs(Oe,{...Ot,children:[m.jsx(Ke,{...Xn}),m.jsx(xe,{...rn}),Z.filter(Dt=>Dt.value>=A&&Dt.value<=w).map((Dt,jt)=>{const Jt=u6(Dt.value,A,w),jn=W[ee].offset(Jt);let on;return L===!1?on=re.includes(Dt.value):on=L==="normal"&&(ue?Dt.value>=re[0]&&Dt.value<=re[re.length-1]:Dt.value<=re[0])||L==="inverted"&&(ue?Dt.value<=re[0]||Dt.value>=re[re.length-1]:Dt.value>=re[0]),m.jsxs(_.Fragment,{children:[m.jsx(ht,{"data-index":jt,...Dn,...!ic(ht)&&{markActive:on},style:{...jn,...Dn.style},className:Te(Dn.className,on&&De.markActive)}),Dt.label!=null?m.jsx(mt,{"aria-hidden":!0,"data-index":jt,...Gn,...!ic(mt)&&{markLabelActive:on},style:{...jn,...Gn.style},className:Te(De.markLabel,Gn.className,on&&De.markLabelActive),children:Dt.label}):null]},jt)}),re.map((Dt,jt)=>{const Jt=u6(Dt,A,w),jn=W[ee].offset(Jt),on=V==="off"?gje:Me;return m.jsx(on,{...!ic(on)&&{valueLabelFormat:U,valueLabelDisplay:V,value:typeof U=="function"?U(R(Dt),jt):U,index:jt,open:J===jt||ne===jt||V==="on",disabled:b},...Ht,children:m.jsx(Le,{"data-index":jt,...at,className:Te(De.thumb,at.className,ne===jt&&De.active,se===jt&&De.focusVisible),style:{...jn,...be(jt),...at.style},children:m.jsx(ze,{"data-index":jt,"aria-label":v?v(jt):o,"aria-valuenow":R(Dt),"aria-labelledby":a,"aria-valuetext":S?S(R(Dt),jt):s,value:re[jt],...yr})})},jt)})]})});function bje(e){const{value:t,readonly:n,disabled:r,onBlur:i,onFocus:o,options:s,schema:a,onChange:l,required:c,label:u,hideLabel:f,id:h}=e,g={value:t,label:u,id:h,name:h,...ZQ(a)},y=(S,C)=>{l(C??s.emptyValue)},b=({target:S})=>i(h,S&&S.value),v=({target:S})=>o(h,S&&S.value);return m.jsxs(m.Fragment,{children:[sp(m.jsx(hw,{required:c,htmlFor:h,children:u||void 0}),f),m.jsx(yje,{disabled:r||n,onChange:y,onBlur:b,onFocus:v,valueLabelDisplay:"auto",...g,"aria-describedby":Us(h)})]})}function vje({schema:e,id:t,name:n,htmlName:r,options:i,label:o,hideLabel:s,required:a,disabled:l,placeholder:c,readonly:u,value:f,multiple:h,autofocus:g,onChange:y,onBlur:b,onFocus:v,errorSchema:S,rawErrors:C=[],registry:w,uiSchema:A,hideError:E,...D}){const{enumOptions:O,enumDisabled:T,emptyValue:I}=i;h=typeof h>"u"?!1:!!h;const N=h?[]:"",$=typeof f>"u"||h&&f.length<1||!h&&f===N,R=({target:{value:B}})=>y(no(B,O,I)),F=({target:B})=>b(t,no(B&&B.value,O,I)),j=({target:B})=>v(t,no(B&&B.value,O,I)),z=aM(f,O,h),{InputLabelProps:L,SelectProps:q,autocomplete:V,...U}=D,K=!h&&e.default===void 0;return m.jsxs(Lr,{id:t,name:r||t,label:sp(o||void 0,s,void 0),value:!$&&typeof z<"u"?z:N,required:a,disabled:l||u,autoFocus:g,autoComplete:V,placeholder:c,error:C.length>0,onChange:R,onBlur:F,onFocus:j,...U,select:!0,InputLabelProps:{...L,shrink:!$},SelectProps:{...q,multiple:h},"aria-describedby":Us(t),children:[K&&m.jsx(er,{value:"",children:c}),Array.isArray(O)&&O.map(({value:B,label:W},X)=>{const H=Array.isArray(T)&&T.indexOf(B)!==-1;return m.jsx(er,{value:String(X),disabled:H,children:W},X)})]})}function xje(e){const{options:t,registry:n}=e,r=Bt("BaseInputTemplate",n,t);let i=5;return(typeof t.rows=="string"||typeof t.rows=="number")&&(i=t.rows),m.jsx(r,{...e,multiline:!0,rows:i})}function Sje(){return{CheckboxWidget:_Pe,CheckboxesWidget:MPe,RadioWidget:KPe,RangeWidget:bje,SelectWidget:vje,TextareaWidget:xje}}function $ee(){return{templates:Mee(),widgets:Sje()}}const wje=$ee();function Cje(){return wee($ee())}Cje();const Eje=wee(wje),Aje=e=>{const t=(i,o)=>{e.onChange(i,o.length===0)},n=e.customValidate,r=_.useCallback((i,o)=>((n?.(i)??[]).forEach(a=>{if(!a.message)return;const l=a.instancePath.split("/");let c=o;for(const u of l)u!==""&&(c=c[u]??c);c.addError(a.message)}),o),[n]);return m.jsx(Eje,{schema:e.schema,uiSchema:e.uiSchema,validator:tPe,formData:e.value,liveValidate:"onChange",customValidate:r,showErrorList:!1,onChange:i=>t(i.formData,i.errors),templates:e.templates,fields:e.fields})},Lee=1024;let kje=0,OE=class{constructor(t,n){this.from=t,this.to=n}};class xn{constructor(t={}){this.id=kje++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=ls.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}xn.closedBy=new xn({deserialize:e=>e.split(" ")});xn.openedBy=new xn({deserialize:e=>e.split(" ")});xn.group=new xn({deserialize:e=>e.split(" ")});xn.isolate=new xn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});xn.contextHash=new xn({perNode:!0});xn.lookAhead=new xn({perNode:!0});xn.mounted=new xn({perNode:!0});class yy{constructor(t,n,r,i=!1){this.tree=t,this.overlay=n,this.parser=r,this.bracketed=i}static get(t){return t&&t.props&&t.props[xn.mounted.id]}}const _je=Object.create(null);class ls{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):_je,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new ls(t.name||"",n,t.id,r);if(t.props){for(let o of t.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(xn.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(xn.group),o=-1;o<(i?i.length:0);o++){let s=n[o<0?r.name:i[o]];if(s)return s}}}}ls.none=new ls("",Object.create(null),0,8);class kM{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let o of t){let s=o(r);if(s){i||(i=Object.assign({},r.props));let a=s[1],l=s[0];l.combine&&l.id in i&&(a=l.combine(i[l.id],a)),i[l.id]=a}}n.push(i?new ls(r.name,i,r.id,r.flags):r)}return new kM(n)}}const O3=new WeakMap,zU=new WeakMap;var ai;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays",e[e.EnterBracketed=16]="EnterBracketed"})(ai||(ai={}));class mi{constructor(t,n,r,i,o){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let t=yy.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new p_(this.topNode,t)}cursorAt(t,n=0,r=0){let i=O3.get(this)||this.topNode,o=new p_(i);return o.moveTo(t,n),O3.set(this,o._tree),o}get topNode(){return new ma(this,0,0,null)}resolve(t,n=0){let r=f2(O3.get(this)||this.topNode,t,n,!1);return O3.set(this,r),r}resolveInner(t,n=0){let r=f2(zU.get(this)||this.topNode,t,n,!0);return zU.set(this,r),r}resolveStack(t,n=0){return Tje(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:o=this.length}=t,s=t.mode||0,a=(s&ai.IncludeAnonymous)>0;for(let l=this.cursor(s|ai.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:OM(ls.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new mi(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new mi(ls.none,n,r,i)))}static build(t){return Mje(t)}}mi.empty=new mi(ls.none,[],[],0);class _M{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new _M(this.buffer,this.index)}}class tf{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return ls.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),t+=4,r==t)return o;let s=[];for(;t<r;)s.push(this.childString(t)),t=this.buffer[t+3];return o+"("+s.join(",")+")"}findChild(t,n,r,i,o){let{buffer:s}=this,a=-1;for(let l=t;l!=n&&!(Nee(o,i,s[l+1],s[l+2])&&(a=l,r>0));l=s[l+3]);return a}slice(t,n,r){let i=this.buffer,o=new Uint16Array(n-t),s=0;for(let a=t,l=0;a<n;){o[l++]=i[a++],o[l++]=i[a++]-r;let c=o[l++]=i[a++]-r;o[l++]=i[a++]-t,s=Math.max(s,c)}return new tf(o,s,this.set)}}function Nee(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function f2(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let s=!r&&e instanceof ma&&e.index<0?null:e.parent;if(!s)return e;e=s}let o=r?0:ai.IgnoreOverlays;if(r)for(let s=e,a=s.parent;a;s=a,a=s.parent)s instanceof ma&&s.index<0&&((i=a.enter(t,n,o))===null||i===void 0?void 0:i.from)!=s.from&&(e=a);for(;;){let s=e.enter(t,n,o);if(!s)return e;e=s}}class Fee{cursor(t=0){return new p_(this,t)}getChild(t,n=null,r=null){let i=HU(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return HU(this,t,n,r)}resolve(t,n=0){return f2(this,t,n,!1)}resolveInner(t,n=0){return f2(this,t,n,!0)}matchContext(t){return h_(this.parent,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class ma extends Fee{constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],f=l[t]+s.from,h;if(!(!(o&ai.EnterBracketed&&u instanceof mi&&(h=yy.get(u))&&!h.overlay&&h.bracketed&&r>=f&&r<=f+u.length)&&!Nee(i,r,f,f+u.length))){if(u instanceof tf){if(o&ai.ExcludeBuffers)continue;let g=u.findChild(0,u.buffer.length,n,r-f,i);if(g>-1)return new Rd(new Dje(s,u,t,f),null,g)}else if(o&ai.IncludeAnonymous||!u.type.isAnonymous||DM(u)){let g;if(!(o&ai.IgnoreMounts)&&(g=yy.get(u))&&!g.overlay)return new ma(g.tree,f,t,s);let y=new ma(u,f,t,s);return o&ai.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(n<0?u.children.length-1:0,n,r,i,o)}}}if(o&ai.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,n,r=0){let i;if(!(r&ai.IgnoreOverlays)&&(i=yy.get(this._tree))&&i.overlay){let o=t-this.from,s=r&ai.EnterBracketed&&i.bracketed;for(let{from:a,to:l}of i.overlay)if((n>0||s?a<=o:a<o)&&(n<0||s?l>=o:l>o))return new ma(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function HU(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function h_(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Dje{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Rd extends Fee{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return o<0?null:new Rd(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,n,r=0){if(r&ai.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return o<0?null:new Rd(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Rd(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Rd(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,o=r.buffer[this.index+3];if(o>i){let s=r.buffer[this.index+1];t.push(r.slice(i,o,s)),n.push(0)}return new mi(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Bee(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;o<e.length;o++){let s=e[o];(s.from>n.from||s.to<n.to)&&(n=s,t=o)}let r=n instanceof ma&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new Oje(i,n)}class Oje{constructor(t,n){this.heads=t,this.node=n}get next(){return Bee(this.heads)}}function Tje(e,t,n){let r=e.resolveInner(t,n),i=null;for(let o=r instanceof ma?r:r.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(i||(i=[r])).push(s.resolve(t,n)),o=s}else{let s=yy.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let a=new ma(s.tree,s.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(f2(a,t,n,!1))}}return i?Bee(i):r}class p_{get name(){return this.type.name}constructor(t,n=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=n&~ai.EnterBracketed,t instanceof ma)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof ma?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&ai.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ai.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&ai.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let o=n+t,s=t<0?-1:r._tree.children.length;o!=s;o+=t){let a=r._tree.children[o];if(this.mode&ai.IncludeAnonymous||a instanceof tf||!a.type.isAnonymous||DM(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=o+1;break e}i=this.stack[--o]}for(let i=r;i<this.stack.length;i++)n=new Rd(this.buffer,n,this.stack[i]);return this.bufferNode=new Rd(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return h_(this.node.parent,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return h_(this._tree,t,i);let s=r[n.buffer[this.stack[o]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function DM(e){return e.children.some(t=>t instanceof tf||!t.type.isAnonymous||DM(t))}function Mje(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Lee,reused:o=[],minRepeatType:s=r.types.length}=e,a=Array.isArray(n)?new _M(n,n.length):n,l=r.types,c=0,u=0;function f(E,D,O,T,I,N){let{id:$,start:R,end:F,size:j}=a,z=u,L=c;if(j<0)if(a.next(),j==-1){let B=o[$];O.push(B),T.push(R-E);return}else if(j==-3){c=$;return}else if(j==-4){u=$;return}else throw new RangeError(`Unrecognized record size: ${j}`);let q=l[$],V,U,K=R-E;if(F-R<=i&&(U=v(a.pos-D,I))){let B=new Uint16Array(U.size-U.skip),W=a.pos-U.size,X=B.length;for(;a.pos>W;)X=S(U.start,B,X);V=new tf(B,F-U.start,r),K=U.start-E}else{let B=a.pos-j;a.next();let W=[],X=[],H=$>=s?$:-1,Y=0,J=F;for(;a.pos>B;)H>=0&&a.id==H&&a.size>=0?(a.end<=J-i&&(y(W,X,R,Y,a.end,J,H,z,L),Y=W.length,J=a.end),a.next()):N>2500?h(R,B,W,X):f(R,B,W,X,H,N+1);if(H>=0&&Y>0&&Y<W.length&&y(W,X,R,Y,R,J,H,z,L),W.reverse(),X.reverse(),H>-1&&Y>0){let ne=g(q,L);V=OM(q,W,X,0,W.length,0,F-R,ne,ne)}else V=b(q,W,X,F-R,z-F,L)}O.push(V),T.push(K)}function h(E,D,O,T){let I=[],N=0,$=-1;for(;a.pos>D;){let{id:R,start:F,end:j,size:z}=a;if(z>4)a.next();else{if($>-1&&F<$)break;$<0&&($=j-i),I.push(R,F,j),N++,a.next()}}if(N){let R=new Uint16Array(N*4),F=I[I.length-2];for(let j=I.length-3,z=0;j>=0;j-=3)R[z++]=I[j],R[z++]=I[j+1]-F,R[z++]=I[j+2]-F,R[z++]=z;O.push(new tf(R,I[2]-F,r)),T.push(F-E)}}function g(E,D){return(O,T,I)=>{let N=0,$=O.length-1,R,F;if($>=0&&(R=O[$])instanceof mi){if(!$&&R.type==E&&R.length==I)return R;(F=R.prop(xn.lookAhead))&&(N=T[$]+R.length+F)}return b(E,O,T,I,N,D)}}function y(E,D,O,T,I,N,$,R,F){let j=[],z=[];for(;E.length>T;)j.push(E.pop()),z.push(D.pop()+O-I);E.push(b(r.types[$],j,z,N-I,R-N,F)),D.push(I-O)}function b(E,D,O,T,I,N,$){if(N){let R=[xn.contextHash,N];$=$?[R].concat($):[R]}if(I>25){let R=[xn.lookAhead,I];$=$?[R].concat($):[R]}return new mi(E,D,O,T,$)}function v(E,D){let O=a.fork(),T=0,I=0,N=0,$=O.end-i,R={size:0,start:0,skip:0};e:for(let F=O.pos-E;O.pos>F;){let j=O.size;if(O.id==D&&j>=0){R.size=T,R.start=I,R.skip=N,N+=4,T+=4,O.next();continue}let z=O.pos-j;if(j<0||z<F||O.start<$)break;let L=O.id>=s?4:0,q=O.start;for(O.next();O.pos>z;){if(O.size<0)if(O.size==-3||O.size==-4)L+=4;else break e;else O.id>=s&&(L+=4);O.next()}I=q,T+=j,N+=L}return(D<0||T==E)&&(R.size=T,R.start=I,R.skip=N),R.size>4?R:void 0}function S(E,D,O){let{id:T,start:I,end:N,size:$}=a;if(a.next(),$>=0&&T<s){let R=O;if($>4){let F=a.pos-($-4);for(;a.pos>F;)O=S(E,D,O)}D[--O]=R,D[--O]=N-E,D[--O]=I-E,D[--O]=T}else $==-3?c=T:$==-4&&(u=T);return O}let C=[],w=[];for(;a.pos>0;)f(e.start||0,e.bufferStart||0,C,w,-1,0);let A=(t=e.length)!==null&&t!==void 0?t:C.length?w[0]+C[0].length:0;return new mi(l[e.topID],C.reverse(),w.reverse(),A)}const UU=new WeakMap;function Q5(e,t){if(!e.isAnonymous||t instanceof tf||t.type!=e)return 1;let n=UU.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof mi)){n=1;break}n+=Q5(e,r)}UU.set(t,n)}return n}function OM(e,t,n,r,i,o,s,a,l){let c=0;for(let y=r;y<i;y++)c+=Q5(e,t[y]);let u=Math.ceil(c*1.5/8),f=[],h=[];function g(y,b,v,S,C){for(let w=v;w<S;){let A=w,E=b[w],D=Q5(e,y[w]);for(w++;w<S;w++){let O=Q5(e,y[w]);if(D+O>=u)break;D+=O}if(w==A+1){if(D>u){let O=y[A];g(O.children,O.positions,0,O.children.length,b[A]+C);continue}f.push(y[A])}else{let O=b[w-1]+y[w-1].length-E;f.push(OM(e,y,b,A,w,E,O,null,l))}h.push(E+C-o)}}return g(t,n,r,i,0),(a||l)(f,h,s)}class kh{constructor(t,n,r,i,o=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new kh(0,t.length,t,0,!1,r)];for(let o of n)o.to>t.length&&i.push(o);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],o=1,s=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,f=u?u.fromA:1e9;if(f-l>=r)for(;s&&s.from<f;){let h=s;if(l>=h.from||f<=h.to||c){let g=Math.max(h.from,l)-c,y=Math.min(h.to,f)-c;h=g>=y?null:new kh(g,y,h.tree,h.offset+c,a>0,!!u)}if(h&&i.push(h),s.to>f)break;s=o<t.length?t[o++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}let zee=class{startParse(t,n,r){return typeof t=="string"&&(t=new Rje(t)),r=r?r.length?r.map(i=>new OE(i.from,i.to)):[new OE(0,0)]:[new OE(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let o=i.advance();if(o)return o}}};class Rje{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new xn({perNode:!0});var VU={};class d6{constructor(t,n,r,i,o,s,a,l,c,u=0,f){this.p=t,this.stack=n,this.state=r,this.reducePos=i,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new d6(t,[],n,r,r,0,[],0,i?new WU(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:o}=this.p,s=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(r-1)*3-(t&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let f=l?this.stack[l-1]:0,h=this.bufferBase+this.buffer.length-f;if(i<o.minRepeatTerm||t&131072){let g=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,g,h+4,!0)}if(t&262144)this.state=this.stack[l];else{let g=this.stack[l-3];this.state=o.getGoto(g,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(n==r)return;if(s.buffer[a-2]>=n){s.buffer[a-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&(this.buffer[s-4]!=0||this.buffer[s-1]<0)){let a=!1;for(let l=s;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let o=t,{parser:s}=this.p;this.pos=i;let a=s.stateFlag(o,1);!a&&(i>r||n<=s.maxNode)&&(this.reducePos=i),this.pushState(o,a?r:Math.min(r,this.reducePos)),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}else this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4)}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new d6(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new Ije(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,s;o<n.length;o+=2)(s=n[o+1])!=this.state&&this.p.parser.hasAction(s,t)&&i.push(n[o],s);if(this.stack.length<120)for(let o=0;i.length<8&&o<n.length;o+=2){let s=n[o+1];i.some((a,l)=>l&1&&a==s)||i.push(n[o],s)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let o=n[i+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(n[i],this.pos),s.reducePos=this.pos,s.score-=200,r.push(s)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,c=this.stack.length-a*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=r(s,o+1);if(a!=null)return a}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new WU(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class WU{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class Ije{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class f6{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new f6(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new f6(this.stack,this.pos,this.index)}}function T3(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r<e.length;){let o=0;for(;;){let s=e.charCodeAt(r++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class e4{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const qU=new e4;class Pje{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=qU,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,o=this.pos+t;for(;o<r.from;){if(!i)return null;let s=this.ranges[--i];o-=r.from-s.to,r=s}for(;n<0?o>r.to:o>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];o+=s.from-r.to,r=s}return o}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+t,i=this.chunk.charCodeAt(n);else{let o=this.resolveOffset(t,1);if(o==null)return-1;if(r=o,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}acceptTokenTo(t,n){this.token.value=t,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=qU,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class B0{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;jje(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}B0.prototype.contextual=B0.prototype.fallback=B0.prototype.extend=!1;B0.prototype.fallback=B0.prototype.extend=!1;function jje(e,t,n,r,i,o){let s=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;(a&e[s])!=0;){let c=e[s+1];for(let g=s+3;g<c;g+=2)if((e[g+1]&a)>0){let y=e[g];if(l.allows(y)&&(t.token.value==-1||t.token.value==y||$je(y,t.token.value,i,o))){t.acceptToken(y);break}}let u=t.next,f=0,h=e[s+2];if(t.next<0&&h>f&&e[c+h*3-3]==65535){s=e[c+h*3-1];continue e}for(;f<h;){let g=f+h>>1,y=c+g+(g<<1),b=e[y],v=e[y+1]||65536;if(u<b)h=g;else if(u>=v)f=g+1;else{s=e[y+2],t.advance();continue e}}break}}function GU(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function $je(e,t,n,r){let i=GU(n,r,t);return i<0||GU(n,r,e)<i}const ws=typeof process<"u"&&VU&&/\bparse\b/.test(VU.LOG);let TE=null;function KU(e,t,n){let r=e.cursor(ai.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class Lje{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?KU(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?KU(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=r.children[i],s=this.start[n]+r.positions[i];if(s>t)return this.nextStart=s,null;if(o instanceof mi){if(s==t){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(xn.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[n]++,s+o.length>=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+o.length}}}class Nje{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new e4)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,s=i.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;c<o.length;c++){if((1<<c&s)==0)continue;let u=o[c],f=this.tokens[c];if(!(r&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=s||f.context!=a)&&(this.updateCachedToken(f,u,t),f.mask=s,f.context=a),f.lookAhead>f.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let h=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!u.extend&&(r=f,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new e4,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new e4,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:o}=r.p;for(let s=0;s<o.specialized.length;s++)if(o.specialized[s]==t.value){let a=o.specializers[s](this.stream.read(t.start,t.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;o<i;o+=3)if(this.actions[o]==t)return i;return this.actions[i++]=t,this.actions[i++]=n,this.actions[i++]=r,i}addActions(t,n,r,i){let{state:o}=t,{parser:s}=t.p,{data:a}=s;for(let l=0;l<2;l++)for(let c=s.stateSlot(o,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=nu(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(nu(a,c+2),n,r,i));break}a[c]==n&&(i=this.putAction(nu(a,c+1),n,r,i))}return i}}class Fje{constructor(t,n,r,i){this.parser=t,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Pje(n,i),this.tokens=new Nje(t,this.stream),this.topTerm=t.top[1];let{from:o}=i[0];this.stacks=[d6.start(this,t.top[0],o)],this.fragments=r.length&&this.stream.end-o>t.bufferLength*4?new Lje(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<t.length;s++){let a=t[s];for(;;){if(this.tokens.mainToken=null,a.pos>n)r.push(a);else{if(this.advanceStack(a,r,t))continue;{i||(i=[],o=[]),i.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!r.length){let s=i&&zje(i);if(s)return ws&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw ws&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(s)return ws&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((a,l)=>l.score-a.score);r.length>s;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s<r.length-1;s++){let a=r[s];for(let l=s+1;l<r.length;l++){let c=r[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&(r.sort((s,a)=>a.score-s.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let s=1;s<r.length;s++)r[s].pos<this.minStackPos&&(this.minStackPos=r[s].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let i=t.pos,{parser:o}=this,s=ws?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let h=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(t.state,f.type.id):-1;if(h>-1&&f.length&&(!c||(f.prop(xn.contextHash)||0)==u))return t.useNode(f,h),ws&&console.log(s+this.stackID(t)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof mi)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof mi&&f.positions[0]==0)f=g;else break}}let a=o.stateSlot(t.state,4);if(a>0)return t.reduce(a),ws&&console.log(s+this.stackID(t)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;c<l.length;){let u=l[c++],f=l[c++],h=l[c++],g=c==l.length||!r,y=g?t:t.split(),b=this.tokens.mainToken;if(y.apply(u,f,b?b.start:y.pos,h),ws&&console.log(s+this.stackID(y)+` (via ${(u&65536)==0?"shift":`reduce of ${o.getName(u&65535)}`} for ${o.getName(f)} @ ${i}${y==t?"":", split"})`),g)return!0;y.pos>i?n.push(y):r.push(y)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return YU(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let s=0;s<t.length;s++){let a=t[s],l=n[s<<1],c=n[(s<<1)+1],u=ws?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),ws&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let f=a.split(),h=u;for(let g=0;g<10&&f.forceReduce()&&(ws&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)ws&&(h=this.stackID(f)+" -> ");for(let g of a.recoverByInsert(l))ws&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),ws&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),YU(a,r)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),mi.build({buffer:f6.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(TE||(TE=new WeakMap)).get(t);return n||TE.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function YU(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class Bje{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}class h6 extends zee{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<t.repeatNodeCount;a++)n.push("");let r=Object.keys(t.topRules).map(a=>t.topRules[a][1]),i=[];for(let a=0;a<n.length;a++)i.push([]);function o(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=xn[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)o(u,l,a[c++]);else{let f=a[c+-u];for(let h=-u;h>0;h--)o(a[c++],l,f);c++}}}this.nodeSet=new kM(n.map((a,l)=>ls.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Lee;let s=T3(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(XU),this.states=T3(t.states,Uint32Array),this.data=T3(t.stateData),this.goto=T3(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new B0(s,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new Fje(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let s=i[o++],a=s&1,l=i[o++];if(a&&r)return l;for(let c=o+(s>>1);o<c;o++)if(i[o]==t)return l;if(a)return-1}}hasAction(t,n){let r=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(t,i?2:1),s;;o+=3){if((s=r[o])==65535)if(r[o+1]==1)s=r[o=nu(r,o+2)];else{if(r[o+1]==2)return nu(r,o+2);break}if(s==n||s==0)return nu(r,o+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=nu(this.data,o+2);else break;i=n(nu(this.data,o+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=nu(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];n.some((o,s)=>s&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(h6.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(a=>a.from==r.external);if(!o)return r;let s=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=XU(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let o of t.split(" ")){let s=n.indexOf(o);s>=0&&(r[s]=!0)}let i=null;for(let o=0;o<n.length;o++)if(!r[o])for(let s=this.dialects[n[o]],a;(a=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new Bje(t,r,i)}static deserialize(t){return new h6(t)}}function nu(e,t){return e[t]|e[t+1]<<16}function zje(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function XU(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}let Hje=0;class oa{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=Hje++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof oa&&(n=t),n?.base)throw new Error("Can not derive from a modified tag");let i=new oa(r,[],null,[]);if(i.set.push(i),n)for(let o of n.set)i.set.push(o);return i}static defineModifier(t){let n=new p6(t);return r=>r.modified.indexOf(n)>-1?r:p6.get(r.base||r,r.modified.concat(n).sort((i,o)=>i.id-o.id))}}let Uje=0;class p6{constructor(t){this.name=t,this.instances=[],this.id=Uje++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Vje(n,a.modified));if(r)return r;let i=[],o=new oa(t.name,i,t,n);for(let a of n)a.instances.push(o);let s=Wje(n);for(let a of t.set)if(!a.modified.length)for(let l of s)i.push(p6.get(a,l));return o}}function Vje(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function Wje(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function Hee(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],s=2,a=i;for(let f=0;;){if(a=="..."&&f>0&&f+3==i.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!h)throw new RangeError("Invalid path: "+i);if(o.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),f+=h[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);a=i.slice(f)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new h2(r,s,l>0?o.slice(0,l):null);t[c]=u.sort(t[c])}}return Uee.add(t)}const Uee=new xn({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let o=new h2(i.tags,i.mode,i.context);n?n.next=o:r=o,n=o}return r}});let h2=class{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}};h2.empty=new h2([],2,null);function Vee(e,t){let n=Object.create(null);for(let o of e)if(!Array.isArray(o.tag))n[o.tag.id]=o.class;else for(let s of o.tag)n[s.id]=o.class;let{scope:r,all:i=null}=t||{};return{style:o=>{let s=i;for(let a of o)for(let l of a.set){let c=n[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:r}}function qje(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Gje(e,t,n,r=0,i=e.length){let o=new Kje(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class Kje{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,o){let{type:s,from:a,to:l}=t;if(a>=r||l<=n)return;s.isTop&&(o=this.highlighters.filter(g=>!g.scope||g.scope(s)));let c=i,u=Yje(t)||h2.empty,f=qje(o,u.tags);if(f&&(c&&(c+=" "),c+=f,u.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,a),c),u.opaque)return;let h=t.tree&&t.tree.prop(xn.mounted);if(h&&h.overlay){let g=t.node.enter(h.overlay[0].from+a,1),y=this.highlighters.filter(v=>!v.scope||v.scope(h.tree.type)),b=t.firstChild();for(let v=0,S=a;;v++){let C=v<h.overlay.length?h.overlay[v]:null,w=C?C.from+a:l,A=Math.max(n,S),E=Math.min(r,w);if(A<E&&b)for(;t.from<E&&(this.highlightRange(t,A,E,i,o),this.startSpan(Math.min(E,t.to),c),!(t.to>=w||!t.nextSibling())););if(!C||w>r)break;S=C.to+a,S>n&&(this.highlightRange(g.cursor(),Math.max(n,C.from+a),Math.min(r,S),"",y),this.startSpan(Math.min(r,S),c))}b&&t.parent()}else if(t.firstChild()){h&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,o),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Yje(e){let t=e.type.prop(Uee);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const ct=oa.define,M3=ct(),gd=ct(),ZU=ct(gd),JU=ct(gd),yd=ct(),R3=ct(yd),ME=ct(yd),kl=ct(),Xf=ct(kl),wl=ct(),Cl=ct(),m_=ct(),C1=ct(m_),I3=ct(),ae={comment:M3,lineComment:ct(M3),blockComment:ct(M3),docComment:ct(M3),name:gd,variableName:ct(gd),typeName:ZU,tagName:ct(ZU),propertyName:JU,attributeName:ct(JU),className:ct(gd),labelName:ct(gd),namespace:ct(gd),macroName:ct(gd),literal:yd,string:R3,docString:ct(R3),character:ct(R3),attributeValue:ct(R3),number:ME,integer:ct(ME),float:ct(ME),bool:ct(yd),regexp:ct(yd),escape:ct(yd),color:ct(yd),url:ct(yd),keyword:wl,self:ct(wl),null:ct(wl),atom:ct(wl),unit:ct(wl),modifier:ct(wl),operatorKeyword:ct(wl),controlKeyword:ct(wl),definitionKeyword:ct(wl),moduleKeyword:ct(wl),operator:Cl,derefOperator:ct(Cl),arithmeticOperator:ct(Cl),logicOperator:ct(Cl),bitwiseOperator:ct(Cl),compareOperator:ct(Cl),updateOperator:ct(Cl),definitionOperator:ct(Cl),typeOperator:ct(Cl),controlOperator:ct(Cl),punctuation:m_,separator:ct(m_),bracket:C1,angleBracket:ct(C1),squareBracket:ct(C1),paren:ct(C1),brace:ct(C1),content:kl,heading:Xf,heading1:ct(Xf),heading2:ct(Xf),heading3:ct(Xf),heading4:ct(Xf),heading5:ct(Xf),heading6:ct(Xf),contentSeparator:ct(kl),list:ct(kl),quote:ct(kl),emphasis:ct(kl),strong:ct(kl),link:ct(kl),monospace:ct(kl),strikethrough:ct(kl),inserted:ct(),deleted:ct(),changed:ct(),invalid:ct(),meta:I3,documentMeta:ct(I3),annotation:ct(I3),processingInstruction:ct(I3),definition:oa.defineModifier("definition"),constant:oa.defineModifier("constant"),function:oa.defineModifier("function"),standard:oa.defineModifier("standard"),local:oa.defineModifier("local"),special:oa.defineModifier("special")};for(let e in ae){let t=ae[e];t instanceof oa&&(t.name=e)}Vee([{tag:ae.link,class:"tok-link"},{tag:ae.heading,class:"tok-heading"},{tag:ae.emphasis,class:"tok-emphasis"},{tag:ae.strong,class:"tok-strong"},{tag:ae.keyword,class:"tok-keyword"},{tag:ae.atom,class:"tok-atom"},{tag:ae.bool,class:"tok-bool"},{tag:ae.url,class:"tok-url"},{tag:ae.labelName,class:"tok-labelName"},{tag:ae.inserted,class:"tok-inserted"},{tag:ae.deleted,class:"tok-deleted"},{tag:ae.literal,class:"tok-literal"},{tag:ae.string,class:"tok-string"},{tag:ae.number,class:"tok-number"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],class:"tok-string2"},{tag:ae.variableName,class:"tok-variableName"},{tag:ae.local(ae.variableName),class:"tok-variableName tok-local"},{tag:ae.definition(ae.variableName),class:"tok-variableName tok-definition"},{tag:ae.special(ae.variableName),class:"tok-variableName2"},{tag:ae.definition(ae.propertyName),class:"tok-propertyName tok-definition"},{tag:ae.typeName,class:"tok-typeName"},{tag:ae.namespace,class:"tok-namespace"},{tag:ae.className,class:"tok-className"},{tag:ae.macroName,class:"tok-macroName"},{tag:ae.propertyName,class:"tok-propertyName"},{tag:ae.operator,class:"tok-operator"},{tag:ae.comment,class:"tok-comment"},{tag:ae.meta,class:"tok-meta"},{tag:ae.invalid,class:"tok-invalid"},{tag:ae.punctuation,class:"tok-punctuation"}]);const Xje=Hee({String:ae.string,Number:ae.number,"True False":ae.bool,PropertyName:ae.propertyName,Null:ae.null,", :":ae.separator,"[ ]":ae.squareBracket,"{ }":ae.brace}),Zje=h6.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Xje],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let g_=[],Wee=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?Wee:g_).push(n=n+e[t])})();function Jje(e){if(e<768)return!1;for(let t=0,n=g_.length;;){let r=t+n>>1;if(e<g_[r])n=r;else if(e>=Wee[r])t=r+1;else return!0;if(t==n)return!1}}function QU(e){return e>=127462&&e<=127487}const eV=8205;function Qje(e,t,n=!0,r=!0){return(n?qee:e$e)(e,t,r)}function qee(e,t,n){if(t==e.length)return t;t&&Gee(e.charCodeAt(t))&&Kee(e.charCodeAt(t-1))&&t--;let r=RE(e,t);for(t+=tV(r);t<e.length;){let i=RE(e,t);if(r==eV||i==eV||n&&Jje(i))t+=tV(i),r=i;else if(QU(i)){let o=0,s=t-2;for(;s>=0&&QU(RE(e,s));)o++,s-=2;if(o%2==0)break;t+=2}else break}return t}function e$e(e,t,n){for(;t>0;){let r=qee(e,t-2,n);if(r<t)return r;t--}return 0}function RE(e,t){let n=e.charCodeAt(t);if(!Kee(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Gee(r)?(n-55296<<10)+(r-56320)+65536:n}function Gee(e){return e>=56320&&e<57344}function Kee(e){return e>=55296&&e<56320}function tV(e){return e<65536?1:2}class Vn{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=ym(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),Nl.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=ym(this,t,n);let r=[];return this.decompose(t,n,r,0),Nl.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new by(this),o=new by(t);for(let s=n,a=n;;){if(i.next(s),o.next(s),s=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(t=1){return new by(this,t)}iterRange(t,n=this.length){return new Yee(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Xee(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?Vn.empty:t.length<=32?new fi(t):Nl.from(fi.split(t,[]))}}class fi extends Vn{constructor(t,n=t$e(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let o=0;;o++){let s=this.text[o],a=i+s.length;if((n?r:a)>=t)return new n$e(i,a,r,s);i=a+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new fi(nV(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),a=t4(o.text,s.text.slice(),0,o.length);if(a.length<=32)r.push(new fi(a,s.length+o.length));else{let l=a.length>>1;r.push(new fi(a.slice(0,l)),new fi(a.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof fi))return super.replace(t,n,r);[t,n]=ym(this,t,n);let i=t4(this.text,t4(r.text,nV(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new fi(i,o):Nl.from(fi.split(i,[]),o)}sliceString(t,n=this.length,r=`
254
+ deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[c,u]=o(l);s(l,c),a(l,u)}};function o({schema:l}){const c={},u={};for(const f in l){if(f==="__proto__")continue;const h=Array.isArray(l[f])?c:u;h[f]=l[f]}return[c,u]}function s(l,c=l.schema){const{gen:u,data:f,it:h}=l;if(Object.keys(c).length===0)return;const g=u.let("missing");for(const y in c){const b=c[y];if(b.length===0)continue;const v=(0,r.propertyInData)(u,f,y,h.opts.ownProperties);l.setParams({property:y,depsCount:b.length,deps:b.join(", ")}),h.allErrors?u.if(v,()=>{for(const S of b)(0,r.checkReportMissingProp)(l,S)}):(u.if((0,t._)`${v} && (${(0,r.checkMissingProp)(l,b,g)})`),(0,r.reportMissingProp)(l,g),u.else())}}e.validatePropertyDeps=s;function a(l,c=l.schema){const{gen:u,data:f,keyword:h,it:g}=l,y=u.name("valid");for(const b in c)(0,n.alwaysValidSchema)(g,c[b])||(u.if((0,r.propertyInData)(u,f,b,g.opts.ownProperties),()=>{const v=l.subschema({keyword:h,schemaProp:b},y);l.mergeValidEvaluated(v,y)},()=>u.var(y,!0)),l.ok(y))}e.validateSchemaDeps=a,e.default=i})(kE)),kE}var d3={},fU;function vIe(){if(fU)return d3;fU=1,Object.defineProperty(d3,"__esModule",{value:!0});const e=pn(),t=qn(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:s,data:a,it:l}=i;if((0,t.alwaysValidSchema)(l,s))return;const c=o.name("valid");o.forIn("key",a,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},c),o.if((0,e.not)(c),()=>{i.error(!0),l.allErrors||o.break()})}),i.ok(c)}};return d3.default=r,d3}var f3={},hU;function _ee(){if(hU)return f3;hU=1,Object.defineProperty(f3,"__esModule",{value:!0});const e=cl(),t=pn(),n=Sf(),r=qn(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:a,schema:l,parentSchema:c,data:u,errsCount:f,it:h}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:g,opts:y}=h;if(h.props=!0,y.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(h,l))return;const b=(0,e.allSchemaProperties)(c.properties),v=(0,e.allSchemaProperties)(c.patternProperties);S(),s.ok((0,t._)`${f} === ${n.default.errors}`);function S(){a.forIn("key",u,D=>{!b.length&&!v.length?A(D):a.if(C(D),()=>A(D))})}function C(D){let O;if(b.length>8){const T=(0,r.schemaRefOrVal)(h,c.properties,"properties");O=(0,e.isOwnProperty)(a,T,D)}else b.length?O=(0,t.or)(...b.map(T=>(0,t._)`${D} === ${T}`)):O=t.nil;return v.length&&(O=(0,t.or)(O,...v.map(T=>(0,t._)`${(0,e.usePattern)(s,T)}.test(${D})`))),(0,t.not)(O)}function w(D){a.code((0,t._)`delete ${u}[${D}]`)}function A(D){if(y.removeAdditional==="all"||y.removeAdditional&&l===!1){w(D);return}if(l===!1){s.setParams({additionalProperty:D}),s.error(),g||a.break();return}if(typeof l=="object"&&!(0,r.alwaysValidSchema)(h,l)){const O=a.name("valid");y.removeAdditional==="failing"?(E(D,O,!1),a.if((0,t.not)(O),()=>{s.reset(),w(D)})):(E(D,O),g||a.if((0,t.not)(O),()=>a.break()))}}function E(D,O,T){const I={keyword:"additionalProperties",dataProp:D,dataPropType:r.Type.Str};T===!1&&Object.assign(I,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(I,O)}}};return f3.default=o,f3}var h3={},pU;function xIe(){if(pU)return h3;pU=1,Object.defineProperty(h3,"__esModule",{value:!0});const e=Gw(),t=cl(),n=qn(),r=_ee(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,parentSchema:l,data:c,it:u}=o;u.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(u,r.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(a);for(const v of f)u.definedProperties.add(v);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=n.mergeEvaluated.props(s,(0,n.toHash)(f),u.props));const h=f.filter(v=>!(0,n.alwaysValidSchema)(u,a[v]));if(h.length===0)return;const g=s.name("valid");for(const v of h)y(v)?b(v):(s.if((0,t.propertyInData)(s,c,v,u.opts.ownProperties)),b(v),u.allErrors||s.else().var(g,!0),s.endIf()),o.it.definedProperties.add(v),o.ok(g);function y(v){return u.opts.useDefaults&&!u.compositeRule&&a[v].default!==void 0}function b(v){o.subschema({keyword:"properties",schemaProp:v,dataProp:v},g)}}};return h3.default=i,h3}var p3={},mU;function SIe(){if(mU)return p3;mU=1,Object.defineProperty(p3,"__esModule",{value:!0});const e=cl(),t=pn(),n=qn(),r=qn(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:a,data:l,parentSchema:c,it:u}=o,{opts:f}=u,h=(0,e.allSchemaProperties)(a),g=h.filter(A=>(0,n.alwaysValidSchema)(u,a[A]));if(h.length===0||g.length===h.length&&(!u.opts.unevaluated||u.props===!0))return;const y=f.strictSchema&&!f.allowMatchingProperties&&c.properties,b=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,r.evaluatedPropsToName)(s,u.props));const{props:v}=u;S();function S(){for(const A of h)y&&C(A),u.allErrors?w(A):(s.var(b,!0),w(A),s.if(b))}function C(A){for(const E in y)new RegExp(A).test(E)&&(0,n.checkStrictMode)(u,`property ${E} matches pattern ${A} (use allowMatchingProperties)`)}function w(A){s.forIn("key",l,E=>{s.if((0,t._)`${(0,e.usePattern)(o,A)}.test(${E})`,()=>{const D=g.includes(A);D||o.subschema({keyword:"patternProperties",schemaProp:A,dataProp:E,dataPropType:r.Type.Str},b),u.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${E}]`,!0):!D&&!u.allErrors&&s.if((0,t.not)(b),()=>s.break())})})}}};return p3.default=i,p3}var m3={},gU;function wIe(){if(gU)return m3;gU=1,Object.defineProperty(m3,"__esModule",{value:!0});const e=qn(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:i,it:o}=n;if((0,e.alwaysValidSchema)(o,i)){n.fail();return}const s=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),n.failResult(s,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return m3.default=t,m3}var g3={},yU;function CIe(){if(yU)return g3;yU=1,Object.defineProperty(g3,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:cl().validateUnion,error:{message:"must match a schema in anyOf"}};return g3.default=t,g3}var y3={},bU;function EIe(){if(bU)return y3;bU=1,Object.defineProperty(y3,"__esModule",{value:!0});const e=pn(),t=qn(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:s,parentSchema:a,it:l}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&a.discriminator)return;const c=s,u=o.let("valid",!1),f=o.let("passing",null),h=o.name("_valid");i.setParams({passing:f}),o.block(g),i.result(u,()=>i.reset(),()=>i.error(!0));function g(){c.forEach((y,b)=>{let v;(0,t.alwaysValidSchema)(l,y)?o.var(h,!0):v=i.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},h),b>0&&o.if((0,e._)`${h} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${b}]`).else(),o.if(h,()=>{o.assign(u,!0),o.assign(f,b),v&&i.mergeEvaluated(v,e.Name)})})}}};return y3.default=r,y3}var b3={},vU;function AIe(){if(vU)return b3;vU=1,Object.defineProperty(b3,"__esModule",{value:!0});const e=qn(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:i,it:o}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=r.name("valid");i.forEach((a,l)=>{if((0,e.alwaysValidSchema)(o,a))return;const c=n.subschema({keyword:"allOf",schemaProp:l},s);n.ok(s),n.mergeEvaluated(c)})}};return b3.default=t,b3}var v3={},xU;function kIe(){if(xU)return v3;xU=1,Object.defineProperty(v3,"__esModule",{value:!0});const e=pn(),t=qn(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:a,it:l}=o;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const c=i(l,"then"),u=i(l,"else");if(!c&&!u)return;const f=s.let("valid",!0),h=s.name("_valid");if(g(),o.reset(),c&&u){const b=s.let("ifClause");o.setParams({ifClause:b}),s.if(h,y("then",b),y("else",b))}else c?s.if(h,y("then")):s.if((0,e.not)(h),y("else"));o.pass(f,()=>o.error(!0));function g(){const b=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},h);o.mergeEvaluated(b)}function y(b,v){return()=>{const S=o.subschema({keyword:b},h);s.assign(f,h),o.mergeValidEvaluated(S,f),v?s.assign(v,(0,e._)`${b}`):o.setParams({ifClause:b})}}}};function i(o,s){const a=o.schema[s];return a!==void 0&&!(0,t.alwaysValidSchema)(o,a)}return v3.default=r,v3}var x3={},SU;function _Ie(){if(SU)return x3;SU=1,Object.defineProperty(x3,"__esModule",{value:!0});const e=qn(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:i}){r.if===void 0&&(0,e.checkStrictMode)(i,`"${n}" without "if" is ignored`)}};return x3.default=t,x3}var wU;function DIe(){if(wU)return a3;wU=1,Object.defineProperty(a3,"__esModule",{value:!0});const e=Aee(),t=mIe(),n=kee(),r=gIe(),i=yIe(),o=bIe(),s=vIe(),a=_ee(),l=xIe(),c=SIe(),u=wIe(),f=CIe(),h=EIe(),g=AIe(),y=kIe(),b=_Ie();function v(S=!1){const C=[u.default,f.default,h.default,g.default,y.default,b.default,s.default,a.default,o.default,l.default,c.default];return S?C.push(t.default,r.default):C.push(e.default,n.default),C.push(i.default),C}return a3.default=v,a3}var S3={},w3={},CU;function OIe(){if(CU)return w3;CU=1,Object.defineProperty(w3,"__esModule",{value:!0});const e=pn(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,i){const{gen:o,data:s,$data:a,schema:l,schemaCode:c,it:u}=r,{opts:f,errSchemaPath:h,schemaEnv:g,self:y}=u;if(!f.validateFormats)return;a?b():v();function b(){const S=o.scopeValue("formats",{ref:y.formats,code:f.code.formats}),C=o.const("fDef",(0,e._)`${S}[${c}]`),w=o.let("fType"),A=o.let("format");o.if((0,e._)`typeof ${C} == "object" && !(${C} instanceof RegExp)`,()=>o.assign(w,(0,e._)`${C}.type || "string"`).assign(A,(0,e._)`${C}.validate`),()=>o.assign(w,(0,e._)`"string"`).assign(A,C)),r.fail$data((0,e.or)(E(),D()));function E(){return f.strictSchema===!1?e.nil:(0,e._)`${c} && !${A}`}function D(){const O=g.$async?(0,e._)`(${C}.async ? await ${A}(${s}) : ${A}(${s}))`:(0,e._)`${A}(${s})`,T=(0,e._)`(typeof ${A} == "function" ? ${O} : ${A}.test(${s}))`;return(0,e._)`${A} && ${A} !== true && ${w} === ${i} && !${T}`}}function v(){const S=y.formats[l];if(!S){E();return}if(S===!0)return;const[C,w,A]=D(S);C===i&&r.pass(O());function E(){if(f.strictSchema===!1){y.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${l}" ignored in schema at path "${h}"`}}function D(T){const I=T instanceof RegExp?(0,e.regexpCode)(T):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,N=o.scopeValue("formats",{key:l,ref:T,code:I});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,e._)`${N}.validate`]:["string",T,N]}function O(){if(typeof S=="object"&&!(S instanceof RegExp)&&S.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${A}(${s})`}return typeof w=="function"?(0,e._)`${A}(${s})`:(0,e._)`${A}.test(${s})`}}}};return w3.default=n,w3}var EU;function TIe(){if(EU)return S3;EU=1,Object.defineProperty(S3,"__esModule",{value:!0});const t=[OIe().default];return S3.default=t,S3}var Yf={},AU;function MIe(){return AU||(AU=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.contentVocabulary=Yf.metadataVocabulary=void 0,Yf.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Yf.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Yf}var kU;function RIe(){if(kU)return Wx;kU=1,Object.defineProperty(Wx,"__esModule",{value:!0});const e=nIe(),t=pIe(),n=DIe(),r=TIe(),i=MIe(),o=[e.default,t.default,(0,n.default)(),r.default,i.metadataVocabulary,i.contentVocabulary];return Wx.default=o,Wx}var C3={},w1={},_U;function IIe(){if(_U)return w1;_U=1,Object.defineProperty(w1,"__esModule",{value:!0}),w1.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(w1.DiscrError=e={})),w1}var DU;function PIe(){if(DU)return C3;DU=1,Object.defineProperty(C3,"__esModule",{value:!0});const e=pn(),t=IIe(),n=CM(),r=Kw(),i=qn(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:l}})=>a===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:a,tag:l,tagName:c}})=>(0,e._)`{error: ${a}, tag: ${c}, tagValue: ${l}}`},code(a){const{gen:l,data:c,schema:u,parentSchema:f,it:h}=a,{oneOf:g}=f;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=u.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!g)throw new Error("discriminator: requires oneOf keyword");const b=l.let("valid",!1),v=l.const("tag",(0,e._)`${c}${(0,e.getProperty)(y)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>S(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:y})),a.ok(b);function S(){const A=w();l.if(!1);for(const E in A)l.elseIf((0,e._)`${v} === ${E}`),l.assign(b,C(A[E]));l.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:y}),l.endIf()}function C(A){const E=l.name("valid"),D=a.subschema({keyword:"oneOf",schemaProp:A},E);return a.mergeEvaluated(D,e.Name),E}function w(){var A;const E={},D=T(f);let O=!0;for(let $=0;$<g.length;$++){let R=g[$];if(R?.$ref&&!(0,i.schemaHasRulesButRef)(R,h.self.RULES)){const j=R.$ref;if(R=n.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,j),R instanceof n.SchemaEnv&&(R=R.schema),R===void 0)throw new r.default(h.opts.uriResolver,h.baseId,j)}const F=(A=R?.properties)===null||A===void 0?void 0:A[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);O=O&&(D||T(R)),I(F,$)}if(!O)throw new Error(`discriminator: "${y}" must be required`);return E;function T({required:$}){return Array.isArray($)&&$.includes(y)}function I($,R){if($.const)N($.const,R);else if($.enum)for(const F of $.enum)N(F,R);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function N($,R){if(typeof $!="string"||$ in E)throw new Error(`discriminator: "${y}" values must be unique strings`);E[$]=R}}}};return C3.default=s,C3}const jIe="http://json-schema.org/draft-07/schema#",$Ie="http://json-schema.org/draft-07/schema#",LIe="Core schema meta-schema",NIe={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},FIe=["object","boolean"],BIe={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},zIe={$schema:jIe,$id:$Ie,title:LIe,definitions:NIe,type:FIe,properties:BIe,default:!0};var OU;function Dee(){return OU||(OU=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=QRe(),r=RIe(),i=PIe(),o=zIe,s=["/properties"],a="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(y,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Gw();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=pn();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=wM();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=Kw();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(Bx,Bx.exports)),Bx.exports}var HIe=Dee();const Oee=us(HIe);var E3={exports:{}},_E={},TU;function UIe(){return TU||(TU=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(I,N){return{validate:I,compare:N}}e.fullFormats={date:t(o,s),time:t(l,c),"date-time":t(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:b,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:T,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:S,int32:{type:"number",validate:A},int64:{type:"number",validate:E},float:{type:"number",validate:D},double:{type:"number",validate:D},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(I){return I%4===0&&(I%100!==0||I%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(I){const N=r.exec(I);if(!N)return!1;const $=+N[1],R=+N[2],F=+N[3];return R>=1&&R<=12&&F>=1&&F<=(R===2&&n($)?29:i[R])}function s(I,N){if(I&&N)return I>N?1:I<N?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(I,N){const $=a.exec(I);if(!$)return!1;const R=+$[1],F=+$[2],j=+$[3],z=$[5];return(R<=23&&F<=59&&j<=59||R===23&&F===59&&j===60)&&(!N||z!=="")}function c(I,N){if(!(I&&N))return;const $=a.exec(I),R=a.exec(N);if($&&R)return I=$[1]+$[2]+$[3]+($[4]||""),N=R[1]+R[2]+R[3]+(R[4]||""),I>N?1:I<N?-1:0}const u=/t|\s/i;function f(I){const N=I.split(u);return N.length===2&&o(N[0])&&l(N[1],!0)}function h(I,N){if(!(I&&N))return;const[$,R]=I.split(u),[F,j]=N.split(u),z=s($,F);if(z!==void 0)return z||c(R,j)}const g=/\/|:/,y=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function b(I){return g.test(I)&&y.test(I)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function S(I){return v.lastIndex=0,v.test(I)}const C=-2147483648,w=2**31-1;function A(I){return Number.isInteger(I)&&I<=w&&I>=C}function E(I){return Number.isInteger(I)}function D(){return!0}const O=/[^\\]\\Z/;function T(I){if(O.test(I))return!1;try{return new RegExp(I),!0}catch{return!1}}})(_E)),_E}var DE={},MU;function VIe(){return MU||(MU=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Dee(),n=pn(),r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},o={message:({keyword:a,schemaCode:l})=>n.str`should be ${i[a].okStr} ${l}`,params:({keyword:a,schemaCode:l})=>n._`{comparison: ${i[a].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(a){const{gen:l,data:c,schemaCode:u,keyword:f,it:h}=a,{opts:g,self:y}=h;if(!g.validateFormats)return;const b=new t.KeywordCxt(h,y.RULES.all.format.definition,"format");b.$data?v():S();function v(){const w=l.scopeValue("formats",{ref:y.formats,code:g.code.formats}),A=l.const("fmt",n._`${w}[${b.schemaCode}]`);a.fail$data(n.or(n._`typeof ${A} != "object"`,n._`${A} instanceof RegExp`,n._`typeof ${A}.compare != "function"`,C(A)))}function S(){const w=b.schema,A=y.formats[w];if(!A||A===!0)return;if(typeof A!="object"||A instanceof RegExp||typeof A.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const E=l.scopeValue("formats",{key:w,ref:A,code:g.code.formats?n._`${g.code.formats}${n.getProperty(w)}`:void 0});a.fail$data(C(E))}function C(w){return n._`${w}.compare(${c}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const s=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=s})(DE)),DE}var RU;function WIe(){return RU||(RU=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=UIe(),r=VIe(),i=pn(),o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),a=(c,u={keywords:!0})=>{if(Array.isArray(u))return l(c,u,n.fullFormats,o),c;const[f,h]=u.mode==="fast"?[n.fastFormats,s]:[n.fullFormats,o],g=u.formats||n.formatNames;return l(c,g,f,h),u.keywords&&r.default(c),c};a.get=(c,u="full")=>{const h=(u==="fast"?n.fastFormats:n.fullFormats)[c];if(!h)throw new Error(`Unknown format "${c}"`);return h};function l(c,u,f,h){var g,y;(g=(y=c.opts.code).formats)!==null&&g!==void 0||(y.formats=i._`require("ajv-formats/dist/formats").${h}`);for(const b of u)c.addFormat(b,f[b])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(E3,E3.exports)),E3.exports}var qIe=WIe();const IU=us(qIe),GIe={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},KIe=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,YIe=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function XIe(e,t,n={},r,i=Oee,o){let s=new i({...GIe,...n});return r?IU(s,r):r!==!1&&IU(s),s.addFormat("data-url",YIe),s.addFormat("color",KIe),s.addKeyword(fu),s.addKeyword(jT),Array.isArray(e)&&s.addMetaSchema(e),Bn(t)&&Object.keys(t).forEach(a=>{s.addFormat(a,t[a])}),o&&(s=o(s)),s}function ZIe(e=[],t){return e.map(r=>{var i;const{instancePath:o,keyword:s,params:a,schemaPath:l,parentSchema:c,...u}=r;let{message:f=""}=u,h=o.replace(/\//g,"."),g=`${h} ${f}`.trim(),y="";const b=[...((i=a.deps)===null||i===void 0?void 0:i.split(", "))||[],a.missingProperty,a.property].filter(v=>v);if(b.length>0)b.forEach(v=>{const S=h?`${h}.${v}`:v;let C=$t(We(t,`${S.replace(/^\./,"")}`)).title;if(C===void 0){const w=l.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([v]);C=$t(We(t,w)).title}if(C)f=f.replace(`'${v}'`,`'${C}'`),y=C;else{const w=We(c,[Un,v,"title"]);w&&(f=f.replace(`'${v}'`,`'${w}'`),y=w)}}),g=f;else{const v=$t(We(t,`${h.replace(/^\./,"")}`)).title;if(v)g=`'${v}' ${f}`.trim(),y=v;else{const S=c?.title;S&&(g=`'${S}' ${f}`.trim(),y=S)}}return"missingProperty"in a&&(h=h?`${h}.${a.missingProperty}`:a.missingProperty),{name:s,property:h,message:f,params:a,stack:g,schemaPath:l,title:y}}).reduce((r,i)=>{const{message:o,schemaPath:s}=i,a=s?.indexOf(`/${Pn}/`),l=s?.indexOf(`/${nn}/`);let c;return a&&a>=0?c=s?.substring(0,a):l&&l>=0&&(c=s?.substring(0,l)),c&&r.find(f=>{var h;return f.message===o&&((h=f.schemaPath)===null||h===void 0?void 0:h.startsWith(c))})||r.push(i),r},[])}function JIe(e,t,n,r,i,o,s){const{validationError:a}=t;let l=ZIe(t.errors,s);a&&(l=[...l,{stack:a.message}]),typeof o=="function"&&(l=o(l,s));let c=AOe(l);if(a&&(c={...c,$schema:{__errors:[a.message]}}),typeof i!="function")return{errors:l,errorSchema:c};const u=FQ(e,r,n,r,!0),f=i(u,Qk(u),s,c),h=ree(f);return Z5({errors:l,errorSchema:c},h)}class QIe{constructor(t,n){const{additionalMetaSchemas:r,customFormats:i,ajvOptionsOverrides:o,ajvFormatOptions:s,AjvClass:a,extenderFn:l}=t;this.ajv=XIe(r,i,o,s,a,l),this.localizer=n}reset(){this.ajv.removeSchema()}rawValidation(t,n){var r,i;let o,s;try{t[pr]&&(s=this.ajv.getSchema(t[pr])),s===void 0&&(s=this.ajv.compile(t)),s(n)}catch(l){o=l}let a;return s&&(typeof this.localizer=="function"&&(((r=s.errors)!==null&&r!==void 0?r:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var f;!((f=l.params)===null||f===void 0)&&f[u]&&(l.params[u]=`'${l.params[u]}'`)}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(s.errors),((i=s.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var c;["missingProperty","property"].forEach(u=>{var f;!((f=l.params)===null||f===void 0)&&f[u]&&(l.params[u]=l.params[u].slice(1,-1))}),!((c=l.params)===null||c===void 0)&&c.deps&&(l.params.deps=l.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),a=s.errors||void 0,s.errors=null),{errors:a,validationError:o}}validateFormData(t,n,r,i,o){const s=this.rawValidation(n,t);return JIe(this,s,t,n,r,i,o)}handleSchemaUpdate(t){var n,r;const i=(n=t[pr])!==null&&n!==void 0?n:MJ;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):_r(t,(r=this.ajv.getSchema(i))===null||r===void 0?void 0:r.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i))}isValid(t,n,r){var i;try{this.handleSchemaUpdate(r);const o=pM(t),s=(i=o[pr])!==null&&i!==void 0?i:yOe(o);let a;return a=this.ajv.getSchema(s),a===void 0&&(a=this.ajv.addSchema(o,s).getSchema(s)||this.ajv.compile(o)),a(n)}catch(o){return console.warn("Error encountered compiling schema:",o),!1}}}function ePe(e={},t){return new QIe(e,t)}const tPe=ePe();function nPe({uiSchema:e,registry:t,...n}){const{translateString:r}=t;return m.jsx(_n,{title:r(un.AddItemButton),...n,color:"primary",children:m.jsx(fc,{})})}function rPe(e){const{children:t,buttonsProps:n,hasDescription:r,hasToolbar:i,uiSchema:o,registry:s}=e,a=$t(o),l=Bt("ArrayFieldItemButtonsTemplate",s,a),c={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return m.jsxs(dt,{container:!0,alignItems:"center",children:[m.jsx(dt,{size:{xs:8,sm:9,md:10,lg:11,xl:11.25},style:{overflow:"auto"},children:m.jsx(ce,{mb:2,children:m.jsx(Ur,{elevation:2,children:m.jsx(ce,{p:2,children:t})})})}),i&&m.jsx(dt,{sx:{mt:r?-5:-1.5},children:m.jsx(l,{...n,style:c})})]})}function iPe(e){const{canAdd:t,disabled:n,fieldPathId:r,uiSchema:i,items:o,optionalDataControl:s,onAddClick:a,readonly:l,registry:c,required:u,schema:f,title:h}=e,g=$t(i),y=Bt("ArrayFieldDescriptionTemplate",c,g),b=Bt("ArrayFieldTitleTemplate",c,g),v=!l&&!n,{ButtonTemplates:{AddButton:S}}=c.templates;return m.jsx(Ur,{elevation:2,children:m.jsxs(ce,{p:2,children:[m.jsx(b,{fieldPathId:r,title:g.title||h,schema:f,uiSchema:i,required:u,registry:c,optionalDataControl:v?s:void 0}),m.jsx(y,{fieldPathId:r,description:g.description||f.description,schema:f,uiSchema:i,registry:c}),v?void 0:s,o,t&&m.jsx(dt,{container:!0,justifyContent:"flex-end",children:m.jsx(dt,{children:m.jsx(ce,{mt:2,children:m.jsx(S,{id:Kl(r,"add"),className:"rjsf-array-item-add",onClick:a,disabled:n||l,uiSchema:i,registry:c})})})})]})})}function oPe(e){return Qe("MuiInputAdornment",e)}const PU=tt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var jU;const sPe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},aPe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:s}=e,a={root:["root",n&&"disablePointerEvents",i&&`position${ye(i)}`,s,r&&"hiddenLabel",o&&`size${ye(o)}`]};return et(a,oPe,t)},lPe=me("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:sPe})(Ge(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${PU.positionStart}&:not(.${PU.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),AM=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...f}=r,h=ll()||{};let g=u;u&&h.variant,h&&!g&&(g=h.variant);const y={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:c,variant:g},b=aPe(y);return m.jsx(fw.Provider,{value:null,children:m.jsx(lPe,{as:s,ownerState:y,className:Te(b.root,o),ref:n,...f,children:typeof i=="string"&&!l?m.jsx(ie,{color:"textSecondary",children:i}):m.jsxs(_.Fragment,{children:[c==="start"?jU||(jU=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})}),cPe=["date","datetime-local","file","time"];function uPe(e){const{id:t,name:n,htmlName:r,placeholder:i,required:o,readonly:s,disabled:a,type:l,label:c,hideLabel:u,hideError:f,value:h,onChange:g,onChangeOverride:y,onBlur:b,onFocus:v,autofocus:S,options:C,schema:w,uiSchema:A,rawErrors:E=[],errorSchema:D,registry:O,InputLabelProps:T,InputProps:I,slotProps:N,...$}=e,{ClearButton:R}=O.templates.ButtonTemplates,{step:F,min:j,max:z,accept:L,...q}=JQ(w,l,C),V={...N?.htmlInput,step:F,min:j,max:z,accept:L,...w.examples?{list:Bw(t)}:void 0},U=({target:{value:Y}})=>g(Y===""?C.emptyValue:Y),K=({target:Y})=>b(t,Y&&Y.value),B=({target:Y})=>v(t,Y&&Y.value),W=cPe.includes(l)?{...N?.inputLabel,...T,shrink:!0}:{...N?.inputLabel,...T},X=_.useCallback(Y=>{var J;Y.preventDefault(),Y.stopPropagation(),g((J=C.emptyValue)!==null&&J!==void 0?J:"")},[g,C.emptyValue]),H={...I,...N?.input};if(C.allowClearTextInputs&&h&&!s&&!a){const Y=m.jsx(AM,{position:"end",children:m.jsx(R,{registry:O,onClick:X})});H.endAdornment=H.endAdornment?m.jsxs(m.Fragment,{children:[H.endAdornment,Y]}):Y}return m.jsxs(m.Fragment,{children:[m.jsx(Lr,{id:t,name:r||t,placeholder:i,label:sp(c||void 0,u,void 0),autoFocus:S,required:o,disabled:a||s,slotProps:{...N,input:H,htmlInput:V,inputLabel:W},...q,value:h||h===0?h:"",error:E.length>0,onChange:y||U,onBlur:K,onFocus:B,...$,"aria-describedby":Us(t,!!w.examples)}),m.jsx(bee,{id:t,schema:w})]})}function dPe(e){const{id:t,description:n,registry:r,uiSchema:i}=e;return n?m.jsx(ie,{id:t,variant:"subtitle2",style:{marginTop:"5px"},children:m.jsx(vM,{description:n,registry:r,uiSchema:i})}):null}function fPe({errors:e,registry:t}){const{translateString:n}=t;return m.jsx(Ur,{elevation:2,children:m.jsxs(ce,{mb:2,p:2,children:[m.jsx(ie,{variant:"h6",children:n(un.ErrorsLabel)}),m.jsx(bc,{dense:!0,children:e.map((r,i)=>m.jsxs(yf,{children:[m.jsx(Ul,{children:m.jsx(vf,{color:"error"})}),m.jsx(Va,{primary:r.stack})]},i))})]})})}function Xm(e){const{icon:t,color:n,uiSchema:r,registry:i,...o}=e;return m.jsx(_n,{...o,size:"small",color:n,children:t})}function hPe(e){const{registry:{translateString:t}}=e;return m.jsx(Xm,{title:t(un.CopyButton),...e,icon:m.jsx(Ah,{fontSize:"small"})})}function pPe(e){const{registry:{translateString:t}}=e;return m.jsx(Xm,{title:t(un.MoveDownButton),...e,icon:m.jsx(vT,{fontSize:"small"})})}function mPe(e){const{registry:{translateString:t}}=e;return m.jsx(Xm,{title:t(un.MoveUpButton),...e,icon:m.jsx(xT,{fontSize:"small"})})}function Tee(e){const{iconType:t,...n}=e,{registry:{translateString:r}}=n;return m.jsx(Xm,{title:r(un.RemoveButton),...n,color:"error",icon:m.jsx(oZ,{fontSize:t==="default"?void 0:"small"})})}function gPe(e){const{iconType:t,...n}=e,{registry:{translateString:r}}=n;return m.jsx(Xm,{title:r(un.ClearButton),...n,icon:m.jsx(VCe,{fontSize:t==="default"?void 0:"small"})})}function yPe(e){const{errors:t=[],fieldPathId:n}=e;if(t.length===0)return null;const r=uM(n);return m.jsx(bc,{id:r,dense:!0,disablePadding:!0,children:t.map((i,o)=>m.jsx(yf,{disableGutters:!0,children:m.jsx(bw,{component:"div",id:`${r}-${o}`,children:i})},o))})}function bPe(e){const{fieldPathId:t,help:n,uiSchema:r,registry:i}=e;return n?m.jsx(bw,{component:"div",id:dM(t),style:{marginTop:"5px"},children:m.jsx(xM,{help:n,registry:i,uiSchema:r})}):null}function vPe(e){const{id:t,children:n,classNames:r,style:i,disabled:o,displayLabel:s,hidden:a,label:l,onKeyRename:c,onKeyRenameBlur:u,onRemoveProperty:f,readonly:h,required:g,rawErrors:y=[],errors:b,help:v,description:S,rawDescription:C,schema:w,uiSchema:A,registry:E}=e,D=$t(A),O=Bt("WrapIfAdditionalTemplate",E,D);if(a)return m.jsx("div",{style:{display:"none"},children:n});const T=D.widget==="checkbox";return m.jsx(O,{classNames:r,style:i,disabled:o,id:t,label:l,displayLabel:s,rawDescription:C,onKeyRename:c,onKeyRenameBlur:u,onRemoveProperty:f,readonly:h,required:g,schema:w,uiSchema:A,registry:E,children:m.jsxs(pa,{fullWidth:!0,error:!!y.length,required:g,children:[n,s&&!T&&C?m.jsx(ie,{variant:"caption",color:"textSecondary",children:S}):null,b,v]})})}function xPe(e){const{children:t,column:n,...r}=e;return m.jsx(dt,{container:!n,...r,children:t})}function SPe(e){const{optionSchemaField:t,selector:n}=e;return m.jsxs(ce,{sx:{mb:2},children:[m.jsx(pa,{fullWidth:!0,sx:{mb:2},children:n}),t]})}function wPe(e){const{description:t,title:n,properties:r,required:i,disabled:o,readonly:s,uiSchema:a,fieldPathId:l,schema:c,formData:u,optionalDataControl:f,onAddProperty:h,registry:g}=e,y=$t(a),b=Bt("TitleFieldTemplate",g,y),v=Bt("DescriptionFieldTemplate",g,y),S=!s&&!o,{ButtonTemplates:{AddButton:C}}=g.templates;return m.jsxs(m.Fragment,{children:[n&&m.jsx(b,{id:zw(l),title:n,required:i,schema:c,uiSchema:a,registry:g,optionalDataControl:S?f:void 0}),t&&m.jsx(v,{id:op(l),description:t,schema:c,uiSchema:a,registry:g}),m.jsxs(dt,{container:!0,spacing:2,style:{marginTop:"10px"},children:[S?void 0:f,r.map((w,A)=>w.hidden?w.content:m.jsx(dt,{size:{xs:12},style:{marginBottom:"10px"},children:w.content},A))]}),RJ(c,a,u)&&m.jsx(dt,{container:!0,justifyContent:"flex-end",children:m.jsx(dt,{children:m.jsx(C,{id:Kl(l,"add"),className:"rjsf-object-property-expand",onClick:h,disabled:o||s,uiSchema:a,registry:g})})})]})}function CPe(e){const{id:t,registry:n,label:r,onAddClick:i,onRemoveClick:o}=e;return i?m.jsx(Xm,{id:t,registry:n,className:"rjsf-add-optional-data",onClick:i,title:r,icon:m.jsx(fc,{fontSize:"small"})}):o?m.jsx(Tee,{id:t,registry:n,className:"rjsf-remove-optional-data",onClick:o,title:r}):m.jsx("em",{id:t,children:r})}function EPe({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=QQ(e);return n?null:m.jsx(ce,{marginTop:3,children:m.jsx(kt,{type:"submit",variant:"contained",color:"primary",...r,children:t})})}function APe({id:e,title:t,optionalDataControl:n}){let r=m.jsx(ie,{variant:"h5",children:t});return n&&(r=m.jsxs(dt,{container:!0,spacing:0,children:[m.jsx(dt,{size:"grow",children:r}),m.jsx(dt,{justifyContent:"flex-end",children:n})]})),m.jsxs(ce,{id:e,mb:1,mt:1,children:[r,m.jsx(gi,{})]})}function kPe(e){const{children:t,classNames:n,style:r,disabled:i,id:o,label:s,displayLabel:a,onKeyRenameBlur:l,onRemoveProperty:c,readonly:u,required:f,schema:h,uiSchema:g,registry:y}=e,{templates:b,translateString:v}=y,{RemoveButton:S}=b.ButtonTemplates,C=v(un.KeyLabel,[s]),w=fu in h,A={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return w?m.jsxs(dt,{container:!0,alignItems:"flex-start",spacing:2,className:n,style:r,children:[m.jsx(dt,{size:5.5,children:m.jsx(Lr,{fullWidth:!0,required:f,label:a?C:void 0,defaultValue:s,disabled:i||u,id:`${o}-key`,name:`${o}-key`,onBlur:u?void 0:l,type:"text"})}),m.jsx(dt,{size:5.5,children:t}),m.jsx(dt,{sx:{mt:1.5},children:m.jsx(S,{id:Kl(o,"remove"),className:"rjsf-object-property-remove",iconType:"default",style:A,disabled:i||u,onClick:c,uiSchema:g,registry:y})})]},`${o}-key`):m.jsx("div",{className:n,style:r,children:t})}function Mee(){return{ArrayFieldItemTemplate:rPe,ArrayFieldTemplate:iPe,BaseInputTemplate:uPe,ButtonTemplates:{AddButton:nPe,CopyButton:hPe,MoveDownButton:pPe,MoveUpButton:mPe,RemoveButton:Tee,SubmitButton:EPe,ClearButton:gPe},DescriptionFieldTemplate:dPe,ErrorListTemplate:fPe,FieldErrorTemplate:yPe,FieldHelpTemplate:bPe,FieldTemplate:vPe,GridTemplate:xPe,MultiSchemaFieldTemplate:SPe,ObjectFieldTemplate:wPe,OptionalDataControlsTemplate:CPe,TitleFieldTemplate:APe,WrapIfAdditionalTemplate:kPe}}function _Pe(e){var t;const{schema:n,id:r,htmlName:i,value:o,disabled:s,readonly:a,label:l="",hideLabel:c,autofocus:u,onChange:f,onBlur:h,onFocus:g,registry:y,options:b,uiSchema:v}=e,S=Bt("DescriptionFieldTemplate",y,b),C=py(n),w=(O,T)=>f(T),A=()=>h(r,o),E=()=>g(r,o),D=(t=b.description)!==null&&t!==void 0?t:n.description;return m.jsxs(m.Fragment,{children:[!c&&D&&m.jsx(S,{id:op(r),description:D,schema:n,uiSchema:v,registry:y}),m.jsx(Ls,{control:m.jsx(Wl,{id:r,name:i||r,checked:typeof o>"u"?!1:!!o,required:C,disabled:s||a,autoFocus:u,onChange:w,onBlur:A,onFocus:E,"aria-describedby":Us(r)}),label:sp(l,c,!1)})]})}function DPe(e){return Qe("MuiFormGroup",e)}tt("MuiFormGroup",["root","row","error"]);const OPe=e=>{const{classes:t,row:n,error:r}=e;return et({root:["root",n&&"row",r&&"error"]},DPe,t)},TPe=me("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Ree=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1,...s}=r,a=ll(),l=xf({props:r,muiFormControl:a,states:["error"]}),c={...r,row:o,error:l.error},u=OPe(c);return m.jsx(TPe,{className:Te(u.root,i),ownerState:c,ref:n,...s})});function MPe({label:e,hideLabel:t,id:n,htmlName:r,disabled:i,options:o,value:s,autofocus:a,readonly:l,required:c,onChange:u,onBlur:f,onFocus:h}){const{enumOptions:g,enumDisabled:y,inline:b,emptyValue:v}=o,S=Array.isArray(s)?s:[s],C=E=>({target:{checked:D}})=>{u(D?YQ(E,S,g):KQ(E,S,g))},w=({target:E})=>f(n,no(E&&E.value,g,v)),A=({target:E})=>h(n,no(E&&E.value,g,v));return m.jsxs(m.Fragment,{children:[sp(m.jsx(hw,{required:c,htmlFor:n,children:e||void 0}),t),m.jsx(Ree,{id:n,row:!!b,children:Array.isArray(g)&&g.map((E,D)=>{const O=Fw(E.value,S),T=Array.isArray(y)&&y.indexOf(E.value)!==-1,I=m.jsx(Wl,{id:Hw(n,D),name:r||n,checked:O,disabled:i||T||l,autoFocus:a&&D===0,onChange:C(D),onBlur:w,onFocus:A,"aria-describedby":Us(n)});return m.jsx(Ls,{control:I,label:E.label},D)})})]})}const RPe=_e(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),IPe=_e(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),PPe=me("span",{name:"MuiRadioButtonIcon",shouldForwardProp:io})({position:"relative",display:"flex"}),jPe=me(RPe,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),$Pe=me(IPe,{name:"MuiRadioButtonIcon"})(Ge(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Iee(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return m.jsxs(PPe,{className:n.root,ownerState:i,children:[m.jsx(jPe,{fontSize:r,className:n.background,ownerState:i}),m.jsx($Pe,{fontSize:r,className:n.dot,ownerState:i})]})}const Pee=_.createContext(void 0);function LPe(){return _.useContext(Pee)}function NPe(e){return Qe("MuiRadio",e)}const $U=tt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),FPe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ye(n)}`,r!=="medium"&&`size${ye(r)}`]};return{...t,...et(i,NPe,t)}},BPe=me(uT,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ye(n.size)}`],t[`color${ye(n.color)}`]]}})(Ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${$U.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${$U.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function zPe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const HPe=m.jsx(Iee,{checked:!0}),UPe=m.jsx(Iee,{}),VPe=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:o=HPe,color:s="primary",icon:a=UPe,name:l,onChange:c,size:u="medium",className:f,disabled:h,disableRipple:g=!1,slots:y={},slotProps:b={},inputProps:v,...S}=r,C=ll();let w=h;C&&typeof w>"u"&&(w=C.disabled),w??=!1;const A={...r,disabled:w,disableRipple:g,color:s,size:u},E=FPe(A),D=LPe();let O=i;const T=mk(c,D&&D.onChange);let I=l;D&&(typeof O>"u"&&(O=zPe(D.value,r.value)),typeof I>"u"&&(I=D.name));const N=b.input??v,[$,R]=lt("root",{ref:n,elementType:BPe,className:Te(E.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,...S},getSlotProps:F=>({...F,onChange:(j,...z)=>{F.onChange?.(j,...z),T(j,...z)}}),ownerState:A,additionalProps:{type:"radio",icon:_.cloneElement(a,{fontSize:a.props.fontSize??u}),checkedIcon:_.cloneElement(o,{fontSize:o.props.fontSize??u}),disabled:w,name:I,checked:O,slots:y,slotProps:{input:typeof N=="function"?N(A):N}}});return m.jsx($,{...R,classes:E})});function WPe(e){return Qe("MuiRadioGroup",e)}tt("MuiRadioGroup",["root","row","error"]);const qPe=e=>{const{classes:t,row:n,error:r}=e;return et({root:["root",n&&"row",r&&"error"]},WPe,t)},GPe=_.forwardRef(function(t,n){const{actions:r,children:i,className:o,defaultValue:s,name:a,onChange:l,value:c,...u}=t,f=_.useRef(null),h=qPe(t),[g,y]=Ya({controlled:c,default:s,name:"RadioGroup"});_.useImperativeHandle(r,()=>({focus:()=>{let C=f.current.querySelector("input:not(:disabled):checked");C||(C=f.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const b=Tr(n,f),v=Ou(a),S=_.useMemo(()=>({name:v,onChange(C){y(C.target.value),l&&l(C,C.target.value)},value:g}),[v,l,y,g]);return m.jsx(Pee.Provider,{value:S,children:m.jsx(Ree,{role:"radiogroup",ref:b,className:Te(h.root,o),...u,children:i})})});function KPe({id:e,htmlName:t,options:n,value:r,required:i,disabled:o,readonly:s,label:a,hideLabel:l,onChange:c,onBlur:u,onFocus:f}){var h;const{enumOptions:g,enumDisabled:y,emptyValue:b}=n,v=(E,D)=>c(no(D,g,b)),S=({target:E})=>u(e,no(E&&E.value,g,b)),C=({target:E})=>f(e,no(E&&E.value,g,b)),w=n?n.inline:!1,A=(h=aM(r,g))!==null&&h!==void 0?h:null;return m.jsxs(m.Fragment,{children:[sp(m.jsx(hw,{required:i,htmlFor:e,children:a||void 0}),l),m.jsx(GPe,{id:e,name:t||e,value:A,row:w,onChange:v,onBlur:S,onFocus:C,"aria-describedby":Us(e),children:Array.isArray(g)&&g.map((E,D)=>{const O=Array.isArray(y)&&y.indexOf(E.value)!==-1;return m.jsx(Ls,{control:m.jsx(VPe,{name:t||e,id:Hw(e,D),color:"primary"}),label:E.label,value:String(D),disabled:o||O||s},D)})})]})}const YPe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function XPe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const ZPe=2;function e0(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function jee(e,t){return e-t}function LU(e,t){const{index:n}=e.reduce((r,i,o)=>{const s=Math.abs(t-i);return r===null||s<r.distance||s===r.distance?{distance:s,index:o}:r},null)??{};return n}function A3(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function u6(e,t,n){return(e-t)*100/(n-t)}function JPe(e,t,n){return(n-t)*e+t}function QPe(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function eje(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(QPe(t)))}function NU({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(jee)}function k3({sliderRef:e,activeIndex:t,setActive:n}){const r=Di(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function _3(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?XPe(e,t):!1}const tje={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},nje=e=>e;let D3;function FU(){return D3===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?D3=CSS.supports("touch-action","none"):D3=!0),D3}function rje(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:f,orientation:h="horizontal",rootRef:g,scale:y=nje,step:b=1,shiftStep:v=10,tabIndex:S,value:C}=e,w=_.useRef(void 0),[A,E]=_.useState(-1),[D,O]=_.useState(-1),[T,I]=_.useState(!1),N=_.useRef(0),$=_.useRef(null),[R,F]=Ya({controlled:C,default:n??l,name:"Slider"}),j=u&&((ze,Pe,He)=>{const Je=ze.nativeEvent||ze,nt=new Je.constructor(Je.type,Je);Object.defineProperty(nt,"target",{writable:!0,value:{value:Pe,name:c}}),$.current=Pe,u(nt,Pe,He)}),z=Array.isArray(R);let L=z?R.slice().sort(jee):[R];L=L.map(ze=>ze==null?l:l0(ze,l,a));const q=s===!0&&b!==null?[...Array(Math.floor((a-l)/b)+1)].map((ze,Pe)=>({value:l+b*Pe})):s||[],V=q.map(ze=>ze.value),[U,K]=_.useState(-1),B=_.useRef(null),W=Tr(g,B),X=ze=>Pe=>{const He=Number(Pe.currentTarget.getAttribute("data-index"));Gd(Pe.target)&&K(He),O(He),ze?.onFocus?.(Pe)},H=ze=>Pe=>{Gd(Pe.target)||K(-1),O(-1),ze?.onBlur?.(Pe)},Y=(ze,Pe)=>{const He=Number(ze.currentTarget.getAttribute("data-index")),Je=L[He],nt=V.indexOf(Je);let ot=Pe;if(q&&b==null){const Xe=V[V.length-1];ot>=Xe?ot=Xe:ot<=V[0]?ot=V[0]:ot=ot<Je?V[nt-1]:V[nt+1]}if(ot=l0(ot,l,a),z){i&&(ot=l0(ot,L[He-1]||-1/0,L[He+1]||1/0));const Xe=ot;ot=NU({values:L,newValue:ot,index:He});let Lt=He;i||(Lt=ot.indexOf(Xe)),k3({sliderRef:B,activeIndex:Lt})}F(ot),K(He),j&&!_3(ot,R)&&j(ze,ot,He),f&&f(ze,$.current??ot)},J=ze=>Pe=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Pe.key)){Pe.preventDefault();const He=Number(Pe.currentTarget.getAttribute("data-index")),Je=L[He];let nt=null;if(b!=null){const ot=Pe.shiftKey?v:b;switch(Pe.key){case"ArrowUp":nt=e0(Je,ot,1,l,a);break;case"ArrowRight":nt=e0(Je,ot,o?-1:1,l,a);break;case"ArrowDown":nt=e0(Je,ot,-1,l,a);break;case"ArrowLeft":nt=e0(Je,ot,o?1:-1,l,a);break;case"PageUp":nt=e0(Je,v,1,l,a);break;case"PageDown":nt=e0(Je,v,-1,l,a);break;case"Home":nt=l;break;case"End":nt=a;break}}else if(q){const ot=V[V.length-1],Xe=V.indexOf(Je),Lt=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Nt=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Lt.includes(Pe.key)?Xe===0?nt=V[0]:nt=V[Xe-1]:Nt.includes(Pe.key)&&(Xe===V.length-1?nt=ot:nt=V[Xe+1])}nt!=null&&Y(Pe,nt)}ze?.onKeyDown?.(Pe)};Ho(()=>{r&&B.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&A!==-1&&E(-1),r&&U!==-1&&K(-1);const ne=ze=>Pe=>{ze.onChange?.(Pe),Y(Pe,Pe.target.valueAsNumber)},ee=_.useRef(void 0);let se=h;o&&h==="horizontal"&&(se+="-reverse");const ue=({finger:ze,move:Pe=!1})=>{const{current:He}=B,{width:Je,height:nt,bottom:ot,left:Xe}=He.getBoundingClientRect();let Lt;se.startsWith("vertical")?Lt=(ot-ze.y)/nt:Lt=(ze.x-Xe)/Je,se.includes("-reverse")&&(Lt=1-Lt);let Nt;if(Nt=JPe(Lt,l,a),b)Nt=eje(Nt,b,l);else{const Xn=LU(V,Nt);Nt=V[Xn]}Nt=l0(Nt,l,a);let Ot=0;if(z){Pe?Ot=ee.current:Ot=LU(L,Nt),i&&(Nt=l0(Nt,L[Ot-1]||-1/0,L[Ot+1]||1/0));const Xn=Nt;Nt=NU({values:L,newValue:Nt,index:Ot}),i&&Pe||(Ot=Nt.indexOf(Xn),ee.current=Ot)}return{newValue:Nt,activeIndex:Ot}},te=Ni(ze=>{const Pe=A3(ze,w);if(!Pe)return;if(N.current+=1,ze.type==="mousemove"&&ze.buttons===0){Z(ze);return}const{newValue:He,activeIndex:Je}=ue({finger:Pe,move:!0});k3({sliderRef:B,activeIndex:Je,setActive:E}),F(He),!T&&N.current>ZPe&&I(!0),j&&!_3(He,R)&&j(ze,He,Je)}),Z=Ni(ze=>{const Pe=A3(ze,w);if(I(!1),!Pe)return;const{newValue:He}=ue({finger:Pe,move:!0});E(-1),ze.type==="touchend"&&O(-1),f&&f(ze,$.current??He),w.current=void 0,oe()}),re=Ni(ze=>{if(r)return;FU()||ze.preventDefault();const Pe=ze.changedTouches[0];Pe!=null&&(w.current=Pe.identifier);const He=A3(ze,w);if(He!==!1){const{newValue:nt,activeIndex:ot}=ue({finger:He});k3({sliderRef:B,activeIndex:ot,setActive:E}),F(nt),j&&!_3(nt,R)&&j(ze,nt,ot)}N.current=0;const Je=Di(B.current);Je.addEventListener("touchmove",te,{passive:!0}),Je.addEventListener("touchend",Z,{passive:!0})}),oe=_.useCallback(()=>{const ze=Di(B.current);ze.removeEventListener("mousemove",te),ze.removeEventListener("mouseup",Z),ze.removeEventListener("touchmove",te),ze.removeEventListener("touchend",Z)},[Z,te]);_.useEffect(()=>{const{current:ze}=B;return ze.addEventListener("touchstart",re,{passive:FU()}),()=>{ze.removeEventListener("touchstart",re),oe()}},[oe,re]),_.useEffect(()=>{r&&oe()},[r,oe]);const fe=ze=>Pe=>{if(ze.onMouseDown?.(Pe),r||Pe.defaultPrevented||Pe.button!==0)return;Pe.preventDefault();const He=A3(Pe,w);if(He!==!1){const{newValue:nt,activeIndex:ot}=ue({finger:He});k3({sliderRef:B,activeIndex:ot,setActive:E}),F(nt),j&&!_3(nt,R)&&j(Pe,nt,ot)}N.current=0;const Je=Di(B.current);Je.addEventListener("mousemove",te,{passive:!0}),Je.addEventListener("mouseup",Z)},be=u6(z?L[0]:l,l,a),De=u6(L[L.length-1],l,a)-be,Oe=(ze={})=>{const Pe=Yi(ze),He={onMouseDown:fe(Pe||{})},Je={...Pe,...He};return{...ze,ref:W,...Je}},Ke=ze=>Pe=>{ze.onMouseOver?.(Pe);const He=Number(Pe.currentTarget.getAttribute("data-index"));O(He)},xe=ze=>Pe=>{ze.onMouseLeave?.(Pe),O(-1)},Le=(ze={})=>{const Pe=Yi(ze),He={onMouseOver:Ke(Pe||{}),onMouseLeave:xe(Pe||{})};return{...ze,...Pe,...He}},Me=ze=>({pointerEvents:A!==-1&&A!==ze?"none":void 0});let ht;return h==="vertical"&&(ht=o?"vertical-rl":"vertical-lr"),{active:A,axis:se,axisProps:tje,dragging:T,focusedThumbIndex:U,getHiddenInputProps:(ze={})=>{const Pe=Yi(ze),He={onChange:ne(Pe||{}),onFocus:X(Pe||{}),onBlur:H(Pe||{}),onKeyDown:J(Pe||{})},Je={...Pe,...He};return{tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...ze,...Je,style:{...YPe,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:ht}}},getRootProps:Oe,getThumbProps:Le,marks:q,open:D,range:z,rootRef:W,trackLeap:De,trackOffset:be,values:L,getThumbStyle:Me}}const ije=e=>!e||!ic(e);function oje(e){return Qe("MuiSlider",e)}const aa=tt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),sje=e=>{const{open:t}=e;return{offset:Te(t&&aa.valueLabelOpen),circle:aa.valueLabelCircle,label:aa.valueLabelLabel}};function aje(e){const{children:t,className:n,value:r}=e,i=sje(e);return t?_.cloneElement(t,{className:t.props.className},m.jsxs(_.Fragment,{children:[t.props.children,m.jsx("span",{className:Te(i.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:i.circle,children:m.jsx("span",{className:i.label,children:r})})})]})):null}function BU(e){return e}const lje=me("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ye(n.color)}`],n.size!=="medium"&&t[`size${ye(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ge(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${aa.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${aa.dragging}`]:{[`& .${aa.thumb}, & .${aa.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),cje=me("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),uje=me("span",{name:"MuiSlider",slot:"Track"})(Ge(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),dje=me("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ye(n.color)}`],n.size!=="medium"&&t[`thumbSize${ye(n.size)}`]]}})(Ge(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${aa.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Fn()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${aa.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${aa.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),fje=me(aje,{name:"MuiSlider",slot:"ValueLabel"})(Ge(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${aa.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${aa.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),hje=me("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>GS(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ge(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),pje=me("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>GS(e)&&e!=="markLabelActive"})(Ge(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),mje=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${ye(a)}`,l&&`size${ye(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ye(l)}`,a&&`thumbColor${ye(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return et(c,oje,s)},gje=({children:e})=>e,yje=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiSlider"}),i=mf(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:f="primary",classes:h,className:g,disableSwap:y=!1,disabled:b=!1,getAriaLabel:v,getAriaValueText:S,marks:C=!1,max:w=100,min:A=0,name:E,onChange:D,onChangeCommitted:O,orientation:T="horizontal",shiftStep:I=10,size:N="medium",step:$=1,scale:R=BU,slotProps:F,slots:j,tabIndex:z,track:L="normal",value:q,valueLabelDisplay:V="off",valueLabelFormat:U=BU,...K}=r,B={...r,isRtl:i,max:w,min:A,classes:h,disabled:b,disableSwap:y,orientation:T,marks:C,color:f,size:N,step:$,shiftStep:I,scale:R,track:L,valueLabelDisplay:V,valueLabelFormat:U},{axisProps:W,getRootProps:X,getHiddenInputProps:H,getThumbProps:Y,open:J,active:ne,axis:ee,focusedThumbIndex:se,range:ue,dragging:te,marks:Z,values:re,trackOffset:oe,trackLeap:fe,getThumbStyle:be}=rje({...B,rootRef:n});B.marked=Z.length>0&&Z.some(Dt=>Dt.label),B.dragging=te,B.focusedThumbIndex=se;const De=mje(B),Oe=j?.root??c.Root??lje,Ke=j?.rail??c.Rail??cje,xe=j?.track??c.Track??uje,Le=j?.thumb??c.Thumb??dje,Me=j?.valueLabel??c.ValueLabel??fje,ht=j?.mark??c.Mark??hje,mt=j?.markLabel??c.MarkLabel??pje,ze=j?.input??c.Input??"input",Pe=F?.root??u.root,He=F?.rail??u.rail,Je=F?.track??u.track,nt=F?.thumb??u.thumb,ot=F?.valueLabel??u.valueLabel,Xe=F?.mark??u.mark,Lt=F?.markLabel??u.markLabel,Nt=F?.input??u.input,Ot=Yr({elementType:Oe,getSlotProps:X,externalSlotProps:Pe,externalForwardedProps:K,additionalProps:{...ije(Oe)&&{as:l}},ownerState:{...B,...Pe?.ownerState},className:[De.root,g]}),Xn=Yr({elementType:Ke,externalSlotProps:He,ownerState:B,className:De.rail}),rn=Yr({elementType:xe,externalSlotProps:Je,additionalProps:{style:{...W[ee].offset(oe),...W[ee].leap(fe)}},ownerState:{...B,...Je?.ownerState},className:De.track}),at=Yr({elementType:Le,getSlotProps:Y,externalSlotProps:nt,ownerState:{...B,...nt?.ownerState},className:De.thumb}),Ht=Yr({elementType:Me,externalSlotProps:ot,ownerState:{...B,...ot?.ownerState},className:De.valueLabel}),Dn=Yr({elementType:ht,externalSlotProps:Xe,ownerState:B,className:De.mark}),Gn=Yr({elementType:mt,externalSlotProps:Lt,ownerState:B,className:De.markLabel}),yr=Yr({elementType:ze,getSlotProps:H,externalSlotProps:Nt,ownerState:B});return m.jsxs(Oe,{...Ot,children:[m.jsx(Ke,{...Xn}),m.jsx(xe,{...rn}),Z.filter(Dt=>Dt.value>=A&&Dt.value<=w).map((Dt,jt)=>{const Jt=u6(Dt.value,A,w),jn=W[ee].offset(Jt);let on;return L===!1?on=re.includes(Dt.value):on=L==="normal"&&(ue?Dt.value>=re[0]&&Dt.value<=re[re.length-1]:Dt.value<=re[0])||L==="inverted"&&(ue?Dt.value<=re[0]||Dt.value>=re[re.length-1]:Dt.value>=re[0]),m.jsxs(_.Fragment,{children:[m.jsx(ht,{"data-index":jt,...Dn,...!ic(ht)&&{markActive:on},style:{...jn,...Dn.style},className:Te(Dn.className,on&&De.markActive)}),Dt.label!=null?m.jsx(mt,{"aria-hidden":!0,"data-index":jt,...Gn,...!ic(mt)&&{markLabelActive:on},style:{...jn,...Gn.style},className:Te(De.markLabel,Gn.className,on&&De.markLabelActive),children:Dt.label}):null]},jt)}),re.map((Dt,jt)=>{const Jt=u6(Dt,A,w),jn=W[ee].offset(Jt),on=V==="off"?gje:Me;return m.jsx(on,{...!ic(on)&&{valueLabelFormat:U,valueLabelDisplay:V,value:typeof U=="function"?U(R(Dt),jt):U,index:jt,open:J===jt||ne===jt||V==="on",disabled:b},...Ht,children:m.jsx(Le,{"data-index":jt,...at,className:Te(De.thumb,at.className,ne===jt&&De.active,se===jt&&De.focusVisible),style:{...jn,...be(jt),...at.style},children:m.jsx(ze,{"data-index":jt,"aria-label":v?v(jt):o,"aria-valuenow":R(Dt),"aria-labelledby":a,"aria-valuetext":S?S(R(Dt),jt):s,value:re[jt],...yr})})},jt)})]})});function bje(e){const{value:t,readonly:n,disabled:r,onBlur:i,onFocus:o,options:s,schema:a,onChange:l,required:c,label:u,hideLabel:f,id:h}=e,g={value:t,label:u,id:h,name:h,...ZQ(a)},y=(S,C)=>{l(C??s.emptyValue)},b=({target:S})=>i(h,S&&S.value),v=({target:S})=>o(h,S&&S.value);return m.jsxs(m.Fragment,{children:[sp(m.jsx(hw,{required:c,htmlFor:h,children:u||void 0}),f),m.jsx(yje,{disabled:r||n,onChange:y,onBlur:b,onFocus:v,valueLabelDisplay:"auto",...g,"aria-describedby":Us(h)})]})}function vje({schema:e,id:t,name:n,htmlName:r,options:i,label:o,hideLabel:s,required:a,disabled:l,placeholder:c,readonly:u,value:f,multiple:h,autofocus:g,onChange:y,onBlur:b,onFocus:v,errorSchema:S,rawErrors:C=[],registry:w,uiSchema:A,hideError:E,...D}){const{enumOptions:O,enumDisabled:T,emptyValue:I}=i;h=typeof h>"u"?!1:!!h;const N=h?[]:"",$=typeof f>"u"||h&&f.length<1||!h&&f===N,R=({target:{value:B}})=>y(no(B,O,I)),F=({target:B})=>b(t,no(B&&B.value,O,I)),j=({target:B})=>v(t,no(B&&B.value,O,I)),z=aM(f,O,h),{InputLabelProps:L,SelectProps:q,autocomplete:V,...U}=D,K=!h&&e.default===void 0;return m.jsxs(Lr,{id:t,name:r||t,label:sp(o||void 0,s,void 0),value:!$&&typeof z<"u"?z:N,required:a,disabled:l||u,autoFocus:g,autoComplete:V,placeholder:c,error:C.length>0,onChange:R,onBlur:F,onFocus:j,...U,select:!0,InputLabelProps:{...L,shrink:!$},SelectProps:{...q,multiple:h},"aria-describedby":Us(t),children:[K&&m.jsx(er,{value:"",children:c}),Array.isArray(O)&&O.map(({value:B,label:W},X)=>{const H=Array.isArray(T)&&T.indexOf(B)!==-1;return m.jsx(er,{value:String(X),disabled:H,children:W},X)})]})}function xje(e){const{options:t,registry:n}=e,r=Bt("BaseInputTemplate",n,t);let i=5;return(typeof t.rows=="string"||typeof t.rows=="number")&&(i=t.rows),m.jsx(r,{...e,multiline:!0,rows:i})}function Sje(){return{CheckboxWidget:_Pe,CheckboxesWidget:MPe,RadioWidget:KPe,RangeWidget:bje,SelectWidget:vje,TextareaWidget:xje}}function $ee(){return{templates:Mee(),widgets:Sje()}}const wje=$ee();function Cje(){return wee($ee())}Cje();const Eje=wee(wje),Aje=e=>{const t=(i,o)=>{const s=e.customValidate?.(i)??[];e.onChange(i,s.length===0)},n=e.customValidate,r=_.useCallback((i,o)=>((n?.(i)??[]).forEach(a=>{if(!a.message)return;const l=a.instancePath.split("/");let c=o;for(const u of l)u!==""&&(c=c[u]??c);c.addError(a.message)}),o),[n]);return m.jsx(Eje,{schema:e.schema,uiSchema:e.uiSchema,validator:tPe,formData:e.value,liveValidate:"onChange",customValidate:r,showErrorList:!1,onChange:i=>t(i.formData,i.errors),templates:e.templates,fields:e.fields})},Lee=1024;let kje=0,OE=class{constructor(t,n){this.from=t,this.to=n}};class xn{constructor(t={}){this.id=kje++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=ls.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}xn.closedBy=new xn({deserialize:e=>e.split(" ")});xn.openedBy=new xn({deserialize:e=>e.split(" ")});xn.group=new xn({deserialize:e=>e.split(" ")});xn.isolate=new xn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});xn.contextHash=new xn({perNode:!0});xn.lookAhead=new xn({perNode:!0});xn.mounted=new xn({perNode:!0});class yy{constructor(t,n,r,i=!1){this.tree=t,this.overlay=n,this.parser=r,this.bracketed=i}static get(t){return t&&t.props&&t.props[xn.mounted.id]}}const _je=Object.create(null);class ls{constructor(t,n,r,i=0){this.name=t,this.props=n,this.id=r,this.flags=i}static define(t){let n=t.props&&t.props.length?Object.create(null):_je,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new ls(t.name||"",n,t.id,r);if(t.props){for(let o of t.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(xn.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(xn.group),o=-1;o<(i?i.length:0);o++){let s=n[o<0?r.name:i[o]];if(s)return s}}}}ls.none=new ls("",Object.create(null),0,8);class kM{constructor(t){this.types=t;for(let n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let n=[];for(let r of this.types){let i=null;for(let o of t){let s=o(r);if(s){i||(i=Object.assign({},r.props));let a=s[1],l=s[0];l.combine&&l.id in i&&(a=l.combine(i[l.id],a)),i[l.id]=a}}n.push(i?new ls(r.name,i,r.id,r.flags):r)}return new kM(n)}}const O3=new WeakMap,zU=new WeakMap;var ai;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays",e[e.EnterBracketed=16]="EnterBracketed"})(ai||(ai={}));class mi{constructor(t,n,r,i,o){if(this.type=t,this.children=n,this.positions=r,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let t=yy.get(this);if(t&&!t.overlay)return t.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(t=0){return new p_(this.topNode,t)}cursorAt(t,n=0,r=0){let i=O3.get(this)||this.topNode,o=new p_(i);return o.moveTo(t,n),O3.set(this,o._tree),o}get topNode(){return new ma(this,0,0,null)}resolve(t,n=0){let r=f2(O3.get(this)||this.topNode,t,n,!1);return O3.set(this,r),r}resolveInner(t,n=0){let r=f2(zU.get(this)||this.topNode,t,n,!0);return zU.set(this,r),r}resolveStack(t,n=0){return Tje(this,t,n)}iterate(t){let{enter:n,leave:r,from:i=0,to:o=this.length}=t,s=t.mode||0,a=(s&ai.IncludeAnonymous)>0;for(let l=this.cursor(s|ai.IncludeAnonymous);;){let c=!1;if(l.from<=o&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:OM(ls.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new mi(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new mi(ls.none,n,r,i)))}static build(t){return Mje(t)}}mi.empty=new mi(ls.none,[],[],0);class _M{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new _M(this.buffer,this.index)}}class tf{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return ls.none}toString(){let t=[];for(let n=0;n<this.buffer.length;)t.push(this.childString(n)),n=this.buffer[n+3];return t.join(",")}childString(t){let n=this.buffer[t],r=this.buffer[t+3],i=this.set.types[n],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),t+=4,r==t)return o;let s=[];for(;t<r;)s.push(this.childString(t)),t=this.buffer[t+3];return o+"("+s.join(",")+")"}findChild(t,n,r,i,o){let{buffer:s}=this,a=-1;for(let l=t;l!=n&&!(Nee(o,i,s[l+1],s[l+2])&&(a=l,r>0));l=s[l+3]);return a}slice(t,n,r){let i=this.buffer,o=new Uint16Array(n-t),s=0;for(let a=t,l=0;a<n;){o[l++]=i[a++],o[l++]=i[a++]-r;let c=o[l++]=i[a++]-r;o[l++]=i[a++]-t,s=Math.max(s,c)}return new tf(o,s,this.set)}}function Nee(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function f2(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let s=!r&&e instanceof ma&&e.index<0?null:e.parent;if(!s)return e;e=s}let o=r?0:ai.IgnoreOverlays;if(r)for(let s=e,a=s.parent;a;s=a,a=s.parent)s instanceof ma&&s.index<0&&((i=a.enter(t,n,o))===null||i===void 0?void 0:i.from)!=s.from&&(e=a);for(;;){let s=e.enter(t,n,o);if(!s)return e;e=s}}class Fee{cursor(t=0){return new p_(this,t)}getChild(t,n=null,r=null){let i=HU(this,t,n,r);return i.length?i[0]:null}getChildren(t,n=null,r=null){return HU(this,t,n,r)}resolve(t,n=0){return f2(this,t,n,!1)}resolveInner(t,n=0){return f2(this,t,n,!0)}matchContext(t){return h_(this.parent,t)}enterUnfinishedNodesBefore(t){let n=this.childBefore(t),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class ma extends Fee{constructor(t,n,r,i){super(),this._tree=t,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,n,r,i,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,c=n>0?a.length:-1;t!=c;t+=n){let u=a[t],f=l[t]+s.from,h;if(!(!(o&ai.EnterBracketed&&u instanceof mi&&(h=yy.get(u))&&!h.overlay&&h.bracketed&&r>=f&&r<=f+u.length)&&!Nee(i,r,f,f+u.length))){if(u instanceof tf){if(o&ai.ExcludeBuffers)continue;let g=u.findChild(0,u.buffer.length,n,r-f,i);if(g>-1)return new Rd(new Dje(s,u,t,f),null,g)}else if(o&ai.IncludeAnonymous||!u.type.isAnonymous||DM(u)){let g;if(!(o&ai.IgnoreMounts)&&(g=yy.get(u))&&!g.overlay)return new ma(g.tree,f,t,s);let y=new ma(u,f,t,s);return o&ai.IncludeAnonymous||!y.type.isAnonymous?y:y.nextChild(n<0?u.children.length-1:0,n,r,i,o)}}}if(o&ai.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,n,r=0){let i;if(!(r&ai.IgnoreOverlays)&&(i=yy.get(this._tree))&&i.overlay){let o=t-this.from,s=r&ai.EnterBracketed&&i.bracketed;for(let{from:a,to:l}of i.overlay)if((n>0||s?a<=o:a<o)&&(n<0||s?l>=o:l>o))return new ma(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function HU(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function h_(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class Dje{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Rd extends Fee{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return o<0?null:new Rd(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,n,r=0){if(r&ai.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return o<0?null:new Rd(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Rd(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Rd(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,o=r.buffer[this.index+3];if(o>i){let s=r.buffer[this.index+1];t.push(r.slice(i,o,s)),n.push(0)}return new mi(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Bee(e){if(!e.length)return null;let t=0,n=e[0];for(let o=1;o<e.length;o++){let s=e[o];(s.from>n.from||s.to<n.to)&&(n=s,t=o)}let r=n instanceof ma&&n.index<0?null:n.parent,i=e.slice();return r?i[t]=r:i.splice(t,1),new Oje(i,n)}class Oje{constructor(t,n){this.heads=t,this.node=n}get next(){return Bee(this.heads)}}function Tje(e,t,n){let r=e.resolveInner(t,n),i=null;for(let o=r instanceof ma?r:r.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(i||(i=[r])).push(s.resolve(t,n)),o=s}else{let s=yy.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let a=new ma(s.tree,s.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(f2(a,t,n,!1))}}return i?Bee(i):r}class p_{get name(){return this.type.name}constructor(t,n=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=n&~ai.EnterBracketed,t instanceof ma)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[t]],this.from=r+i.buffer[t+1],this.to=r+i.buffer[t+2],!0}yield(t){return t?t instanceof ma?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&ai.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ai.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&ai.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let o=n+t,s=t<0?-1:r._tree.children.length;o!=s;o+=t){let a=r._tree.children[o];if(this.mode&ai.IncludeAnonymous||a instanceof tf||!a.type.isAnonymous||DM(a))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,n););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,n=null,r=0;if(t&&t.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=o+1;break e}i=this.stack[--o]}for(let i=r;i<this.stack.length;i++)n=new Rd(this.buffer,n,this.stack[i]);return this.bufferNode=new Rd(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=!0}}}matchContext(t){if(!this.buffer)return h_(this.node.parent,t);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=t.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return h_(this._tree,t,i);let s=r[n.buffer[this.stack[o]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function DM(e){return e.children.some(t=>t instanceof tf||!t.type.isAnonymous||DM(t))}function Mje(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=Lee,reused:o=[],minRepeatType:s=r.types.length}=e,a=Array.isArray(n)?new _M(n,n.length):n,l=r.types,c=0,u=0;function f(E,D,O,T,I,N){let{id:$,start:R,end:F,size:j}=a,z=u,L=c;if(j<0)if(a.next(),j==-1){let B=o[$];O.push(B),T.push(R-E);return}else if(j==-3){c=$;return}else if(j==-4){u=$;return}else throw new RangeError(`Unrecognized record size: ${j}`);let q=l[$],V,U,K=R-E;if(F-R<=i&&(U=v(a.pos-D,I))){let B=new Uint16Array(U.size-U.skip),W=a.pos-U.size,X=B.length;for(;a.pos>W;)X=S(U.start,B,X);V=new tf(B,F-U.start,r),K=U.start-E}else{let B=a.pos-j;a.next();let W=[],X=[],H=$>=s?$:-1,Y=0,J=F;for(;a.pos>B;)H>=0&&a.id==H&&a.size>=0?(a.end<=J-i&&(y(W,X,R,Y,a.end,J,H,z,L),Y=W.length,J=a.end),a.next()):N>2500?h(R,B,W,X):f(R,B,W,X,H,N+1);if(H>=0&&Y>0&&Y<W.length&&y(W,X,R,Y,R,J,H,z,L),W.reverse(),X.reverse(),H>-1&&Y>0){let ne=g(q,L);V=OM(q,W,X,0,W.length,0,F-R,ne,ne)}else V=b(q,W,X,F-R,z-F,L)}O.push(V),T.push(K)}function h(E,D,O,T){let I=[],N=0,$=-1;for(;a.pos>D;){let{id:R,start:F,end:j,size:z}=a;if(z>4)a.next();else{if($>-1&&F<$)break;$<0&&($=j-i),I.push(R,F,j),N++,a.next()}}if(N){let R=new Uint16Array(N*4),F=I[I.length-2];for(let j=I.length-3,z=0;j>=0;j-=3)R[z++]=I[j],R[z++]=I[j+1]-F,R[z++]=I[j+2]-F,R[z++]=z;O.push(new tf(R,I[2]-F,r)),T.push(F-E)}}function g(E,D){return(O,T,I)=>{let N=0,$=O.length-1,R,F;if($>=0&&(R=O[$])instanceof mi){if(!$&&R.type==E&&R.length==I)return R;(F=R.prop(xn.lookAhead))&&(N=T[$]+R.length+F)}return b(E,O,T,I,N,D)}}function y(E,D,O,T,I,N,$,R,F){let j=[],z=[];for(;E.length>T;)j.push(E.pop()),z.push(D.pop()+O-I);E.push(b(r.types[$],j,z,N-I,R-N,F)),D.push(I-O)}function b(E,D,O,T,I,N,$){if(N){let R=[xn.contextHash,N];$=$?[R].concat($):[R]}if(I>25){let R=[xn.lookAhead,I];$=$?[R].concat($):[R]}return new mi(E,D,O,T,$)}function v(E,D){let O=a.fork(),T=0,I=0,N=0,$=O.end-i,R={size:0,start:0,skip:0};e:for(let F=O.pos-E;O.pos>F;){let j=O.size;if(O.id==D&&j>=0){R.size=T,R.start=I,R.skip=N,N+=4,T+=4,O.next();continue}let z=O.pos-j;if(j<0||z<F||O.start<$)break;let L=O.id>=s?4:0,q=O.start;for(O.next();O.pos>z;){if(O.size<0)if(O.size==-3||O.size==-4)L+=4;else break e;else O.id>=s&&(L+=4);O.next()}I=q,T+=j,N+=L}return(D<0||T==E)&&(R.size=T,R.start=I,R.skip=N),R.size>4?R:void 0}function S(E,D,O){let{id:T,start:I,end:N,size:$}=a;if(a.next(),$>=0&&T<s){let R=O;if($>4){let F=a.pos-($-4);for(;a.pos>F;)O=S(E,D,O)}D[--O]=R,D[--O]=N-E,D[--O]=I-E,D[--O]=T}else $==-3?c=T:$==-4&&(u=T);return O}let C=[],w=[];for(;a.pos>0;)f(e.start||0,e.bufferStart||0,C,w,-1,0);let A=(t=e.length)!==null&&t!==void 0?t:C.length?w[0]+C[0].length:0;return new mi(l[e.topID],C.reverse(),w.reverse(),A)}const UU=new WeakMap;function Q5(e,t){if(!e.isAnonymous||t instanceof tf||t.type!=e)return 1;let n=UU.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof mi)){n=1;break}n+=Q5(e,r)}UU.set(t,n)}return n}function OM(e,t,n,r,i,o,s,a,l){let c=0;for(let y=r;y<i;y++)c+=Q5(e,t[y]);let u=Math.ceil(c*1.5/8),f=[],h=[];function g(y,b,v,S,C){for(let w=v;w<S;){let A=w,E=b[w],D=Q5(e,y[w]);for(w++;w<S;w++){let O=Q5(e,y[w]);if(D+O>=u)break;D+=O}if(w==A+1){if(D>u){let O=y[A];g(O.children,O.positions,0,O.children.length,b[A]+C);continue}f.push(y[A])}else{let O=b[w-1]+y[w-1].length-E;f.push(OM(e,y,b,A,w,E,O,null,l))}h.push(E+C-o)}}return g(t,n,r,i,0),(a||l)(f,h,s)}class kh{constructor(t,n,r,i,o=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new kh(0,t.length,t,0,!1,r)];for(let o of n)o.to>t.length&&i.push(o);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],o=1,s=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<n.length?n[a]:null,f=u?u.fromA:1e9;if(f-l>=r)for(;s&&s.from<f;){let h=s;if(l>=h.from||f<=h.to||c){let g=Math.max(h.from,l)-c,y=Math.min(h.to,f)-c;h=g>=y?null:new kh(g,y,h.tree,h.offset+c,a>0,!!u)}if(h&&i.push(h),s.to>f)break;s=o<t.length?t[o++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}let zee=class{startParse(t,n,r){return typeof t=="string"&&(t=new Rje(t)),r=r?r.length?r.map(i=>new OE(i.from,i.to)):[new OE(0,0)]:[new OE(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let o=i.advance();if(o)return o}}};class Rje{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}new xn({perNode:!0});var VU={};class d6{constructor(t,n,r,i,o,s,a,l,c,u=0,f){this.p=t,this.stack=n,this.state=r,this.reducePos=i,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=f}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new d6(t,[],n,r,r,0,[],0,i?new WU(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:o}=this.p,s=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(r-1)*3-(t&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let f=l?this.stack[l-1]:0,h=this.bufferBase+this.buffer.length-f;if(i<o.minRepeatTerm||t&131072){let g=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,g,h+4,!0)}if(t&262144)this.state=this.stack[l];else{let g=this.stack[l-3];this.state=o.getGoto(g,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(t,n,r,i=4,o=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(n==r)return;if(s.buffer[a-2]>=n){s.buffer[a-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&(this.buffer[s-4]!=0||this.buffer[s-1]<0)){let a=!1;for(let l=s;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let o=t,{parser:s}=this.p;this.pos=i;let a=s.stateFlag(o,1);!a&&(i>r||n<=s.maxNode)&&(this.reducePos=i),this.pushState(o,a?r:Math.min(r,this.reducePos)),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}else this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4)}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new d6(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new Ije(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,s;o<n.length;o+=2)(s=n[o+1])!=this.state&&this.p.parser.hasAction(s,t)&&i.push(n[o],s);if(this.stack.length<120)for(let o=0;i.length<8&&o<n.length;o+=2){let s=n[o+1];i.some((a,l)=>l&1&&a==s)||i.push(n[o],s)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let o=n[i+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(n[i],this.pos),s.reducePos=this.pos,s.score-=200,r.push(s)}return r}forceReduce(){let{parser:t}=this.p,n=t.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!t.validAction(this.state,n)){let r=n>>19,i=n&65535,o=this.stack.length-r*3;if(o<0||t.getGoto(this.stack[o],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,c=this.stack.length-a*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=r(s,o+1);if(a!=null)return a}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=t.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(n)))}reduceContext(t,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(n)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let n=new WU(this.curContext.tracker,t);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(t){return t<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class WU{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class Ije{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class f6{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new f6(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new f6(this.stack,this.pos,this.index)}}function T3(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r<e.length;){let o=0;for(;;){let s=e.charCodeAt(r++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}n?n[i++]=o:n=new t(o)}return n}class e4{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const qU=new e4;class Pje{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=qU,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,o=this.pos+t;for(;o<r.from;){if(!i)return null;let s=this.ranges[--i];o-=r.from-s.to,r=s}for(;n<0?o>r.to:o>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];o+=s.from-r.to,r=s}return o}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let n of this.ranges)if(n.to>t)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+t,i=this.chunk.charCodeAt(n);else{let o=this.resolveOffset(t,1);if(o==null)return-1;if(r=o,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=r;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=r}acceptTokenTo(t,n){this.token.value=t,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),n=this.pos+t.length;this.chunk=n>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=qU,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,n){if(t>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>t&&(r+=this.input.read(Math.max(i.from,t),Math.min(i.to,n)))}return r}}class B0{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;jje(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}B0.prototype.contextual=B0.prototype.fallback=B0.prototype.extend=!1;B0.prototype.fallback=B0.prototype.extend=!1;function jje(e,t,n,r,i,o){let s=0,a=1<<r,{dialect:l}=n.p.parser;e:for(;(a&e[s])!=0;){let c=e[s+1];for(let g=s+3;g<c;g+=2)if((e[g+1]&a)>0){let y=e[g];if(l.allows(y)&&(t.token.value==-1||t.token.value==y||$je(y,t.token.value,i,o))){t.acceptToken(y);break}}let u=t.next,f=0,h=e[s+2];if(t.next<0&&h>f&&e[c+h*3-3]==65535){s=e[c+h*3-1];continue e}for(;f<h;){let g=f+h>>1,y=c+g+(g<<1),b=e[y],v=e[y+1]||65536;if(u<b)h=g;else if(u>=v)f=g+1;else{s=e[y+2],t.advance();continue e}}break}}function GU(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function $je(e,t,n,r){let i=GU(n,r,t);return i<0||GU(n,r,e)<i}const ws=typeof process<"u"&&VU&&/\bparse\b/.test(VU.LOG);let TE=null;function KU(e,t,n){let r=e.cursor(ai.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class Lje{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?KU(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?KU(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=r.children[i],s=this.start[n]+r.positions[i];if(s>t)return this.nextStart=s,null;if(o instanceof mi){if(s==t){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(xn.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[n]++,s+o.length>=Math.max(this.safeFrom,t)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+o.length}}}class Nje{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new e4)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:o}=i,s=i.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;c<o.length;c++){if((1<<c&s)==0)continue;let u=o[c],f=this.tokens[c];if(!(r&&!u.fallback)&&((u.contextual||f.start!=t.pos||f.mask!=s||f.context!=a)&&(this.updateCachedToken(f,u,t),f.mask=s,f.context=a),f.lookAhead>f.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let h=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!u.extend&&(r=f,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new e4,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new e4,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:o}=r.p;for(let s=0;s<o.specialized.length;s++)if(o.specialized[s]==t.value){let a=o.specializers[s](this.stream.read(t.start,t.end),r);if(a>=0&&r.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let o=0;o<i;o+=3)if(this.actions[o]==t)return i;return this.actions[i++]=t,this.actions[i++]=n,this.actions[i++]=r,i}addActions(t,n,r,i){let{state:o}=t,{parser:s}=t.p,{data:a}=s;for(let l=0;l<2;l++)for(let c=s.stateSlot(o,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=nu(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(nu(a,c+2),n,r,i));break}a[c]==n&&(i=this.putAction(nu(a,c+1),n,r,i))}return i}}class Fje{constructor(t,n,r,i){this.parser=t,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Pje(n,i),this.tokens=new Nje(t,this.stream),this.topTerm=t.top[1];let{from:o}=i[0];this.stacks=[d6.start(this,t.top[0],o)],this.fragments=r.length&&this.stream.end-o>t.bufferLength*4?new Lje(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<t.length;s++){let a=t[s];for(;;){if(this.tokens.mainToken=null,a.pos>n)r.push(a);else{if(this.advanceStack(a,r,t))continue;{i||(i=[],o=[]),i.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!r.length){let s=i&&zje(i);if(s)return ws&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw ws&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(s)return ws&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((a,l)=>l.score-a.score);r.length>s;)r.pop();r.some(a=>a.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s<r.length-1;s++){let a=r[s];for(let l=s+1;l<r.length;l++){let c=r[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&(r.sort((s,a)=>a.score-s.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let s=1;s<r.length;s++)r[s].pos<this.minStackPos&&(this.minStackPos=r[s].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,n,r){let i=t.pos,{parser:o}=this,s=ws?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let h=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(t.state,f.type.id):-1;if(h>-1&&f.length&&(!c||(f.prop(xn.contextHash)||0)==u))return t.useNode(f,h),ws&&console.log(s+this.stackID(t)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof mi)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof mi&&f.positions[0]==0)f=g;else break}}let a=o.stateSlot(t.state,4);if(a>0)return t.reduce(a),ws&&console.log(s+this.stackID(t)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;c<l.length;){let u=l[c++],f=l[c++],h=l[c++],g=c==l.length||!r,y=g?t:t.split(),b=this.tokens.mainToken;if(y.apply(u,f,b?b.start:y.pos,h),ws&&console.log(s+this.stackID(y)+` (via ${(u&65536)==0?"shift":`reduce of ${o.getName(u&65535)}`} for ${o.getName(f)} @ ${i}${y==t?"":", split"})`),g)return!0;y.pos>i?n.push(y):r.push(y)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return YU(t,n),!0}}runRecovery(t,n,r){let i=null,o=!1;for(let s=0;s<t.length;s++){let a=t[s],l=n[s<<1],c=n[(s<<1)+1],u=ws?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),ws&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,r))))continue;let f=a.split(),h=u;for(let g=0;g<10&&f.forceReduce()&&(ws&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)ws&&(h=this.stackID(f)+" -> ");for(let g of a.recoverByInsert(l))ws&&console.log(u+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),ws&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),YU(a,r)):(!i||i.score<f.score)&&(i=f)}return i}stackToTree(t){return t.close(),mi.build({buffer:f6.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let n=(TE||(TE=new WeakMap)).get(t);return n||TE.set(t,n=String.fromCodePoint(this.nextStackID++)),n+t}}function YU(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class Bje{constructor(t,n,r){this.source=t,this.flags=n,this.disabled=r}allows(t){return!this.disabled||this.disabled[t]==0}}class h6 extends zee{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<t.repeatNodeCount;a++)n.push("");let r=Object.keys(t.topRules).map(a=>t.topRules[a][1]),i=[];for(let a=0;a<n.length;a++)i.push([]);function o(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=xn[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)o(u,l,a[c++]);else{let f=a[c+-u];for(let h=-u;h>0;h--)o(a[c++],l,f);c++}}}this.nodeSet=new kM(n.map((a,l)=>ls.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Lee;let s=T3(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(XU),this.states=T3(t.states,Uint32Array),this.data=T3(t.stateData),this.goto=T3(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new B0(s,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new Fje(this,t,n,r);for(let o of this.wrappers)i=o(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let s=i[o++],a=s&1,l=i[o++];if(a&&r)return l;for(let c=o+(s>>1);o<c;o++)if(i[o]==t)return l;if(a)return-1}}hasAction(t,n){let r=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(t,i?2:1),s;;o+=3){if((s=r[o])==65535)if(r[o+1]==1)s=r[o=nu(r,o+2)];else{if(r[o+1]==2)return nu(r,o+2);break}if(s==n||s==0)return nu(r,o+1)}return 0}stateSlot(t,n){return this.states[t*6+n]}stateFlag(t,n){return(this.stateSlot(t,0)&n)>0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let o=this.stateSlot(t,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=nu(this.data,o+2);else break;i=n(nu(this.data,o+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=nu(this.data,r+2);else break;if((this.data[r+2]&1)==0){let i=this.data[r+1];n.some((o,s)=>s&1&&o==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(h6.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(o=>o.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=t.specializers.find(a=>a.from==r.external);if(!o)return r;let s=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=XU(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let o of t.split(" ")){let s=n.indexOf(o);s>=0&&(r[s]=!0)}let i=null;for(let o=0;o<n.length;o++)if(!r[o])for(let s=this.dialects[n[o]],a;(a=this.data[s++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new Bje(t,r,i)}static deserialize(t){return new h6(t)}}function nu(e,t){return e[t]|e[t+1]<<16}function zje(e){let t=null;for(let n of e){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}function XU(e){if(e.external){let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}let Hje=0;class oa{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=Hje++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof oa&&(n=t),n?.base)throw new Error("Can not derive from a modified tag");let i=new oa(r,[],null,[]);if(i.set.push(i),n)for(let o of n.set)i.set.push(o);return i}static defineModifier(t){let n=new p6(t);return r=>r.modified.indexOf(n)>-1?r:p6.get(r.base||r,r.modified.concat(n).sort((i,o)=>i.id-o.id))}}let Uje=0;class p6{constructor(t){this.name=t,this.instances=[],this.id=Uje++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(a=>a.base==t&&Vje(n,a.modified));if(r)return r;let i=[],o=new oa(t.name,i,t,n);for(let a of n)a.instances.push(o);let s=Wje(n);for(let a of t.set)if(!a.modified.length)for(let l of s)i.push(p6.get(a,l));return o}}function Vje(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function Wje(e){let t=[[]];for(let n=0;n<e.length;n++)for(let r=0,i=t.length;r<i;r++)t.push(t[r].concat(e[n]));return t.sort((n,r)=>r.length-n.length)}function Hee(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],s=2,a=i;for(let f=0;;){if(a=="..."&&f>0&&f+3==i.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!h)throw new RangeError("Invalid path: "+i);if(o.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),f+=h[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);a=i.slice(f)}let l=o.length-1,c=o[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new h2(r,s,l>0?o.slice(0,l):null);t[c]=u.sort(t[c])}}return Uee.add(t)}const Uee=new xn({combine(e,t){let n,r,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),n&&n.mode==i.mode&&!i.context&&!n.context)continue;let o=new h2(i.tags,i.mode,i.context);n?n.next=o:r=o,n=o}return r}});let h2=class{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}};h2.empty=new h2([],2,null);function Vee(e,t){let n=Object.create(null);for(let o of e)if(!Array.isArray(o.tag))n[o.tag.id]=o.class;else for(let s of o.tag)n[s.id]=o.class;let{scope:r,all:i=null}=t||{};return{style:o=>{let s=i;for(let a of o)for(let l of a.set){let c=n[l.id];if(c){s=s?s+" "+c:c;break}}return s},scope:r}}function qje(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function Gje(e,t,n,r=0,i=e.length){let o=new Kje(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class Kje{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,o){let{type:s,from:a,to:l}=t;if(a>=r||l<=n)return;s.isTop&&(o=this.highlighters.filter(g=>!g.scope||g.scope(s)));let c=i,u=Yje(t)||h2.empty,f=qje(o,u.tags);if(f&&(c&&(c+=" "),c+=f,u.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,a),c),u.opaque)return;let h=t.tree&&t.tree.prop(xn.mounted);if(h&&h.overlay){let g=t.node.enter(h.overlay[0].from+a,1),y=this.highlighters.filter(v=>!v.scope||v.scope(h.tree.type)),b=t.firstChild();for(let v=0,S=a;;v++){let C=v<h.overlay.length?h.overlay[v]:null,w=C?C.from+a:l,A=Math.max(n,S),E=Math.min(r,w);if(A<E&&b)for(;t.from<E&&(this.highlightRange(t,A,E,i,o),this.startSpan(Math.min(E,t.to),c),!(t.to>=w||!t.nextSibling())););if(!C||w>r)break;S=C.to+a,S>n&&(this.highlightRange(g.cursor(),Math.max(n,C.from+a),Math.min(r,S),"",y),this.startSpan(Math.min(r,S),c))}b&&t.parent()}else if(t.firstChild()){h&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,o),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Yje(e){let t=e.type.prop(Uee);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const ct=oa.define,M3=ct(),gd=ct(),ZU=ct(gd),JU=ct(gd),yd=ct(),R3=ct(yd),ME=ct(yd),kl=ct(),Xf=ct(kl),wl=ct(),Cl=ct(),m_=ct(),C1=ct(m_),I3=ct(),ae={comment:M3,lineComment:ct(M3),blockComment:ct(M3),docComment:ct(M3),name:gd,variableName:ct(gd),typeName:ZU,tagName:ct(ZU),propertyName:JU,attributeName:ct(JU),className:ct(gd),labelName:ct(gd),namespace:ct(gd),macroName:ct(gd),literal:yd,string:R3,docString:ct(R3),character:ct(R3),attributeValue:ct(R3),number:ME,integer:ct(ME),float:ct(ME),bool:ct(yd),regexp:ct(yd),escape:ct(yd),color:ct(yd),url:ct(yd),keyword:wl,self:ct(wl),null:ct(wl),atom:ct(wl),unit:ct(wl),modifier:ct(wl),operatorKeyword:ct(wl),controlKeyword:ct(wl),definitionKeyword:ct(wl),moduleKeyword:ct(wl),operator:Cl,derefOperator:ct(Cl),arithmeticOperator:ct(Cl),logicOperator:ct(Cl),bitwiseOperator:ct(Cl),compareOperator:ct(Cl),updateOperator:ct(Cl),definitionOperator:ct(Cl),typeOperator:ct(Cl),controlOperator:ct(Cl),punctuation:m_,separator:ct(m_),bracket:C1,angleBracket:ct(C1),squareBracket:ct(C1),paren:ct(C1),brace:ct(C1),content:kl,heading:Xf,heading1:ct(Xf),heading2:ct(Xf),heading3:ct(Xf),heading4:ct(Xf),heading5:ct(Xf),heading6:ct(Xf),contentSeparator:ct(kl),list:ct(kl),quote:ct(kl),emphasis:ct(kl),strong:ct(kl),link:ct(kl),monospace:ct(kl),strikethrough:ct(kl),inserted:ct(),deleted:ct(),changed:ct(),invalid:ct(),meta:I3,documentMeta:ct(I3),annotation:ct(I3),processingInstruction:ct(I3),definition:oa.defineModifier("definition"),constant:oa.defineModifier("constant"),function:oa.defineModifier("function"),standard:oa.defineModifier("standard"),local:oa.defineModifier("local"),special:oa.defineModifier("special")};for(let e in ae){let t=ae[e];t instanceof oa&&(t.name=e)}Vee([{tag:ae.link,class:"tok-link"},{tag:ae.heading,class:"tok-heading"},{tag:ae.emphasis,class:"tok-emphasis"},{tag:ae.strong,class:"tok-strong"},{tag:ae.keyword,class:"tok-keyword"},{tag:ae.atom,class:"tok-atom"},{tag:ae.bool,class:"tok-bool"},{tag:ae.url,class:"tok-url"},{tag:ae.labelName,class:"tok-labelName"},{tag:ae.inserted,class:"tok-inserted"},{tag:ae.deleted,class:"tok-deleted"},{tag:ae.literal,class:"tok-literal"},{tag:ae.string,class:"tok-string"},{tag:ae.number,class:"tok-number"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],class:"tok-string2"},{tag:ae.variableName,class:"tok-variableName"},{tag:ae.local(ae.variableName),class:"tok-variableName tok-local"},{tag:ae.definition(ae.variableName),class:"tok-variableName tok-definition"},{tag:ae.special(ae.variableName),class:"tok-variableName2"},{tag:ae.definition(ae.propertyName),class:"tok-propertyName tok-definition"},{tag:ae.typeName,class:"tok-typeName"},{tag:ae.namespace,class:"tok-namespace"},{tag:ae.className,class:"tok-className"},{tag:ae.macroName,class:"tok-macroName"},{tag:ae.propertyName,class:"tok-propertyName"},{tag:ae.operator,class:"tok-operator"},{tag:ae.comment,class:"tok-comment"},{tag:ae.meta,class:"tok-meta"},{tag:ae.invalid,class:"tok-invalid"},{tag:ae.punctuation,class:"tok-punctuation"}]);const Xje=Hee({String:ae.string,Number:ae.number,"True False":ae.bool,PropertyName:ae.propertyName,Null:ae.null,", :":ae.separator,"[ ]":ae.squareBracket,"{ }":ae.brace}),Zje=h6.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Xje],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let g_=[],Wee=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?Wee:g_).push(n=n+e[t])})();function Jje(e){if(e<768)return!1;for(let t=0,n=g_.length;;){let r=t+n>>1;if(e<g_[r])n=r;else if(e>=Wee[r])t=r+1;else return!0;if(t==n)return!1}}function QU(e){return e>=127462&&e<=127487}const eV=8205;function Qje(e,t,n=!0,r=!0){return(n?qee:e$e)(e,t,r)}function qee(e,t,n){if(t==e.length)return t;t&&Gee(e.charCodeAt(t))&&Kee(e.charCodeAt(t-1))&&t--;let r=RE(e,t);for(t+=tV(r);t<e.length;){let i=RE(e,t);if(r==eV||i==eV||n&&Jje(i))t+=tV(i),r=i;else if(QU(i)){let o=0,s=t-2;for(;s>=0&&QU(RE(e,s));)o++,s-=2;if(o%2==0)break;t+=2}else break}return t}function e$e(e,t,n){for(;t>0;){let r=qee(e,t-2,n);if(r<t)return r;t--}return 0}function RE(e,t){let n=e.charCodeAt(t);if(!Kee(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Gee(r)?(n-55296<<10)+(r-56320)+65536:n}function Gee(e){return e>=56320&&e<57344}function Kee(e){return e>=55296&&e<56320}function tV(e){return e<65536?1:2}class Vn{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=ym(this,t,n);let i=[];return this.decompose(0,t,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),Nl.from(i,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=ym(this,t,n);let r=[];return this.decompose(t,n,r,0),Nl.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),i=new by(this),o=new by(t);for(let s=n,a=n;;){if(i.next(s),o.next(s),s=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(a+=i.value.length,i.done||a>=r)return!0}}iter(t=1){return new by(this,t)}iterRange(t,n=this.length){return new Yee(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(t).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new Xee(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?Vn.empty:t.length<=32?new fi(t):Nl.from(fi.split(t,[]))}}class fi extends Vn{constructor(t,n=t$e(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let o=0;;o++){let s=this.text[o],a=i+s.length;if((n?r:a)>=t)return new n$e(i,a,r,s);i=a+1,r++}}decompose(t,n,r,i){let o=t<=0&&n>=this.length?this:new fi(nV(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),a=t4(o.text,s.text.slice(),0,o.length);if(a.length<=32)r.push(new fi(a,s.length+o.length));else{let l=a.length>>1;r.push(new fi(a.slice(0,l)),new fi(a.slice(l)))}}else r.push(o)}replace(t,n,r){if(!(r instanceof fi))return super.replace(t,n,r);[t,n]=ym(this,t,n);let i=t4(this.text,t4(r.text,nV(this.text,0,t)),n),o=this.length+r.length-(n-t);return i.length<=32?new fi(i,o):Nl.from(fi.split(i,[]),o)}sliceString(t,n=this.length,r=`
255
255
  `){[t,n]=ym(this,t,n);let i="";for(let o=0,s=0;o<=n&&s<this.text.length;s++){let a=this.text[s],l=o+a.length;o>t&&s&&(i+=r),t<l&&n>o&&(i+=a.slice(Math.max(0,t-o),n-o)),o=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let o of t)r.push(o),i+=o.length+1,r.length==32&&(n.push(new fi(r,i)),r=[],i=-1);return i>-1&&n.push(new fi(r,i)),n}}class Nl extends Vn{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let o=0;;o++){let s=this.children[o],a=i+s.length,l=r+s.lines-1;if((n?l:a)>=t)return s.lineInner(t,n,r,i);i=a+1,r=l+1}}decompose(t,n,r,i){for(let o=0,s=0;s<=n&&o<this.children.length;o++){let a=this.children[o],l=s+a.length;if(t<=l&&n>=s){let c=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!c?r.push(a):a.decompose(t-s,n-s,r,c)}s=l+1}}replace(t,n,r){if([t,n]=ym(this,t,n),r.lines<this.lines)for(let i=0,o=0;i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(t>=o&&n<=a){let l=s.replace(t-o,n-o,r),c=this.lines-s.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[i]=l,new Nl(u,this.length-(n-t)+r.length)}return super.replace(o,a,l)}o=a+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=`
256
256
  `){[t,n]=ym(this,t,n);let i="";for(let o=0,s=0;o<this.children.length&&s<=n;o++){let a=this.children[o],l=s+a.length;s>t&&o&&(i+=r),t<l&&n>s&&(i+=a.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof Nl))return 0;let r=0,[i,o,s,a]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==s||o==a)return r;let l=this.children[i],c=t.children[o];if(l!=c)return r+l.scanIdentical(c,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of t)r+=g.lines;if(r<32){let g=[];for(let y of t)y.flatten(g);return new fi(g,n)}let i=Math.max(32,r>>5),o=i<<1,s=i>>1,a=[],l=0,c=-1,u=[];function f(g){let y;if(g.lines>o&&g instanceof Nl)for(let b of g.children)f(b);else g.lines>s&&(l>s||!l)?(h(),a.push(g)):g instanceof fi&&l&&(y=u[u.length-1])instanceof fi&&g.lines+y.lines<=32?(l+=g.lines,c+=g.length+1,u[u.length-1]=new fi(y.text.concat(g.text),y.length+1+g.length)):(l+g.lines>i&&h(),l+=g.lines,c+=g.length+1,u.push(g))}function h(){l!=0&&(a.push(u.length==1?u[0]:Nl.from(u,c)),c=-1,l=u.length=0)}for(let g of t)f(g);return h(),a.length==1?a[0]:new Nl(a,n)}}Vn.empty=new fi([""],0);function t$e(e){let t=-1;for(let n of e)t+=n.length+1;return t}function t4(e,t,n=0,r=1e9){for(let i=0,o=0,s=!0;o<e.length&&i<=r;o++){let a=e[o],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),s?(t[t.length-1]+=a,s=!1):t.push(a)),i=l+1}return t}function nV(e,t,n){return t4(e,[""],t,n)}class by{constructor(t,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?1:(t instanceof fi?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],s=o>>1,a=i instanceof fi?i.text.length:i.children.length;if(s==(n>0?a:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=`
257
257
  `,this;t--}else if(i instanceof fi){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof fi?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class Yee{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new by(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Xee{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:i}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Vn.prototype[Symbol.iterator]=function(){return this.iter()},by.prototype[Symbol.iterator]=Yee.prototype[Symbol.iterator]=Xee.prototype[Symbol.iterator]=function(){return this});class n$e{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function ym(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function Qi(e,t,n=!0,r=!0){return Qje(e,t,n,r)}function r$e(e){return e>=56320&&e<57344}function i$e(e){return e>=55296&&e<56320}function Qo(e,t){let n=e.charCodeAt(t);if(!i$e(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return r$e(r)?(n-55296<<10)+(r-56320)+65536:n}function TM(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Fl(e){return e<65536?1:2}const y_=/\r\n?|\n/;var yo=(function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e})(yo||(yo={}));class ac{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;n<this.sections.length;n+=2)t+=this.sections[n];return t}get newLength(){let t=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];t+=r<0?this.sections[n]:r}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let n=0,r=0,i=0;n<this.sections.length;){let o=this.sections[n++],s=this.sections[n++];s<0?(t(r,i,o),i+=o):i+=s,r+=o}}iterChangedRanges(t,n=!1){b_(this,t,n)}get invertedDesc(){let t=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?t.push(r,i):t.push(i,r)}return new ac(t)}composeDesc(t){return this.empty?t:t.empty?this:Zee(this,t)}mapDesc(t,n=!1){return t.empty?this:v_(this,t,n)}mapPos(t,n=-1,r=yo.Simple){let i=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],l=this.sections[s++],c=i+a;if(l<0){if(c>t)return o+(t-i);o+=a}else{if(r!=yo.Simple&&c>=t&&(r==yo.TrackDel&&i<t&&c>t||r==yo.TrackBefore&&i<t||r==yo.TrackAfter&&c>t))return null;if(c>t||c==t&&n<0&&!a)return t==i||n<0?o:o+l;o+=l}i=c}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return o}touchesRange(t,n=t){for(let r=0,i=0;r<this.sections.length&&i<=n;){let o=this.sections[r++],s=this.sections[r++],a=i+o;if(s>=0&&i<=n&&a>=t)return i<t&&a>n?"cover":!0;i=a}return!1}toString(){let t="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];t+=(t?" ":"")+r+(i>=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ac(t)}static create(t){return new ac(t)}}class $i extends ac{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return b_(this,(n,r,i,o,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return v_(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,o=0;i<n.length;i+=2){let s=n[i],a=n[i+1];if(a>=0){n[i]=a,n[i+1]=s;let l=i>>1;for(;r.length<l;)r.push(Vn.empty);r.push(s?t.slice(o,o+s):Vn.empty)}o+=s}return new $i(n,r)}compose(t){return this.empty?t:t.empty?this:Zee(this,t,!0)}map(t,n=!1){return t.empty?this:v_(this,t,n,!0)}iterChanges(t,n=!1){b_(this,t,n)}get desc(){return ac.create(this.sections)}filter(t){let n=[],r=[],i=[],o=new p2(this);e:for(let s=0,a=0;;){let l=s==t.length?1e9:t[s++];for(;a<l||a==l&&o.len==0;){if(o.done)break e;let u=Math.min(o.len,l-a);Ao(i,u,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;Ao(n,u,f),f>0&&Id(r,n,o.text),o.forward(u),a+=u}let c=t[s++];for(;a<c;){if(o.done)break e;let u=Math.min(o.len,c-a);Ao(n,u,-1),Ao(i,u,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(u),a+=u}}return{changes:new $i(n,r),filtered:ac.create(i)}}toJSON(){let t=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?t.push(r):i==0?t.push([r]):t.push([r].concat(this.inserted[n>>1].toJSON()))}return t}static of(t,n,r){let i=[],o=[],s=0,a=null;function l(u=!1){if(!u&&!i.length)return;s<n&&Ao(i,n-s,-1);let f=new $i(i,o);a=a?a.compose(f.map(a)):f,i=[],o=[],s=0}function c(u){if(Array.isArray(u))for(let f of u)c(f);else if(u instanceof $i){if(u.length!=n)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${n})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:f,to:h=f,insert:g}=u;if(f>h||f<0||h>n)throw new RangeError(`Invalid change range ${f} to ${h} (in doc of length ${n})`);let y=g?typeof g=="string"?Vn.of(g.split(r||y_)):g:Vn.empty,b=y.length;if(f==h&&b==0)return;f<s&&l(),f>s&&Ao(i,f-s,-1),Ao(i,h-f,b),Id(o,i,y),s=h}}return c(t),l(!a),a}static empty(t){return new $i(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<t.length;i++){let o=t[i];if(typeof o=="number")n.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((s,a)=>a&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;r.length<i;)r.push(Vn.empty);r[i]=Vn.of(o.slice(1)),n.push(o[0],r[i].length)}}}return new $i(n,r)}static createSet(t,n){return new $i(t,n)}}function Ao(e,t,n,r=!1){if(t==0&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:i>=0&&t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Id(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(Vn.empty);e.push(n)}}function b_(e,t,n){let r=e.inserted;for(let i=0,o=0,s=0;s<e.sections.length;){let a=e.sections[s++],l=e.sections[s++];if(l<0)i+=a,o+=a;else{let c=i,u=o,f=Vn.empty;for(;c+=a,u+=l,l&&r&&(f=f.append(r[s-2>>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(i,c,o,u,f),i=c,o=u}}}function v_(e,t,n,r=!1){let i=[],o=r?[]:null,s=new p2(e),a=new p2(t);for(let l=-1;;){if(s.done&&a.len||a.done&&s.len)throw new Error("Mismatched change set lengths");if(s.ins==-1&&a.ins==-1){let c=Math.min(s.len,a.len);Ao(i,c,-1),s.forward(c),a.forward(c)}else if(a.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(a.len<s.len||a.len==s.len&&!n))){let c=a.len;for(Ao(i,a.ins,-1);c;){let u=Math.min(s.len,c);s.ins>=0&&l<s.i&&s.len<=u&&(Ao(i,0,s.ins),o&&Id(o,i,s.text),l=s.i),s.forward(u),c-=u}a.next()}else if(s.ins>=0){let c=0,u=s.len;for(;u;)if(a.ins==-1){let f=Math.min(u,a.len);c+=f,u-=f,a.forward(f)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;Ao(i,c,l<s.i?s.ins:0),o&&l<s.i&&Id(o,i,s.text),l=s.i,s.forward(s.len-u)}else{if(s.done&&a.done)return o?$i.createSet(i,o):ac.create(i);throw new Error("Mismatched change set lengths")}}}function Zee(e,t,n=!1){let r=[],i=n?[]:null,o=new p2(e),s=new p2(t);for(let a=!1;;){if(o.done&&s.done)return i?$i.createSet(r,i):ac.create(r);if(o.ins==0)Ao(r,o.len,0,a),o.next();else if(s.len==0&&!s.done)Ao(r,0,s.ins,a),i&&Id(i,r,s.text),s.next();else{if(o.done||s.done)throw new Error("Mismatched change set lengths");{let l=Math.min(o.len2,s.len),c=r.length;if(o.ins==-1){let u=s.ins==-1?-1:s.off?0:s.ins;Ao(r,l,u,a),i&&u&&Id(i,r,s.text)}else s.ins==-1?(Ao(r,o.off?0:o.len,l,a),i&&Id(i,r,o.textBit(l))):(Ao(r,o.off?0:o.len,s.off?0:s.ins,a),i&&!s.off&&Id(i,r,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||r.length>c),o.forward2(l),s.forward(l)}}}}class p2{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length?Vn.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?Vn.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class ph{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,i;return this.empty?r=i=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new ph(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return $e.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return $e.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return $e.range(t.anchor,t.head)}static create(t,n,r){return new ph(t,n,r)}}class $e{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:$e.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(t.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new $e([this.main],0)}addRange(t,n=!0){return $e.create([t].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(t,n=this.mainIndex){let r=this.ranges.slice();return r[n]=t,$e.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new $e(t.ranges.map(n=>ph.fromJSON(n)),t.main)}static single(t,n=t){return new $e([$e.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<t.length;i++){let o=t[i];if(o.empty?o.from<=r:o.from<r)return $e.normalized(t.slice(),n);r=o.to}return new $e(t,n)}static cursor(t,n=0,r,i){return ph.create(t,t,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(t,n,r,i){let o=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<t?ph.create(n,t,48|o):ph.create(t,n,(n>t?8:0)|o)}static normalized(t,n=0){let r=t[n];t.sort((i,o)=>i.from-o.from),n=t.indexOf(r);for(let i=1;i<t.length;i++){let o=t[i],s=t[i-1];if(o.empty?o.from<=s.to:o.from<s.to){let a=s.from,l=Math.max(o.to,s.to);i<=n&&n--,t.splice(--i,2,o.anchor>o.head?$e.range(l,a):$e.range(a,l))}}return new $e(t,n)}}function Jee(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let MM=0;class bt{constructor(t,n,r,i,o){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=MM++,this.default=t([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(t={}){return new bt(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:RM),!!t.static,t.enables)}of(t){return new n4([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new n4(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new n4(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function RM(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class n4{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=MM++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,o=this.id,s=t[o]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?c=!0:(((n=t[f.id])!==null&&n!==void 0?n:1)&1)==0&&u.push(t[f.id]);return{create(f){return f.values[s]=r(f),1},update(f,h){if(l&&h.docChanged||c&&(h.docChanged||h.selection)||x_(f,u)){let g=r(f);if(a?!rV(g,f.values[s],i):!i(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,h)=>{let g,y=h.config.address[o];if(y!=null){let b=g6(h,y);if(this.dependencies.every(v=>v instanceof bt?h.facet(v)===f.facet(v):v instanceof Bi?h.field(v,!1)==f.field(v,!1):!0)||(a?rV(g=r(f),b,i):i(g=r(f),b)))return f.values[s]=b,0}else g=r(f);return f.values[s]=g,1}}}}function rV(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function x_(e,t){let n=!1;for(let r of t)vy(e,r)&1&&(n=!0);return n}function o$e(e,t,n){let r=n.map(l=>e[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),s=e[t.id]>>1;function a(l){let c=[];for(let u=0;u<r.length;u++){let f=g6(l,r[u]);if(i[u]==2)for(let h of f)c.push(h);else c.push(f)}return t.combine(c)}return{create(l){for(let c of r)vy(l,c);return l.values[s]=a(l),1},update(l,c){if(!x_(l,o))return 0;let u=a(l);return t.compare(u,l.values[s])?0:(l.values[s]=u,1)},reconfigure(l,c){let u=x_(l,r),f=c.config.facets[t.id],h=c.facet(t);if(f&&!u&&RM(n,f))return l.values[s]=h,0;let g=a(l);return t.compare(g,h)?(l.values[s]=h,0):(l.values[s]=g,1)}}}const P3=bt.define({static:!0});class Bi{constructor(t,n,r,i,o){this.id=t,this.createF=n,this.updateF=r,this.compareF=i,this.spec=o,this.provides=void 0}static define(t){let n=new Bi(MM++,t.create,t.update,t.compare||((r,i)=>r===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(P3).find(r=>r.field==this);return(n?.create||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let o=r.values[n],s=this.updateF(o,i);return this.compareF(o,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>{let o=r.facet(P3),s=i.facet(P3),a;return(a=o.find(l=>l.field==this))&&a!=s.find(l=>l.field==this)?(r.values[n]=a.create(r),1):i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}}init(t){return[this,P3.of({field:this,create:t})]}get extension(){return this}}const lh={lowest:4,low:3,default:2,high:1,highest:0};function E1(e){return t=>new Qee(t,e)}const wf={highest:E1(lh.highest),high:E1(lh.high),default:E1(lh.default),low:E1(lh.low),lowest:E1(lh.lowest)};class Qee{constructor(t,n){this.inner=t,this.prec=n}}class Yw{of(t){return new S_(this,t)}reconfigure(t){return Yw.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class S_{constructor(t,n){this.compartment=t,this.inner=n}}class m6{constructor(t,n,r,i,o,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(t){let n=this.address[t.id];return n==null?t.default:this.staticValues[n>>1]}static resolve(t,n,r){let i=[],o=Object.create(null),s=new Map;for(let h of s$e(t,n,s))h instanceof Bi?i.push(h):(o[h.facet.id]||(o[h.facet.id]=[])).push(h);let a=Object.create(null),l=[],c=[];for(let h of i)a[h.id]=c.length<<1,c.push(g=>h.slot(g));let u=r?.config.facets;for(let h in o){let g=o[h],y=g[0].facet,b=u&&u[h]||[];if(g.every(v=>v.type==0))if(a[y.id]=l.length<<1|1,RM(b,g))l.push(r.facet(y));else{let v=y.combine(g.map(S=>S.value));l.push(r&&y.compare(v,r.facet(y))?r.facet(y):v)}else{for(let v of g)v.type==0?(a[v.id]=l.length<<1|1,l.push(v.value)):(a[v.id]=c.length<<1,c.push(S=>v.dynamicSlot(S)));a[y.id]=c.length<<1,c.push(v=>o$e(v,y,g))}}let f=c.map(h=>h(a));return new m6(t,s,f,a,l,o)}}function s$e(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(s,a){let l=i.get(s);if(l!=null){if(l<=a)return;let c=r[l].indexOf(s);c>-1&&r[l].splice(c,1),s instanceof S_&&n.delete(s.compartment)}if(i.set(s,a),Array.isArray(s))for(let c of s)o(c,a);else if(s instanceof S_){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(s.compartment)||s.inner;n.set(s.compartment,c),o(c,a)}else if(s instanceof Qee)o(s.inner,s.prec);else if(s instanceof Bi)r[a].push(s),s.provides&&o(s.provides,a);else if(s instanceof n4)r[a].push(s),s.facet.extensions&&o(s.facet.extensions,lh.default);else{let c=s.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(c,a)}}return o(e,lh.default),r.reduce((s,a)=>s.concat(a))}function vy(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function g6(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const ete=bt.define(),w_=bt.define({combine:e=>e.some(t=>t),static:!0}),tte=bt.define({combine:e=>e.length?e[0]:void 0,static:!0}),nte=bt.define(),rte=bt.define(),ite=bt.define(),ote=bt.define({combine:e=>e.length?e[0]:!1});class xc{constructor(t,n){this.type=t,this.value=n}static define(){return new a$e}}class a$e{of(t){return new xc(this,t)}}class l$e{constructor(t){this.map=t}of(t){return new Ut(this,t)}}class Ut{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new Ut(this.type,n)}is(t){return this.type==t}static define(t={}){return new l$e(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let o=i.map(n);o&&r.push(o)}return r}}Ut.reconfigure=Ut.define();Ut.appendConfig=Ut.define();class ki{constructor(t,n,r,i,o,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,r&&Jee(r,n.newLength),o.some(a=>a.type==ki.time)||(this.annotations=o.concat(ki.time.of(Date.now())))}static create(t,n,r,i,o,s){return new ki(t,n,r,i,o,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(ki.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}ki.time=xc.define();ki.userEvent=xc.define();ki.addToHistory=xc.define();ki.remote=xc.define();function c$e(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],s=e[r++];else if(i<t.length)o=t[i++],s=t[i++];else return n;!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function ste(e,t,n){var r;let i,o,s;return n?(i=t.changes,o=$i.empty(t.changes.length),s=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(i)),{changes:s,selection:t.selection?t.selection.map(o):(r=e.selection)===null||r===void 0?void 0:r.map(i),effects:Ut.mapEffects(e.effects,i).concat(Ut.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function C_(e,t,n){let r=t.selection,i=z0(t.annotations);return t.userEvent&&(i=i.concat(ki.userEvent.of(t.userEvent))),{changes:t.changes instanceof $i?t.changes:$i.of(t.changes||[],n,e.facet(tte)),selection:r&&(r instanceof $e?r:$e.single(r.anchor,r.head)),effects:z0(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function ate(e,t,n){let r=C_(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(n=!1);for(let o=1;o<t.length;o++){t[o].filter===!1&&(n=!1);let s=!!t[o].sequential;r=ste(r,C_(e,t[o],s?r.changes.newLength:e.doc.length),s)}let i=ki.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return d$e(n?u$e(i):i)}function u$e(e){let t=e.startState,n=!0;for(let i of t.facet(nte)){let o=i(e);if(o===!1){n=!1;break}Array.isArray(o)&&(n=n===!0?o:c$e(n,o))}if(n!==!0){let i,o;if(n===!1)o=e.changes.invertedDesc,i=$i.empty(t.doc.length);else{let s=e.changes.filter(n);i=s.changes,o=s.filtered.mapDesc(s.changes).invertedDesc}e=ki.create(t,i,e.selection&&e.selection.map(o),Ut.mapEffects(e.effects,o),e.annotations,e.scrollIntoView)}let r=t.facet(rte);for(let i=r.length-1;i>=0;i--){let o=r[i](e);o instanceof ki?e=o:Array.isArray(o)&&o.length==1&&o[0]instanceof ki?e=o[0]:e=ate(t,z0(o),!1)}return e}function d$e(e){let t=e.startState,n=t.facet(ite),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=ste(r,C_(t,o,e.changes.newLength),!0))}return r==e?e:ki.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const f$e=[];function z0(e){return e==null?f$e:Array.isArray(e)?e:[e]}var Hr=(function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e})(Hr||(Hr={}));const h$e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let E_;try{E_=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function p$e(e){if(E_)return E_.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||h$e.test(n)))return!0}return!1}function m$e(e){return t=>{if(!/\S/.test(t))return Hr.Space;if(p$e(t))return Hr.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Hr.Word;return Hr.Other}}class Nn{constructor(t,n,r,i,o,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)vy(this,a<<1);this.computeSlot=null}field(t,n=!0){let r=this.config.address[t.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return vy(this,r),g6(this,r)}update(...t){return ate(this,t,!0)}applyTransaction(t){let n=this.config,{base:r,compartments:i}=n;for(let a of t.effects)a.is(Yw.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,c)=>i.set(c,l)),n=null),i.set(a.value.compartment,a.value.extension)):a.is(Ut.reconfigure)?(n=null,r=a.value):a.is(Ut.appendConfig)&&(n=null,r=z0(r).concat(a.value));let o;n?o=t.startState.values.slice():(n=m6.resolve(r,i,this),o=new Nn(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let s=t.startState.facet(w_)?t.newSelection:t.newSelection.asSingle();new Nn(n,t.newDoc,s,o,(a,l)=>l.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:$e.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),o=[r.range],s=z0(r.effects);for(let a=1;a<n.ranges.length;a++){let l=t(n.ranges[a]),c=this.changes(l.changes),u=c.map(i);for(let h=0;h<a;h++)o[h]=o[h].map(u);let f=i.mapDesc(c,!0);o.push(l.range.map(f)),i=i.compose(u),s=Ut.mapEffects(s,u).concat(Ut.mapEffects(z0(l.effects),f))}return{changes:i,selection:$e.create(o,n.mainIndex),effects:s}}changes(t=[]){return t instanceof $i?t:$i.of(t,this.doc.length,this.facet(Nn.lineSeparator))}toText(t){return Vn.of(t.split(this.facet(Nn.lineSeparator)||y_))}sliceDoc(t=0,n=this.doc.length){return this.doc.sliceString(t,n,this.lineBreak)}facet(t){let n=this.config.address[t.id];return n==null?t.default:(vy(this,n),g6(this,n))}toJSON(t){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let r in t){let i=t[r];i instanceof Bi&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(t[r]),this))}return n}static fromJSON(t,n={},r){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let o in r)if(Object.prototype.hasOwnProperty.call(t,o)){let s=r[o],a=t[o];i.push(s.init(l=>s.spec.fromJSON(a,l)))}}return Nn.create({doc:t.doc,selection:$e.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=m6.resolve(t.extensions||[],new Map),r=t.doc instanceof Vn?t.doc:Vn.of((t.doc||"").split(n.staticFacet(Nn.lineSeparator)||y_)),i=t.selection?t.selection instanceof $e?t.selection:$e.single(t.selection.anchor,t.selection.head):$e.single(0);return Jee(i,r.length),n.staticFacet(w_)||(i=i.asSingle()),new Nn(n,r,i,n.dynamicSlots.map(()=>null),(o,s)=>s.create(o),null)}get tabSize(){return this.facet(Nn.tabSize)}get lineBreak(){return this.facet(Nn.lineSeparator)||`
@@ -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
- `},Gat={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 Kat(e){let{announcements:t=Gat,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=qat}=e;const{announce:o,announcement:s}=Uat(),a=av("DndLiveRegion"),[l,c]=_.useState(!1);if(_.useEffect(()=>{c(!0)},[]),Vat(_.useMemo(()=>({onDragStart(f){let{active:h}=f;o(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&o(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;o(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;o(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;o(t.onDragCancel({active:h,over:g}))}}),[o,t])),!l)return null;const u=qt.createElement(qt.Fragment,null,qt.createElement(zat,{id:r,value:i.draggable}),qt.createElement(Hat,{id:a,announcement:s}));return n?Dd.createPortal(u,n):u}var Li;(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"})(Li||(Li={}));function CS(){}function kK(e,t){return _.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Yat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const sl=Object.freeze({x:0,y:0});function Cle(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ele(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xat(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function _K(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 Ale(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function DK(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 Zat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=DK(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=Cle(DK(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(Ele)},Jat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=_K(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=_K(l),u=i.reduce((h,g,y)=>h+Cle(c[y],g),0),f=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(Ele)};function Qat(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,f=u/(l+c-u);return Number(f.toFixed(4))}return 0}const elt=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=Qat(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(Xat)};function tlt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function kle(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:sl}function nlt(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 rlt=nlt(1);function ilt(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 olt(e,t,n){const r=ilt(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,f=o?e.height/o:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const slt={ignoreTransform:!1};function pg(e,t){t===void 0&&(t=slt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=fs(e).getComputedStyle(e);c&&(n=olt(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 OK(e){return pg(e,{ignoreTransform:!0})}function alt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function llt(e,t){return t===void 0&&(t=fs(e).getComputedStyle(e)),t.position==="fixed"}function clt(e,t){t===void 0&&(t=fs(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 qC(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(!ov(i)||xle(i)||n.includes(i))return n;const o=fs(e).getComputedStyle(i);return i!==e&&clt(i,o)&&n.push(i),llt(i,o)?n:r(i.parentNode)}return e?r(e):n}function _le(e){const[t]=qC(e,1);return t??null}function XA(e){return!WC||!e?null:fg(e)?e:vI(e)?xI(e)||e===hg(e).scrollingElement?window:ov(e)?e:null:null}function Dle(e){return fg(e)?e.scrollX:e.scrollLeft}function Ole(e){return fg(e)?e.scrollY:e.scrollTop}function XD(e){return{x:Dle(e),y:Ole(e)}}var Xi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Xi||(Xi={}));function Tle(e){return!WC||!e?!1:e===document.scrollingElement}function Mle(e){const t={x:0,y:0},n=Tle(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 ult={x:.2,y:.2};function dlt(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=ult);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=Mle(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=Xi.Backward,y.y=r*Math.abs((t.top+b.height-o)/b.height)):!u&&l>=t.bottom-b.height&&(g.y=Xi.Forward,y.y=r*Math.abs((t.bottom-b.height-l)/b.height)),!h&&a>=t.right-b.width?(g.x=Xi.Forward,y.x=r*Math.abs((t.right-b.width-a)/b.width)):!f&&s<=t.left+b.width&&(g.x=Xi.Backward,y.x=r*Math.abs((t.left+b.width-s)/b.width)),{direction:g,speed:y}}function flt(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 Rle(e){return e.reduce((t,n)=>nm(t,XD(n)),sl)}function hlt(e){return e.reduce((t,n)=>t+Dle(n),0)}function plt(e){return e.reduce((t,n)=>t+Ole(n),0)}function mlt(e,t){if(t===void 0&&(t=pg),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);_le(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const glt=[["x",["left","right"],hlt],["y",["top","bottom"],plt]];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=qC(n),i=Rle(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of glt)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 Iy{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 ylt(e){const{EventTarget:t}=fs(e);return e instanceof t?e:hg(e)}function ZA(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 na;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(na||(na={}));function TK(e){e.preventDefault()}function blt(e){e.stopPropagation()}var Ln;(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"})(Ln||(Ln={}));const Ile={start:[Ln.Space,Ln.Enter],cancel:[Ln.Esc],end:[Ln.Space,Ln.Enter,Ln.Tab]},vlt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ln.Right:return{...n,x:n.x+25};case Ln.Left:return{...n,x:n.x-25};case Ln.Down:return{...n,y:n.y+25};case Ln.Up:return{...n,y:n.y-25}}};class EI{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 Iy(hg(n)),this.windowListeners=new Iy(fs(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(na.Resize,this.handleCancel),this.windowListeners.add(na.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(na.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&mlt(r),n(sl)}handleKeyDown(t){if(wI(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=Ile,coordinateGetter:s=vlt,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}:sl;this.referenceCoordinates||(this.referenceCoordinates=u);const f=s(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=nb(f,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:A,maxScroll:E,minScroll:D}=Mle(b),O=flt(b),T={x:Math.min(v===Ln.Right?O.right-O.width/2:O.right,Math.max(v===Ln.Right?O.left:O.left+O.width/2,f.x)),y:Math.min(v===Ln.Down?O.bottom-O.height/2:O.bottom,Math.max(v===Ln.Down?O.top:O.top+O.height/2,f.y))},I=v===Ln.Right&&!C||v===Ln.Left&&!w,N=v===Ln.Down&&!A||v===Ln.Up&&!S;if(I&&T.x!==f.x){const $=b.scrollLeft+h.x,R=v===Ln.Right&&$<=E.x||v===Ln.Left&&$>=D.x;if(R&&!h.y){b.scrollTo({left:$,behavior:a});return}R?g.x=b.scrollLeft-$:g.x=v===Ln.Right?b.scrollLeft-E.x:b.scrollLeft-D.x,g.x&&b.scrollBy({left:-g.x,behavior:a});break}else if(N&&T.y!==f.y){const $=b.scrollTop+h.y,R=v===Ln.Down&&$<=E.y||v===Ln.Up&&$>=D.y;if(R&&!h.x){b.scrollTo({top:$,behavior:a});return}R?g.y=b.scrollTop-$:g.y=v===Ln.Down?b.scrollTop-E.y:b.scrollTop-D.y,g.y&&b.scrollBy({top:-g.y,behavior:a});break}}this.handleMove(t,nm(nb(f,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()}}EI.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Ile,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 MK(e){return!!(e&&"distance"in e)}function RK(e){return!!(e&&"delay"in e)}class AI{constructor(t,n,r){var i;r===void 0&&(r=ylt(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=hg(s),this.documentListeners=new Iy(this.document),this.listeners=new Iy(r),this.windowListeners=new Iy(fs(s)),this.initialCoordinates=(i=YD(o))!=null?i:sl,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(na.Resize,this.handleCancel),this.windowListeners.add(na.DragStart,TK),this.windowListeners.add(na.VisibilityChange,this.handleCancel),this.windowListeners.add(na.ContextMenu,TK),this.documentListeners.add(na.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(RK(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(MK(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(na.Click,blt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(na.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=YD(t))!=null?n:sl,c=nb(i,l);if(!r&&a){if(MK(a)){if(a.tolerance!=null&&ZA(c,a.tolerance))return this.handleCancel();if(ZA(c,a.distance))return this.handleStart()}if(RK(a)&&ZA(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===Ln.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const xlt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class kI extends AI{constructor(t){const{event:n}=t,r=hg(n.target);super(t,xlt,r)}}kI.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 Slt={move:{name:"mousemove"},end:{name:"mouseup"}};var ZD;(function(e){e[e.RightClick=2]="RightClick"})(ZD||(ZD={}));class wlt extends AI{constructor(t){super(t,Slt,hg(t.event.target))}}wlt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ZD.RightClick?!1:(r?.({event:n}),!0)}}];const JA={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Clt extends AI{constructor(t){super(t,JA)}static setup(){return window.addEventListener(JA.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(JA.move.name,t)};function t(){}}}Clt.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 Py;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Py||(Py={}));var ES;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ES||(ES={}));function Elt(e){let{acceleration:t,activator:n=Py.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=ES.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const g=klt({delta:f,disabled:!o}),[y,b]=$at(),v=_.useRef({x:0,y:0}),S=_.useRef({x:0,y:0}),C=_.useMemo(()=>{switch(n){case Py.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Py.DraggableRect:return i}},[n,i,l]),w=_.useRef(null),A=_.useCallback(()=>{const D=w.current;if(!D)return;const O=v.current.x*S.current.x,T=v.current.y*S.current.y;D.scrollBy(O,T)},[]),E=_.useMemo(()=>a===ES.TreeOrder?[...c].reverse():c,[a,c]);_.useEffect(()=>{if(!o||!c.length||!C){b();return}for(const D of E){if(r?.(D)===!1)continue;const O=c.indexOf(D),T=u[O];if(!T)continue;const{direction:I,speed:N}=dlt(D,T,C,t,h);for(const $ of["x","y"])g[$][I[$]]||(N[$]=0,I[$]=0);if(N.x>0||N.y>0){b(),w.current=D,y(A,s),v.current=N,S.current=I;return}}v.current={x:0,y:0},S.current={x:0,y:0},b()},[t,A,r,b,o,s,JSON.stringify(C),JSON.stringify(g),y,c,E,u,JSON.stringify(h)])}const Alt={x:{[Xi.Backward]:!1,[Xi.Forward]:!1},y:{[Xi.Backward]:!1,[Xi.Forward]:!1}};function klt(e){let{delta:t,disabled:n}=e;const r=KD(t);return sv(i=>{if(n||!r||!i)return Alt;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Xi.Backward]:i.x[Xi.Backward]||o.x===-1,[Xi.Forward]:i.x[Xi.Forward]||o.x===1},y:{[Xi.Backward]:i.y[Xi.Backward]||o.y===-1,[Xi.Forward]:i.y[Xi.Forward]||o.y===1}}},[n,t,r])}function _lt(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return sv(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function Dlt(e,t){return _.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 ib;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ib||(ib={}));var JD;(function(e){e.Optimized="optimized"})(JD||(JD={}));const IK=new Map;function Olt(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=_.useState(null),{frequency:a,measure:l,strategy:c}=i,u=_.useRef(e),f=v(),h=tb(f),g=_.useCallback(function(S){S===void 0&&(S=[]),!h.current&&s(C=>C===null?S:C.concat(S.filter(w=>!C.includes(w))))},[h]),y=_.useRef(null),b=sv(S=>{if(f&&!n)return IK;if(!S||S===IK||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 A=w.node.current,E=A?new CI(l(A),A):null;w.rect.current=E,E&&C.set(w.id,E)}return C}return S},[e,o,n,f,l]);return _.useEffect(()=>{u.current=e},[e]),_.useEffect(()=>{f||g()},[n,f]),_.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),_.useEffect(()=>{f||typeof a!="number"||y.current!==null||(y.current=setTimeout(()=>{g(),y.current=null},a))},[a,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function v(){switch(c){case ib.Always:return!1;case ib.BeforeDragging:return n;default:return!n}}}function Ple(e,t){return sv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Tlt(e,t){return Ple(e,t)}function Mlt(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function GC(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function Rlt(e){return new CI(pg(e),e)}function PK(e,t,n){t===void 0&&(t=Rlt);const[r,i]=_.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=Mlt({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=GC({callback:o});return yc(()=>{o(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function Ilt(e){const t=Ple(e);return kle(e,t)}const jK=[];function Plt(e){const t=_.useRef(e),n=sv(r=>e?r&&r!==jK&&e&&t.current&&e.parentNode===t.current.parentNode?r:qC(e):jK,[e]);return _.useEffect(()=>{t.current=e},[e]),n}function jlt(e){const[t,n]=_.useState(null),r=_.useRef(e),i=_.useCallback(o=>{const s=XA(o.target);s&&n(a=>a?(a.set(s,XD(s)),new Map(a)):null)},[]);return _.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=XA(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,XD(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=XA(l);c?.removeEventListener("scroll",i)})}},[i,e]),_.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>nm(o,s),sl):Rle(e):sl,[e,t])}function $K(e,t){t===void 0&&(t=[]);const n=_.useRef(null);return _.useEffect(()=>{n.current=null},t),_.useEffect(()=>{const r=e!==sl;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?nb(e,n.current):sl}function $lt(e){_.useEffect(()=>{if(!WC)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 Llt(e,t){return _.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function jle(e){return _.useMemo(()=>e?alt(e):null,[e])}const LK=[];function Nlt(e,t){t===void 0&&(t=pg);const[n]=e,r=jle(n?fs(n):null),[i,o]=_.useState(LK);function s(){o(()=>e.length?e.map(l=>Tle(l)?r:new CI(t(l),l)):LK)}const a=GC({callback:s});return yc(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),i}function Flt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ov(t)?t:e}function Blt(e){let{measure:t}=e;const[n,r]=_.useState(null),i=_.useCallback(c=>{for(const{target:u}of c)if(ov(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),o=GC({callback:i}),s=_.useCallback(c=>{const u=Flt(c);o?.disconnect(),u&&o?.observe(u),r(u?t(u):null)},[t,o]),[a,l]=wS(s);return _.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const zlt=[{sensor:kI,options:{}},{sensor:EI,options:{}}],Hlt={current:{}},k4={draggable:{measure:OK},droppable:{measure:OK,strategy:ib.WhileDragging,frequency:JD.Optimized},dragOverlay:{measure:pg}};class jy 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 Ult={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jy,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:k4,measureDroppableContainers:CS,windowRect:null,measuringScheduled:!1},Vlt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CS,draggableNodes:new Map,over:null,measureDroppableContainers:CS},KC=_.createContext(Vlt),$le=_.createContext(Ult);function Wlt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jy}}}function qlt(e,t){switch(t.type){case Li.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Li.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 Li.DragEnd:case Li.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Li.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new jy(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Li.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 jy(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case Li.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new jy(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Glt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=_.useContext(KC),o=KD(r),s=KD(n?.id);return _.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 f=Fat(u);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function Klt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Ylt(e){return _.useMemo(()=>({draggable:{...k4.draggable,...e?.draggable},droppable:{...k4.droppable,...e?.droppable},dragOverlay:{...k4.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Xlt(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=_.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;yc(()=>{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),f=kle(u,r);if(s||(f.x=0),a||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=_le(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,s,a,r,n])}const Lle=_.createContext({...sl,scaleX:1,scaleY:1});var xd;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(xd||(xd={}));const Zlt=_.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=zlt,collisionDetection:f=elt,measuring:h,modifiers:g,...y}=t;const b=_.useReducer(qlt,void 0,Wlt),[v,S]=b,[C,w]=Wat(),[A,E]=_.useState(xd.Uninitialized),D=A===xd.Initialized,{draggable:{active:O,nodes:T,translate:I},droppable:{containers:N}}=v,$=O!=null?T.get(O):null,R=_.useRef({initial:null,translated:null}),F=_.useMemo(()=>{var Dt;return O!=null?{id:O,data:(Dt=$?.data)!=null?Dt:Hlt,rect:R}:null},[O,$]),j=_.useRef(null),[z,L]=_.useState(null),[q,V]=_.useState(null),U=tb(y,Object.values(y)),K=av("DndDescribedBy",s),B=_.useMemo(()=>N.getEnabled(),[N]),W=Ylt(h),{droppableRects:X,measureDroppableContainers:H,measuringScheduled:Y}=Olt(B,{dragging:D,dependencies:[I.x,I.y],config:W.droppable}),J=_lt(T,O),ne=_.useMemo(()=>q?YD(q):null,[q]),ee=yr(),se=Tlt(J,W.draggable.measure);Xlt({activeNode:O!=null?T.get(O):null,config:ee.layoutShiftCompensation,initialRect:se,measure:W.draggable.measure});const ue=PK(J,W.draggable.measure,se),te=PK(J?J.parentElement:null),Z=_.useRef({activatorEvent:null,active:null,activeNode:J,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=N.getNodeFor((n=Z.current.over)==null?void 0:n.id),oe=Blt({measure:W.dragOverlay.measure}),fe=(r=oe.nodeRef.current)!=null?r:J,be=D?(i=oe.rect)!=null?i:ue:null,De=!!(oe.nodeRef.current&&oe.rect),Oe=Ilt(De?null:ue),Ke=jle(fe?fs(fe):null),xe=Plt(D?re??J:null),Le=Nlt(xe),Me=Klt(g,{transform:{x:I.x-Oe.x,y:I.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:q,active:F,activeNodeRect:ue,containerNodeRect:te,draggingNodeRect:be,over:Z.current.over,overlayNodeRect:oe.rect,scrollableAncestors:xe,scrollableAncestorRects:Le,windowRect:Ke}),ht=ne?nm(ne,I):null,mt=jlt(xe),ze=$K(mt),Pe=$K(mt,[ue]),He=nm(Me,ze),Je=be?rlt(be,Me):null,nt=F&&Je?f({active:F,collisionRect:Je,droppableRects:X,droppableContainers:B,pointerCoordinates:ht}):null,ot=Ale(nt,"id"),[Xe,Lt]=_.useState(null),Nt=De?Me:nm(Me,Pe),Ot=tlt(Nt,(o=Xe?.rect)!=null?o:null,ue),Xn=_.useRef(null),rn=_.useCallback((Dt,jt)=>{let{sensor:Jt,options:jn}=jt;if(j.current==null)return;const on=T.get(j.current);if(!on)return;const St=Dt.nativeEvent,mn=new Jt({active:j.current,activeNode:on,event:St,options:jn,context:Z,onAbort(br){if(!T.get(br))return;const{onDragAbort:le}=U.current,pe={id:br};le?.(pe),C({type:"onDragAbort",event:pe})},onPending(br,ei,le,pe){if(!T.get(br))return;const{onDragPending:Fe}=U.current,Ue={id:br,constraint:ei,initialCoordinates:le,offset:pe};Fe?.(Ue),C({type:"onDragPending",event:Ue})},onStart(br){const ei=j.current;if(ei==null)return;const le=T.get(ei);if(!le)return;const{onDragStart:pe}=U.current,Se={activatorEvent:St,active:{id:ei,data:le.data,rect:R}};Dd.unstable_batchedUpdates(()=>{pe?.(Se),E(xd.Initializing),S({type:Li.DragStart,initialCoordinates:br,active:ei}),C({type:"onDragStart",event:Se}),L(Xn.current),V(St)})},onMove(br){S({type:Li.DragMove,coordinates:br})},onEnd:Qr(Li.DragEnd),onCancel:Qr(Li.DragCancel)});Xn.current=mn;function Qr(br){return async function(){const{active:le,collisions:pe,over:Se,scrollAdjustedTranslate:Fe}=Z.current;let Ue=null;if(le&&Fe){const{cancelDrop:yt}=U.current;Ue={activatorEvent:St,active:le,collisions:pe,delta:Fe,over:Se},br===Li.DragEnd&&typeof yt=="function"&&await Promise.resolve(yt(Ue))&&(br=Li.DragCancel)}j.current=null,Dd.unstable_batchedUpdates(()=>{S({type:br}),E(xd.Uninitialized),Lt(null),L(null),V(null),Xn.current=null;const yt=br===Li.DragEnd?"onDragEnd":"onDragCancel";if(Ue){const rt=U.current[yt];rt?.(Ue),C({type:yt,event:Ue})}})}}},[T]),at=_.useCallback((Dt,jt)=>(Jt,jn)=>{const on=Jt.nativeEvent,St=T.get(jn);if(j.current!==null||!St||on.dndKit||on.defaultPrevented)return;const mn={active:St};Dt(Jt,jt.options,mn)===!0&&(on.dndKit={capturedBy:jt.sensor},j.current=jn,rn(Jt,jt))},[T,rn]),Ht=Dlt(u,at);$lt(u),yc(()=>{ue&&A===xd.Initializing&&E(xd.Initialized)},[ue,A]),_.useEffect(()=>{const{onDragMove:Dt}=U.current,{active:jt,activatorEvent:Jt,collisions:jn,over:on}=Z.current;if(!jt||!Jt)return;const St={active:jt,activatorEvent:Jt,collisions:jn,delta:{x:He.x,y:He.y},over:on};Dd.unstable_batchedUpdates(()=>{Dt?.(St),C({type:"onDragMove",event:St})})},[He.x,He.y]),_.useEffect(()=>{const{active:Dt,activatorEvent:jt,collisions:Jt,droppableContainers:jn,scrollAdjustedTranslate:on}=Z.current;if(!Dt||j.current==null||!jt||!on)return;const{onDragOver:St}=U.current,mn=jn.get(ot),Qr=mn&&mn.rect.current?{id:mn.id,rect:mn.rect.current,data:mn.data,disabled:mn.disabled}:null,br={active:Dt,activatorEvent:jt,collisions:Jt,delta:{x:on.x,y:on.y},over:Qr};Dd.unstable_batchedUpdates(()=>{Lt(Qr),St?.(br),C({type:"onDragOver",event:br})})},[ot]),yc(()=>{Z.current={activatorEvent:q,active:F,activeNode:J,collisionRect:Je,collisions:nt,droppableRects:X,draggableNodes:T,draggingNode:fe,draggingNodeRect:be,droppableContainers:N,over:Xe,scrollableAncestors:xe,scrollAdjustedTranslate:He},R.current={initial:be,translated:Je}},[F,J,nt,Je,T,fe,be,X,N,Xe,xe,He]),Elt({...ee,delta:I,draggingRect:Je,pointerCoordinates:ht,scrollableAncestors:xe,scrollableAncestorRects:Le});const Dn=_.useMemo(()=>({active:F,activeNode:J,activeNodeRect:ue,activatorEvent:q,collisions:nt,containerNodeRect:te,dragOverlay:oe,draggableNodes:T,droppableContainers:N,droppableRects:X,over:Xe,measureDroppableContainers:H,scrollableAncestors:xe,scrollableAncestorRects:Le,measuringConfiguration:W,measuringScheduled:Y,windowRect:Ke}),[F,J,ue,q,nt,te,oe,T,N,X,Xe,H,xe,Le,W,Y,Ke]),Gn=_.useMemo(()=>({activatorEvent:q,activators:Ht,active:F,activeNodeRect:ue,ariaDescribedById:{draggable:K},dispatch:S,draggableNodes:T,over:Xe,measureDroppableContainers:H}),[q,Ht,F,ue,S,K,T,Xe,H]);return qt.createElement(wle.Provider,{value:w},qt.createElement(KC.Provider,{value:Gn},qt.createElement($le.Provider,{value:Dn},qt.createElement(Lle.Provider,{value:Ot},c)),qt.createElement(Glt,{disabled:a?.restoreFocus===!1})),qt.createElement(Kat,{...a,hiddenTextDescribedById:K}));function yr(){const Dt=z?.autoScrollEnabled===!1,jt=typeof l=="object"?l.enabled===!1:l===!1,Jt=D&&!Dt&&!jt;return typeof l=="object"?{...l,enabled:Jt}:{enabled:Jt}}}),Jlt=_.createContext(null),NK="button",Qlt="Draggable";function ect(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=av(Qlt),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=_.useContext(KC),{role:g=NK,roleDescription:y="draggable",tabIndex:b=0}=i??{},v=l?.id===t,S=_.useContext(v?Lle:Jlt),[C,w]=wS(),[A,E]=wS(),D=Llt(s,t),O=tb(n);yc(()=>(f.set(t,{id:t,key:o,node:C,activatorNode:A,data:O}),()=>{const I=f.get(t);I&&I.key===o&&f.delete(t)}),[f,t]);const T=_.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":v&&g===NK?!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:T,isDragging:v,listeners:r?void 0:D,node:C,over:h,setNodeRef:w,setActivatorNodeRef:E,transform:S}}function tct(){return _.useContext($le)}const nct="Droppable",rct={timeout:25};function ict(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=av(nct),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=_.useContext(KC),u=_.useRef({disabled:n}),f=_.useRef(!1),h=_.useRef(null),g=_.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...rct,...i},S=tb(b??r),C=_.useCallback(()=>{if(!f.current){f.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=GC({callback:C,disabled:y||!s}),A=_.useCallback((T,I)=>{w&&(I&&(w.unobserve(I),f.current=!1),T&&w.observe(T))},[w]),[E,D]=wS(A),O=tb(t);return _.useEffect(()=>{!w||!E.current||(w.disconnect(),f.current=!1,w.observe(E.current))},[E,w]),_.useEffect(()=>(a({type:Li.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:h,data:O}}),()=>a({type:Li.UnregisterDroppable,key:o,id:r})),[r]),_.useEffect(()=>{n!==u.current.disabled&&(a({type:Li.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:h,isOver:l?.id===r,node:E,over:l,setNodeRef:D}}function _I(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function oct(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function A5(e){return e!==null&&e>=0}function sct(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 act(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Nle=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=_I(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}},k5={scaleX:1,scaleY:1},lct=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,...k5}:null}const l=cct(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...k5}:i<n&&i>=s?{x:0,y:a.height+l,...k5}:{x:0,y:0,...k5}};function cct(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 Fle="Sortable",Ble=qt.createContext({activeIndex:-1,containerId:Fle,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Nle,disabled:{draggable:!1,droppable:!1}});function uct(e){let{children:t,id:n,items:r,strategy:i=Nle,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=tct(),f=av(Fle,n),h=a.rect!==null,g=_.useMemo(()=>r.map(D=>typeof D=="object"&&"id"in D?D.id:D),[r]),y=s!=null,b=s?g.indexOf(s.id):-1,v=c?g.indexOf(c.id):-1,S=_.useRef(g),C=!sct(g,S.current),w=v!==-1&&b===-1||C,A=act(o);yc(()=>{C&&y&&u(g)},[C,g,y,u]),_.useEffect(()=>{S.current=g},[g]);const E=_.useMemo(()=>({activeIndex:b,containerId:f,disabled:A,disableTransforms:w,items:g,overIndex:v,useDragOverlay:h,sortedRects:oct(g,l),strategy:i}),[b,f,A.draggable,A.droppable,w,g,v,l,h,i]);return qt.createElement(Ble.Provider,{value:E},t)}const dct=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return _I(n,r,i).indexOf(t)},fct=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},hct={duration:200,easing:"ease"},zle="transform",pct=rb.Transition.toString({property:zle,duration:0,easing:"linear"}),mct={roleDescription:"sortable"};function gct(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=_.useState(null),a=_.useRef(n);return yc(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=pg(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]),_.useEffect(()=>{o&&s(null)},[o]),o}function yct(e){let{animateLayoutChanges:t=fct,attributes:n,disabled:r,data:i,getNewIndex:o=dct,id:s,strategy:a,resizeObserverConfig:l,transition:c=hct}=e;const{items:u,containerId:f,activeIndex:h,disabled:g,disableTransforms:y,sortedRects:b,overIndex:v,useDragOverlay:S,strategy:C}=_.useContext(Ble),w=bct(r,g),A=u.indexOf(s),E=_.useMemo(()=>({sortable:{containerId:f,index:A,items:u},...i}),[f,i,A,u]),D=_.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:O,node:T,isOver:I,setNodeRef:N}=ict({id:s,data:E,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...l}}),{active:$,activatorEvent:R,activeNodeRect:F,attributes:j,setNodeRef:z,listeners:L,isDragging:q,over:V,setActivatorNodeRef:U,transform:K}=ect({id:s,data:E,attributes:{...mct,...n},disabled:w.draggable}),B=jat(N,z),W=!!$,X=W&&!y&&A5(h)&&A5(v),H=!S&&q,Y=H&&X?K:null,ne=X?Y??(a??C)({rects:b,activeNodeRect:F,activeIndex:h,overIndex:v,index:A}):null,ee=A5(h)&&A5(v)?o({id:s,items:u,activeIndex:h,overIndex:v}):A,se=$?.id,ue=_.useRef({activeId:se,items:u,newIndex:ee,containerId:f}),te=u!==ue.current.items,Z=t({active:$,containerId:f,isDragging:q,isSorting:W,id:s,index:A,items:u,newIndex:ue.current.newIndex,previousItems:ue.current.items,previousContainerId:ue.current.containerId,transition:c,wasDragging:ue.current.activeId!=null}),re=gct({disabled:!Z,index:A,node:T,rect:O});return _.useEffect(()=>{W&&ue.current.newIndex!==ee&&(ue.current.newIndex=ee),f!==ue.current.containerId&&(ue.current.containerId=f),u!==ue.current.items&&(ue.current.items=u)},[W,ee,f,u]),_.useEffect(()=>{if(se===ue.current.activeId)return;if(se!=null&&ue.current.activeId==null){ue.current.activeId=se;return}const fe=setTimeout(()=>{ue.current.activeId=se},50);return()=>clearTimeout(fe)},[se]),{active:$,activeIndex:h,attributes:j,data:E,rect:O,index:A,newIndex:ee,items:u,isOver:I,isSorting:W,isDragging:q,listeners:L,node:T,overIndex:v,over:V,setNodeRef:B,setActivatorNodeRef:U,setDroppableNodeRef:N,setDraggableNodeRef:z,transform:re??ne,transition:oe()};function oe(){if(re||te&&ue.current.newIndex===A)return pct;if(!(H&&!wI(R)||!c)&&(W||Z))return rb.Transition.toString({...c,property:zle})}}function bct(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 AS(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 vct=[Ln.Down,Ln.Right,Ln.Up,Ln.Left],xct=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(vct.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const h=i.get(f.id);if(h)switch(e.code){case Ln.Down:r.top<h.top&&l.push(f);break;case Ln.Up:r.top>h.top&&l.push(f);break;case Ln.Left:r.left>h.left&&l.push(f);break;case Ln.Right:r.left<h.left&&l.push(f);break}});const c=Jat({collisionRect:r,droppableRects:i,droppableContainers:l});let u=Ale(c,"id");if(u===s?.id&&c.length>1&&(u=c[1].id),u!=null){const f=o.get(n.id),h=o.get(u),g=h?i.get(h.id):null,y=h?.node.current;if(y&&g&&f&&h){const v=qC(y).some((D,O)=>a[O]!==D),S=Hle(f,h),C=Sct(f,h),w=v||!S?{x:0,y:0}:{x:C?r.width-g.width:0,y:C?r.height-g.height:0},A={x:g.left,y:g.top};return w.x&&w.y?A:nb(A,w)}}}};function Hle(e,t){return!AS(e)||!AS(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Sct(e,t){return!AS(e)||!AS(t)||!Hle(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const wct=({bridge:e,index:t})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:s,isDragging:a}=yct({id:e.id}),[l,c]=_.useState(!1);_.useEffect(()=>{_w(e.id).then(c)},[e.id]);const u={transform:rb.Transform.toString(o),transition:s,opacity:a?.5:1};return m.jsx(tr,{ref:i,style:u,variant:"outlined",sx:{cursor:"grab","&:active":{cursor:"grabbing"},bgcolor:a?"action.selected":"background.paper",width:"fit-content"},children:m.jsxs(gr,{sx:{display:"flex",alignItems:"center",gap:1.5,py:1,"&:last-child":{pb:1}},children:[m.jsx(ce,{...n,...r,sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:m.jsx(QCe,{})}),m.jsx(Et,{label:t+1,size:"small",color:"primary",sx:{minWidth:32,fontWeight:"bold"}}),l?m.jsx(ce,{component:"img",src:t2(e.id),alt:e.name,sx:{width:40,height:40,borderRadius:"50%",objectFit:"cover",boxShadow:2}}):m.jsx(rl,{sx:{bgcolor:MT(e),width:40,height:40,boxShadow:2},children:(()=>{const f=TT(e);return m.jsx(f,{sx:{fontSize:24}})})()}),m.jsxs(ce,{sx:{flex:1},children:[m.jsx(ie,{variant:"subtitle1",fontWeight:500,children:e.name}),m.jsxs(ie,{variant:"caption",color:"text.secondary",children:["Port: ",e.port," • Priority: ",e.priority??100]})]})]})})},Cct=()=>{const e=Tu(),{content:t,isLoading:n}=Vm(),r=SCe(),[i,o]=_.useState([]),[s,a]=_.useState(!1);_.useEffect(()=>{if(t){const h=[...t].sort((g,y)=>{const b=g.priority??100,v=y.priority??100;return b-v});o(h),a(!1)}},[t]);const l=Yat(kK(kI),kK(EI,{coordinateGetter:xct})),c=_.useCallback(h=>{const{active:g,over:y}=h;y&&g.id!==y.id&&(o(b=>{const v=b.findIndex(C=>C.id===g.id),S=b.findIndex(C=>C.id===y.id);return _I(b,v,S)}),a(!0))},[]),u=_.useCallback(async()=>{const h=i.map((g,y)=>({id:g.id,priority:(y+1)*10}));try{await r(h),e.show({message:"Startup order saved successfully",severity:"success"}),a(!1)}catch(g){e.show({message:g instanceof Error?g.message:"Failed to save startup order",severity:"error"})}},[i,r,e]),f=_.useMemo(()=>i.map(h=>h.id),[i]);return n?m.jsx(ie,{children:"Loading..."}):m.jsxs(zt,{spacing:3,children:[m.jsx(lw,{items:[{name:"Bridges",to:Pt.bridges},{name:"Startup Order",to:Pt.startup}]}),m.jsxs(ce,{display:"flex",alignItems:"center",gap:2,children:[m.jsx(yb,{color:"primary",fontSize:"large"}),m.jsxs(ce,{children:[m.jsx(ie,{variant:"h5",fontWeight:600,children:"Startup Order"}),m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Drag and drop bridges to set the startup order. Lower positions start first."})]})]}),s&&m.jsx(vn,{severity:"info",action:m.jsx(kt,{color:"inherit",size:"small",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Changes"}),children:"You have unsaved changes to the startup order."}),m.jsx(Zlt,{sensors:l,collisionDetection:Zat,onDragEnd:c,children:m.jsx(uct,{items:f,strategy:lct,children:m.jsx(zt,{spacing:1,children:i.map((h,g)=>m.jsx(wct,{bridge:h,index:g},h.id))})})}),i.length===0&&m.jsx(ie,{color:"text.secondary",textAlign:"center",py:4,children:"No bridges configured yet."}),s&&i.length>0&&m.jsx(ce,{display:"flex",justifyContent:"flex-end",children:m.jsx(kt,{variant:"contained",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Startup Order"})})]})},QA="https://riddix.github.io/home-assistant-matter-hub",Pt={dashboard:"/",bridges:"/bridges",bridge:e=>`/bridges/${e}`,createBridge:"/bridges/create",editBridge:e=>`/bridges/${e}/edit`,devices:"/devices",networkMap:"/network-map",health:"/health",labels:"/labels",lockCredentials:"/lock-credentials",settings:"/settings",startup:"/startup",githubRepository:"https://github.com/riddix/home-assistant-matter-hub/",documentation:QA,faq:{multiFabric:`${QA}/connect-multiple-fabrics`,bridgeConfig:`${QA}/bridge-configuration`}},Ect=[{path:"",element:m.jsx(_2e,{}),children:[{path:"",element:m.jsx(u9e,{})},{path:Pt.bridges,element:m.jsx(a9e,{})},{path:Pt.createBridge,element:m.jsx(JQe,{})},{path:Pt.bridge(":bridgeId"),element:m.jsx(ICe,{})},{path:Pt.editBridge(":bridgeId"),element:m.jsx(QQe,{})},{path:Pt.devices,element:m.jsx(D9e,{})},{path:Pt.networkMap,element:m.jsx(Tat,{})},{path:Pt.health,element:m.jsx(aet,{})},{path:Pt.labels,element:m.jsx(fet,{})},{path:Pt.lockCredentials,element:m.jsx(bet,{})},{path:Pt.settings,element:m.jsx(Pat,{})},{path:Pt.startup,element:m.jsx(Cct,{})},{path:"*",element:m.jsx(vet,{})}]}],Act={items:{isInitialized:!1,isLoading:!1}},kct=FO(Act,e=>{e.addCase(Bo.pending,t=>{t.items.isLoading=!0}).addCase(Bo.rejected,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=void 0,t.items.error=n.error}).addCase(Bo.fulfilled,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(zX.fulfilled,(t,n)=>{t.items.content?.push(n.payload)}).addCase(UX.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(VX.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(HX.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(WX,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(qX,(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)}})}),_ct={byBridge:{}},Dct=FO(_ct,e=>{e.addCase(du.pending,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.rejected,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.fulfilled,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)})}),Oct={isInitialized:!1,isLoading:!1,content:void 0,error:void 0},ek=FO(Oct,e=>{e.addCase(du.pending,t=>{t.isLoading=!0}).addCase(du.rejected,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=void 0,t.error=n.error}).addCase(du.fulfilled,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=n.payload,t.error=void 0})}),Tct=l2e({reducer:{bridges:kct,devices:Dct}}),DI=Wme({createStyledComponent:me("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ye(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>it({props:e,name:"MuiContainer"})});function Mct(e){return Qe("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const Rct=e=>{const{classes:t,disableGutters:n,variant:r}=e;return et({root:["root",!n&&"gutters",r]},Mct,t)},Ict=me("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ge(({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}]}))),Ule=_.forwardRef(function(t,n){const r=it({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=Rct(c);return m.jsx(Ict,{as:o,className:Te(u.root,i),ref:n,ownerState:c,...l})});class Pct extends _.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?m.jsxs(ce,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",gap:2,p:4,children:[m.jsx(KO,{color:"error",sx:{fontSize:64}}),m.jsx(ie,{variant:"h5",fontWeight:600,children:"Something went wrong"}),m.jsx(ie,{variant:"body2",color:"text.secondary",textAlign:"center",maxWidth:480,children:this.state.error?.message??"An unexpected error occurred."}),m.jsx(kt,{variant:"contained",onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:"Reload Page"})]}):this.props.children}}const jct=[{name:"GitHub",url:Pt.githubRepository},{name:"Documentation",url:Pt.documentation}],$ct=()=>m.jsxs(DI,{sx:{mt:16,mb:4},children:[m.jsx(gi,{sx:{mt:4,mb:4}}),m.jsx(dt,{container:!0,spacing:2,justifyContent:"center",children:jct.map((e,t)=>m.jsx(dt,{size:{xs:12,sm:"auto"},children:m.jsx(kt,{fullWidth:!0,size:"small",variant:"outlined",component:aw,href:e.url,target:"_blank",children:e.name})},t.toString()))})]});function Lct(e){return Qe("MuiAppBar",e)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Nct=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ye(t)}`,`position${ye(n)}`]};return et(i,Lct,r)},FK=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,Fct=me(Ur,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],t[`color${ye(n.color)}`]]}})(Ge(({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(Fn(["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?FK(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?FK(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"})}}]}))),Bct=_.forwardRef(function(t,n){const r=it({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=Nct(c);return m.jsx(Fct,{square:!0,component:"header",ownerState:c,elevation:4,className:Te(u.root,i,a==="fixed"&&"mui-fixed"),ref:n,...l})});function zct(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=tl(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 Hct(e){return typeof e=="function"?e():e}function _5(e,t,n){const r=Hct(n),i=zct(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Uct=_.forwardRef(function(t,n){const r=ro(),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:f=i,in:h,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:S,onExiting:C,style:w,timeout:A=o,TransitionComponent:E=Ta,...D}=t,O=_.useRef(null),T=Tr(gf(l),O,n),I=V=>U=>{V&&(U===void 0?V(O.current):V(O.current,U))},N=I((V,U)=>{_5(u,V,c),IO(V),g&&g(V,U)}),$=I((V,U)=>{const K=Kd({timeout:A,style:w,easing:f},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",{...K}),V.style.transition=r.transitions.create("transform",{...K}),V.style.webkitTransform="none",V.style.transform="none",b&&b(V,U)}),R=I(y),F=I(C),j=I(V=>{const U=Kd({timeout:A,style:w,easing:f},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",U),V.style.transition=r.transitions.create("transform",U),_5(u,V,c),v&&v(V)}),z=I(V=>{V.style.webkitTransition="",V.style.transition="",S&&S(V)}),L=V=>{s&&s(O.current,V)},q=_.useCallback(()=>{O.current&&_5(u,O.current,c)},[u,c]);return _.useEffect(()=>{if(h||u==="down"||u==="right")return;const V=OO(()=>{O.current&&_5(u,O.current,c)}),U=tl(O.current);return U.addEventListener("resize",V),()=>{V.clear(),U.removeEventListener("resize",V)}},[u,h,c]),_.useEffect(()=>{h||q()},[h,q]),m.jsx(E,{nodeRef:O,onEnter:N,onEntered:R,onEntering:$,onExit:j,onExited:z,onExiting:F,addEndListener:L,appear:a,in:h,timeout:A,...D,children:(V,{ownerState:U,...K})=>_.cloneElement(l,{ref:T,style:{visibility:V==="exited"&&!h?"hidden":void 0,...w,...l.props.style},...K})})});function Vct(e){return Qe("MuiDrawer",e)}tt("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Vle=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,n.variant==="temporary"&&t.modal]},Wct=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root",`anchor${ye(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ye(n)}`,r!=="temporary"&&`paperAnchorDocked${ye(n)}`]};return et(i,Vct,t)},qct=me(ZO,{name:"MuiDrawer",slot:"Root",overridesResolver:Vle})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Gct=me("div",{shouldForwardProp:io,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Vle})({flex:"0 0 auto"}),Kct=me(Ur,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ye(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ye(n.anchor)}`]]}})(Ge(({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}`}}]}))),Wle={left:"right",right:"left",top:"down",bottom:"up"};function Yct(e){return["left","right"].includes(e)}function Xct({direction:e},t){return e==="rtl"&&Yct(t)?Wle[t]:t}const Zct=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDrawer"}),i=ro(),o=mf(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:g,...y}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:C,TransitionComponent:w,transitionDuration:A=s,variant:E="temporary",slots:D={},slotProps:O={},...T}=r,I=_.useRef(!1);_.useEffect(()=>{I.current=!0},[]);const N=Xct({direction:o?"rtl":"ltr"},a),R={...r,anchor:a,elevation:f,open:v,variant:E,...T},F=Wct(R),j={slots:{transition:w,...D},slotProps:{paper:S,transition:C,...O,backdrop:TO(O.backdrop||{...l,...g},{transitionDuration:A})}},[z,L]=lt("root",{ref:n,elementType:qct,className:Te(F.root,F.modal,u),shouldForwardComponentProp:!0,ownerState:R,externalForwardedProps:{...j,...T,...y},additionalProps:{open:v,onClose:b,hideBackdrop:h,slots:{backdrop:j.slots.backdrop},slotProps:{backdrop:j.slotProps.backdrop}}}),[q,V]=lt("paper",{elementType:Kct,shouldForwardComponentProp:!0,className:Te(F.paper,S.className),ownerState:R,externalForwardedProps:j,additionalProps:{elevation:E==="temporary"?f:0,square:!0,...E==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[U,K]=lt("docked",{elementType:Gct,ref:n,className:Te(F.root,F.docked,u),ownerState:R,externalForwardedProps:j,additionalProps:T}),[B,W]=lt("transition",{elementType:Uct,ownerState:R,externalForwardedProps:j,additionalProps:{in:v,direction:Wle[N],timeout:A,appear:I.current}}),X=m.jsx(q,{...V,children:c});if(E==="permanent")return m.jsx(U,{...K,children:X});const H=m.jsx(B,{...W,children:X});return E==="persistent"?m.jsx(U,{...K,children:H}):m.jsx(z,{...L,children:H})}),Jct=XY({themeId:da}),Qct={error:vf,warn:iw,info:YO,debug:Aw},eut=({open:e,onClose:t})=>{const n=ro(),r=_.useMemo(()=>({error:n.palette.error.main,warn:n.palette.warning.main,info:n.palette.info.main,debug:n.palette.secondary.main}),[n]),[i,o]=_.useState([]),[s,a]=_.useState(!0),[l,c]=_.useState("error,warn,info".split(",")),[u,f]=_.useState(""),[h,g]=_.useState(!0),y=_.useCallback(async()=>{try{const w=new URLSearchParams({level:l.join(","),limit:"500",...u&&{search:u}}),A=await fetch(`api/logs?${w}`);if(A.ok){const E=await A.json();o(E.entries)}}catch(w){console.error("Failed to fetch logs:",w)}finally{a(!1)}},[l,u]);_.useEffect(()=>{e&&y()},[e,y]),_.useEffect(()=>{if(!h||!e)return;const w=setInterval(y,5e3);return()=>clearInterval(w)},[h,e,y]);const b=w=>{c(Array.isArray(w.target.value)?w.target.value:[w.target.value])},v=w=>{f(w.target.value)},S=async()=>{try{await fetch("api/logs",{method:"DELETE"}),o([])}catch(w){console.error("Failed to clear logs:",w)}},C=w=>{const A=Qct[w]||YO;return m.jsx(A,{sx:{fontSize:16,color:r[w]}})};return m.jsxs(vu,{open:e,onClose:t,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(Su,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Aw,{}),"System Logs",m.jsx(ce,{sx:{flexGrow:1}}),m.jsx(cn,{title:"Auto Refresh",children:m.jsx(Et,{label:h?"Auto":"Manual",color:h?"success":"default",size:"small",onClick:()=>g(!h),sx:{cursor:"pointer"}})}),m.jsx(_n,{onClick:t,children:m.jsx(qCe,{})})]}),m.jsxs(xu,{children:[m.jsx(zt,{spacing:2,sx:{mb:2},children:m.jsxs(zt,{direction:"row",spacing:2,alignItems:"center",children:[m.jsxs(pa,{size:"small",sx:{minWidth:200},children:[m.jsx(sc,{children:"Log Level"}),m.jsxs(sa,{value:l,label:"Log Level",onChange:b,multiple:!0,renderValue:w=>m.jsx(ce,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:(Array.isArray(w)?w:[w]).map(A=>m.jsx(Et,{label:A.toUpperCase(),size:"small",sx:{backgroundColor:r[A],color:"white"}},A))}),children:[m.jsx(er,{value:"error",children:"Error"}),m.jsx(er,{value:"warn",children:"Warning"}),m.jsx(er,{value:"info",children:"Info"}),m.jsx(er,{value:"debug",children:"Debug"})]})]}),m.jsx(Lr,{size:"small",placeholder:"Search logs...",value:u,onChange:v,sx:{flexGrow:1}}),m.jsx(kt,{variant:"outlined",onClick:y,children:"Refresh"}),m.jsx(kt,{variant:"outlined",color:"error",onClick:S,children:"Clear"})]})}),m.jsx(ce,{sx:{height:400,overflow:"auto",backgroundColor:"background.paper",border:1,borderColor:"divider",borderRadius:1,p:1},children:s?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{children:"Loading logs..."})}):i.length===0?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{color:"text.secondary",children:"No logs found"})}):m.jsx(zt,{spacing:1,children:i.map((w,A)=>m.jsxs(ce,{sx:{p:1,borderRadius:1,backgroundColor:"action.hover",fontFamily:"monospace",fontSize:"0.875rem",wordBreak:"break-all"},children:[m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[C(w.level),m.jsx(ie,{variant:"caption",color:"text.secondary",children:new Date(w.timestamp).toLocaleString()}),m.jsx(Et,{label:w.level.toUpperCase(),size:"small",sx:{backgroundColor:r[w.level],color:n.palette.getContrastText(r[w.level]??n.palette.grey[500]),fontSize:"0.7rem",height:20}})]}),m.jsx(ie,{sx:{ml:3},children:w.message}),w.context&&m.jsx(ie,{sx:{ml:3,color:"text.secondary",fontSize:"0.8rem"},children:JSON.stringify(w.context,null,2)})]},`${w.timestamp}-${w.level}-${A}`))})})]}),m.jsx(Xd,{children:m.jsx(kt,{onClick:t,children:"Close"})})]})};function BK(){const{isConnected:e}=A2e(),[t,n]=_.useState(null),[r,i]=_.useState(!1);_.useEffect(()=>{const y=async()=>{try{const v=await fetch("api/health");if(v.ok){const S=await v.json();n(S),i(!1)}else i(!0)}catch{i(!0)}};y();const b=setInterval(y,3e4);return()=>clearInterval(b)},[]);const o=y=>{const b=Math.floor(y/3600),v=Math.floor(y%3600/60);return b>0?`${b}h ${v}m`:`${v}m`},s=t?.status==="healthy"&&!r,a=t?.services?.bridges,l=a&&a.total>0&&a.running===a.total,c=a&&a.total===0,u=t?m.jsxs(ce,{sx:{p:.5},children:[m.jsxs("div",{children:[m.jsx("strong",{children:"Version:"})," ",t.version??"Unknown"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"Uptime:"})," ",o(t.uptime??0)]}),t.services?.bridges&&m.jsxs("div",{children:[m.jsx("strong",{children:"Bridges:"})," ",t.services.bridges.running??0,"/",t.services.bridges.total??0," running",(t.services.bridges.stopped??0)>0&&` (${t.services.bridges.stopped} stopped)`]}),t.services?.homeAssistant&&m.jsxs("div",{children:[m.jsx("strong",{children:"Home Assistant:"})," ",t.services.homeAssistant.connected?"Connected":"Disconnected"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"WebSocket:"})," ",e?"Connected":"Disconnected"]})]}):"Loading health status...",f=()=>r||!s?m.jsx(vf,{fontSize:"small"}):l?m.jsx(Mu,{fontSize:"small"}):m.jsx(dw,{fontSize:"small"}),h=()=>r||!s?"error":!l||!e?"warning":"success",g=()=>r?"Error":s?e?c?"No Bridges":l?"Online":"Starting":"Offline":"Unhealthy";return m.jsx(cn,{title:u,arrow:!0,children:m.jsx(Et,{icon:f(),label:g(),color:h(),size:"small",variant:"filled",sx:{borderRadius:1,fontWeight:600,"& .MuiChip-icon":{color:"inherit"}}})})}const tut=e=>_.createElement("svg",{viewBox:"0 0 91 89",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{style:{display:"inline"}},_.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"}),_.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"}))),nut="home-assistant-matter-hub",rut={name:nut};function iut(){const[e,t]=_.useState("2.0.28");return _.useEffect(()=>{fetch("api/health").then(n=>n.ok?n.json():null).then(n=>{n?.version&&t(n.version)}).catch(()=>{})},[]),_.useMemo(()=>({name:rut.name,version:e}),[e])}const out=e=>{const t=iut();return m.jsxs(ce,{component:Du,to:Pt.dashboard,sx:{display:"flex",alignItems:"center",justifyContent:e.large?"flex-start":"center",flexGrow:1,textDecoration:"none",color:"inherit"},children:[m.jsx(tut,{style:{height:"40px"}}),m.jsx(ie,{variant:"inherit",component:"span",sx:{mr:1,ml:1},children:t.name.split("-").map(ye).join("-")}),e.large&&m.jsx(ie,{variant:"caption",component:"span",children:t.version})]})},sut=()=>{const e=Jct("(min-width:600px)"),{mode:t,setMode:n}=KS(),[r,i]=_.useState(!1),[o,s]=_.useState(!1),a=hf(),l=()=>{n(t==="dark"?"light":"dark")},c=[{label:"Dashboard",icon:m.jsx(CT,{}),to:Pt.dashboard},{label:"Bridges",icon:m.jsx(t6,{}),to:Pt.bridges},{label:"All Devices",icon:m.jsx(Fs,{}),to:Pt.devices},{label:"Network Map",icon:m.jsx(bT,{}),to:Pt.networkMap},{label:"Startup Order",icon:m.jsx(yb,{}),to:Pt.startup},{label:"Lock Credentials",icon:m.jsx(uu,{}),to:Pt.lockCredentials},{label:"Filter Reference",icon:m.jsx(ET,{}),to:Pt.labels},{label:"Settings",icon:m.jsx(wb,{}),to:Pt.settings},{label:t==="dark"?"Light Mode":"Dark Mode",icon:t==="dark"?m.jsx(a8e,{}):m.jsx(YCe,{}),onClick:l},{label:"System Logs",icon:m.jsx(Aw,{}),onClick:()=>i(!0)},{label:"Health Dashboard",icon:m.jsx(QO,{}),to:Pt.health}],u=f=>{s(!1),f.onClick?f.onClick():f.to&&a(f.to)};return m.jsxs(ce,{children:[m.jsx(Bct,{sx:{height:"72px"},children:m.jsx(Ule,{sx:{paddingLeft:"0 !important",paddingRight:"0 !important"},children:m.jsxs(DI,{sx:{padding:2,height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m.jsx(out,{large:e}),e?m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.map(f=>f.to?m.jsx(cn,{title:f.label,children:m.jsx(_n,{component:Du,to:f.to,sx:{color:"inherit"},children:f.icon})},f.label):m.jsx(cn,{title:f.label,children:m.jsx(_n,{onClick:f.onClick,sx:{color:"inherit"},children:f.icon})},f.label)),m.jsx(BK,{})]}):m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.5},children:[m.jsx(BK,{}),m.jsx(_n,{onClick:()=>s(!0),sx:{color:"inherit"},children:m.jsx(l8e,{})})]})]})})}),m.jsx(Zct,{anchor:"right",open:o,onClose:()=>s(!1),children:m.jsx(bc,{sx:{width:250},children:c.map(f=>m.jsxs(obe,{onClick:()=>u(f),children:[m.jsx(Ul,{children:f.icon}),m.jsx(Va,{primary:f.label})]},f.label))})}),m.jsx(eut,{open:r,onClose:()=>i(!1)})]})},aut=()=>m.jsxs(ce,{children:[m.jsx(sut,{}),m.jsx(Ule,{}),m.jsx(DI,{sx:{p:2},children:m.jsx(Pct,{children:m.jsx(yY,{})})}),m.jsx($ct,{})]}),lut=WS({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 _4=document.getElementsByTagName("base")[0]?.href?.replace(/\/$/,"");_4?.startsWith("http")&&(_4=new URL(_4).pathname);const cut=Hhe([{path:"/",element:m.jsx(aut,{}),children:Ect}],{basename:_4});sde.createRoot(document.getElementById("root")).render(m.jsx(_.StrictMode,{children:m.jsx(Cde,{store:Tct,children:m.jsxs(n1e,{theme:lut,children:[m.jsx(Zge,{}),m.jsx(dX,{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}}}),m.jsx(k2e,{children:m.jsx(yye,{children:m.jsx(epe,{router:cut})})})]})})}));
499
+ `},Gat={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 Kat(e){let{announcements:t=Gat,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=qat}=e;const{announce:o,announcement:s}=Uat(),a=av("DndLiveRegion"),[l,c]=_.useState(!1);if(_.useEffect(()=>{c(!0)},[]),Vat(_.useMemo(()=>({onDragStart(f){let{active:h}=f;o(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&o(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;o(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;o(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;o(t.onDragCancel({active:h,over:g}))}}),[o,t])),!l)return null;const u=qt.createElement(qt.Fragment,null,qt.createElement(zat,{id:r,value:i.draggable}),qt.createElement(Hat,{id:a,announcement:s}));return n?Dd.createPortal(u,n):u}var Li;(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"})(Li||(Li={}));function CS(){}function kK(e,t){return _.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Yat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const sl=Object.freeze({x:0,y:0});function Cle(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ele(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xat(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function _K(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 Ale(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function DK(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 Zat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=DK(t,t.left,t.top),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=Cle(DK(l),i);o.push({id:a,data:{droppableContainer:s,value:c}})}}return o.sort(Ele)},Jat=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=_K(t),o=[];for(const s of r){const{id:a}=s,l=n.get(a);if(l){const c=_K(l),u=i.reduce((h,g,y)=>h+Cle(c[y],g),0),f=Number((u/4).toFixed(4));o.push({id:a,data:{droppableContainer:s,value:f}})}}return o.sort(Ele)};function Qat(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,f=u/(l+c-u);return Number(f.toFixed(4))}return 0}const elt=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=Qat(a,t);l>0&&i.push({id:s,data:{droppableContainer:o,value:l}})}}return i.sort(Xat)};function tlt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function kle(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:sl}function nlt(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 rlt=nlt(1);function ilt(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 olt(e,t,n){const r=ilt(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,f=o?e.height/o:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const slt={ignoreTransform:!1};function pg(e,t){t===void 0&&(t=slt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=fs(e).getComputedStyle(e);c&&(n=olt(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 OK(e){return pg(e,{ignoreTransform:!0})}function alt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function llt(e,t){return t===void 0&&(t=fs(e).getComputedStyle(e)),t.position==="fixed"}function clt(e,t){t===void 0&&(t=fs(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 qC(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(!ov(i)||xle(i)||n.includes(i))return n;const o=fs(e).getComputedStyle(i);return i!==e&&clt(i,o)&&n.push(i),llt(i,o)?n:r(i.parentNode)}return e?r(e):n}function _le(e){const[t]=qC(e,1);return t??null}function XA(e){return!WC||!e?null:fg(e)?e:vI(e)?xI(e)||e===hg(e).scrollingElement?window:ov(e)?e:null:null}function Dle(e){return fg(e)?e.scrollX:e.scrollLeft}function Ole(e){return fg(e)?e.scrollY:e.scrollTop}function XD(e){return{x:Dle(e),y:Ole(e)}}var Xi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Xi||(Xi={}));function Tle(e){return!WC||!e?!1:e===document.scrollingElement}function Mle(e){const t={x:0,y:0},n=Tle(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 ult={x:.2,y:.2};function dlt(e,t,n,r,i){let{top:o,left:s,right:a,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=ult);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=Mle(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=Xi.Backward,y.y=r*Math.abs((t.top+b.height-o)/b.height)):!u&&l>=t.bottom-b.height&&(g.y=Xi.Forward,y.y=r*Math.abs((t.bottom-b.height-l)/b.height)),!h&&a>=t.right-b.width?(g.x=Xi.Forward,y.x=r*Math.abs((t.right-b.width-a)/b.width)):!f&&s<=t.left+b.width&&(g.x=Xi.Backward,y.x=r*Math.abs((t.left+b.width-s)/b.width)),{direction:g,speed:y}}function flt(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 Rle(e){return e.reduce((t,n)=>nm(t,XD(n)),sl)}function hlt(e){return e.reduce((t,n)=>t+Dle(n),0)}function plt(e){return e.reduce((t,n)=>t+Ole(n),0)}function mlt(e,t){if(t===void 0&&(t=pg),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);_le(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const glt=[["x",["left","right"],hlt],["y",["top","bottom"],plt]];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=qC(n),i=Rle(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,a]of glt)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 Iy{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 ylt(e){const{EventTarget:t}=fs(e);return e instanceof t?e:hg(e)}function ZA(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 na;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(na||(na={}));function TK(e){e.preventDefault()}function blt(e){e.stopPropagation()}var Ln;(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"})(Ln||(Ln={}));const Ile={start:[Ln.Space,Ln.Enter],cancel:[Ln.Esc],end:[Ln.Space,Ln.Enter,Ln.Tab]},vlt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ln.Right:return{...n,x:n.x+25};case Ln.Left:return{...n,x:n.x-25};case Ln.Down:return{...n,y:n.y+25};case Ln.Up:return{...n,y:n.y-25}}};class EI{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 Iy(hg(n)),this.windowListeners=new Iy(fs(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(na.Resize,this.handleCancel),this.windowListeners.add(na.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(na.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&mlt(r),n(sl)}handleKeyDown(t){if(wI(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=Ile,coordinateGetter:s=vlt,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}:sl;this.referenceCoordinates||(this.referenceCoordinates=u);const f=s(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=nb(f,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:A,maxScroll:E,minScroll:D}=Mle(b),O=flt(b),T={x:Math.min(v===Ln.Right?O.right-O.width/2:O.right,Math.max(v===Ln.Right?O.left:O.left+O.width/2,f.x)),y:Math.min(v===Ln.Down?O.bottom-O.height/2:O.bottom,Math.max(v===Ln.Down?O.top:O.top+O.height/2,f.y))},I=v===Ln.Right&&!C||v===Ln.Left&&!w,N=v===Ln.Down&&!A||v===Ln.Up&&!S;if(I&&T.x!==f.x){const $=b.scrollLeft+h.x,R=v===Ln.Right&&$<=E.x||v===Ln.Left&&$>=D.x;if(R&&!h.y){b.scrollTo({left:$,behavior:a});return}R?g.x=b.scrollLeft-$:g.x=v===Ln.Right?b.scrollLeft-E.x:b.scrollLeft-D.x,g.x&&b.scrollBy({left:-g.x,behavior:a});break}else if(N&&T.y!==f.y){const $=b.scrollTop+h.y,R=v===Ln.Down&&$<=E.y||v===Ln.Up&&$>=D.y;if(R&&!h.x){b.scrollTo({top:$,behavior:a});return}R?g.y=b.scrollTop-$:g.y=v===Ln.Down?b.scrollTop-E.y:b.scrollTop-D.y,g.y&&b.scrollBy({top:-g.y,behavior:a});break}}this.handleMove(t,nm(nb(f,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()}}EI.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Ile,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 MK(e){return!!(e&&"distance"in e)}function RK(e){return!!(e&&"delay"in e)}class AI{constructor(t,n,r){var i;r===void 0&&(r=ylt(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=hg(s),this.documentListeners=new Iy(this.document),this.listeners=new Iy(r),this.windowListeners=new Iy(fs(s)),this.initialCoordinates=(i=YD(o))!=null?i:sl,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(na.Resize,this.handleCancel),this.windowListeners.add(na.DragStart,TK),this.windowListeners.add(na.VisibilityChange,this.handleCancel),this.windowListeners.add(na.ContextMenu,TK),this.documentListeners.add(na.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(RK(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(MK(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(na.Click,blt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(na.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=YD(t))!=null?n:sl,c=nb(i,l);if(!r&&a){if(MK(a)){if(a.tolerance!=null&&ZA(c,a.tolerance))return this.handleCancel();if(ZA(c,a.distance))return this.handleStart()}if(RK(a)&&ZA(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===Ln.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const xlt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class kI extends AI{constructor(t){const{event:n}=t,r=hg(n.target);super(t,xlt,r)}}kI.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 Slt={move:{name:"mousemove"},end:{name:"mouseup"}};var ZD;(function(e){e[e.RightClick=2]="RightClick"})(ZD||(ZD={}));class wlt extends AI{constructor(t){super(t,Slt,hg(t.event.target))}}wlt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===ZD.RightClick?!1:(r?.({event:n}),!0)}}];const JA={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Clt extends AI{constructor(t){super(t,JA)}static setup(){return window.addEventListener(JA.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(JA.move.name,t)};function t(){}}}Clt.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 Py;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Py||(Py={}));var ES;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ES||(ES={}));function Elt(e){let{acceleration:t,activator:n=Py.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:s=5,order:a=ES.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const g=klt({delta:f,disabled:!o}),[y,b]=$at(),v=_.useRef({x:0,y:0}),S=_.useRef({x:0,y:0}),C=_.useMemo(()=>{switch(n){case Py.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Py.DraggableRect:return i}},[n,i,l]),w=_.useRef(null),A=_.useCallback(()=>{const D=w.current;if(!D)return;const O=v.current.x*S.current.x,T=v.current.y*S.current.y;D.scrollBy(O,T)},[]),E=_.useMemo(()=>a===ES.TreeOrder?[...c].reverse():c,[a,c]);_.useEffect(()=>{if(!o||!c.length||!C){b();return}for(const D of E){if(r?.(D)===!1)continue;const O=c.indexOf(D),T=u[O];if(!T)continue;const{direction:I,speed:N}=dlt(D,T,C,t,h);for(const $ of["x","y"])g[$][I[$]]||(N[$]=0,I[$]=0);if(N.x>0||N.y>0){b(),w.current=D,y(A,s),v.current=N,S.current=I;return}}v.current={x:0,y:0},S.current={x:0,y:0},b()},[t,A,r,b,o,s,JSON.stringify(C),JSON.stringify(g),y,c,E,u,JSON.stringify(h)])}const Alt={x:{[Xi.Backward]:!1,[Xi.Forward]:!1},y:{[Xi.Backward]:!1,[Xi.Forward]:!1}};function klt(e){let{delta:t,disabled:n}=e;const r=KD(t);return sv(i=>{if(n||!r||!i)return Alt;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Xi.Backward]:i.x[Xi.Backward]||o.x===-1,[Xi.Forward]:i.x[Xi.Forward]||o.x===1},y:{[Xi.Backward]:i.y[Xi.Backward]||o.y===-1,[Xi.Forward]:i.y[Xi.Forward]||o.y===1}}},[n,t,r])}function _lt(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return sv(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function Dlt(e,t){return _.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 ib;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ib||(ib={}));var JD;(function(e){e.Optimized="optimized"})(JD||(JD={}));const IK=new Map;function Olt(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,s]=_.useState(null),{frequency:a,measure:l,strategy:c}=i,u=_.useRef(e),f=v(),h=tb(f),g=_.useCallback(function(S){S===void 0&&(S=[]),!h.current&&s(C=>C===null?S:C.concat(S.filter(w=>!C.includes(w))))},[h]),y=_.useRef(null),b=sv(S=>{if(f&&!n)return IK;if(!S||S===IK||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 A=w.node.current,E=A?new CI(l(A),A):null;w.rect.current=E,E&&C.set(w.id,E)}return C}return S},[e,o,n,f,l]);return _.useEffect(()=>{u.current=e},[e]),_.useEffect(()=>{f||g()},[n,f]),_.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),_.useEffect(()=>{f||typeof a!="number"||y.current!==null||(y.current=setTimeout(()=>{g(),y.current=null},a))},[a,f,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:o!=null};function v(){switch(c){case ib.Always:return!1;case ib.BeforeDragging:return n;default:return!n}}}function Ple(e,t){return sv(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Tlt(e,t){return Ple(e,t)}function Mlt(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function GC(e){let{callback:t,disabled:n}=e;const r=SI(t),i=_.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return _.useEffect(()=>()=>i?.disconnect(),[i]),i}function Rlt(e){return new CI(pg(e),e)}function PK(e,t,n){t===void 0&&(t=Rlt);const[r,i]=_.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=Mlt({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){o();break}}}}),a=GC({callback:o});return yc(()=>{o(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function Ilt(e){const t=Ple(e);return kle(e,t)}const jK=[];function Plt(e){const t=_.useRef(e),n=sv(r=>e?r&&r!==jK&&e&&t.current&&e.parentNode===t.current.parentNode?r:qC(e):jK,[e]);return _.useEffect(()=>{t.current=e},[e]),n}function jlt(e){const[t,n]=_.useState(null),r=_.useRef(e),i=_.useCallback(o=>{const s=XA(o.target);s&&n(a=>a?(a.set(s,XD(s)),new Map(a)):null)},[]);return _.useEffect(()=>{const o=r.current;if(e!==o){s(o);const a=e.map(l=>{const c=XA(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,XD(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=XA(l);c?.removeEventListener("scroll",i)})}},[i,e]),_.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>nm(o,s),sl):Rle(e):sl,[e,t])}function $K(e,t){t===void 0&&(t=[]);const n=_.useRef(null);return _.useEffect(()=>{n.current=null},t),_.useEffect(()=>{const r=e!==sl;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?nb(e,n.current):sl}function $lt(e){_.useEffect(()=>{if(!WC)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 Llt(e,t){return _.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=s=>{o(s,t)},n},{}),[e,t])}function jle(e){return _.useMemo(()=>e?alt(e):null,[e])}const LK=[];function Nlt(e,t){t===void 0&&(t=pg);const[n]=e,r=jle(n?fs(n):null),[i,o]=_.useState(LK);function s(){o(()=>e.length?e.map(l=>Tle(l)?r:new CI(t(l),l)):LK)}const a=GC({callback:s});return yc(()=>{a?.disconnect(),s(),e.forEach(l=>a?.observe(l))},[e]),i}function Flt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return ov(t)?t:e}function Blt(e){let{measure:t}=e;const[n,r]=_.useState(null),i=_.useCallback(c=>{for(const{target:u}of c)if(ov(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),o=GC({callback:i}),s=_.useCallback(c=>{const u=Flt(c);o?.disconnect(),u&&o?.observe(u),r(u?t(u):null)},[t,o]),[a,l]=wS(s);return _.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const zlt=[{sensor:kI,options:{}},{sensor:EI,options:{}}],Hlt={current:{}},k4={draggable:{measure:OK},droppable:{measure:OK,strategy:ib.WhileDragging,frequency:JD.Optimized},dragOverlay:{measure:pg}};class jy 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 Ult={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jy,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:CS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:k4,measureDroppableContainers:CS,windowRect:null,measuringScheduled:!1},Vlt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:CS,draggableNodes:new Map,over:null,measureDroppableContainers:CS},KC=_.createContext(Vlt),$le=_.createContext(Ult);function Wlt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jy}}}function qlt(e,t){switch(t.type){case Li.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Li.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 Li.DragEnd:case Li.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Li.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new jy(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Li.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 jy(e.droppable.containers);return s.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case Li.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new jy(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Glt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=_.useContext(KC),o=KD(r),s=KD(n?.id);return _.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 f=Fat(u);if(f){f.focus();break}}})}},[r,t,i,s,o]),null}function Klt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function Ylt(e){return _.useMemo(()=>({draggable:{...k4.draggable,...e?.draggable},droppable:{...k4.droppable,...e?.droppable},dragOverlay:{...k4.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Xlt(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=_.useRef(!1),{x:s,y:a}=typeof i=="boolean"?{x:i,y:i}:i;yc(()=>{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),f=kle(u,r);if(s||(f.x=0),a||(f.y=0),o.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=_le(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,s,a,r,n])}const Lle=_.createContext({...sl,scaleX:1,scaleY:1});var xd;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(xd||(xd={}));const Zlt=_.memo(function(t){var n,r,i,o;let{id:s,accessibility:a,autoScroll:l=!0,children:c,sensors:u=zlt,collisionDetection:f=elt,measuring:h,modifiers:g,...y}=t;const b=_.useReducer(qlt,void 0,Wlt),[v,S]=b,[C,w]=Wat(),[A,E]=_.useState(xd.Uninitialized),D=A===xd.Initialized,{draggable:{active:O,nodes:T,translate:I},droppable:{containers:N}}=v,$=O!=null?T.get(O):null,R=_.useRef({initial:null,translated:null}),F=_.useMemo(()=>{var Dt;return O!=null?{id:O,data:(Dt=$?.data)!=null?Dt:Hlt,rect:R}:null},[O,$]),j=_.useRef(null),[z,L]=_.useState(null),[q,V]=_.useState(null),U=tb(y,Object.values(y)),K=av("DndDescribedBy",s),B=_.useMemo(()=>N.getEnabled(),[N]),W=Ylt(h),{droppableRects:X,measureDroppableContainers:H,measuringScheduled:Y}=Olt(B,{dragging:D,dependencies:[I.x,I.y],config:W.droppable}),J=_lt(T,O),ne=_.useMemo(()=>q?YD(q):null,[q]),ee=yr(),se=Tlt(J,W.draggable.measure);Xlt({activeNode:O!=null?T.get(O):null,config:ee.layoutShiftCompensation,initialRect:se,measure:W.draggable.measure});const ue=PK(J,W.draggable.measure,se),te=PK(J?J.parentElement:null),Z=_.useRef({activatorEvent:null,active:null,activeNode:J,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=N.getNodeFor((n=Z.current.over)==null?void 0:n.id),oe=Blt({measure:W.dragOverlay.measure}),fe=(r=oe.nodeRef.current)!=null?r:J,be=D?(i=oe.rect)!=null?i:ue:null,De=!!(oe.nodeRef.current&&oe.rect),Oe=Ilt(De?null:ue),Ke=jle(fe?fs(fe):null),xe=Plt(D?re??J:null),Le=Nlt(xe),Me=Klt(g,{transform:{x:I.x-Oe.x,y:I.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:q,active:F,activeNodeRect:ue,containerNodeRect:te,draggingNodeRect:be,over:Z.current.over,overlayNodeRect:oe.rect,scrollableAncestors:xe,scrollableAncestorRects:Le,windowRect:Ke}),ht=ne?nm(ne,I):null,mt=jlt(xe),ze=$K(mt),Pe=$K(mt,[ue]),He=nm(Me,ze),Je=be?rlt(be,Me):null,nt=F&&Je?f({active:F,collisionRect:Je,droppableRects:X,droppableContainers:B,pointerCoordinates:ht}):null,ot=Ale(nt,"id"),[Xe,Lt]=_.useState(null),Nt=De?Me:nm(Me,Pe),Ot=tlt(Nt,(o=Xe?.rect)!=null?o:null,ue),Xn=_.useRef(null),rn=_.useCallback((Dt,jt)=>{let{sensor:Jt,options:jn}=jt;if(j.current==null)return;const on=T.get(j.current);if(!on)return;const St=Dt.nativeEvent,mn=new Jt({active:j.current,activeNode:on,event:St,options:jn,context:Z,onAbort(br){if(!T.get(br))return;const{onDragAbort:le}=U.current,pe={id:br};le?.(pe),C({type:"onDragAbort",event:pe})},onPending(br,ei,le,pe){if(!T.get(br))return;const{onDragPending:Fe}=U.current,Ue={id:br,constraint:ei,initialCoordinates:le,offset:pe};Fe?.(Ue),C({type:"onDragPending",event:Ue})},onStart(br){const ei=j.current;if(ei==null)return;const le=T.get(ei);if(!le)return;const{onDragStart:pe}=U.current,Se={activatorEvent:St,active:{id:ei,data:le.data,rect:R}};Dd.unstable_batchedUpdates(()=>{pe?.(Se),E(xd.Initializing),S({type:Li.DragStart,initialCoordinates:br,active:ei}),C({type:"onDragStart",event:Se}),L(Xn.current),V(St)})},onMove(br){S({type:Li.DragMove,coordinates:br})},onEnd:Qr(Li.DragEnd),onCancel:Qr(Li.DragCancel)});Xn.current=mn;function Qr(br){return async function(){const{active:le,collisions:pe,over:Se,scrollAdjustedTranslate:Fe}=Z.current;let Ue=null;if(le&&Fe){const{cancelDrop:yt}=U.current;Ue={activatorEvent:St,active:le,collisions:pe,delta:Fe,over:Se},br===Li.DragEnd&&typeof yt=="function"&&await Promise.resolve(yt(Ue))&&(br=Li.DragCancel)}j.current=null,Dd.unstable_batchedUpdates(()=>{S({type:br}),E(xd.Uninitialized),Lt(null),L(null),V(null),Xn.current=null;const yt=br===Li.DragEnd?"onDragEnd":"onDragCancel";if(Ue){const rt=U.current[yt];rt?.(Ue),C({type:yt,event:Ue})}})}}},[T]),at=_.useCallback((Dt,jt)=>(Jt,jn)=>{const on=Jt.nativeEvent,St=T.get(jn);if(j.current!==null||!St||on.dndKit||on.defaultPrevented)return;const mn={active:St};Dt(Jt,jt.options,mn)===!0&&(on.dndKit={capturedBy:jt.sensor},j.current=jn,rn(Jt,jt))},[T,rn]),Ht=Dlt(u,at);$lt(u),yc(()=>{ue&&A===xd.Initializing&&E(xd.Initialized)},[ue,A]),_.useEffect(()=>{const{onDragMove:Dt}=U.current,{active:jt,activatorEvent:Jt,collisions:jn,over:on}=Z.current;if(!jt||!Jt)return;const St={active:jt,activatorEvent:Jt,collisions:jn,delta:{x:He.x,y:He.y},over:on};Dd.unstable_batchedUpdates(()=>{Dt?.(St),C({type:"onDragMove",event:St})})},[He.x,He.y]),_.useEffect(()=>{const{active:Dt,activatorEvent:jt,collisions:Jt,droppableContainers:jn,scrollAdjustedTranslate:on}=Z.current;if(!Dt||j.current==null||!jt||!on)return;const{onDragOver:St}=U.current,mn=jn.get(ot),Qr=mn&&mn.rect.current?{id:mn.id,rect:mn.rect.current,data:mn.data,disabled:mn.disabled}:null,br={active:Dt,activatorEvent:jt,collisions:Jt,delta:{x:on.x,y:on.y},over:Qr};Dd.unstable_batchedUpdates(()=>{Lt(Qr),St?.(br),C({type:"onDragOver",event:br})})},[ot]),yc(()=>{Z.current={activatorEvent:q,active:F,activeNode:J,collisionRect:Je,collisions:nt,droppableRects:X,draggableNodes:T,draggingNode:fe,draggingNodeRect:be,droppableContainers:N,over:Xe,scrollableAncestors:xe,scrollAdjustedTranslate:He},R.current={initial:be,translated:Je}},[F,J,nt,Je,T,fe,be,X,N,Xe,xe,He]),Elt({...ee,delta:I,draggingRect:Je,pointerCoordinates:ht,scrollableAncestors:xe,scrollableAncestorRects:Le});const Dn=_.useMemo(()=>({active:F,activeNode:J,activeNodeRect:ue,activatorEvent:q,collisions:nt,containerNodeRect:te,dragOverlay:oe,draggableNodes:T,droppableContainers:N,droppableRects:X,over:Xe,measureDroppableContainers:H,scrollableAncestors:xe,scrollableAncestorRects:Le,measuringConfiguration:W,measuringScheduled:Y,windowRect:Ke}),[F,J,ue,q,nt,te,oe,T,N,X,Xe,H,xe,Le,W,Y,Ke]),Gn=_.useMemo(()=>({activatorEvent:q,activators:Ht,active:F,activeNodeRect:ue,ariaDescribedById:{draggable:K},dispatch:S,draggableNodes:T,over:Xe,measureDroppableContainers:H}),[q,Ht,F,ue,S,K,T,Xe,H]);return qt.createElement(wle.Provider,{value:w},qt.createElement(KC.Provider,{value:Gn},qt.createElement($le.Provider,{value:Dn},qt.createElement(Lle.Provider,{value:Ot},c)),qt.createElement(Glt,{disabled:a?.restoreFocus===!1})),qt.createElement(Kat,{...a,hiddenTextDescribedById:K}));function yr(){const Dt=z?.autoScrollEnabled===!1,jt=typeof l=="object"?l.enabled===!1:l===!1,Jt=D&&!Dt&&!jt;return typeof l=="object"?{...l,enabled:Jt}:{enabled:Jt}}}),Jlt=_.createContext(null),NK="button",Qlt="Draggable";function ect(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=av(Qlt),{activators:s,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=_.useContext(KC),{role:g=NK,roleDescription:y="draggable",tabIndex:b=0}=i??{},v=l?.id===t,S=_.useContext(v?Lle:Jlt),[C,w]=wS(),[A,E]=wS(),D=Llt(s,t),O=tb(n);yc(()=>(f.set(t,{id:t,key:o,node:C,activatorNode:A,data:O}),()=>{const I=f.get(t);I&&I.key===o&&f.delete(t)}),[f,t]);const T=_.useMemo(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":v&&g===NK?!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:T,isDragging:v,listeners:r?void 0:D,node:C,over:h,setNodeRef:w,setActivatorNodeRef:E,transform:S}}function tct(){return _.useContext($le)}const nct="Droppable",rct={timeout:25};function ict(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=av(nct),{active:s,dispatch:a,over:l,measureDroppableContainers:c}=_.useContext(KC),u=_.useRef({disabled:n}),f=_.useRef(!1),h=_.useRef(null),g=_.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:v}={...rct,...i},S=tb(b??r),C=_.useCallback(()=>{if(!f.current){f.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=GC({callback:C,disabled:y||!s}),A=_.useCallback((T,I)=>{w&&(I&&(w.unobserve(I),f.current=!1),T&&w.observe(T))},[w]),[E,D]=wS(A),O=tb(t);return _.useEffect(()=>{!w||!E.current||(w.disconnect(),f.current=!1,w.observe(E.current))},[E,w]),_.useEffect(()=>(a({type:Li.RegisterDroppable,element:{id:r,key:o,disabled:n,node:E,rect:h,data:O}}),()=>a({type:Li.UnregisterDroppable,key:o,id:r})),[r]),_.useEffect(()=>{n!==u.current.disabled&&(a({type:Li.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,a]),{active:s,rect:h,isOver:l?.id===r,node:E,over:l,setNodeRef:D}}function _I(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function oct(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function A5(e){return e!==null&&e>=0}function sct(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 act(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Nle=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=_I(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}},k5={scaleX:1,scaleY:1},lct=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,...k5}:null}const l=cct(o,i,n);return i>n&&i<=s?{x:0,y:-a.height-l,...k5}:i<n&&i>=s?{x:0,y:a.height+l,...k5}:{x:0,y:0,...k5}};function cct(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 Fle="Sortable",Ble=qt.createContext({activeIndex:-1,containerId:Fle,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Nle,disabled:{draggable:!1,droppable:!1}});function uct(e){let{children:t,id:n,items:r,strategy:i=Nle,disabled:o=!1}=e;const{active:s,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=tct(),f=av(Fle,n),h=a.rect!==null,g=_.useMemo(()=>r.map(D=>typeof D=="object"&&"id"in D?D.id:D),[r]),y=s!=null,b=s?g.indexOf(s.id):-1,v=c?g.indexOf(c.id):-1,S=_.useRef(g),C=!sct(g,S.current),w=v!==-1&&b===-1||C,A=act(o);yc(()=>{C&&y&&u(g)},[C,g,y,u]),_.useEffect(()=>{S.current=g},[g]);const E=_.useMemo(()=>({activeIndex:b,containerId:f,disabled:A,disableTransforms:w,items:g,overIndex:v,useDragOverlay:h,sortedRects:oct(g,l),strategy:i}),[b,f,A.draggable,A.droppable,w,g,v,l,h,i]);return qt.createElement(Ble.Provider,{value:E},t)}const dct=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return _I(n,r,i).indexOf(t)},fct=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},hct={duration:200,easing:"ease"},zle="transform",pct=rb.Transition.toString({property:zle,duration:0,easing:"linear"}),mct={roleDescription:"sortable"};function gct(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,s]=_.useState(null),a=_.useRef(n);return yc(()=>{if(!t&&n!==a.current&&r.current){const l=i.current;if(l){const c=pg(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]),_.useEffect(()=>{o&&s(null)},[o]),o}function yct(e){let{animateLayoutChanges:t=fct,attributes:n,disabled:r,data:i,getNewIndex:o=dct,id:s,strategy:a,resizeObserverConfig:l,transition:c=hct}=e;const{items:u,containerId:f,activeIndex:h,disabled:g,disableTransforms:y,sortedRects:b,overIndex:v,useDragOverlay:S,strategy:C}=_.useContext(Ble),w=bct(r,g),A=u.indexOf(s),E=_.useMemo(()=>({sortable:{containerId:f,index:A,items:u},...i}),[f,i,A,u]),D=_.useMemo(()=>u.slice(u.indexOf(s)),[u,s]),{rect:O,node:T,isOver:I,setNodeRef:N}=ict({id:s,data:E,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...l}}),{active:$,activatorEvent:R,activeNodeRect:F,attributes:j,setNodeRef:z,listeners:L,isDragging:q,over:V,setActivatorNodeRef:U,transform:K}=ect({id:s,data:E,attributes:{...mct,...n},disabled:w.draggable}),B=jat(N,z),W=!!$,X=W&&!y&&A5(h)&&A5(v),H=!S&&q,Y=H&&X?K:null,ne=X?Y??(a??C)({rects:b,activeNodeRect:F,activeIndex:h,overIndex:v,index:A}):null,ee=A5(h)&&A5(v)?o({id:s,items:u,activeIndex:h,overIndex:v}):A,se=$?.id,ue=_.useRef({activeId:se,items:u,newIndex:ee,containerId:f}),te=u!==ue.current.items,Z=t({active:$,containerId:f,isDragging:q,isSorting:W,id:s,index:A,items:u,newIndex:ue.current.newIndex,previousItems:ue.current.items,previousContainerId:ue.current.containerId,transition:c,wasDragging:ue.current.activeId!=null}),re=gct({disabled:!Z,index:A,node:T,rect:O});return _.useEffect(()=>{W&&ue.current.newIndex!==ee&&(ue.current.newIndex=ee),f!==ue.current.containerId&&(ue.current.containerId=f),u!==ue.current.items&&(ue.current.items=u)},[W,ee,f,u]),_.useEffect(()=>{if(se===ue.current.activeId)return;if(se!=null&&ue.current.activeId==null){ue.current.activeId=se;return}const fe=setTimeout(()=>{ue.current.activeId=se},50);return()=>clearTimeout(fe)},[se]),{active:$,activeIndex:h,attributes:j,data:E,rect:O,index:A,newIndex:ee,items:u,isOver:I,isSorting:W,isDragging:q,listeners:L,node:T,overIndex:v,over:V,setNodeRef:B,setActivatorNodeRef:U,setDroppableNodeRef:N,setDraggableNodeRef:z,transform:re??ne,transition:oe()};function oe(){if(re||te&&ue.current.newIndex===A)return pct;if(!(H&&!wI(R)||!c)&&(W||Z))return rb.Transition.toString({...c,property:zle})}}function bct(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 AS(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 vct=[Ln.Down,Ln.Right,Ln.Up,Ln.Left],xct=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(vct.includes(e.code)){if(e.preventDefault(),!n||!r)return;const l=[];o.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const h=i.get(f.id);if(h)switch(e.code){case Ln.Down:r.top<h.top&&l.push(f);break;case Ln.Up:r.top>h.top&&l.push(f);break;case Ln.Left:r.left>h.left&&l.push(f);break;case Ln.Right:r.left<h.left&&l.push(f);break}});const c=Jat({collisionRect:r,droppableRects:i,droppableContainers:l});let u=Ale(c,"id");if(u===s?.id&&c.length>1&&(u=c[1].id),u!=null){const f=o.get(n.id),h=o.get(u),g=h?i.get(h.id):null,y=h?.node.current;if(y&&g&&f&&h){const v=qC(y).some((D,O)=>a[O]!==D),S=Hle(f,h),C=Sct(f,h),w=v||!S?{x:0,y:0}:{x:C?r.width-g.width:0,y:C?r.height-g.height:0},A={x:g.left,y:g.top};return w.x&&w.y?A:nb(A,w)}}}};function Hle(e,t){return!AS(e)||!AS(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Sct(e,t){return!AS(e)||!AS(t)||!Hle(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const wct=({bridge:e,index:t})=>{const{attributes:n,listeners:r,setNodeRef:i,transform:o,transition:s,isDragging:a}=yct({id:e.id}),[l,c]=_.useState(!1);_.useEffect(()=>{_w(e.id).then(c)},[e.id]);const u={transform:rb.Transform.toString(o),transition:s,opacity:a?.5:1};return m.jsx(tr,{ref:i,style:u,variant:"outlined",sx:{cursor:"grab","&:active":{cursor:"grabbing"},bgcolor:a?"action.selected":"background.paper",width:"fit-content"},children:m.jsxs(gr,{sx:{display:"flex",alignItems:"center",gap:1.5,py:1,"&:last-child":{pb:1}},children:[m.jsx(ce,{...n,...r,sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:m.jsx(QCe,{})}),m.jsx(Et,{label:t+1,size:"small",color:"primary",sx:{minWidth:32,fontWeight:"bold"}}),l?m.jsx(ce,{component:"img",src:t2(e.id),alt:e.name,sx:{width:40,height:40,borderRadius:"50%",objectFit:"cover",boxShadow:2}}):m.jsx(rl,{sx:{bgcolor:MT(e),width:40,height:40,boxShadow:2},children:(()=>{const f=TT(e);return m.jsx(f,{sx:{fontSize:24}})})()}),m.jsxs(ce,{sx:{flex:1},children:[m.jsx(ie,{variant:"subtitle1",fontWeight:500,children:e.name}),m.jsxs(ie,{variant:"caption",color:"text.secondary",children:["Port: ",e.port," • Priority: ",e.priority??100]})]})]})})},Cct=()=>{const e=Tu(),{content:t,isLoading:n}=Vm(),r=SCe(),[i,o]=_.useState([]),[s,a]=_.useState(!1);_.useEffect(()=>{if(t){const h=[...t].sort((g,y)=>{const b=g.priority??100,v=y.priority??100;return b-v});o(h),a(!1)}},[t]);const l=Yat(kK(kI),kK(EI,{coordinateGetter:xct})),c=_.useCallback(h=>{const{active:g,over:y}=h;y&&g.id!==y.id&&(o(b=>{const v=b.findIndex(C=>C.id===g.id),S=b.findIndex(C=>C.id===y.id);return _I(b,v,S)}),a(!0))},[]),u=_.useCallback(async()=>{const h=i.map((g,y)=>({id:g.id,priority:(y+1)*10}));try{await r(h),e.show({message:"Startup order saved successfully",severity:"success"}),a(!1)}catch(g){e.show({message:g instanceof Error?g.message:"Failed to save startup order",severity:"error"})}},[i,r,e]),f=_.useMemo(()=>i.map(h=>h.id),[i]);return n?m.jsx(ie,{children:"Loading..."}):m.jsxs(zt,{spacing:3,children:[m.jsx(lw,{items:[{name:"Bridges",to:Pt.bridges},{name:"Startup Order",to:Pt.startup}]}),m.jsxs(ce,{display:"flex",alignItems:"center",gap:2,children:[m.jsx(yb,{color:"primary",fontSize:"large"}),m.jsxs(ce,{children:[m.jsx(ie,{variant:"h5",fontWeight:600,children:"Startup Order"}),m.jsx(ie,{variant:"body2",color:"text.secondary",children:"Drag and drop bridges to set the startup order. Lower positions start first."})]})]}),s&&m.jsx(vn,{severity:"info",action:m.jsx(kt,{color:"inherit",size:"small",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Changes"}),children:"You have unsaved changes to the startup order."}),m.jsx(Zlt,{sensors:l,collisionDetection:Zat,onDragEnd:c,children:m.jsx(uct,{items:f,strategy:lct,children:m.jsx(zt,{spacing:1,children:i.map((h,g)=>m.jsx(wct,{bridge:h,index:g},h.id))})})}),i.length===0&&m.jsx(ie,{color:"text.secondary",textAlign:"center",py:4,children:"No bridges configured yet."}),s&&i.length>0&&m.jsx(ce,{display:"flex",justifyContent:"flex-end",children:m.jsx(kt,{variant:"contained",startIcon:m.jsx(n6,{}),onClick:u,children:"Save Startup Order"})})]})},QA="https://riddix.github.io/home-assistant-matter-hub",Pt={dashboard:"/",bridges:"/bridges",bridge:e=>`/bridges/${e}`,createBridge:"/bridges/create",editBridge:e=>`/bridges/${e}/edit`,devices:"/devices",networkMap:"/network-map",health:"/health",labels:"/labels",lockCredentials:"/lock-credentials",settings:"/settings",startup:"/startup",githubRepository:"https://github.com/riddix/home-assistant-matter-hub/",documentation:QA,faq:{multiFabric:`${QA}/connect-multiple-fabrics`,bridgeConfig:`${QA}/bridge-configuration`}},Ect=[{path:"",element:m.jsx(_2e,{}),children:[{path:"",element:m.jsx(u9e,{})},{path:Pt.bridges,element:m.jsx(a9e,{})},{path:Pt.createBridge,element:m.jsx(JQe,{})},{path:Pt.bridge(":bridgeId"),element:m.jsx(ICe,{})},{path:Pt.editBridge(":bridgeId"),element:m.jsx(QQe,{})},{path:Pt.devices,element:m.jsx(D9e,{})},{path:Pt.networkMap,element:m.jsx(Tat,{})},{path:Pt.health,element:m.jsx(aet,{})},{path:Pt.labels,element:m.jsx(fet,{})},{path:Pt.lockCredentials,element:m.jsx(bet,{})},{path:Pt.settings,element:m.jsx(Pat,{})},{path:Pt.startup,element:m.jsx(Cct,{})},{path:"*",element:m.jsx(vet,{})}]}],Act={items:{isInitialized:!1,isLoading:!1}},kct=FO(Act,e=>{e.addCase(Bo.pending,t=>{t.items.isLoading=!0}).addCase(Bo.rejected,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=void 0,t.items.error=n.error}).addCase(Bo.fulfilled,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(zX.fulfilled,(t,n)=>{t.items.content?.push(n.payload)}).addCase(UX.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(VX.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(HX.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(WX,(t,n)=>{t.items.isInitialized=!0,t.items.isLoading=!1,t.items.content=n.payload,t.items.error=void 0}).addCase(qX,(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)}})}),_ct={byBridge:{}},Dct=FO(_ct,e=>{e.addCase(du.pending,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.rejected,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)}).addCase(du.fulfilled,(t,n)=>{t.byBridge[n.meta.arg]=ek(t.byBridge[n.meta.arg],n)})}),Oct={isInitialized:!1,isLoading:!1,content:void 0,error:void 0},ek=FO(Oct,e=>{e.addCase(du.pending,t=>{t.isLoading=!0}).addCase(du.rejected,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=void 0,t.error=n.error}).addCase(du.fulfilled,(t,n)=>{t.isInitialized=!0,t.isLoading=!1,t.content=n.payload,t.error=void 0})}),Tct=l2e({reducer:{bridges:kct,devices:Dct}}),DI=Wme({createStyledComponent:me("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ye(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>it({props:e,name:"MuiContainer"})});function Mct(e){return Qe("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const Rct=e=>{const{classes:t,disableGutters:n,variant:r}=e;return et({root:["root",!n&&"gutters",r]},Mct,t)},Ict=me("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ge(({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}]}))),Ule=_.forwardRef(function(t,n){const r=it({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=Rct(c);return m.jsx(Ict,{as:o,className:Te(u.root,i),ref:n,ownerState:c,...l})});class Pct extends _.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?m.jsxs(ce,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"60vh",gap:2,p:4,children:[m.jsx(KO,{color:"error",sx:{fontSize:64}}),m.jsx(ie,{variant:"h5",fontWeight:600,children:"Something went wrong"}),m.jsx(ie,{variant:"body2",color:"text.secondary",textAlign:"center",maxWidth:480,children:this.state.error?.message??"An unexpected error occurred."}),m.jsx(kt,{variant:"contained",onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},children:"Reload Page"})]}):this.props.children}}const jct=[{name:"GitHub",url:Pt.githubRepository},{name:"Documentation",url:Pt.documentation}],$ct=()=>m.jsxs(DI,{sx:{mt:16,mb:4},children:[m.jsx(gi,{sx:{mt:4,mb:4}}),m.jsx(dt,{container:!0,spacing:2,justifyContent:"center",children:jct.map((e,t)=>m.jsx(dt,{size:{xs:12,sm:"auto"},children:m.jsx(kt,{fullWidth:!0,size:"small",variant:"outlined",component:aw,href:e.url,target:"_blank",children:e.name})},t.toString()))})]});function Lct(e){return Qe("MuiAppBar",e)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Nct=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ye(t)}`,`position${ye(n)}`]};return et(i,Lct,r)},FK=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,Fct=me(Ur,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ye(n.position)}`],t[`color${ye(n.color)}`]]}})(Ge(({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(Fn(["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?FK(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?FK(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"})}}]}))),Bct=_.forwardRef(function(t,n){const r=it({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=Nct(c);return m.jsx(Fct,{square:!0,component:"header",ownerState:c,elevation:4,className:Te(u.root,i,a==="fixed"&&"mui-fixed"),ref:n,...l})});function zct(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=tl(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 Hct(e){return typeof e=="function"?e():e}function _5(e,t,n){const r=Hct(n),i=zct(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Uct=_.forwardRef(function(t,n){const r=ro(),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:f=i,in:h,onEnter:g,onEntered:y,onEntering:b,onExit:v,onExited:S,onExiting:C,style:w,timeout:A=o,TransitionComponent:E=Ta,...D}=t,O=_.useRef(null),T=Tr(gf(l),O,n),I=V=>U=>{V&&(U===void 0?V(O.current):V(O.current,U))},N=I((V,U)=>{_5(u,V,c),IO(V),g&&g(V,U)}),$=I((V,U)=>{const K=Kd({timeout:A,style:w,easing:f},{mode:"enter"});V.style.webkitTransition=r.transitions.create("-webkit-transform",{...K}),V.style.transition=r.transitions.create("transform",{...K}),V.style.webkitTransform="none",V.style.transform="none",b&&b(V,U)}),R=I(y),F=I(C),j=I(V=>{const U=Kd({timeout:A,style:w,easing:f},{mode:"exit"});V.style.webkitTransition=r.transitions.create("-webkit-transform",U),V.style.transition=r.transitions.create("transform",U),_5(u,V,c),v&&v(V)}),z=I(V=>{V.style.webkitTransition="",V.style.transition="",S&&S(V)}),L=V=>{s&&s(O.current,V)},q=_.useCallback(()=>{O.current&&_5(u,O.current,c)},[u,c]);return _.useEffect(()=>{if(h||u==="down"||u==="right")return;const V=OO(()=>{O.current&&_5(u,O.current,c)}),U=tl(O.current);return U.addEventListener("resize",V),()=>{V.clear(),U.removeEventListener("resize",V)}},[u,h,c]),_.useEffect(()=>{h||q()},[h,q]),m.jsx(E,{nodeRef:O,onEnter:N,onEntered:R,onEntering:$,onExit:j,onExited:z,onExiting:F,addEndListener:L,appear:a,in:h,timeout:A,...D,children:(V,{ownerState:U,...K})=>_.cloneElement(l,{ref:T,style:{visibility:V==="exited"&&!h?"hidden":void 0,...w,...l.props.style},...K})})});function Vct(e){return Qe("MuiDrawer",e)}tt("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Vle=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,n.variant==="temporary"&&t.modal]},Wct=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root",`anchor${ye(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ye(n)}`,r!=="temporary"&&`paperAnchorDocked${ye(n)}`]};return et(i,Vct,t)},qct=me(ZO,{name:"MuiDrawer",slot:"Root",overridesResolver:Vle})(Ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Gct=me("div",{shouldForwardProp:io,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Vle})({flex:"0 0 auto"}),Kct=me(Ur,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ye(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ye(n.anchor)}`]]}})(Ge(({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}`}}]}))),Wle={left:"right",right:"left",top:"down",bottom:"up"};function Yct(e){return["left","right"].includes(e)}function Xct({direction:e},t){return e==="rtl"&&Yct(t)?Wle[t]:t}const Zct=_.forwardRef(function(t,n){const r=it({props:t,name:"MuiDrawer"}),i=ro(),o=mf(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:f=16,hideBackdrop:h=!1,ModalProps:{BackdropProps:g,...y}={},onClose:b,open:v=!1,PaperProps:S={},SlideProps:C,TransitionComponent:w,transitionDuration:A=s,variant:E="temporary",slots:D={},slotProps:O={},...T}=r,I=_.useRef(!1);_.useEffect(()=>{I.current=!0},[]);const N=Xct({direction:o?"rtl":"ltr"},a),R={...r,anchor:a,elevation:f,open:v,variant:E,...T},F=Wct(R),j={slots:{transition:w,...D},slotProps:{paper:S,transition:C,...O,backdrop:TO(O.backdrop||{...l,...g},{transitionDuration:A})}},[z,L]=lt("root",{ref:n,elementType:qct,className:Te(F.root,F.modal,u),shouldForwardComponentProp:!0,ownerState:R,externalForwardedProps:{...j,...T,...y},additionalProps:{open:v,onClose:b,hideBackdrop:h,slots:{backdrop:j.slots.backdrop},slotProps:{backdrop:j.slotProps.backdrop}}}),[q,V]=lt("paper",{elementType:Kct,shouldForwardComponentProp:!0,className:Te(F.paper,S.className),ownerState:R,externalForwardedProps:j,additionalProps:{elevation:E==="temporary"?f:0,square:!0,...E==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[U,K]=lt("docked",{elementType:Gct,ref:n,className:Te(F.root,F.docked,u),ownerState:R,externalForwardedProps:j,additionalProps:T}),[B,W]=lt("transition",{elementType:Uct,ownerState:R,externalForwardedProps:j,additionalProps:{in:v,direction:Wle[N],timeout:A,appear:I.current}}),X=m.jsx(q,{...V,children:c});if(E==="permanent")return m.jsx(U,{...K,children:X});const H=m.jsx(B,{...W,children:X});return E==="persistent"?m.jsx(U,{...K,children:H}):m.jsx(z,{...L,children:H})}),Jct=XY({themeId:da}),Qct={error:vf,warn:iw,info:YO,debug:Aw},eut=({open:e,onClose:t})=>{const n=ro(),r=_.useMemo(()=>({error:n.palette.error.main,warn:n.palette.warning.main,info:n.palette.info.main,debug:n.palette.secondary.main}),[n]),[i,o]=_.useState([]),[s,a]=_.useState(!0),[l,c]=_.useState("error,warn,info".split(",")),[u,f]=_.useState(""),[h,g]=_.useState(!0),y=_.useCallback(async()=>{try{const w=new URLSearchParams({level:l.join(","),limit:"500",...u&&{search:u}}),A=await fetch(`api/logs?${w}`);if(A.ok){const E=await A.json();o(E.entries)}}catch(w){console.error("Failed to fetch logs:",w)}finally{a(!1)}},[l,u]);_.useEffect(()=>{e&&y()},[e,y]),_.useEffect(()=>{if(!h||!e)return;const w=setInterval(y,5e3);return()=>clearInterval(w)},[h,e,y]);const b=w=>{c(Array.isArray(w.target.value)?w.target.value:[w.target.value])},v=w=>{f(w.target.value)},S=async()=>{try{await fetch("api/logs",{method:"DELETE"}),o([])}catch(w){console.error("Failed to clear logs:",w)}},C=w=>{const A=Qct[w]||YO;return m.jsx(A,{sx:{fontSize:16,color:r[w]}})};return m.jsxs(vu,{open:e,onClose:t,maxWidth:"lg",fullWidth:!0,children:[m.jsxs(Su,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Aw,{}),"System Logs",m.jsx(ce,{sx:{flexGrow:1}}),m.jsx(cn,{title:"Auto Refresh",children:m.jsx(Et,{label:h?"Auto":"Manual",color:h?"success":"default",size:"small",onClick:()=>g(!h),sx:{cursor:"pointer"}})}),m.jsx(_n,{onClick:t,children:m.jsx(qCe,{})})]}),m.jsxs(xu,{children:[m.jsx(zt,{spacing:2,sx:{mb:2},children:m.jsxs(zt,{direction:"row",spacing:2,alignItems:"center",children:[m.jsxs(pa,{size:"small",sx:{minWidth:200},children:[m.jsx(sc,{children:"Log Level"}),m.jsxs(sa,{value:l,label:"Log Level",onChange:b,multiple:!0,renderValue:w=>m.jsx(ce,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:(Array.isArray(w)?w:[w]).map(A=>m.jsx(Et,{label:A.toUpperCase(),size:"small",sx:{backgroundColor:r[A],color:"white"}},A))}),children:[m.jsx(er,{value:"error",children:"Error"}),m.jsx(er,{value:"warn",children:"Warning"}),m.jsx(er,{value:"info",children:"Info"}),m.jsx(er,{value:"debug",children:"Debug"})]})]}),m.jsx(Lr,{size:"small",placeholder:"Search logs...",value:u,onChange:v,sx:{flexGrow:1}}),m.jsx(kt,{variant:"outlined",onClick:y,children:"Refresh"}),m.jsx(kt,{variant:"outlined",color:"error",onClick:S,children:"Clear"})]})}),m.jsx(ce,{sx:{height:400,overflow:"auto",backgroundColor:"background.paper",border:1,borderColor:"divider",borderRadius:1,p:1},children:s?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{children:"Loading logs..."})}):i.length===0?m.jsx(ce,{sx:{display:"flex",justifyContent:"center",p:4},children:m.jsx(ie,{color:"text.secondary",children:"No logs found"})}):m.jsx(zt,{spacing:1,children:i.map((w,A)=>m.jsxs(ce,{sx:{p:1,borderRadius:1,backgroundColor:"action.hover",fontFamily:"monospace",fontSize:"0.875rem",wordBreak:"break-all"},children:[m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[C(w.level),m.jsx(ie,{variant:"caption",color:"text.secondary",children:new Date(w.timestamp).toLocaleString()}),m.jsx(Et,{label:w.level.toUpperCase(),size:"small",sx:{backgroundColor:r[w.level],color:n.palette.getContrastText(r[w.level]??n.palette.grey[500]),fontSize:"0.7rem",height:20}})]}),m.jsx(ie,{sx:{ml:3},children:w.message}),w.context&&m.jsx(ie,{sx:{ml:3,color:"text.secondary",fontSize:"0.8rem"},children:JSON.stringify(w.context,null,2)})]},`${w.timestamp}-${w.level}-${A}`))})})]}),m.jsx(Xd,{children:m.jsx(kt,{onClick:t,children:"Close"})})]})};function BK(){const{isConnected:e}=A2e(),[t,n]=_.useState(null),[r,i]=_.useState(!1);_.useEffect(()=>{const y=async()=>{try{const v=await fetch("api/health");if(v.ok){const S=await v.json();n(S),i(!1)}else i(!0)}catch{i(!0)}};y();const b=setInterval(y,3e4);return()=>clearInterval(b)},[]);const o=y=>{const b=Math.floor(y/3600),v=Math.floor(y%3600/60);return b>0?`${b}h ${v}m`:`${v}m`},s=t?.status==="healthy"&&!r,a=t?.services?.bridges,l=a&&a.total>0&&a.running===a.total,c=a&&a.total===0,u=t?m.jsxs(ce,{sx:{p:.5},children:[m.jsxs("div",{children:[m.jsx("strong",{children:"Version:"})," ",t.version??"Unknown"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"Uptime:"})," ",o(t.uptime??0)]}),t.services?.bridges&&m.jsxs("div",{children:[m.jsx("strong",{children:"Bridges:"})," ",t.services.bridges.running??0,"/",t.services.bridges.total??0," running",(t.services.bridges.stopped??0)>0&&` (${t.services.bridges.stopped} stopped)`]}),t.services?.homeAssistant&&m.jsxs("div",{children:[m.jsx("strong",{children:"Home Assistant:"})," ",t.services.homeAssistant.connected?"Connected":"Disconnected"]}),m.jsxs("div",{children:[m.jsx("strong",{children:"WebSocket:"})," ",e?"Connected":"Disconnected"]})]}):"Loading health status...",f=()=>r||!s?m.jsx(vf,{fontSize:"small"}):l?m.jsx(Mu,{fontSize:"small"}):m.jsx(dw,{fontSize:"small"}),h=()=>r||!s?"error":!l||!e?"warning":"success",g=()=>r?"Error":s?e?c?"No Bridges":l?"Online":"Starting":"Offline":"Unhealthy";return m.jsx(cn,{title:u,arrow:!0,children:m.jsx(Et,{icon:f(),label:g(),color:h(),size:"small",variant:"filled",sx:{borderRadius:1,fontWeight:600,"& .MuiChip-icon":{color:"inherit"}}})})}const tut=e=>_.createElement("svg",{viewBox:"0 0 91 89",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",...e},_.createElement("g",{style:{display:"inline"}},_.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"}),_.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"}))),nut="home-assistant-matter-hub",rut={name:nut};function iut(){const[e,t]=_.useState("2.0.30");return _.useEffect(()=>{fetch("api/health").then(n=>n.ok?n.json():null).then(n=>{n?.version&&t(n.version)}).catch(()=>{})},[]),_.useMemo(()=>({name:rut.name,version:e}),[e])}const out=e=>{const t=iut();return m.jsxs(ce,{component:Du,to:Pt.dashboard,sx:{display:"flex",alignItems:"center",justifyContent:e.large?"flex-start":"center",flexGrow:1,textDecoration:"none",color:"inherit"},children:[m.jsx(tut,{style:{height:"40px"}}),m.jsx(ie,{variant:"inherit",component:"span",sx:{mr:1,ml:1},children:t.name.split("-").map(ye).join("-")}),e.large&&m.jsx(ie,{variant:"caption",component:"span",children:t.version})]})},sut=()=>{const e=Jct("(min-width:600px)"),{mode:t,setMode:n}=KS(),[r,i]=_.useState(!1),[o,s]=_.useState(!1),a=hf(),l=()=>{n(t==="dark"?"light":"dark")},c=[{label:"Dashboard",icon:m.jsx(CT,{}),to:Pt.dashboard},{label:"Bridges",icon:m.jsx(t6,{}),to:Pt.bridges},{label:"All Devices",icon:m.jsx(Fs,{}),to:Pt.devices},{label:"Network Map",icon:m.jsx(bT,{}),to:Pt.networkMap},{label:"Startup Order",icon:m.jsx(yb,{}),to:Pt.startup},{label:"Lock Credentials",icon:m.jsx(uu,{}),to:Pt.lockCredentials},{label:"Filter Reference",icon:m.jsx(ET,{}),to:Pt.labels},{label:"Settings",icon:m.jsx(wb,{}),to:Pt.settings},{label:t==="dark"?"Light Mode":"Dark Mode",icon:t==="dark"?m.jsx(a8e,{}):m.jsx(YCe,{}),onClick:l},{label:"System Logs",icon:m.jsx(Aw,{}),onClick:()=>i(!0)},{label:"Health Dashboard",icon:m.jsx(QO,{}),to:Pt.health}],u=f=>{s(!1),f.onClick?f.onClick():f.to&&a(f.to)};return m.jsxs(ce,{children:[m.jsx(Bct,{sx:{height:"72px"},children:m.jsx(Ule,{sx:{paddingLeft:"0 !important",paddingRight:"0 !important"},children:m.jsxs(DI,{sx:{padding:2,height:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m.jsx(out,{large:e}),e?m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.map(f=>f.to?m.jsx(cn,{title:f.label,children:m.jsx(_n,{component:Du,to:f.to,sx:{color:"inherit"},children:f.icon})},f.label):m.jsx(cn,{title:f.label,children:m.jsx(_n,{onClick:f.onClick,sx:{color:"inherit"},children:f.icon})},f.label)),m.jsx(BK,{})]}):m.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.5},children:[m.jsx(BK,{}),m.jsx(_n,{onClick:()=>s(!0),sx:{color:"inherit"},children:m.jsx(l8e,{})})]})]})})}),m.jsx(Zct,{anchor:"right",open:o,onClose:()=>s(!1),children:m.jsx(bc,{sx:{width:250},children:c.map(f=>m.jsxs(obe,{onClick:()=>u(f),children:[m.jsx(Ul,{children:f.icon}),m.jsx(Va,{primary:f.label})]},f.label))})}),m.jsx(eut,{open:r,onClose:()=>i(!1)})]})},aut=()=>m.jsxs(ce,{children:[m.jsx(sut,{}),m.jsx(Ule,{}),m.jsx(DI,{sx:{p:2},children:m.jsx(Pct,{children:m.jsx(yY,{})})}),m.jsx($ct,{})]}),lut=WS({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 _4=document.getElementsByTagName("base")[0]?.href?.replace(/\/$/,"");_4?.startsWith("http")&&(_4=new URL(_4).pathname);const cut=Hhe([{path:"/",element:m.jsx(aut,{}),children:Ect}],{basename:_4});sde.createRoot(document.getElementById("root")).render(m.jsx(_.StrictMode,{children:m.jsx(Cde,{store:Tct,children:m.jsxs(n1e,{theme:lut,children:[m.jsx(Zge,{}),m.jsx(dX,{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}}}),m.jsx(k2e,{children:m.jsx(yye,{children:m.jsx(epe,{router:cut})})})]})})}));