@twinmatrix/ui-sdk 0.0.1 → 0.0.3

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.
package/lib/cjs/index.js CHANGED
@@ -221,4 +221,4 @@ function qp(e,t){const o=Gc(e,t);return"production"!==process.env.NODE_ENV?(...e
221
221
  &::after {
222
222
  animation: ${uE} 2s linear 0.5s infinite;
223
223
  }
224
- `:null,hE=Eh("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!1!==o.animation&&t[o.animation],o.hasChildren&&t.withChildren,o.hasChildren&&!o.width&&t.fitContent,o.hasChildren&&!o.height&&t.heightAuto]}})(Rh(({theme:e})=>{const t=(o=e.shape.borderRadius,String(o).match(/[\d.\-+]*\s*(.*)/)[1]||"px");var o;const n=function(e){return parseFloat(e)}(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:fE||{animation:`${dE} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:mE||{"&::after":{animation:`${uE} 2s linear 0.5s infinite`}}}]}})),gE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:s,style:l,variant:c="text",width:p,...d}=n,u={...n,animation:r,component:a,variant:c,hasChildren:Boolean(d.children)},f=(e=>{const{classes:t,variant:o,animation:n,hasChildren:r,width:i,height:a}=e;return am({root:["root",o,n,r&&"withChildren",r&&!i&&"fitContent",r&&!a&&"heightAuto"]},pE,t)})(u);return e.jsx(hE,{as:a,ref:o,className:Ju(f.root,i),ownerState:u,...d,style:{width:p,height:s,...l}})});function yE(e,t,o,n,r){return 1===o?Math.min(e+t,r):Math.max(e-t,n)}function bE(e,t){return e-t}function vE(e,t){const{index:o}=e.reduce((e,o,n)=>{const r=Math.abs(t-o);return null===e||r<e.distance||r===e.distance?{distance:r,index:n}:e},null)??{};return o}function xE(e,t){if(void 0!==t.current&&e.changedTouches){const o=e;for(let e=0;e<o.changedTouches.length;e+=1){const n=o.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function wE(e,t,o){return 100*(e-t)/(o-t)}function SE({values:e,newValue:t,index:o}){const n=e.slice();return n[o]=t,n.sort(bE)}function TE({sliderRef:e,activeIndex:t,setActive:o}){const n=Dh(e.current);e.current?.contains(n.activeElement)&&Number(n?.activeElement?.getAttribute("data-index"))===t||e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),o&&o(t)}function OE(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,o=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>o(e,t[n]))}(e,t)}"production"!==process.env.NODE_ENV&&(gE.propTypes={animation:Kc.oneOf(["pulse","wave",!1]),children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,height:Kc.oneOfType([Kc.number,Kc.string]),style:Kc.object,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),variant:Kc.oneOfType([Kc.oneOf(["circular","rectangular","rounded","text"]),Kc.string]),width:Kc.oneOfType([Kc.number,Kc.string])});const jE={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}%`})}},CE=e=>e;let kE;function EE(){return void 0===kE&&(kE="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),kE}function PE(e){const{"aria-labelledby":t,defaultValue:o,disabled:n=!1,disableSwap:r=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:c=0,name:p,onChange:d,onChangeCommitted:u,orientation:f="horizontal",rootRef:m,scale:h=CE,step:g=1,shiftStep:y=10,tabIndex:b,value:v}=e,x=l.useRef(void 0),[w,S]=l.useState(-1),[T,O]=l.useState(-1),[j,C]=l.useState(!1),k=l.useRef(0),E=l.useRef(null),[P,N]=_h({controlled:v,default:o??c,name:"Slider"}),R=d&&((e,t,o)=>{const n=e.nativeEvent||e,r=new n.constructor(n.type,n);Object.defineProperty(r,"target",{writable:!0,value:{value:t,name:p}}),E.current=t,d(r,t,o)}),M=Array.isArray(P);let $=M?P.slice().sort(bE):[P];$=$.map(e=>null==e?c:wf(e,c,s));const I=!0===a&&null!==g?[...Array(Math.floor((s-c)/g)+1)].map((e,t)=>({value:c+g*t})):a||[],A=I.map(e=>e.value),[B,L]=l.useState(-1),D=l.useRef(null),z=qh(m,D),V=e=>t=>{const o=Number(t.currentTarget.getAttribute("data-index"));dy(t.target)&&L(o),O(o),e?.onFocus?.(t)},F=e=>t=>{dy(t.target)||L(-1),O(-1),e?.onBlur?.(t)},W=(e,t)=>{const o=Number(e.currentTarget.getAttribute("data-index")),n=$[o],i=A.indexOf(n);let a=t;if(I&&null==g){const e=A[A.length-1];a=a>=e?e:a<=A[0]?A[0]:a<n?A[i-1]:A[i+1]}if(a=wf(a,c,s),M){r&&(a=wf(a,$[o-1]||-1/0,$[o+1]||1/0));const e=a;a=SE({values:$,newValue:a,index:o});let t=o;r||(t=a.indexOf(e)),TE({sliderRef:D,activeIndex:t})}N(a),L(o),R&&!OE(a,P)&&R(e,a,o),u&&u(e,E.current??a)},_=e=>t=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(t.key)){t.preventDefault();const e=Number(t.currentTarget.getAttribute("data-index")),o=$[e];let n=null;if(null!=g){const e=t.shiftKey?y:g;switch(t.key){case"ArrowUp":n=yE(o,e,1,c,s);break;case"ArrowRight":n=yE(o,e,i?-1:1,c,s);break;case"ArrowDown":n=yE(o,e,-1,c,s);break;case"ArrowLeft":n=yE(o,e,i?1:-1,c,s);break;case"PageUp":n=yE(o,y,1,c,s);break;case"PageDown":n=yE(o,y,-1,c,s);break;case"Home":n=c;break;case"End":n=s}}else if(I){const e=A[A.length-1],r=A.indexOf(o),a=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"].includes(t.key)?n=0===r?A[0]:A[r-1]:a.includes(t.key)&&(n=r===A.length-1?e:A[r+1])}null!=n&&W(t,n)}e?.onKeyDown?.(t)};xf(()=>{n&&D.current.contains(document.activeElement)&&document.activeElement?.blur()},[n]),n&&-1!==w&&S(-1),n&&-1!==B&&L(-1);const H=l.useRef(void 0);let q=f;i&&"horizontal"===f&&(q+="-reverse");const U=({finger:e,move:t=!1})=>{const{current:o}=D,{width:n,height:i,bottom:a,left:l}=o.getBoundingClientRect();let p,d;if(p=q.startsWith("vertical")?(a-e.y)/i:(e.x-l)/n,q.includes("-reverse")&&(p=1-p),d=function(e,t,o){return(o-t)*e+t}(p,c,s),g)d=function(e,t,o){const n=Math.round((e-o)/t)*t+o;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),o=t[0].split(".")[1];return(o?o.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}(d,g,c);else{const e=vE(A,d);d=A[e]}d=wf(d,c,s);let u=0;if(M){u=t?H.current:vE($,d),r&&(d=wf(d,$[u-1]||-1/0,$[u+1]||1/0));const e=d;d=SE({values:$,newValue:d,index:u}),r&&t||(u=d.indexOf(e),H.current=u)}return{newValue:d,activeIndex:u}},G=Hh(e=>{const t=xE(e,x);if(!t)return;if(k.current+=1,"mousemove"===e.type&&0===e.buttons)return void K(e);const{newValue:o,activeIndex:n}=U({finger:t,move:!0});TE({sliderRef:D,activeIndex:n,setActive:S}),N(o),!j&&k.current>2&&C(!0),R&&!OE(o,P)&&R(e,o,n)}),K=Hh(e=>{const t=xE(e,x);if(C(!1),!t)return;const{newValue:o}=U({finger:t,move:!0});S(-1),"touchend"===e.type&&O(-1),u&&u(e,E.current??o),x.current=void 0,Y()}),X=Hh(e=>{if(n)return;EE()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(x.current=t.identifier);const o=xE(e,x);if(!1!==o){const{newValue:t,activeIndex:n}=U({finger:o});TE({sliderRef:D,activeIndex:n,setActive:S}),N(t),R&&!OE(t,P)&&R(e,t,n)}k.current=0;const r=Dh(D.current);r.addEventListener("touchmove",G,{passive:!0}),r.addEventListener("touchend",K,{passive:!0})}),Y=l.useCallback(()=>{const e=Dh(D.current);e.removeEventListener("mousemove",G),e.removeEventListener("mouseup",K),e.removeEventListener("touchmove",G),e.removeEventListener("touchend",K)},[K,G]);l.useEffect(()=>{const{current:e}=D;return e.addEventListener("touchstart",X,{passive:EE()}),()=>{e.removeEventListener("touchstart",X),Y()}},[Y,X]),l.useEffect(()=>{n&&Y()},[n,Y]);const Z=wE(M?$[0]:c,c,s),J=wE($[$.length-1],c,s)-Z,Q=e=>t=>{e.onMouseLeave?.(t),O(-1)};let ee;return"vertical"===f&&(ee=i?"vertical-rl":"vertical-lr"),{active:w,axis:q,axisProps:jE,dragging:j,focusedThumbIndex:B,getHiddenInputProps:(o={})=>{const r=Ag(o),a={onChange:(l=r||{},e=>{l.onChange?.(e),W(e,e.target.valueAsNumber)}),onFocus:V(r||{}),onBlur:F(r||{}),onKeyDown:_(r||{})};var l;const d={...r,...a};return{tabIndex:b,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":h(s),"aria-valuemin":h(c),name:p,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":e.step??void 0,disabled:n,...o,...d,style:{...Rk,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ee}}},getRootProps:(e={})=>{const t=Ag(e),o={onMouseDown:(r=t||{},e=>{if(r.onMouseDown?.(e),n)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const t=xE(e,x);if(!1!==t){const{newValue:o,activeIndex:n}=U({finger:t});TE({sliderRef:D,activeIndex:n,setActive:S}),N(o),R&&!OE(o,P)&&R(e,o,n)}k.current=0;const o=Dh(D.current);o.addEventListener("mousemove",G,{passive:!0}),o.addEventListener("mouseup",K)})};var r;const i={...t,...o};return{...e,ref:z,...i}},getThumbProps:(e={})=>{const t=Ag(e),o={onMouseOver:(n=t||{},e=>{n.onMouseOver?.(e);const t=Number(e.currentTarget.getAttribute("data-index"));O(t)}),onMouseLeave:Q(t||{})};var n;return{...e,...t,...o}},marks:I,open:T,range:M,rootRef:z,trackLeap:J,trackOffset:Z,values:$,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}function NE(e){return tf("MuiSlider",e)}const RE=of("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"]);function ME(t){const{children:o,className:n,value:r}=t,i=(e=>{const{open:t}=e;return{offset:Ju(t&&RE.valueLabelOpen),circle:RE.valueLabelCircle,label:RE.valueLabelLabel}})(t);return o?l.cloneElement(o,{className:o.props.className},e.jsxs(l.Fragment,{children:[o.props.children,e.jsx("span",{className:Ju(i.offset,n),"aria-hidden":!0,children:e.jsx("span",{className:i.circle,children:e.jsx("span",{className:i.label,children:r})})})]})):null}function $E(e){return e}"production"!==process.env.NODE_ENV&&(ME.propTypes={children:Kc.element.isRequired,className:Kc.string,value:Kc.node});const IE=Eh("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${Ed(o.color)}`],"medium"!==o.size&&t[`size${Ed(o.size)}`],o.marked&&t.marked,"vertical"===o.orientation&&t.vertical,"inverted"===o.track&&t.trackInverted,!1===o.track&&t.trackFalse]}})(Rh(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${RE.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${RE.dragging}`]:{[`& .${RE.thumb}, & .${RE.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(My()).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}}]}))),AE=Eh("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}}]}),BE=Eh("span",{name:"MuiSlider",slot:"Track"})(Rh(({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(My()).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)})}}}))]}))),LE=Eh("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.thumb,t[`thumbColor${Ed(o.color)}`],"medium"!==o.size&&t[`thumbSize${Ed(o.size)}`]]}})(Rh(({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%)"},[`&.${RE.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(My()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${RE.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${RE.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),DE=Eh(ME,{name:"MuiSlider",slot:"ValueLabel"})(Rh(({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%"},[`&.${RE.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%"},[`&.${RE.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"}}]})));"production"!==process.env.NODE_ENV&&(DE.propTypes={children:Kc.element.isRequired,index:Kc.number.isRequired,open:Kc.bool.isRequired,value:Kc.node});const zE=Eh("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ch(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:o}=e;return[t.mark,o&&t.markActive]}})(Rh(({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}}]}))),VE=Eh("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ch(e)&&"markLabelActive"!==e})(Rh(({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}}]}))),FE=({children:e})=>e,WE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSlider"}),r=qf(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":s,component:c="span",components:p={},componentsProps:d={},color:u="primary",classes:f,className:m,disableSwap:h=!1,disabled:g=!1,getAriaLabel:y,getAriaValueText:b,marks:v=!1,max:x=100,min:w=0,name:S,onChange:T,onChangeCommitted:O,orientation:j="horizontal",shiftStep:C=10,size:k="medium",step:E=1,scale:P=$E,slotProps:N,slots:R,tabIndex:M,track:$="normal",value:I,valueLabelDisplay:A="off",valueLabelFormat:B=$E,...L}=n,D={...n,isRtl:r,max:x,min:w,classes:f,disabled:g,disableSwap:h,orientation:j,marks:v,color:u,size:k,step:E,shiftStep:C,scale:P,track:$,valueLabelDisplay:A,valueLabelFormat:B},{axisProps:z,getRootProps:V,getHiddenInputProps:F,getThumbProps:W,open:_,active:H,axis:q,focusedThumbIndex:U,range:G,dragging:K,marks:X,values:Y,trackOffset:Z,trackLeap:J,getThumbStyle:Q}=PE({...D,rootRef:o});D.marked=X.length>0&&X.some(e=>e.label),D.dragging=K,D.focusedThumbIndex=U;const ee=(e=>{const{disabled:t,dragging:o,marked:n,orientation:r,track:i,classes:a,color:s,size:l}=e;return am({root:["root",t&&"disabled",o&&"dragging",n&&"marked","vertical"===r&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",s&&`color${Ed(s)}`,l&&`size${Ed(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Ed(l)}`,s&&`thumbColor${Ed(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},NE,a)})(D),te=R?.root??p.Root??IE,oe=R?.rail??p.Rail??AE,ne=R?.track??p.Track??BE,re=R?.thumb??p.Thumb??LE,ie=R?.valueLabel??p.ValueLabel??DE,ae=R?.mark??p.Mark??zE,se=R?.markLabel??p.MarkLabel??VE,le=R?.input??p.Input??"input",ce=N?.root??d.root,pe=N?.rail??d.rail,de=N?.track??d.track,ue=N?.thumb??d.thumb,fe=N?.valueLabel??d.valueLabel,me=N?.mark??d.mark,he=N?.markLabel??d.markLabel,ge=N?.input??d.input,ye=Hv({elementType:te,getSlotProps:V,externalSlotProps:ce,externalForwardedProps:L,additionalProps:{...(be=te,(!be||!Mg(be))&&{as:c})},ownerState:{...D,...ce?.ownerState},className:[ee.root,m]});var be;const ve=Hv({elementType:oe,externalSlotProps:pe,ownerState:D,className:ee.rail}),xe=Hv({elementType:ne,externalSlotProps:de,additionalProps:{style:{...z[q].offset(Z),...z[q].leap(J)}},ownerState:{...D,...de?.ownerState},className:ee.track}),we=Hv({elementType:re,getSlotProps:W,externalSlotProps:ue,ownerState:{...D,...ue?.ownerState},className:ee.thumb}),Se=Hv({elementType:ie,externalSlotProps:fe,ownerState:{...D,...fe?.ownerState},className:ee.valueLabel}),Te=Hv({elementType:ae,externalSlotProps:me,ownerState:D,className:ee.mark}),Oe=Hv({elementType:se,externalSlotProps:he,ownerState:D,className:ee.markLabel}),je=Hv({elementType:le,getSlotProps:F,externalSlotProps:ge,ownerState:D});return e.jsxs(te,{...ye,children:[e.jsx(oe,{...ve}),e.jsx(ne,{...xe}),X.filter(e=>e.value>=w&&e.value<=x).map((t,o)=>{const n=wE(t.value,w,x),r=z[q].offset(n);let i;return i=!1===$?Y.includes(t.value):"normal"===$&&(G?t.value>=Y[0]&&t.value<=Y[Y.length-1]:t.value<=Y[0])||"inverted"===$&&(G?t.value<=Y[0]||t.value>=Y[Y.length-1]:t.value>=Y[0]),e.jsxs(l.Fragment,{children:[e.jsx(ae,{"data-index":o,...Te,...!Mg(ae)&&{markActive:i},style:{...r,...Te.style},className:Ju(Te.className,i&&ee.markActive)}),null!=t.label?e.jsx(se,{"aria-hidden":!0,"data-index":o,...Oe,...!Mg(se)&&{markLabelActive:i},style:{...r,...Oe.style},className:Ju(ee.markLabel,Oe.className,i&&ee.markLabelActive),children:t.label}):null]},o)}),Y.map((t,o)=>{const n=wE(t,w,x),r=z[q].offset(n),l="off"===A?FE:ie;return e.jsx(l,{...!Mg(l)&&{valueLabelFormat:B,valueLabelDisplay:A,value:"function"==typeof B?B(P(t),o):B,index:o,open:_===o||H===o||"on"===A,disabled:g},...Se,children:e.jsx(re,{"data-index":o,...we,className:Ju(ee.thumb,we.className,H===o&&ee.active,U===o&&ee.focusVisible),style:{...r,...Q(o),...we.style},children:e.jsx(le,{"data-index":o,"aria-label":y?y(o):i,"aria-valuenow":P(t),"aria-labelledby":s,"aria-valuetext":b?b(P(t),o):a,value:Y[o],...je})})},o)})]})});function _E(e){return tf("MuiSnackbarContent",e)}"production"!==process.env.NODE_ENV&&(WE.propTypes={"aria-label":Gh(Kc.string,e=>Array.isArray(e.value||e.defaultValue)&&null!=e["aria-label"]?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":Kc.string,"aria-valuetext":Gh(Kc.string,e=>Array.isArray(e.value||e.defaultValue)&&null!=e["aria-valuetext"]?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["primary","secondary","error","info","success","warning"]),Kc.string]),components:Kc.shape({Input:Kc.elementType,Mark:Kc.elementType,MarkLabel:Kc.elementType,Rail:Kc.elementType,Root:Kc.elementType,Thumb:Kc.elementType,Track:Kc.elementType,ValueLabel:Kc.elementType}),componentsProps:Kc.shape({input:Kc.oneOfType([Kc.func,Kc.object]),mark:Kc.oneOfType([Kc.func,Kc.object]),markLabel:Kc.oneOfType([Kc.func,Kc.object]),rail:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),thumb:Kc.oneOfType([Kc.func,Kc.object]),track:Kc.oneOfType([Kc.func,Kc.object]),valueLabel:Kc.oneOfType([Kc.func,Kc.shape({children:Kc.element,className:Kc.string,open:Kc.bool,style:Kc.object,value:Kc.node,valueLabelDisplay:Kc.oneOf(["auto","off","on"])})])}),defaultValue:Kc.oneOfType([Kc.arrayOf(Kc.number),Kc.number]),disabled:Kc.bool,disableSwap:Kc.bool,getAriaLabel:Kc.func,getAriaValueText:Kc.func,marks:Kc.oneOfType([Kc.arrayOf(Kc.shape({label:Kc.node,value:Kc.number.isRequired})),Kc.bool]),max:Kc.number,min:Kc.number,name:Kc.string,onChange:Kc.func,onChangeCommitted:Kc.func,orientation:Kc.oneOf(["horizontal","vertical"]),scale:Kc.func,shiftStep:Kc.number,size:Kc.oneOfType([Kc.oneOf(["small","medium"]),Kc.string]),slotProps:Kc.shape({input:Kc.oneOfType([Kc.func,Kc.object]),mark:Kc.oneOfType([Kc.func,Kc.object]),markLabel:Kc.oneOfType([Kc.func,Kc.object]),rail:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),thumb:Kc.oneOfType([Kc.func,Kc.object]),track:Kc.oneOfType([Kc.func,Kc.object]),valueLabel:Kc.oneOfType([Kc.func,Kc.shape({children:Kc.element,className:Kc.string,open:Kc.bool,style:Kc.object,value:Kc.node,valueLabelDisplay:Kc.oneOf(["auto","off","on"])})])}),slots:Kc.shape({input:Kc.elementType,mark:Kc.elementType,markLabel:Kc.elementType,rail:Kc.elementType,root:Kc.elementType,thumb:Kc.elementType,track:Kc.elementType,valueLabel:Kc.elementType}),step:Kc.number,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),tabIndex:Kc.number,track:Kc.oneOf(["inverted","normal",!1]),value:Kc.oneOfType([Kc.arrayOf(Kc.number),Kc.number]),valueLabelDisplay:Kc.oneOf(["auto","off","on"]),valueLabelFormat:Kc.oneOfType([Kc.func,Kc.string])}),of("MuiSnackbarContent",["root","message","action"]);const HE=Eh(Yg,{name:"MuiSnackbarContent",slot:"Root"})(Rh(({theme:e})=>{const t="light"===e.palette.mode?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Af(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Af(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),qE=Eh("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),UE=Eh("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),GE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSnackbarContent"}),{action:r,className:i,message:a,role:s="alert",...l}=n,c=n,p=(e=>{const{classes:t}=e;return am({root:["root"],action:["action"],message:["message"]},_E,t)})(c);return e.jsxs(HE,{role:s,elevation:6,className:Ju(p.root,i),ownerState:c,ref:o,...l,children:[e.jsx(qE,{className:p.message,ownerState:c,children:a}),r?e.jsx(UE,{className:p.action,ownerState:c,children:r}):null]})});function KE(e){return tf("MuiSnackbar",e)}"production"!==process.env.NODE_ENV&&(GE.propTypes={action:Kc.node,classes:Kc.object,className:Kc.string,message:Kc.node,role:Kc.string,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const XE=Eh("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`anchorOrigin${Ed(o.anchorOrigin.vertical)}${Ed(o.anchorOrigin.horizontal)}`]]}})(Rh(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),YE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSnackbar"}),r=jh(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:d,className:u,ClickAwayListenerProps:f,ContentProps:m,disableWindowBlurListener:h=!1,message:g,onBlur:y,onClose:b,onFocus:v,onMouseEnter:x,onMouseLeave:w,open:S,resumeHideDuration:T,slots:O={},slotProps:j={},TransitionComponent:C,transitionDuration:k=i,TransitionProps:{onEnter:E,onExited:P,...N}={},...R}=n,M={...n,anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:p,disableWindowBlurListener:h,TransitionComponent:C,transitionDuration:k},$=(e=>{const{classes:t,anchorOrigin:o}=e;return am({root:["root",`anchorOrigin${Ed(o.vertical)}${Ed(o.horizontal)}`]},KE,t)})(M),{getRootProps:I,onClickAway:A}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:o=!1,onClose:n,open:r,resumeHideDuration:i}=e,a=Eg();l.useEffect(()=>{if(r)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&n?.(e,"escapeKeyDown")}},[r,n]);const s=Hh((e,t)=>{n?.(e,t)}),c=Hh(e=>{n&&null!=e&&a.start(e,()=>{s(null,"timeout")})});l.useEffect(()=>(r&&c(t),a.clear),[r,t,c,a]);const p=a.clear,d=l.useCallback(()=>{null!=t&&c(null!=i?i:.5*t)},[t,i,c]),u=e=>t=>{const o=e.onFocus;o?.(t),p()},f=e=>t=>{const o=e.onMouseEnter;o?.(t),p()},m=e=>t=>{const o=e.onMouseLeave;o?.(t),d()};return l.useEffect(()=>{if(!o&&r)return window.addEventListener("focus",d),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",p)}},[o,r,d,p]),{getRootProps:(t={})=>{const o={...Ag(e),...Ag(t)};return{role:"presentation",...t,...o,onBlur:(n=o,e=>{const t=n.onBlur;t?.(e),d()}),onFocus:u(o),onMouseEnter:f(o),onMouseLeave:m(o)};var n},onClickAway:e=>{n?.(e,"clickaway")}}}(M),[B,L]=l.useState(!0),D={slots:{transition:C,...O},slotProps:{content:m,clickAwayListener:f,transition:N,...j}},[z,V]=Dg("root",{ref:o,className:[$.root,u],elementType:XE,getSlotProps:I,externalForwardedProps:{...D,...R},ownerState:M}),[F,{ownerState:W,..._}]=Dg("clickAwayListener",{elementType:KS,externalForwardedProps:D,getSlotProps:e=>({onClickAway:(...t)=>{const o=t[0];e.onClickAway?.(...t),o?.defaultMuiPrevented||A(...t)}}),ownerState:M}),[H,q]=Dg("content",{elementType:GE,shouldForwardComponentProp:!0,externalForwardedProps:D,additionalProps:{message:g,action:a},ownerState:M}),[U,G]=Dg("transition",{elementType:zO,externalForwardedProps:D,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{L(!1),E&&E(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{L(!0),P&&P(e)})(...t)}}),additionalProps:{appear:!0,in:S,timeout:k,direction:"top"===s?"down":"up"},ownerState:M});return!S&&B?null:e.jsx(F,{..._,...O.clickAwayListener&&{ownerState:W},children:e.jsx(z,{...V,children:e.jsx(U,{...G,children:d||e.jsx(H,{...q})})})})});"production"!==process.env.NODE_ENV&&(YE.propTypes={action:Kc.node,anchorOrigin:Kc.shape({horizontal:Kc.oneOf(["center","left","right"]).isRequired,vertical:Kc.oneOf(["bottom","top"]).isRequired}),autoHideDuration:Kc.number,children:Kc.element,classes:Kc.object,className:Kc.string,ClickAwayListenerProps:Kc.object,ContentProps:Kc.object,disableWindowBlurListener:Kc.bool,key:()=>null,message:Kc.node,onBlur:Kc.func,onClose:Kc.func,onFocus:Kc.func,onMouseEnter:Kc.func,onMouseLeave:Kc.func,open:Kc.bool,resumeHideDuration:Kc.number,slotProps:Kc.shape({clickAwayListener:Kc.oneOfType([Kc.func,Kc.object]),content:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({clickAwayListener:Kc.elementType,content:Kc.elementType,root:Kc.elementType,transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TransitionComponent:Kc.elementType,transitionDuration:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),TransitionProps:Kc.object});const ZE={entering:{transform:"none"},entered:{transform:"none"}},JE=l.forwardRef(function(t,o){const n=jh(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:p,onEnter:d,onEntered:u,onEntering:f,onExit:m,onExited:h,onExiting:g,style:y,timeout:b=r,TransitionComponent:v=sg,...x}=t,w=l.useRef(null),S=qh(w,qv(s),o),T=e=>t=>{if(e){const o=w.current;void 0===t?e(o):e(o,t)}},O=T(f),j=T((e,t)=>{Ng(e);const o=Rg({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",o),e.style.transition=n.transitions.create("transform",o),d&&d(e,t)}),C=T(u),k=T(g),E=T(e=>{const t=Rg({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),m&&m(e)}),P=T(h);return e.jsx(v,{appear:a,in:p,nodeRef:w,onEnter:j,onEntered:C,onEntering:O,onExit:E,onExited:P,onExiting:k,addEndListener:e=>{i&&i(w.current,e)},timeout:b,...x,children:(e,{ownerState:t,...o})=>l.cloneElement(s,{style:{transform:"scale(0)",visibility:"exited"!==e||p?void 0:"hidden",...ZE[e],...y,...s.props.style},ref:S,...o})})});function QE(e){return tf("MuiSpeedDial",e)}"production"!==process.env.NODE_ENV&&(JE.propTypes={addEndListener:Kc.func,appear:Kc.bool,children:dw.isRequired,easing:Kc.oneOfType([Kc.shape({enter:Kc.string,exit:Kc.string}),Kc.string]),in:Kc.bool,onEnter:Kc.func,onEntered:Kc.func,onEntering:Kc.func,onExit:Kc.func,onExited:Kc.func,onExiting:Kc.func,style:Kc.object,timeout:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})])});const eP=of("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function tP(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}const oP=Eh("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`direction${Ed(o.direction)}`]]}})(Rh(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${eP.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${eP.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:48}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${eP.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${eP.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}}}]}))),nP=Eh(tO,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),rP=Eh("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.actions,!o.open&&t.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),iP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSpeedDial"}),r=jh(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{ariaLabel:a,FabProps:{ref:s,...c}={},children:p,className:d,direction:u="up",hidden:f=!1,icon:m,onBlur:h,onClose:g,onFocus:y,onKeyDown:b,onMouseEnter:v,onMouseLeave:x,onOpen:w,open:S,openIcon:T,slots:O={},slotProps:j={},TransitionComponent:C,TransitionProps:k,transitionDuration:E=i,...P}=n,[N,R]=_h({controlled:S,default:!1,name:"SpeedDial",state:"open"}),M={...n,open:N,direction:u},$=(e=>{const{classes:t,open:o,direction:n}=e;return am({root:["root",`direction${Ed(n)}`],fab:["fab"],actions:["actions",!o&&"actionsClosed"]},QE,t)})(M),I=Eg(),A=l.useRef(0),B=l.useRef(),L=l.useRef([]);L.current=[L.current[0]];const D=qh(s,l.useCallback(e=>{L.current[0]=e},[])),z=(e,t,o)=>n=>{L.current[e+1]=n,t&&t(n),o&&o(n)};l.useEffect(()=>{N||(A.current=0,B.current=void 0)},[N]);const V=e=>{"mouseleave"===e.type&&x&&x(e),"blur"===e.type&&h&&h(e),I.clear(),"blur"===e.type?I.start(0,()=>{R(!1),g&&g(e,"blur")}):(R(!1),g&&g(e,"mouseLeave"))},F=e=>{"mouseenter"===e.type&&v&&v(e),"focus"===e.type&&y&&y(e),I.clear(),N||I.start(0,()=>{R(!0),w&&w(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])})},W=a.replace(/^[^a-z]+|[^\w:.-]+/gi,""),_=l.Children.toArray(p).filter(e=>("production"!==process.env.NODE_ENV&&Kp.isFragment(e),l.isValidElement(e))),H=_.map((e,t)=>{const{FabProps:{ref:o}={},slotProps:n={},tooltipPlacement:r}=e.props,{fab:{ref:i,...a}={},...s}=n,c=r||("vertical"===tP(u)?"left":"top");return l.cloneElement(e,{slotProps:{fab:{...a,ref:z(t,o,i)},...s},delay:30*(N?t:_.length-t),open:N,tooltipPlacement:c,id:`${W}-action-${t}`})}),q={slots:{transition:C,...O},slotProps:{transition:k,...j}},[U,G]=Dg("root",{elementType:oP,externalForwardedProps:{...q,...P},ownerState:M,ref:o,className:Ju($.root,d),additionalProps:{role:"presentation"},getSlotProps:e=>({...e,onKeyDown:t=>{e.onKeyDown?.(t),(e=>{b&&b(e);const t=e.key.replace("Arrow","").toLowerCase(),{current:o=t}=B;if("Escape"===e.key)return R(!1),L.current[0].focus(),void(g&&g(e,"escapeKeyDown"));if(tP(t)===tP(o)&&void 0!==tP(t)){e.preventDefault();const n=t===o?1:-1,r=wf(A.current+n,0,L.current.length-1);L.current[r].focus(),A.current=r,B.current=o}})(t)},onBlur:t=>{e.onBlur?.(t),V(t)},onFocus:t=>{e.onFocus?.(t),F(t)},onMouseEnter:t=>{e.onMouseEnter?.(t),F(t)},onMouseLeave:t=>{e.onMouseLeave?.(t),V(t)}})}),[K,X]=Dg("transition",{elementType:JE,externalForwardedProps:q,ownerState:M});return e.jsxs(U,{...G,children:[e.jsx(K,{in:!f,timeout:E,unmountOnExit:!0,...X,children:e.jsx(nP,{color:"primary","aria-label":a,"aria-haspopup":"true","aria-expanded":N,"aria-controls":`${W}-actions`,...c,onClick:e=>{c.onClick&&c.onClick(e),I.clear(),N?(R(!1),g&&g(e,"toggle")):(R(!0),w&&w(e,"toggle"))},className:Ju($.fab,c.className),ref:D,ownerState:M,children:l.isValidElement(m)&&um(m,["SpeedDialIcon"])?l.cloneElement(m,{open:N}):m})}),e.jsx(rP,{id:`${W}-actions`,role:"menu","aria-orientation":tP(u),className:Ju($.actions,!N&&$.actionsClosed),ownerState:M,children:H})]})});function aP(e){return tf("MuiTooltip",e)}"production"!==process.env.NODE_ENV&&(iP.propTypes={ariaLabel:Kc.string.isRequired,children:Kc.node,classes:Kc.object,className:Kc.string,direction:Kc.oneOf(["down","left","right","up"]),FabProps:Kc.object,hidden:Kc.bool,icon:Kc.node,onBlur:Kc.func,onClose:Kc.func,onFocus:Kc.func,onKeyDown:Kc.func,onMouseEnter:Kc.func,onMouseLeave:Kc.func,onOpen:Kc.func,open:Kc.bool,openIcon:Kc.node,slotProps:Kc.shape({root:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({root:Kc.elementType,transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TransitionComponent:Kc.elementType,transitionDuration:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),TransitionProps:Kc.object});const sP=of("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),lP=Eh(ex,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})(Rh(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${sP.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${sP.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${sP.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${sP.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${sP.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${sP.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${sP.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${sP.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),cP=Eh("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ed(o.placement.split("-")[0])}`]]}})(Rh(({theme:e})=>{return{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,[`.${sP.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${sP.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${sP.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${sP.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${sP.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),pP=Eh("span",{name:"MuiTooltip",slot:"Arrow"})(Rh(({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 dP=!1;const uP=new kg;let fP={x:0,y:0};function mP(e,t){return(o,...n)=>{t&&t(o,...n),e(o,...n)}}const hP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:a,components:s={},componentsProps:c={},describeChild:p=!1,disableFocusListener:d=!1,disableHoverListener:u=!1,disableInteractive:f=!1,disableTouchListener:m=!1,enterDelay:h=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:b=!1,id:v,leaveDelay:x=0,leaveTouchDelay:w=1500,onClose:S,onOpen:T,open:O,placement:j="bottom",PopperComponent:C,PopperProps:k={},slotProps:E={},slots:P={},title:N,TransitionComponent:R,TransitionProps:M,...$}=n,I=l.isValidElement(i)?i:e.jsx("span",{children:i}),A=jh(),B=qf(),[L,D]=l.useState(),[z,V]=l.useState(null),F=l.useRef(!1),W=f||b,_=Eg(),H=Eg(),q=Eg(),U=Eg(),[G,K]=_h({controlled:O,default:!1,name:"Tooltip",state:"open"});let X=G;if("production"!==process.env.NODE_ENV){const{current:e}=l.useRef(void 0!==O);l.useEffect(()=>{L&&L.disabled&&!e&&""!==N&&L.tagName.toLowerCase()},[N,L,e])}const Y=Yf(v),Z=l.useRef(),J=Hh(()=>{void 0!==Z.current&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),U.clear()});l.useEffect(()=>J,[J]);const Q=e=>{uP.clear(),dP=!0,K(!0),T&&!X&&T(e)},ee=Hh(e=>{uP.start(800+x,()=>{dP=!1}),K(!1),S&&X&&S(e),_.start(A.transitions.duration.shortest,()=>{F.current=!1})}),te=e=>{F.current&&"touchstart"!==e.type||(L&&L.removeAttribute("title"),H.clear(),q.clear(),h||dP&&g?H.start(dP?g:h,()=>{Q(e)}):Q(e))},oe=e=>{H.clear(),q.start(x,()=>{ee(e)})},[,ne]=l.useState(!1),re=e=>{dy(e.target)||(ne(!1),oe(e))},ie=e=>{L||D(e.currentTarget),dy(e.target)&&(ne(!0),te(e))},ae=e=>{F.current=!0;const t=I.props;t.onTouchStart&&t.onTouchStart(e)};l.useEffect(()=>{if(X)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}},[ee,X]);const se=qh(qv(I),D,o);N||0===N||(X=!1);const le=l.useRef(),ce={},pe="string"==typeof N;p?(ce.title=X||!pe||u?null:N,ce["aria-describedby"]=X?Y:null):(ce["aria-label"]=pe?N:null,ce["aria-labelledby"]=X&&!pe?Y:null);const de={...ce,...$,...I.props,className:Ju($.className,I.props.className),onTouchStart:ae,ref:se,...b?{onMouseMove:e=>{const t=I.props;t.onMouseMove&&t.onMouseMove(e),fP={x:e.clientX,y:e.clientY},le.current&&le.current.update()}}:{}};"production"!==process.env.NODE_ENV&&(de["data-mui-internal-clone-element"]=!0,l.useEffect(()=>{L&&L.getAttribute("data-mui-internal-clone-element")},[L]));const ue={};m||(de.onTouchStart=e=>{ae(e),q.clear(),_.clear(),J(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(y,()=>{document.body.style.WebkitUserSelect=Z.current,te(e)})},de.onTouchEnd=e=>{I.props.onTouchEnd&&I.props.onTouchEnd(e),J(),q.start(w,()=>{ee(e)})}),u||(de.onMouseOver=mP(te,de.onMouseOver),de.onMouseLeave=mP(oe,de.onMouseLeave),W||(ue.onMouseOver=te,ue.onMouseLeave=oe)),d||(de.onFocus=mP(ie,de.onFocus),de.onBlur=mP(re,de.onBlur),W||(ue.onFocus=ie,ue.onBlur=re)),"production"!==process.env.NODE_ENV&&I.props.title;const fe={...n,isRtl:B,arrow:r,disableInteractive:W,placement:j,PopperComponentProp:C,touch:F.current},me="function"==typeof E.popper?E.popper(fe):E.popper,he=l.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(z),options:{element:z,padding:4}}];return k.popperOptions?.modifiers&&(e=e.concat(k.popperOptions.modifiers)),me?.popperOptions?.modifiers&&(e=e.concat(me.popperOptions.modifiers)),{...k.popperOptions,...me?.popperOptions,modifiers:e}},[z,k.popperOptions,me?.popperOptions]),ge=(e=>{const{classes:t,disableInteractive:o,arrow:n,touch:r,placement:i}=e;return am({popper:["popper",!o&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",r&&"touch",`tooltipPlacement${Ed(i.split("-")[0])}`],arrow:["arrow"]},aP,t)})(fe),ye="function"==typeof E.transition?E.transition(fe):E.transition,be={slots:{popper:s.Popper,transition:s.Transition??R,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:E.arrow??c.arrow,popper:{...k,...me??c.popper},tooltip:E.tooltip??c.tooltip,transition:{...M,...ye??c.transition}}},[ve,xe]=Dg("popper",{elementType:lP,externalForwardedProps:be,ownerState:fe,className:Ju(ge.popper,k?.className)}),[we,Se]=Dg("transition",{elementType:zO,externalForwardedProps:be,ownerState:fe}),[Te,Oe]=Dg("tooltip",{elementType:cP,className:ge.tooltip,externalForwardedProps:be,ownerState:fe}),[je,Ce]=Dg("arrow",{elementType:pP,className:ge.arrow,externalForwardedProps:be,ownerState:fe,ref:V});return e.jsxs(l.Fragment,{children:[l.cloneElement(I,de),e.jsx(ve,{as:C??ex,placement:j,anchorEl:b?{getBoundingClientRect:()=>({top:fP.y,left:fP.x,right:fP.x,bottom:fP.y,width:0,height:0})}:L,popperRef:le,open:!!L&&X,id:Y,transition:!0,...ue,...xe,popperOptions:he,children:({TransitionProps:t})=>e.jsx(we,{timeout:A.transitions.duration.shorter,...t,...Se,children:e.jsxs(Te,{...Oe,children:[N,r?e.jsx(je,{...Ce}):null]})})})]})});function gP(e){return tf("MuiSpeedDialAction",e)}"production"!==process.env.NODE_ENV&&(hP.propTypes={arrow:Kc.bool,children:dw.isRequired,classes:Kc.object,className:Kc.string,components:Kc.shape({Arrow:Kc.elementType,Popper:Kc.elementType,Tooltip:Kc.elementType,Transition:Kc.elementType}),componentsProps:Kc.shape({arrow:Kc.object,popper:Kc.object,tooltip:Kc.object,transition:Kc.object}),describeChild:Kc.bool,disableFocusListener:Kc.bool,disableHoverListener:Kc.bool,disableInteractive:Kc.bool,disableTouchListener:Kc.bool,enterDelay:Kc.number,enterNextDelay:Kc.number,enterTouchDelay:Kc.number,followCursor:Kc.bool,id:Kc.string,leaveDelay:Kc.number,leaveTouchDelay:Kc.number,onClose:Kc.func,onOpen:Kc.func,open:Kc.bool,placement:Kc.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:Kc.elementType,PopperProps:Kc.object,slotProps:Kc.shape({arrow:Kc.oneOfType([Kc.func,Kc.object]),popper:Kc.oneOfType([Kc.func,Kc.object]),tooltip:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({arrow:Kc.elementType,popper:Kc.elementType,tooltip:Kc.elementType,transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),title:Kc.node,TransitionComponent:Kc.elementType,TransitionProps:Kc.object});const yP=of("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),bP=Eh(tO,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.fab,!o.open&&t.fabClosed]}})(Rh(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:Af(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:e})=>!e.open,style:{opacity:0,transform:"scale(0)"}}]}))),vP=Eh("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.staticTooltip,!o.open&&t.staticTooltipClosed,t[`tooltipPlacement${Ed(o.tooltipPlacement)}`]]}})(Rh(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${yP.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:e})=>!e.open,style:{[`& .${yP.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${yP.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${yP.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),xP=Eh("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(Rh(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),wP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSpeedDialAction"}),{className:r,delay:i=0,FabProps:a={},icon:s,id:c,open:p,TooltipClasses:d,tooltipOpen:u=!1,tooltipPlacement:f="left",tooltipTitle:m,slots:h={},slotProps:g={},...y}=n,b={...n,tooltipPlacement:f},v=(e=>{const{open:t,tooltipPlacement:o,classes:n}=e;return am({fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${Ed(o)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]},gP,n)})(b),x={slots:h,slotProps:{fab:a,...g,tooltip:Uh("function"==typeof g.tooltip?g.tooltip(b):g.tooltip,{title:m,open:u,placement:f,classes:d})}},[w,S]=l.useState(x.slotProps.tooltip?.open),T={transitionDelay:`${i}ms`},[O,j]=Dg("fab",{elementType:bP,externalForwardedProps:x,ownerState:b,shouldForwardComponentProp:!0,className:Ju(v.fab,r),additionalProps:{style:T,tabIndex:-1,role:"menuitem",size:"small"}}),[C,k]=Dg("tooltip",{elementType:hP,externalForwardedProps:x,shouldForwardComponentProp:!0,ref:o,additionalProps:{id:c},ownerState:b,getSlotProps:e=>({...e,onClose:t=>{e.onClose?.(t),S(!1)},onOpen:t=>{e.onOpen?.(t),S(!0)}})}),[E,P]=Dg("staticTooltip",{elementType:vP,externalForwardedProps:x,ownerState:b,ref:o,className:v.staticTooltip,additionalProps:{id:c}}),[N,R]=Dg("staticTooltipLabel",{elementType:xP,externalForwardedProps:x,ownerState:b,className:v.staticTooltipLabel,additionalProps:{style:T,id:`${c}-label`}}),M=e.jsx(O,{...j,children:s});return k.open?e.jsxs(E,{...P,...y,children:[e.jsx(N,{...R,children:k.title}),l.cloneElement(M,{"aria-labelledby":`${c}-label`})]}):(!p&&w&&S(!1),e.jsx(C,{...k,title:k.title,open:p&&w,placement:k.placement,classes:k.classes,...y,children:M}))});"production"!==process.env.NODE_ENV&&(wP.propTypes={classes:Kc.object,className:Kc.string,delay:Kc.number,FabProps:Kc.object,icon:Kc.node,id:Kc.string,open:Kc.bool,slotProps:Kc.shape({fab:Kc.oneOfType([Kc.func,Kc.object]),staticTooltip:Kc.oneOfType([Kc.func,Kc.object]),staticTooltipLabel:Kc.oneOfType([Kc.func,Kc.object]),tooltip:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({fab:Kc.elementType,staticTooltip:Kc.elementType,staticTooltipLabel:Kc.elementType,tooltip:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TooltipClasses:Kc.object,tooltipOpen:Kc.bool,tooltipPlacement:Kc.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:Kc.node});var SP=Bh(e.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function TP(e){return tf("MuiSpeedDialIcon",e)}const OP=of("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),jP=Eh("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${OP.icon}`]:t.icon},{[`& .${OP.icon}`]:o.open&&t.iconOpen},{[`& .${OP.icon}`]:o.open&&o.openIcon&&t.iconWithOpenIconOpen},{[`& .${OP.openIcon}`]:t.openIcon},{[`& .${OP.openIcon}`]:o.open&&t.openIconOpen},t.root]}})(Rh(({theme:e})=>({height:24,[`& .${OP.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${OP.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:e})=>e.open,style:{[`& .${OP.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:e})=>e.open&&e.openIcon,style:{[`& .${OP.icon}`]:{opacity:0}}},{props:({ownerState:e})=>e.open,style:{[`& .${OP.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),CP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSpeedDialIcon"}),{className:r,icon:i,open:a,openIcon:s,...c}=n,p=n,d=(e=>{const{classes:t,open:o,openIcon:n}=e;return am({root:["root"],icon:["icon",o&&"iconOpen",n&&o&&"iconWithOpenIconOpen"],openIcon:["openIcon",o&&"openIconOpen"]},TP,t)})(p);function u(e,t){return l.isValidElement(e)?l.cloneElement(e,{className:t}):e}return e.jsxs(jP,{className:Ju(d.root,r),ref:o,ownerState:p,...c,children:[s?u(s,d.openIcon):null,i?u(i,d.icon):e.jsx(SP,{className:d.icon})]})});"production"!==process.env.NODE_ENV&&(CP.propTypes={classes:Kc.object,className:Kc.string,icon:Kc.node,open:Kc.bool,openIcon:Kc.node,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),CP.muiName="SpeedDialIcon";const kP=Vm({createStyledComponent:Eh("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Mh({props:e,name:"MuiStack"})});"production"!==process.env.NODE_ENV&&(kP.propTypes={children:Kc.node,component:Kc.elementType,direction:Kc.oneOfType([Kc.oneOf(["column-reverse","column","row-reverse","row"]),Kc.arrayOf(Kc.oneOf(["column-reverse","column","row-reverse","row"])),Kc.object]),divider:Kc.node,spacing:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.number,Kc.string])),Kc.number,Kc.object,Kc.string]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),useFlexGap:Kc.bool}),of("MuiStack",["root"]);const EP=l.createContext({});"production"!==process.env.NODE_ENV&&(EP.displayName="StepperContext");const PP=l.createContext({});function NP(e){return tf("MuiStep",e)}"production"!==process.env.NODE_ENV&&(PP.displayName="StepContext"),of("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const RP=Eh("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),MP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStep"}),{active:r,children:i,className:a,component:s="div",completed:c,disabled:p,expanded:d=!1,index:u,last:f,...m}=n,{activeStep:h,connector:g,alternativeLabel:y,orientation:b,nonLinear:v}=l.useContext(EP);let[x=!1,w=!1,S=!1]=[r,c,p];h===u?x=void 0===r||r:!v&&h>u?w=void 0===c||c:!v&&h<u&&(S=void 0===p||p);const T=l.useMemo(()=>({index:u,last:f,expanded:d,icon:u+1,active:x,completed:w,disabled:S}),[u,f,d,x,w,S]),O={...n,active:x,orientation:b,alternativeLabel:y,completed:w,disabled:S,expanded:d,component:s},j=(e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:r}=e;return am({root:["root",o,n&&"alternativeLabel",r&&"completed"]},NP,t)})(O),C=e.jsxs(RP,{as:s,className:Ju(j.root,a),ref:o,ownerState:O,...m,children:[g&&y&&0!==u?g:null,i]});return e.jsx(PP.Provider,{value:T,children:g&&!y&&0!==u?e.jsxs(l.Fragment,{children:[g,C]}):C})});"production"!==process.env.NODE_ENV&&(MP.propTypes={active:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,completed:Kc.bool,component:Kc.elementType,disabled:Kc.bool,expanded:Kc.bool,index:Gg,last:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});var $P=Bh(e.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),IP=Bh(e.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function AP(e){return tf("MuiStepIcon",e)}const BP=of("MuiStepIcon",["root","active","completed","error","text"]);var LP;const DP=Eh(Ah,{name:"MuiStepIcon",slot:"Root"})(Rh(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${BP.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${BP.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${BP.error}`]:{color:(e.vars||e).palette.error.main}}))),zP=Eh("text",{name:"MuiStepIcon",slot:"Text"})(Rh(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),VP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepIcon"}),{active:r=!1,className:i,completed:a=!1,error:s=!1,icon:l,...c}=n,p={...n,active:r,completed:a,error:s},d=(e=>{const{classes:t,active:o,completed:n,error:r}=e;return am({root:["root",o&&"active",n&&"completed",r&&"error"],text:["text"]},AP,t)})(p);if("number"==typeof l||"string"==typeof l){const t=Ju(i,d.root);return s?e.jsx(DP,{as:IP,className:t,ref:o,ownerState:p,...c}):a?e.jsx(DP,{as:$P,className:t,ref:o,ownerState:p,...c}):e.jsxs(DP,{className:t,ref:o,ownerState:p,...c,children:[LP||(LP=e.jsx("circle",{cx:"12",cy:"12",r:"12"})),e.jsx(zP,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:p,children:l})]})}return l});function FP(e){return tf("MuiStepLabel",e)}"production"!==process.env.NODE_ENV&&(VP.propTypes={active:Kc.bool,classes:Kc.object,className:Kc.string,completed:Kc.bool,error:Kc.bool,icon:Kc.node,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const WP=of("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),_P=Eh("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})({display:"flex",alignItems:"center",[`&.${WP.alternativeLabel}`]:{flexDirection:"column"},[`&.${WP.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),HP=Eh("span",{name:"MuiStepLabel",slot:"Label"})(Rh(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${WP.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${WP.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${WP.alternativeLabel}`]:{marginTop:16},[`&.${WP.error}`]:{color:(e.vars||e).palette.error.main}}))),qP=Eh("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${WP.alternativeLabel}`]:{paddingRight:0}}),UP=Eh("span",{name:"MuiStepLabel",slot:"LabelContainer"})(Rh(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${WP.alternativeLabel}`]:{textAlign:"center"}}))),GP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepLabel"}),{children:r,className:i,componentsProps:a={},error:s=!1,icon:c,optional:p,slots:d={},slotProps:u={},StepIconComponent:f,StepIconProps:m,...h}=n,{alternativeLabel:g,orientation:y}=l.useContext(EP),{active:b,disabled:v,completed:x,icon:w}=l.useContext(PP),S=c||w;let T=f;S&&!T&&(T=VP);const O={...n,active:b,alternativeLabel:g,completed:x,disabled:v,error:s,orientation:y},j=(e=>{const{classes:t,orientation:o,active:n,completed:r,error:i,disabled:a,alternativeLabel:s}=e;return am({root:["root",o,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",n&&"active",r&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",r&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},FP,t)})(O),C={slots:d,slotProps:{stepIcon:m,...a,...u}},[k,E]=Dg("root",{elementType:_P,externalForwardedProps:{...C,...h},ownerState:O,ref:o,className:Ju(j.root,i)}),[P,N]=Dg("label",{elementType:HP,externalForwardedProps:C,ownerState:O}),[R,M]=Dg("stepIcon",{elementType:T,externalForwardedProps:C,ownerState:O});return e.jsxs(k,{...E,children:[S||R?e.jsx(qP,{className:j.iconContainer,ownerState:O,children:e.jsx(R,{completed:x,active:b,error:s,icon:S,...M})}):null,e.jsxs(UP,{className:j.labelContainer,ownerState:O,children:[r?e.jsx(P,{...N,className:Ju(j.label,N?.className),children:r}):null,p]})]})});function KP(e){return tf("MuiStepButton",e)}"production"!==process.env.NODE_ENV&&(GP.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,componentsProps:Kc.shape({label:Kc.object}),error:Kc.bool,icon:Kc.node,optional:Kc.node,slotProps:Kc.shape({label:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),stepIcon:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({label:Kc.elementType,root:Kc.elementType,stepIcon:Kc.elementType}),StepIconComponent:Kc.elementType,StepIconProps:Kc.object,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),GP.muiName="StepLabel";const XP=of("MuiStepButton",["root","horizontal","vertical","touchRipple"]),YP=Eh(Oy,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${XP.touchRipple}`]:t.touchRipple},t.root,t[o.orientation]]}})({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box",[`& .${XP.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"},variants:[{props:{orientation:"vertical"},style:{justifyContent:"flex-start",padding:"8px",margin:"-8px"}}]}),ZP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepButton"}),{children:r,className:i,icon:a,optional:s,...c}=n,{disabled:p,active:d}=l.useContext(PP),{orientation:u}=l.useContext(EP),f={...n,orientation:u},m=(e=>{const{classes:t,orientation:o}=e;return am({root:["root",o],touchRipple:["touchRipple"]},KP,t)})(f),h={icon:a,optional:s},g=um(r,["StepLabel"])?l.cloneElement(r,h):e.jsx(GP,{...h,children:r});return e.jsx(YP,{focusRipple:!0,disabled:p,TouchRippleProps:{className:m.touchRipple},className:Ju(m.root,i),ref:o,ownerState:f,"aria-current":d?"step":void 0,...c,children:g})});function JP(e){return tf("MuiStepConnector",e)}"production"!==process.env.NODE_ENV&&(ZP.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,icon:Kc.node,optional:Kc.node,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const QP=Eh("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),eN=Eh("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${Ed(o.orientation)}`]]}})(Rh(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),tN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepConnector"}),{className:r,...i}=n,{alternativeLabel:a,orientation:s="horizontal"}=l.useContext(EP),{active:c,disabled:p,completed:d}=l.useContext(PP),u={...n,alternativeLabel:a,orientation:s,active:c,completed:d,disabled:p},f=(e=>{const{classes:t,orientation:o,alternativeLabel:n,active:r,completed:i,disabled:a}=e;return am({root:["root",o,n&&"alternativeLabel",r&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Ed(o)}`]},JP,t)})(u);return e.jsx(QP,{className:Ju(f.root,r),ref:o,ownerState:u,...i,children:e.jsx(eN,{className:f.line,ownerState:u})})});function oN(e){return tf("MuiStepContent",e)}"production"!==process.env.NODE_ENV&&(tN.propTypes={classes:Kc.object,className:Kc.string,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiStepContent",["root","last","transition"]);const nN=Eh("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.last&&t.last]}})(Rh(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),rN=Eh(_g,{name:"MuiStepContent",slot:"Transition"})({}),iN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepContent"}),{children:r,className:i,TransitionComponent:a=_g,transitionDuration:s="auto",TransitionProps:c,slots:p={},slotProps:d={},...u}=n,{orientation:f}=l.useContext(EP),{active:m,last:h,expanded:g}=l.useContext(PP),y={...n,last:h},b=(e=>{const{classes:t,last:o}=e;return am({root:["root",o&&"last"],transition:["transition"]},oN,t)})(y);process.env.NODE_ENV;let v=s;"auto"!==s||a.muiSupportAuto||(v=void 0);const x={slots:p,slotProps:{transition:c,...d}},[w,S]=Dg("transition",{elementType:rN,externalForwardedProps:x,ownerState:y,className:b.transition,additionalProps:{in:m||g,timeout:v,unmountOnExit:!0}});return e.jsx(nN,{className:Ju(b.root,i),ref:o,ownerState:y,...u,children:e.jsx(w,{as:a,...S,children:r})})});function aN(e){return tf("MuiStepper",e)}"production"!==process.env.NODE_ENV&&(iN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,slotProps:Kc.shape({transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TransitionComponent:Kc.elementType,transitionDuration:Kc.oneOfType([Kc.oneOf(["auto"]),Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),TransitionProps:Kc.object}),of("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const sN=Eh("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),lN=e.jsx(tN,{}),cN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:i=!1,children:a,className:s,component:c="div",connector:p=lN,nonLinear:d=!1,orientation:u="horizontal",...f}=n,m={...n,nonLinear:d,alternativeLabel:i,orientation:u,component:c},h=(e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:r}=e;return am({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},aN,r)})(m),g=l.Children.toArray(a).filter(Boolean),y=g.map((e,t)=>l.cloneElement(e,{index:t,last:t+1===g.length,...e.props})),b=l.useMemo(()=>({activeStep:r,alternativeLabel:i,connector:p,nonLinear:d,orientation:u}),[r,i,p,d,u]);return e.jsx(EP.Provider,{value:b,children:e.jsx(sN,{as:c,ownerState:m,className:Ju(h.root,s),ref:o,...f,children:y})})});"production"!==process.env.NODE_ENV&&(cN.propTypes={activeStep:Gg,alternativeLabel:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,connector:Kc.element,nonLinear:Kc.bool,orientation:Kc.oneOf(["horizontal","vertical"]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const pN=Eh("div",{name:"MuiSwipeArea",shouldForwardProp:kh})(Rh(({theme:e})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),dN=l.forwardRef(function(t,o){const{anchor:n,classes:r={},className:i,width:a,style:s,...l}=t,c=t;return e.jsx(pN,{className:Ju("PrivateSwipeArea-root",r.root,r[`anchor${Ed(n)}`],i),ref:o,style:{[XT(n)?"width":"height"]:a,...s},ownerState:c,...l})});"production"!==process.env.NODE_ENV&&(dN.propTypes={anchor:Kc.oneOf(["left","top","right","bottom"]).isRequired,classes:Kc.object,className:Kc.string,style:Kc.object,width:Kc.number.isRequired});let uN=null;function fN(e,t,o){return"right"===e?o.body.offsetWidth-t[0].pageX:t[0].pageX}function mN(e,t,o){return"bottom"===e?o.innerHeight-t[0].clientY:t[0].clientY}function hN(e,t){return e?t.clientWidth:t.clientHeight}function gN(e,t,o,n){return Math.min(Math.max(o?t-e:n+t-e,0),n)}const yN="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),bN=l.forwardRef(function(t,o){const n=Mh({name:"MuiSwipeableDrawer",props:t}),r=jh(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",disableBackdropTransition:s=!1,disableDiscovery:p=!1,disableSwipeToOpen:d=yN,hideBackdrop:u,hysteresis:f=.52,allowSwipeInChildren:m=!1,minFlingVelocity:h=450,ModalProps:{BackdropProps:g,...y}={},onClose:b,onOpen:v,open:x=!1,PaperProps:w={},SwipeAreaProps:S,swipeAreaWidth:T=20,transitionDuration:O=i,variant:j="temporary",slots:C={},slotProps:k={},...E}=n,[P,N]=l.useState(!1),R=l.useRef({isSwiping:null}),M=l.useRef(),$=l.useRef(),I=l.useRef(),A=qh(w.ref,I),B=l.useRef(!1),L=l.useRef();xf(()=>{L.current=null},[x]);const D=l.useCallback((e,t={})=>{const{mode:o=null,changeTransition:n=!0}=t,i=YT(r,a),l=["right","bottom"].includes(i)?1:-1,c=XT(a),p=c?`translate(${l*e}px, 0)`:`translate(0, ${l*e}px)`,d=I.current.style;d.webkitTransform=p,d.transform=p;let f="";if(o&&(f=r.transitions.create("all",Rg({easing:void 0,style:void 0,timeout:O},{mode:o}))),n&&(d.webkitTransition=f,d.transition=f),!s&&!u){const t=$.current.style;t.opacity=1-e/hN(c,I.current),n&&(t.webkitTransition=f,t.transition=f)}},[a,s,u,r,O]),z=Hh(e=>{if(!B.current)return;if(uN=null,B.current=!1,c.flushSync(()=>{N(!1)}),!R.current.isSwiping)return void(R.current.isSwiping=null);R.current.isSwiping=null;const t=YT(r,a),o=XT(a);let n;n=o?fN(t,e.changedTouches,Dh(e.currentTarget)):mN(t,e.changedTouches,zh(e.currentTarget));const i=o?R.current.startX:R.current.startY,s=hN(o,I.current),l=gN(n,i,x,s),p=l/s;Math.abs(R.current.velocity)>h&&(L.current=1e3*Math.abs((s-l)/R.current.velocity)),x?R.current.velocity>h||p>f?b():D(0,{mode:"exit"}):R.current.velocity<-h||1-p>f?v():D(hN(o,I.current),{mode:"enter"})}),V=(e=!1)=>{if(!P){!e&&p&&m||c.flushSync(()=>{N(!0)});const t=XT(a);!x&&I.current&&D(hN(t,I.current)+(p?15:-20),{changeTransition:!1}),R.current.velocity=0,R.current.lastTime=null,R.current.lastTranslate=null,R.current.paperHit=!1,B.current=!0}},F=Hh(e=>{if(!I.current||!B.current)return;if(null!==uN&&uN!==R.current)return;V(!0);const t=YT(r,a),o=XT(a),n=fN(t,e.touches,Dh(e.currentTarget)),i=mN(t,e.touches,zh(e.currentTarget));if(x&&I.current.contains(e.target)&&null===uN){const t=function(e,t){const o=[];for(;e&&e!==t.parentElement;){const n=zh(t).getComputedStyle(e);"absolute"===n.getPropertyValue("position")||"hidden"===n.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&o.push(e),e=e.parentElement}return o}(e.target,I.current),r=function({domTreeShapes:e,start:t,current:o,anchor:n}){const r={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},a={x:"clientWidth",y:"clientHeight"};return e.some(e=>{let s=o>=t;"top"!==n&&"left"!==n||(s=!s);const l="left"===n||"right"===n?"x":"y",c=Math.round(e[r[l]]),p=c>0,d=c+e[a[l]]<e[i[l]];return!!(s&&d||!s&&p)})}({domTreeShapes:t,start:o?R.current.startX:R.current.startY,current:o?n:i,anchor:a});if(r)return void(uN=!0);uN=R.current}if(null==R.current.isSwiping){const t=Math.abs(n-R.current.startX),r=Math.abs(i-R.current.startY),a=o?t>r&&t>3:r>t&&r>3;if(a&&e.cancelable&&e.preventDefault(),!0===a||(o?r>3:t>3)){if(R.current.isSwiping=a,!a)return void z(e);R.current.startX=n,R.current.startY=i,p||x||(o?R.current.startX-=20:R.current.startY-=20)}}if(!R.current.isSwiping)return;const s=hN(o,I.current);let l=o?R.current.startX:R.current.startY;x&&!R.current.paperHit&&(l=Math.min(l,s));const c=gN(o?n:i,l,x,s);if(x)if(R.current.paperHit)0===c&&(R.current.startX=n,R.current.startY=i);else{if(!(o?n<s:i<s))return;R.current.paperHit=!0,R.current.startX=n,R.current.startY=i}null===R.current.lastTranslate&&(R.current.lastTranslate=c,R.current.lastTime=performance.now()+1);const d=(c-R.current.lastTranslate)/(performance.now()-R.current.lastTime)*1e3;R.current.velocity=.4*R.current.velocity+.6*d,R.current.lastTranslate=c,R.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),D(c)}),W=Hh(e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(x&&(u||!$.current.contains(e.target))&&!I.current.contains(e.target))return;const t=YT(r,a),o=XT(a),n=fN(t,e.touches,Dh(e.currentTarget)),i=mN(t,e.touches,zh(e.currentTarget));if(!x){if(d||!(e.target===M.current||I.current?.contains(e.target)&&("function"==typeof m?m(e,M.current,I.current):m)))return;if(o){if(n>T)return}else if(i>T)return}e.defaultMuiPrevented=!0,uN=null,R.current.startX=n,R.current.startY=i,V()});l.useEffect(()=>{if("temporary"===j){const e=Dh(I.current);return e.addEventListener("touchstart",W),e.addEventListener("touchmove",F,{passive:!x}),e.addEventListener("touchend",z),()=>{e.removeEventListener("touchstart",W),e.removeEventListener("touchmove",F,{passive:!x}),e.removeEventListener("touchend",z)}}},[j,x,W,F,z]),l.useEffect(()=>()=>{uN===R.current&&(uN=null)},[]),l.useEffect(()=>{x||N(!1)},[x]);const[_,H]=Dg("swipeArea",{ref:M,elementType:dN,ownerState:n,externalForwardedProps:{slots:C,slotProps:{swipeArea:S,...k}},additionalProps:{width:T,anchor:a}});return e.jsxs(l.Fragment,{children:[e.jsx(ZT,{open:!("temporary"!==j||!P)||x,variant:j,ModalProps:{BackdropProps:{...g,ref:$},..."temporary"===j&&{keepMounted:!0},...y},hideBackdrop:u,anchor:a,transitionDuration:L.current||O,onClose:b,ref:o,slots:C,slotProps:{...k,backdrop:Uh(k.backdrop??g,{ref:$}),paper:Uh(k.paper??w,{style:{pointerEvents:"temporary"!==j||x||m?"":"none"},ref:A})},...E}),!d&&"temporary"===j&&e.jsx(qC,{children:e.jsx(_,{...H})})]})});function vN(e){return tf("MuiSwitch",e)}"production"!==process.env.NODE_ENV&&(bN.propTypes={allowSwipeInChildren:Kc.oneOfType([Kc.func,Kc.bool]),anchor:Kc.oneOf(["bottom","left","right","top"]),children:Kc.node,disableBackdropTransition:Kc.bool,disableDiscovery:Kc.bool,disableSwipeToOpen:Kc.bool,hideBackdrop:Kc.bool,hysteresis:Kc.number,minFlingVelocity:Kc.number,ModalProps:Kc.shape({BackdropProps:Kc.shape({component:Pg})}),onClose:Kc.func.isRequired,onOpen:Kc.func.isRequired,open:Kc.bool,PaperProps:Kc.shape({component:Pg,style:Kc.object}),slotProps:Kc.shape({backdrop:Kc.oneOfType([Kc.func,Kc.object]),docked:Kc.oneOfType([Kc.func,Kc.object]),paper:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),swipeArea:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({backdrop:Kc.elementType,docked:Kc.elementType,paper:Kc.elementType,root:Kc.elementType,swipeArea:Kc.elementType,transition:Kc.elementType}),SwipeAreaProps:Kc.object,swipeAreaWidth:Kc.number,transitionDuration:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),variant:Kc.oneOf(["permanent","persistent","temporary"])});const xN=of("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),wN=Eh("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${Ed(o.edge)}`],t[`size${Ed(o.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xN.thumb}`]:{width:16,height:16},[`& .${xN.switchBase}`]:{padding:4,[`&.${xN.checked}`]:{transform:"translateX(16px)"}}}}]}),SN=Eh(BS,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${xN.input}`]:t.input},"default"!==o.color&&t[`color${Ed(o.color)}`]]}})(Rh(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xN.checked}`]:{transform:"translateX(20px)"},[`&.${xN.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xN.checked} + .${xN.track}`]:{opacity:.5},[`&.${xN.disabled} + .${xN.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${xN.input}`]:{left:"-100%",width:"300%"}})),Rh(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(My(["light"])).map(([t])=>({props:{color:t},style:{[`&.${xN.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xN.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${xN.checked} + .${xN.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),TN=Eh("span",{name:"MuiSwitch",slot:"Track"})(Rh(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),ON=Eh("span",{name:"MuiSwitch",slot:"Thumb"})(Rh(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),jN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSwitch"}),{className:r,color:i="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:p={},...d}=n,u={...n,color:i,edge:a,size:s},f=(e=>{const{classes:t,edge:o,size:n,color:r,checked:i,disabled:a}=e,s=am({root:["root",o&&`edge${Ed(o)}`,`size${Ed(n)}`],switchBase:["switchBase",`color${Ed(r)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},vN,t);return{...t,...s}})(u),m={slots:c,slotProps:p},[h,g]=Dg("root",{className:Ju(f.root,r),elementType:wN,externalForwardedProps:m,ownerState:u,additionalProps:{sx:l}}),[y,b]=Dg("thumb",{className:f.thumb,elementType:ON,externalForwardedProps:m,ownerState:u}),v=e.jsx(y,{...b}),[x,w]=Dg("track",{className:f.track,elementType:TN,externalForwardedProps:m,ownerState:u});return e.jsxs(h,{...g,children:[e.jsx(SN,{type:"checkbox",icon:v,checkedIcon:v,ref:o,ownerState:u,...d,classes:{...f,root:f.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...p.switchBase&&{root:"function"==typeof p.switchBase?p.switchBase(u):p.switchBase},input:{role:"switch"},...p.input&&{input:"function"==typeof p.input?p.input(u):p.input}}}),e.jsx(x,{...w})]})});function CN(e){return tf("MuiTab",e)}"production"!==process.env.NODE_ENV&&(jN.propTypes={checked:Kc.bool,checkedIcon:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["default","primary","secondary","error","info","success","warning"]),Kc.string]),defaultChecked:Kc.bool,disabled:Kc.bool,disableRipple:Kc.bool,edge:Kc.oneOf(["end","start",!1]),icon:Kc.node,id:Kc.string,inputProps:Kc.object,inputRef:py,onChange:Kc.func,required:Kc.bool,size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),slotProps:Kc.shape({input:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),switchBase:Kc.oneOfType([Kc.func,Kc.object]),thumb:Kc.oneOfType([Kc.func,Kc.object]),track:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({input:Kc.elementType,root:Kc.elementType,switchBase:Kc.elementType,thumb:Kc.elementType,track:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any});const kN=of("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),EN=Eh(Oy,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${Ed(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${kN.iconWrapper}`]:t.iconWrapper},{[`& .${kN.icon}`]:t.icon}]}})(Rh(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${kN.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${kN.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${kN.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${kN.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${kN.selected}`]:{opacity:1},[`&.${kN.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${kN.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${kN.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${kN.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${kN.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),PN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTab"}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:c,iconPosition:p="top",indicator:d,label:u,onChange:f,onClick:m,onFocus:h,selected:g,selectionFollowsFocus:y,textColor:b="inherit",value:v,wrapped:x=!1,...w}=n,S={...n,disabled:i,disableFocusRipple:a,selected:g,icon:!!c,iconPosition:p,label:!!u,fullWidth:s,textColor:b,wrapped:x},T=(e=>{const{classes:t,textColor:o,fullWidth:n,wrapped:r,icon:i,label:a,selected:s,disabled:l}=e;return am({root:["root",i&&a&&"labelIcon",`textColor${Ed(o)}`,n&&"fullWidth",r&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},CN,t)})(S),O=c&&u&&l.isValidElement(c)?l.cloneElement(c,{className:Ju(T.icon,c.props.className)}):c;return e.jsxs(EN,{focusRipple:!a,className:Ju(T.root,r),ref:o,role:"tab","aria-selected":g,disabled:i,onClick:e=>{!g&&f&&f(e,v),m&&m(e)},onFocus:e=>{y&&!g&&f&&f(e,v),h&&h(e)},ownerState:S,tabIndex:g?0:-1,...w,children:["top"===p||"start"===p?e.jsxs(l.Fragment,{children:[O,u]}):e.jsxs(l.Fragment,{children:[u,O]}),d]})});"production"!==process.env.NODE_ENV&&(PN.propTypes={children:Wh,classes:Kc.object,className:Kc.string,disabled:Kc.bool,disableFocusRipple:Kc.bool,disableRipple:Kc.bool,icon:Kc.oneOfType([Kc.element,Kc.string]),iconPosition:Kc.oneOf(["bottom","end","start","top"]),label:Kc.node,onChange:Kc.func,onClick:Kc.func,onFocus:Kc.func,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any,wrapped:Kc.bool});const NN=l.createContext();function RN(e){return tf("MuiTable",e)}"production"!==process.env.NODE_ENV&&(NN.displayName="TableContext"),of("MuiTable",["root","stickyHeader"]);const MN=Eh("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})(Rh(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),$N="table",IN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTable"}),{className:r,component:i=$N,padding:a="normal",size:s="medium",stickyHeader:c=!1,...p}=n,d={...n,component:i,padding:a,size:s,stickyHeader:c},u=(e=>{const{classes:t,stickyHeader:o}=e;return am({root:["root",o&&"stickyHeader"]},RN,t)})(d),f=l.useMemo(()=>({padding:a,size:s,stickyHeader:c}),[a,s,c]);return e.jsx(NN.Provider,{value:f,children:e.jsx(MN,{as:i,role:i===$N?null:"table",ref:o,className:Ju(u.root,r),ownerState:d,...p})})});"production"!==process.env.NODE_ENV&&(IN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,padding:Kc.oneOf(["checkbox","none","normal"]),size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),stickyHeader:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const AN=l.createContext();function BN(e){return tf("MuiTableBody",e)}"production"!==process.env.NODE_ENV&&(AN.displayName="Tablelvl2Context"),of("MuiTableBody",["root"]);const LN=Eh("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),DN={variant:"body"},zN="tbody",VN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableBody"}),{className:r,component:i=zN,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},BN,t)})(s);return e.jsx(AN.Provider,{value:DN,children:e.jsx(LN,{className:Ju(l.root,r),as:i,ref:o,role:i===zN?null:"rowgroup",ownerState:s,...a})})});function FN(e){return tf("MuiTableCell",e)}"production"!==process.env.NODE_ENV&&(VN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const WN=of("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_N=Eh("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${Ed(o.size)}`],"normal"!==o.padding&&t[`padding${Ed(o.padding)}`],"inherit"!==o.align&&t[`align${Ed(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(Rh(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${WN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),HN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:s,scope:c,size:p,sortDirection:d,variant:u,...f}=n,m=l.useContext(NN),h=l.useContext(AN),g=h&&"head"===h.variant;let y;y=a||(g?"th":"td");let b=c;"td"===y?b=void 0:!b&&g&&(b="col");const v=u||h&&h.variant,x={...n,align:r,component:y,padding:s||(m&&m.padding?m.padding:"normal"),size:p||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:"head"===v&&m&&m.stickyHeader,variant:v},w=(e=>{const{classes:t,variant:o,align:n,padding:r,size:i,stickyHeader:a}=e;return am({root:["root",o,a&&"stickyHeader","inherit"!==n&&`align${Ed(n)}`,"normal"!==r&&`padding${Ed(r)}`,`size${Ed(i)}`]},FN,t)})(x);let S=null;return d&&(S="asc"===d?"ascending":"descending"),e.jsx(_N,{as:y,ref:o,className:Ju(w.root,i),"aria-sort":S,scope:b,ownerState:x,...f})});function qN(e){return tf("MuiTableContainer",e)}"production"!==process.env.NODE_ENV&&(HN.propTypes={align:Kc.oneOf(["center","inherit","justify","left","right"]),children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,padding:Kc.oneOf(["checkbox","none","normal"]),scope:Kc.string,size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),sortDirection:Kc.oneOf(["asc","desc",!1]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),variant:Kc.oneOfType([Kc.oneOf(["body","footer","head"]),Kc.string])}),of("MuiTableContainer",["root"]);const UN=Eh("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),GN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableContainer"}),{className:r,component:i="div",...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},qN,t)})(s);return e.jsx(UN,{ref:o,as:i,className:Ju(l.root,r),ownerState:s,...a})});function KN(e){return tf("MuiTableFooter",e)}"production"!==process.env.NODE_ENV&&(GN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiTableFooter",["root"]);const XN=Eh("tfoot",{name:"MuiTableFooter",slot:"Root"})({display:"table-footer-group"}),YN={variant:"footer"},ZN="tfoot",JN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableFooter"}),{className:r,component:i=ZN,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},KN,t)})(s);return e.jsx(AN.Provider,{value:YN,children:e.jsx(XN,{as:i,className:Ju(l.root,r),ref:o,role:i===ZN?null:"rowgroup",ownerState:s,...a})})});function QN(e){return tf("MuiTableHead",e)}"production"!==process.env.NODE_ENV&&(JN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiTableHead",["root"]);const eR=Eh("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),tR={variant:"head"},oR="thead",nR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableHead"}),{className:r,component:i=oR,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},QN,t)})(s);return e.jsx(AN.Provider,{value:tR,children:e.jsx(eR,{as:i,className:Ju(l.root,r),ref:o,role:i===oR?null:"rowgroup",ownerState:s,...a})})});function rR(e){return tf("MuiToolbar",e)}"production"!==process.env.NODE_ENV&&(nR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiToolbar",["root","gutters","regular","dense"]);const iR=Eh("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})(Rh(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.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}]}))),aR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=n,c={...n,component:i,disableGutters:a,variant:s},p=(e=>{const{classes:t,disableGutters:o,variant:n}=e;return am({root:["root",!o&&"gutters",n]},rR,t)})(c);return e.jsx(iR,{as:i,className:Ju(p.root,r),ref:o,ownerState:c,...l})});"production"!==process.env.NODE_ENV&&(aR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,disableGutters:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),variant:Kc.oneOfType([Kc.oneOf(["dense","regular"]),Kc.string])});var sR=Bh(e.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),lR=Bh(e.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function cR(e){return tf("MuiTablePaginationActions",e)}of("MuiTablePaginationActions",["root"]);const pR=Eh("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),dR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:r,className:i,count:a,disabled:s=!1,getItemAriaLabel:l,nextIconButtonProps:c,onPageChange:p,page:d,rowsPerPage:u,showFirstButton:f,showLastButton:m,slots:h={},slotProps:g={},...y}=n,b=qf(),v=(e=>{const{classes:t}=e;return am({root:["root"]},cR,t)})(n),x=h.firstButton??Yy,w=h.lastButton??Yy,S=h.nextButton??Yy,T=h.previousButton??Yy,O=h.firstButtonIcon??nk,j=h.lastButtonIcon??rk,C=h.nextButtonIcon??lR,k=h.previousButtonIcon??sR,E=b?w:x,P=b?S:T,N=b?T:S,R=b?x:w,M=b?g.lastButton:g.firstButton,$=b?g.nextButton:g.previousButton,I=b?g.previousButton:g.nextButton,A=b?g.firstButton:g.lastButton;return e.jsxs(pR,{ref:o,className:Ju(v.root,i),...y,children:[f&&e.jsx(E,{onClick:e=>{p(e,0)},disabled:s||0===d,"aria-label":l("first",d),title:l("first",d),...M,children:b?e.jsx(j,{...g.lastButtonIcon}):e.jsx(O,{...g.firstButtonIcon})}),e.jsx(P,{onClick:e=>{p(e,d-1)},disabled:s||0===d,color:"inherit","aria-label":l("previous",d),title:l("previous",d),...$??r,children:b?e.jsx(C,{...g.nextButtonIcon}):e.jsx(k,{...g.previousButtonIcon})}),e.jsx(N,{onClick:e=>{p(e,d+1)},disabled:s||-1!==a&&d>=Math.ceil(a/u)-1,color:"inherit","aria-label":l("next",d),title:l("next",d),...I??c,children:b?e.jsx(k,{...g.previousButtonIcon}):e.jsx(C,{...g.nextButtonIcon})}),m&&e.jsx(R,{onClick:e=>{p(e,Math.max(0,Math.ceil(a/u)-1))},disabled:s||d>=Math.ceil(a/u)-1,"aria-label":l("last",d),title:l("last",d),...A,children:b?e.jsx(O,{...g.firstButtonIcon}):e.jsx(j,{...g.lastButtonIcon})})]})});function uR(e){return tf("MuiTablePagination",e)}"production"!==process.env.NODE_ENV&&(dR.propTypes={backIconButtonProps:Kc.object,children:Kc.node,classes:Kc.object,className:Kc.string,count:Kc.number.isRequired,disabled:Kc.bool,getItemAriaLabel:Kc.func.isRequired,nextIconButtonProps:Kc.object,onPageChange:Kc.func.isRequired,page:Kc.number.isRequired,rowsPerPage:Kc.number.isRequired,showFirstButton:Kc.bool.isRequired,showLastButton:Kc.bool.isRequired,slotProps:Kc.shape({firstButton:Kc.object,firstButtonIcon:Kc.object,lastButton:Kc.object,lastButtonIcon:Kc.object,nextButton:Kc.object,nextButtonIcon:Kc.object,previousButton:Kc.object,previousButtonIcon:Kc.object}),slots:Kc.shape({firstButton:Kc.elementType,firstButtonIcon:Kc.elementType,lastButton:Kc.elementType,lastButtonIcon:Kc.elementType,nextButton:Kc.elementType,nextButtonIcon:Kc.elementType,previousButton:Kc.elementType,previousButtonIcon:Kc.elementType})});const fR=of("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var mR;const hR=Eh(HN,{name:"MuiTablePagination",slot:"Root"})(Rh(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),gR=Eh(aR,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${fR.actions}`]:t.actions,...t.toolbar})})(Rh(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${fR.actions}`]:{flexShrink:0,marginLeft:20}}))),yR=Eh("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),bR=Eh("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Rh(({theme:e})=>({...e.typography.body2,flexShrink:0}))),vR=Eh(cE,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${fR.selectIcon}`]:t.selectIcon,[`& .${fR.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${fR.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),xR=Eh(PC,{name:"MuiTablePagination",slot:"MenuItem"})({}),wR=Eh("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Rh(({theme:e})=>({...e.typography.body2,flexShrink:0})));function SR({from:e,to:t,count:o}){return`${e}–${t} of ${-1!==o?o:`more than ${t}`}`}function TR(e){return`Go to ${e} page`}const OR=l.forwardRef(function(t,n){const r=Mh({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=dR,backIconButtonProps:a,colSpan:s,component:l=HN,count:c,disabled:p=!1,getItemAriaLabel:d=TR,labelDisplayedRows:u=SR,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:h,onRowsPerPageChange:g,page:y,rowsPerPage:b,rowsPerPageOptions:v=[10,25,50,100],SelectProps:x={},showFirstButton:w=!1,showLastButton:S=!1,slotProps:T={},slots:O={},...j}=r,C=r,k=(e=>{const{classes:t}=e;return am({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},uR,t)})(C),E=T?.select??x,P=E.native?"option":xR;let N;l!==HN&&"td"!==l||(N=s||1e3);const R=Yf(E.id),M=Yf(E.labelId),$={slots:O,slotProps:T},[I,A]=Dg("root",{ref:n,className:k.root,elementType:hR,externalForwardedProps:{...$,component:l,...j},ownerState:C,additionalProps:{colSpan:N}}),[B,L]=Dg("toolbar",{className:k.toolbar,elementType:gR,externalForwardedProps:$,ownerState:C}),[D,z]=Dg("spacer",{className:k.spacer,elementType:yR,externalForwardedProps:$,ownerState:C}),[V,F]=Dg("selectLabel",{className:k.selectLabel,elementType:bR,externalForwardedProps:$,ownerState:C,additionalProps:{id:M}}),[W,_]=Dg("select",{className:k.select,elementType:vR,externalForwardedProps:$,ownerState:C}),[H,q]=Dg("menuItem",{className:k.menuItem,elementType:P,externalForwardedProps:$,ownerState:C}),[U,G]=Dg("displayedRows",{className:k.displayedRows,elementType:wR,externalForwardedProps:$,ownerState:C});return e.jsx(I,{...A,children:e.jsxs(B,{...L,children:[e.jsx(D,{...z}),v.length>1&&e.jsx(V,{...F,children:f}),v.length>1&&e.jsx(W,{variant:"standard",...!E.variant&&{input:mR||(mR=e.jsx(Ex,{}))},value:b,onChange:g,id:R,labelId:M,...E,classes:{...E.classes,root:Ju(k.input,k.selectRoot,(E.classes||{}).root),select:Ju(k.select,(E.classes||{}).select),icon:Ju(k.selectIcon,(E.classes||{}).icon)},disabled:p,..._,children:v.map(e=>o.createElement(H,{...q,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),e.jsx(U,{...G,children:u({from:0===c?0:y*b+1,to:-1===c?(y+1)*b:-1===b?c:Math.min(c,(y+1)*b),count:-1===c?-1:c,page:y})}),e.jsx(i,{className:k.actions,backIconButtonProps:a,count:c,nextIconButtonProps:m,onPageChange:h,page:y,rowsPerPage:b,showFirstButton:w,showLastButton:S,slotProps:T.actions,slots:O.actions,getItemAriaLabel:d,disabled:p})]})})});function jR(e){return tf("MuiTableRow",e)}"production"!==process.env.NODE_ENV&&(OR.propTypes={ActionsComponent:Kc.elementType,backIconButtonProps:Kc.object,classes:Kc.object,colSpan:Kc.number,component:Kc.elementType,count:Gg.isRequired,disabled:Kc.bool,getItemAriaLabel:Kc.func,labelDisplayedRows:Kc.func,labelRowsPerPage:Kc.node,nextIconButtonProps:Kc.object,onPageChange:Kc.func.isRequired,onRowsPerPageChange:Kc.func,page:Gh(Gg.isRequired,e=>{const{count:t,page:o,rowsPerPage:n}=e;if(-1===t)return null;const r=Math.max(0,Math.ceil(t/n)-1);return o<0||o>r?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${r}, but page is ${o}).`):null}),rowsPerPage:Gg.isRequired,rowsPerPageOptions:Kc.arrayOf(Kc.oneOfType([Kc.number,Kc.shape({label:Kc.string.isRequired,value:Kc.number.isRequired})]).isRequired),SelectProps:Kc.object,showFirstButton:Kc.bool,showLastButton:Kc.bool,slotProps:Kc.shape({actions:Kc.shape({firstButton:Kc.object,firstButtonIcon:Kc.object,lastButton:Kc.object,lastButtonIcon:Kc.object,nextButton:Kc.object,nextButtonIcon:Kc.object,previousButton:Kc.object,previousButtonIcon:Kc.object}),displayedRows:Kc.oneOfType([Kc.func,Kc.object]),menuItem:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),select:Kc.object,selectLabel:Kc.oneOfType([Kc.func,Kc.object]),spacer:Kc.oneOfType([Kc.func,Kc.object]),toolbar:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({actions:Kc.shape({firstButton:Kc.elementType,firstButtonIcon:Kc.elementType,lastButton:Kc.elementType,lastButtonIcon:Kc.elementType,nextButton:Kc.elementType,nextButtonIcon:Kc.elementType,previousButton:Kc.elementType,previousButtonIcon:Kc.elementType}),displayedRows:Kc.elementType,menuItem:Kc.elementType,root:Kc.elementType,select:Kc.elementType,selectLabel:Kc.elementType,spacer:Kc.elementType,toolbar:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const CR=of("MuiTableRow",["root","selected","hover","head","footer"]),kR=Eh("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})(Rh(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${CR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${CR.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),ER="tr",PR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableRow"}),{className:r,component:i=ER,hover:a=!1,selected:s=!1,...c}=n,p=l.useContext(AN),d={...n,component:i,hover:a,selected:s,head:p&&"head"===p.variant,footer:p&&"footer"===p.variant},u=(e=>{const{classes:t,selected:o,hover:n,head:r,footer:i}=e;return am({root:["root",o&&"selected",n&&"hover",r&&"head",i&&"footer"]},jR,t)})(d);return e.jsx(kR,{as:i,ref:o,className:Ju(u.root,r),role:i===ER?null:"row",ownerState:d,...c})});"production"!==process.env.NODE_ENV&&(PR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,hover:Kc.bool,selected:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});var NR=Bh(e.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function RR(e){return tf("MuiTableSortLabel",e)}const MR=of("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),$R=Eh(Oy,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})(Rh(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${MR.icon}`]:{opacity:.5}},[`&.${MR.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${MR.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),IR=Eh("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${Ed(o.direction)}`]]}})(Rh(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),AR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableSortLabel"}),{active:r=!1,children:i,className:a,direction:s="asc",hideSortIcon:l=!1,IconComponent:c=NR,slots:p={},slotProps:d={},...u}=n,f={...n,active:r,direction:s,hideSortIcon:l,IconComponent:c},m=(e=>{const{classes:t,direction:o,active:n}=e;return am({root:["root",n&&"active",`direction${Ed(o)}`],icon:["icon",`iconDirection${Ed(o)}`]},RR,t)})(f),h={slots:p,slotProps:d},[g,y]=Dg("root",{elementType:$R,externalForwardedProps:h,ownerState:f,className:Ju(m.root,a),ref:o}),[b,v]=Dg("icon",{elementType:IR,externalForwardedProps:h,ownerState:f,className:m.icon});return e.jsxs(g,{disableRipple:!0,component:"span",...y,...u,children:[i,l&&!r?null:e.jsx(b,{as:c,...v})]})});function BR(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}"production"!==process.env.NODE_ENV&&(AR.propTypes={active:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,direction:Kc.oneOf(["asc","desc"]),hideSortIcon:Kc.bool,IconComponent:Kc.elementType,slotProps:Kc.shape({icon:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({icon:Kc.elementType,root:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const LR={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function DR(t){const{onChange:o,...n}=t,r=l.useRef(),i=l.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return xf(()=>{const e=Lh(()=>{const e=r.current;a(),e!==r.current&&o(r.current)}),t=zh(i.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o]),l.useEffect(()=>{a(),o(r.current)},[o]),e.jsx("div",{style:LR,...n,ref:i})}function zR(e){return tf("MuiTabScrollButton",e)}"production"!==process.env.NODE_ENV&&(DR.propTypes={onChange:Kc.func.isRequired});const VR=of("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FR=Eh(Oy,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${VR.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),WR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTabScrollButton"}),{className:r,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...p}=n,d=qf(),u={isRtl:d,...n},f=(e=>{const{classes:t,orientation:o,disabled:n}=e;return am({root:["root",o,n&&"disabled"]},zR,t)})(u),m=i.StartScrollButtonIcon??sR,h=i.EndScrollButtonIcon??lR,g=Hv({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u}),y=Hv({elementType:h,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u});return e.jsx(FR,{component:"div",className:Ju(f.root,r),ref:o,role:null,ownerState:u,tabIndex:null,...p,style:{...p.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:"left"===s?e.jsx(m,{...g}):e.jsx(h,{...y})})});function _R(e){return tf("MuiTabs",e)}"production"!==process.env.NODE_ENV&&(WR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,direction:Kc.oneOf(["left","right"]).isRequired,disabled:Kc.bool,orientation:Kc.oneOf(["horizontal","vertical"]).isRequired,slotProps:Kc.shape({endScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object]),startScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({EndScrollButtonIcon:Kc.elementType,StartScrollButtonIcon:Kc.elementType}),style:Kc.object,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const HR=of("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),qR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,UR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,GR=(e,t,o)=>{let n=!1,r=o(e,t);for(;r;){if(r===e.firstChild){if(n)return;n=!0}const t=r.disabled||"true"===r.getAttribute("aria-disabled");if(r.hasAttribute("tabindex")&&!t)return void r.focus();r=o(e,r)}},KR=Eh("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${HR.scrollButtons}`]:t.scrollButtons},{[`& .${HR.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})(Rh(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${HR.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),XR=Eh("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),YR=Eh("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.list,t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),ZR=Eh("span",{name:"MuiTabs",slot:"Indicator"})(Rh(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),JR=Eh(DR)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),QR={};let eM=!1;const tM=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTabs"}),r=jh(),i=qf(),{"aria-label":a,"aria-labelledby":s,action:c,centered:p=!1,children:d,className:u,component:f="div",allowScrollButtonsMobile:m=!1,indicatorColor:h="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:b,scrollButtons:v="auto",selectionFollowsFocus:x,slots:w={},slotProps:S={},TabIndicatorProps:T={},TabScrollButtonProps:O={},textColor:j="primary",value:C,variant:k="standard",visibleScrollbar:E=!1,...P}=n,N="scrollable"===k,R="vertical"===y,M=R?"scrollTop":"scrollLeft",$=R?"top":"left",I=R?"bottom":"right",A=R?"clientHeight":"clientWidth",B=R?"height":"width",L={...n,component:f,allowScrollButtonsMobile:m,indicatorColor:h,orientation:y,vertical:R,scrollButtons:v,textColor:j,variant:k,visibleScrollbar:E,fixed:!N,hideScrollbar:N&&!E,scrollableX:N&&!R,scrollableY:N&&R,centered:p&&!N,scrollButtonsHideMobile:!m},D=(e=>{const{vertical:t,fixed:o,hideScrollbar:n,scrollableX:r,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return am({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",n&&"hideScrollbar",r&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},_R,l)})(L),z=Hv({elementType:w.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:L}),V=Hv({elementType:w.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:L});process.env.NODE_ENV;const[F,W]=l.useState(!1),[_,H]=l.useState(QR),[q,U]=l.useState(!1),[G,K]=l.useState(!1),[X,Y]=l.useState(!1),[Z,J]=l.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,ee=l.useRef(null),te=l.useRef(null),oe={slots:w,slotProps:{indicator:T,scrollButtons:O,...S}},ne=()=>{const e=ee.current;let t,o;if(e){const o=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:o.top,bottom:o.bottom,left:o.left,right:o.right}}if(e&&!1!==C){const e=te.current.children;if(e.length>0){const n=e[Q.get(C)];process.env.NODE_ENV,o=n?n.getBoundingClientRect():null,"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&!eM&&o&&0===o.width&&0===o.height&&0!==t.clientWidth&&(t=null,eM=!0)}}return{tabsMeta:t,tabMeta:o}},re=Hh(()=>{const{tabsMeta:e,tabMeta:t}=ne();let o,n=0;R?(o="top",t&&e&&(n=t.top-e.top+e.scrollTop)):(o=i?"right":"left",t&&e&&(n=(i?-1:1)*(t[o]-e[o]+e.scrollLeft)));const r={[o]:n,[B]:t?t[B]:0};if("number"!=typeof _[o]||"number"!=typeof _[B])H(r);else{const e=Math.abs(_[o]-r[o]),t=Math.abs(_[B]-r[B]);(e>=1||t>=1)&&H(r)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,o,n={},r=()=>{}){const{ease:i=BR,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const p=n=>{if(c)return void r(new Error("Animation cancelled"));null===s&&(s=n);const d=Math.min(1,(n-s)/a);t[e]=i(d)*(o-l)+l,d>=1?requestAnimationFrame(()=>{r(null)}):requestAnimationFrame(p)};l===o?r(new Error("Element already at target position")):requestAnimationFrame(p)}(M,ee.current,e,{duration:r.transitions.duration.standard}):ee.current[M]=e},ae=e=>{let t=ee.current[M];t+=R?e:e*(i?-1:1),ie(t)},se=()=>{const e=ee.current[A];let t=0;const o=Array.from(te.current.children);for(let n=0;n<o.length;n+=1){const r=o[n];if(t+r[A]>e){0===n&&(t=e);break}t+=r[A]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},[pe,{onChange:de,...ue}]=Dg("scrollbar",{className:Ju(D.scrollableX,D.hideScrollbar),elementType:JR,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:L}),fe=l.useCallback(e=>{de?.(e),J({overflow:null,scrollbarWidth:e})},[de]),[me,he]=Dg("scrollButtons",{className:Ju(D.scrollButtons,O.className),elementType:WR,externalForwardedProps:oe,ownerState:L,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:V}}}),ge=Hh(e=>{const{tabsMeta:t,tabMeta:o}=ne();if(o&&t)if(o[$]<t[$]){const n=t[M]+(o[$]-t[$]);ie(n,{animation:e})}else if(o[I]>t[I]){const n=t[M]+(o[I]-t[I]);ie(n,{animation:e})}}),ye=Hh(()=>{N&&!1!==v&&Y(!X)});l.useEffect(()=>{const e=Lh(()=>{ee.current&&re()});let t;const o=zh(ee.current);let n;return o.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(te.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(n=new MutationObserver(o=>{o.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ye()}),n.observe(te.current,{childList:!0})),()=>{e.clear(),o.removeEventListener("resize",e),n?.disconnect(),t?.disconnect()}},[re,ye]),l.useEffect(()=>{const e=Array.from(te.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&N&&!1!==v){const o=e[0],n=e[t-1],r={root:ee.current,threshold:.99},i=new IntersectionObserver(e=>{U(!e[0].isIntersecting)},r);i.observe(o);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},r);return a.observe(n),()=>{i.disconnect(),a.disconnect()}}},[N,v,X,d?.length]),l.useEffect(()=>{W(!0)},[]),l.useEffect(()=>{re()}),l.useEffect(()=>{ge(QR!==_)},[ge,_]),l.useImperativeHandle(c,()=>({updateIndicator:re,updateScrollButtons:ye}),[re,ye]);const[be,ve]=Dg("indicator",{className:Ju(D.indicator,T.className),elementType:ZR,externalForwardedProps:oe,ownerState:L,additionalProps:{style:_}}),xe=e.jsx(be,{...ve});let we=0;const Se=l.Children.map(d,e=>{if(!l.isValidElement(e))return null;"production"!==process.env.NODE_ENV&&Kp.isFragment(e);const t=void 0===e.props.value?we:e.props.value;Q.set(t,we);const o=t===C;return we+=1,l.cloneElement(e,{fullWidth:"fullWidth"===k,indicator:o&&!F&&xe,selected:o,selectionFollowsFocus:x,onChange:g,textColor:j,value:t,...1!==we||!1!==C||e.props.tabIndex?{}:{tabIndex:0}})}),Te=(()=>{const t={};t.scrollbarSizeListener=N?e.jsx(pe,{...ue,onChange:fe}):null;const o=N&&("auto"===v&&(q||G)||!0===v);return t.scrollButtonStart=o?e.jsx(me,{direction:i?"right":"left",onClick:le,disabled:!q,...he}):null,t.scrollButtonEnd=o?e.jsx(me,{direction:i?"left":"right",onClick:ce,disabled:!G,...he}):null,t})(),[Oe,je]=Dg("root",{ref:o,className:Ju(D.root,u),elementType:KR,externalForwardedProps:{...oe,...P,component:f},ownerState:L}),[Ce,ke]=Dg("scroller",{ref:ee,className:D.scroller,elementType:XR,externalForwardedProps:oe,ownerState:L,additionalProps:{style:{overflow:Z.overflow,[R?"margin"+(i?"Left":"Right"):"marginBottom"]:E?void 0:-Z.scrollbarWidth}}}),[Ee,Pe]=Dg("list",{ref:te,className:Ju(D.list,D.flexContainer),elementType:YR,externalForwardedProps:oe,ownerState:L,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=te.current,o=nT(Dh(t)),n=o?.getAttribute("role");if("tab"!==n)return;let r="horizontal"===y?"ArrowLeft":"ArrowUp",a="horizontal"===y?"ArrowRight":"ArrowDown";switch("horizontal"===y&&i&&(r="ArrowRight",a="ArrowLeft"),e.key){case r:e.preventDefault(),GR(t,o,UR);break;case a:e.preventDefault(),GR(t,o,qR);break;case"Home":e.preventDefault(),GR(t,null,qR);break;case"End":e.preventDefault(),GR(t,null,UR)}})(t),e.onKeyDown?.(t)}})});return e.jsxs(Oe,{...je,children:[Te.scrollButtonStart,Te.scrollbarSizeListener,e.jsxs(Ce,{...ke,children:[e.jsx(Ee,{"aria-label":a,"aria-labelledby":s,"aria-orientation":"vertical"===y?"vertical":null,role:"tablist",...Pe,children:Se}),F&&xe]}),Te.scrollButtonEnd]})});function oM(e){return tf("MuiTextField",e)}"production"!==process.env.NODE_ENV&&(tM.propTypes={action:py,allowScrollButtonsMobile:Kc.bool,"aria-label":Kc.string,"aria-labelledby":Kc.string,centered:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,indicatorColor:Kc.oneOfType([Kc.oneOf(["primary","secondary"]),Kc.string]),onChange:Kc.func,orientation:Kc.oneOf(["horizontal","vertical"]),ScrollButtonComponent:Kc.elementType,scrollButtons:Kc.oneOf(["auto",!1,!0]),selectionFollowsFocus:Kc.bool,slotProps:Kc.shape({endScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object]),indicator:Kc.oneOfType([Kc.func,Kc.object]),list:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),scrollbar:Kc.oneOfType([Kc.func,Kc.object]),scrollButtons:Kc.oneOfType([Kc.func,Kc.object]),scroller:Kc.oneOfType([Kc.func,Kc.object]),startScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({endScrollButtonIcon:Kc.elementType,EndScrollButtonIcon:Kc.elementType,indicator:Kc.elementType,list:Kc.elementType,root:Kc.elementType,scrollbar:Kc.elementType,scrollButtons:Kc.elementType,scroller:Kc.elementType,startScrollButtonIcon:Kc.elementType,StartScrollButtonIcon:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TabIndicatorProps:Kc.object,TabScrollButtonProps:Kc.object,textColor:Kc.oneOf(["inherit","primary","secondary"]),value:Kc.any,variant:Kc.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:Kc.bool}),of("MuiTextField",["root"]);const nM={standard:aj,filled:rO,outlined:QC},rM=Eh(sO,{name:"MuiTextField",slot:"Root"})({}),iM=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:p=!1,error:d=!1,FormHelperTextProps:u,fullWidth:f=!1,helperText:m,id:h,InputLabelProps:g,inputProps:y,InputProps:b,inputRef:v,label:x,maxRows:w,minRows:S,multiline:T=!1,name:O,onBlur:j,onChange:C,onFocus:k,placeholder:E,required:P=!1,rows:N,select:R=!1,SelectProps:M,slots:$={},slotProps:I={},type:A,value:B,variant:L="outlined",...D}=n,z={...n,autoFocus:i,color:l,disabled:p,error:d,fullWidth:f,multiline:T,required:P,select:R,variant:L},V=(e=>{const{classes:t}=e;return am({root:["root"]},oM,t)})(z);process.env.NODE_ENV;const F=Yf(h),W=m&&F?`${F}-helper-text`:void 0,_=x&&F?`${F}-label`:void 0,H=nM[L],q={slots:$,slotProps:{input:b,inputLabel:g,htmlInput:y,formHelperText:u,select:M,...I}},U={},G=q.slotProps.inputLabel;"outlined"===L&&(G&&void 0!==G.shrink&&(U.notched=G.shrink),U.label=x),R&&(M&&M.native||(U.id=void 0),U["aria-describedby"]=void 0);const[K,X]=Dg("root",{elementType:rM,shouldForwardComponentProp:!0,externalForwardedProps:{...q,...D},ownerState:z,className:Ju(V.root,s),ref:o,additionalProps:{disabled:p,error:d,fullWidth:f,required:P,color:l,variant:L}}),[Y,Z]=Dg("input",{elementType:H,externalForwardedProps:q,additionalProps:U,ownerState:z}),[J,Q]=Dg("inputLabel",{elementType:mj,externalForwardedProps:q,ownerState:z}),[ee,te]=Dg("htmlInput",{elementType:"input",externalForwardedProps:q,ownerState:z}),[oe,ne]=Dg("formHelperText",{elementType:xO,externalForwardedProps:q,ownerState:z}),[re,ie]=Dg("select",{elementType:cE,externalForwardedProps:q,ownerState:z}),ae=e.jsx(Y,{"aria-describedby":W,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:f,multiline:T,name:O,rows:N,maxRows:w,minRows:S,type:A,value:B,id:F,inputRef:v,onBlur:j,onChange:C,onFocus:k,placeholder:E,inputProps:te,slots:{input:$.htmlInput?ee:void 0},...Z});return e.jsxs(K,{...X,children:[null!=x&&""!==x&&e.jsx(J,{htmlFor:F,id:_,...Q,children:x}),R?e.jsx(re,{"aria-describedby":W,id:F,labelId:_,value:B,input:ae,...ie,children:a}):ae,m&&e.jsx(oe,{id:W,...ne,children:m})]})});function aM(e){return tf("MuiToggleButton",e)}"production"!==process.env.NODE_ENV&&(iM.propTypes={autoComplete:Kc.string,autoFocus:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["primary","secondary","error","info","success","warning"]),Kc.string]),defaultValue:Kc.any,disabled:Kc.bool,error:Kc.bool,FormHelperTextProps:Kc.object,fullWidth:Kc.bool,helperText:Kc.node,id:Kc.string,InputLabelProps:Kc.object,inputProps:Kc.object,InputProps:Kc.object,inputRef:py,label:Kc.node,margin:Kc.oneOf(["dense","none","normal"]),maxRows:Kc.oneOfType([Kc.number,Kc.string]),minRows:Kc.oneOfType([Kc.number,Kc.string]),multiline:Kc.bool,name:Kc.string,onBlur:Kc.func,onChange:Kc.func,onFocus:Kc.func,placeholder:Kc.string,required:Kc.bool,rows:Kc.oneOfType([Kc.number,Kc.string]),select:Kc.bool,SelectProps:Kc.object,size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),slotProps:Kc.shape({formHelperText:Kc.oneOfType([Kc.func,Kc.object]),htmlInput:Kc.oneOfType([Kc.func,Kc.object]),input:Kc.oneOfType([Kc.func,Kc.object]),inputLabel:Kc.oneOfType([Kc.func,Kc.object]),select:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({formHelperText:Kc.elementType,htmlInput:Kc.elementType,input:Kc.elementType,inputLabel:Kc.elementType,root:Kc.elementType,select:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),type:Kc.string,value:Kc.any,variant:Kc.oneOf(["filled","outlined","standard"])});const sM=of("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),lM=l.createContext({});"production"!==process.env.NODE_ENV&&(lM.displayName="ToggleButtonGroupContext");const cM=l.createContext(void 0);function pM(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}"production"!==process.env.NODE_ENV&&(cM.displayName="ToggleButtonGroupButtonContext");const dM=Eh(Oy,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${Ed(o.size)}`]]}})(Rh(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${sM.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${sM.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(My()).map(([t])=>({props:{color:t},style:{[`&.${sM.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),uM=l.forwardRef(function(t,o){const{value:n,...r}=l.useContext(lM),i=l.useContext(cM),a=Mh({props:bf({...r,selected:pM(t.value,n)},t),name:"MuiToggleButton"}),{children:s,className:c,color:p="standard",disabled:d=!1,disableFocusRipple:u=!1,fullWidth:f=!1,onChange:m,onClick:h,selected:g,size:y="medium",value:b,...v}=a,x={...a,color:p,disabled:d,disableFocusRipple:u,fullWidth:f,size:y},w=(e=>{const{classes:t,fullWidth:o,selected:n,disabled:r,size:i,color:a}=e;return am({root:["root",n&&"selected",r&&"disabled",o&&"fullWidth",`size${Ed(i)}`,a]},aM,t)})(x),S=i||"";return e.jsx(dM,{className:Ju(r.className,w.root,c,S),disabled:d,focusRipple:!u,ref:o,onClick:e=>{h&&(h(e,b),e.defaultPrevented)||m&&m(e,b)},onChange:m,value:b,ownerState:x,"aria-pressed":g,...v,children:s})});function fM(e){return tf("MuiToggleButtonGroup",e)}"production"!==process.env.NODE_ENV&&(uM.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["standard","primary","secondary","error","info","success","warning"]),Kc.string]),disabled:Kc.bool,disableFocusRipple:Kc.bool,disableRipple:Kc.bool,fullWidth:Kc.bool,onChange:Kc.func,onClick:Kc.func,selected:Kc.bool,size:Kc.oneOfType([Kc.oneOf(["small","medium","large"]),Kc.string]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any.isRequired});const mM=of("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),hM=Eh("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${mM.grouped}`]:t.grouped},{[`& .${mM.grouped}`]:t[`grouped${Ed(o.orientation)}`]},{[`& .${mM.firstButton}`]:t.firstButton},{[`& .${mM.lastButton}`]:t.lastButton},{[`& .${mM.middleButton}`]:t.middleButton},t.root,"vertical"===o.orientation&&t.vertical,o.fullWidth&&t.fullWidth]}})(Rh(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${mM.grouped}`]:{[`&.${mM.selected} + .${mM.grouped}.${mM.selected}`]:{borderTop:0,marginTop:0}},[`& .${mM.firstButton},& .${mM.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${mM.lastButton},& .${mM.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${mM.lastButton}.${sM.disabled},& .${mM.middleButton}.${sM.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${mM.grouped}`]:{[`&.${mM.selected} + .${mM.grouped}.${mM.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${mM.firstButton},& .${mM.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${mM.lastButton},& .${mM.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${mM.lastButton}.${sM.disabled},& .${mM.middleButton}.${sM.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),gM=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiToggleButtonGroup"}),{children:r,className:i,color:a="standard",disabled:s=!1,exclusive:c=!1,fullWidth:p=!1,onChange:d,orientation:u="horizontal",size:f="medium",value:m,...h}=n,g={...n,disabled:s,fullWidth:p,orientation:u,size:f},y=(e=>{const{classes:t,orientation:o,fullWidth:n,disabled:r}=e;return am({root:["root",o,n&&"fullWidth"],grouped:["grouped",`grouped${Ed(o)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},fM,t)})(g),b=l.useCallback((e,t)=>{if(!d)return;const o=m&&m.indexOf(t);let n;m&&o>=0?(n=m.slice(),n.splice(o,1)):n=m?m.concat(t):[t],d(e,n)},[d,m]),v=l.useCallback((e,t)=>{d&&d(e,m===t?null:t)},[d,m]),x=l.useMemo(()=>({className:y.grouped,onChange:c?v:b,value:m,size:f,fullWidth:p,color:a,disabled:s}),[y.grouped,c,v,b,m,f,p,a,s]),w=oS(r),S=w.length,T=e=>{const t=0===e,o=e===S-1;return t&&o?"":t?y.firstButton:o?y.lastButton:y.middleButton};return e.jsx(hM,{role:"group",className:Ju(y.root,i),ref:o,ownerState:g,...h,children:e.jsx(lM.Provider,{value:x,children:w.map((t,o)=>("production"!==process.env.NODE_ENV&&Kp.isFragment(t),e.jsx(cM.Provider,{value:T(o),children:t},o)))})})});"production"!==process.env.NODE_ENV&&(gM.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["standard","primary","secondary","error","info","success","warning"]),Kc.string]),disabled:Kc.bool,exclusive:Kc.bool,fullWidth:Kc.bool,onChange:Kc.func,orientation:Kc.oneOf(["horizontal","vertical"]),size:Kc.oneOfType([Kc.oneOf(["small","medium","large"]),Kc.string]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any});var yM=Bh(e.jsx("path",{d:"M19 6.41 17.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"}),"Close"),bM=Bh(e.jsx("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen"),vM=function(){return function(e,t){return t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.connections=new Map,this.refCounts=new Map,this.reconnectTimeouts=new Map,this.listeners=new Map},[{key:"getStreamState",value:function(e){return this.connections.get(e)}},{key:"on",value:function(e,t){this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t)}},{key:"off",value:function(e,t){var o=this.listeners.get(e);o&&o.delete(t)}},{key:"emit",value:function(e,t){var o=this.listeners.get(e);o&&o.forEach(function(e){return e(t)})}},{key:"connect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Camera",o=this.refCounts.get(e)||0;if(this.refCounts.set(e,o+1),this.connections.has(e)){var n=this.connections.get(e);if("connected"===n.status||"connecting"===n.status)return this.emit("status:".concat(e),n),n}return this.startStream(e,t)}},{key:"disconnect",value:function(e){var t=this,o=this.refCounts.get(e)||0;o<=1?(this.refCounts.delete(e),setTimeout(function(){t.refCounts.has(e)||t.cleanup(e,!0)},5e3)):this.refCounts.set(e,o-1)}},{key:"startStream",value:function(e,t){return o=this,n=void 0,r=void 0,i=f().m(function o(){var n,r,i,a,s,l,c,p=this;return f().w(function(o){for(;;)switch(o.p=o.n){case 0:return n=this.connections.get(e),r={stream:(null==n?void 0:n.stream)||null,pc:null,status:"connecting",error:null,retryCount:(null==n?void 0:n.retryCount)||0},this.connections.set(e,r),this.emit("status:".concat(e),r),o.p=1,this.cleanup(e,!1),i=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"},{urls:"stun:stun2.l.google.com:19302"}],iceCandidatePoolSize:10,bundlePolicy:"max-bundle",rtcpMuxPolicy:"require"}),r.pc=i,i.ontrack=function(t){var o;o=t.streams&&t.streams[0]?t.streams[0]:new MediaStream([t.track]),r.stream=o,r.status="connected",r.error=null,p.emit("status:".concat(e),Object.assign({},r))},i.onconnectionstatechange=function(){"failed"===i.connectionState&&p.handleFailure(e,t,"Connection failed")},o.n=2,i.createOffer({offerToReceiveVideo:!0,offerToReceiveAudio:!1});case 2:return a=o.v,o.n=3,i.setLocalDescription(a);case 3:return o.n=4,fetch(e,{method:"POST",headers:{"Content-Type":"application/sdp",Accept:"application/sdp"},body:a.sdp});case 4:if((s=o.v).ok){o.n=5;break}throw new Error("HTTP ".concat(s.status,": ").concat(s.statusText));case 5:return o.n=6,s.text();case 6:return l=o.v,o.n=7,i.setRemoteDescription({type:"answer",sdp:l});case 7:return o.a(2,r);case 8:return o.p=8,c=o.v,this.handleFailure(e,t,c instanceof Error?c.message:"Connection failed"),o.a(2,r)}},o,this,[[1,8]])}),new(r||(r=Promise))(function(e,t){function a(e){try{l(i.next(e))}catch(e){t(e)}}function s(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var o;t.done?e(t.value):(o=t.value,o instanceof r?o:new r(function(e){e(o)})).then(a,s)}l((i=i.apply(o,n||[])).next())});var o,n,r,i}},{key:"handleFailure",value:function(e,t,o){var n=this,r=this.connections.get(e);if(r){if(r.status="failed",r.error=o,r.retryCount<3){r.retryCount++;var i=2e3+1e3*r.retryCount,a=setTimeout(function(){n.startStream(e,t)},i);this.reconnectTimeouts.set(e,a)}this.emit("status:".concat(e),Object.assign({},r))}}},{key:"cleanup",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.reconnectTimeouts.get(e);o&&(clearTimeout(o),this.reconnectTimeouts.delete(e));var n=this.connections.get(e);(null==n?void 0:n.pc)&&(n.pc.close(),n.pc=null),t&&this.connections.delete(e)}},{key:"retry",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Camera",o=this.connections.get(e);o&&(o.retryCount=0,this.startStream(e,t))}}])}(),xM=new vM,wM=function(t){var n,r=t.url,i=t.cameraName,a=t.onOpenFullscreen,s=o.useRef(null),l=h(o.useState(xM.getStreamState(r)||null),2),c=l[0],p=l[1],d=h(o.useState(!1),2),u=d[0],f=d[1];o.useEffect(function(){if(r){xM.connect(r,i),p(xM.getStreamState(r)||null);var e=function(e){p(e)};return xM.on("status:".concat(r),e),function(){xM.off("status:".concat(r),e),xM.disconnect(r)}}},[r,i]),o.useEffect(function(){s.current&&(null==c?void 0:c.stream)&&s.current.srcObject!==c.stream&&(s.current.srcObject=c.stream,s.current.play().catch(function(){}))},[null==c?void 0:c.stream]);var m="connected"===(null==c?void 0:c.status),g="connecting"===(null==c?void 0:c.status),y=null==c?void 0:c.error,b=null!==(n=null==c?void 0:c.retryCount)&&void 0!==n?n:0;return e.jsxs("div",{className:"relative bg-black rounded-lg overflow-hidden h-full w-full",children:[g&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/80 z-10",children:e.jsxs("div",{className:"text-center text-white text-xs",children:[e.jsx("div",{children:"Connecting..."}),b>0&&e.jsxs("div",{className:"mt-1 opacity-80",children:["Retry ",b]})]})}),y&&!m&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-red-900/90 z-10",children:e.jsxs("div",{className:"text-center p-2 text-xs text-white",children:[e.jsx("div",{className:"font-medium",children:"Connection Error"}),e.jsx("div",{className:"mt-1 opacity-80",children:y}),e.jsx("button",{onClick:function(){r&&xM.retry(r,i)},className:"mt-2 px-2 py-1 bg-red-600 rounded text-xs",children:"Retry"})]})}),e.jsx("video",{ref:s,autoPlay:!0,playsInline:!0,muted:!0,className:"w-full h-full object-cover ".concat(m?"block":"hidden")}),m&&e.jsx("button",{onClick:u?function(){document.exitFullscreen&&document.exitFullscreen(),f(!1)}:function(){s.current&&(s.current.requestFullscreen&&s.current.requestFullscreen(),f(!0),null==a||a())},className:"absolute top-2 right-2 p-1.5 bg-black/50 text-white rounded",title:u?"Exit Full Screen":"Enter Full Screen",children:u?"⤫":"⛶"})]})},SM={rootBase:{display:"flex",alignItems:"center",gap:"20px",padding:"12px 24px"},rootLight:{backgroundColor:"#323174",borderBottom:"1px solid rgba(255,255,255,0.08)",color:"#ffffff"},rootDark:{background:"#323174",borderBottom:"1px solid rgba(255,255,255,0.08)",color:"#ffffff"},rootGlass:{background:"rgba(50, 49, 116, 0.8)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)",color:"#ffffff"},logo:{cursor:"pointer",display:"flex",alignItems:"center",gap:"16px"},logoImage:{height:"30px",width:"100%",objectFit:"contain"},search:{flex:1,maxWidth:"400px",display:"flex",alignItems:"center",color:"white"},searchInput:{width:"100%",padding:"8px 16px",border:"1px solid #ddd",borderRadius:"4px",fontSize:"14px"},searchIcon:{marginRight:8,color:"#64748b",display:"inline-flex"},selector:{display:"flex",alignItems:"center",gap:"8px"},selectorLabel:{fontSize:"14px",color:"#666",fontWeight:500},select:{padding:"8px 12px",border:"1px solid rgba(255,255,255,0.3)",borderRadius:"4px",fontSize:"14px",backgroundColor:"transparent",color:"white",cursor:"pointer"},option:{color:"#333",backgroundColor:"white"},actions:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto"},title:{fontSize:"20px",fontWeight:600,margin:0,color:"inherit"},hDivider:{width:"100%",height:1,background:"rgba(255,255,255,0.08)"},vDivider:{width:1,height:"100%",background:"rgba(255,255,255,0.12)"},iconButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 12px",borderRadius:10,border:"1px solid rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.04)",color:"#e2e8f0",cursor:"pointer"},iconButtonActive:{borderColor:"rgba(37,99,235,0.8)",background:"linear-gradient(135deg,#2563eb,#7c3aed)",color:"#fff"},badge:{display:"inline-flex",alignItems:"center",padding:"2px 8px",borderRadius:999,background:"rgba(37,99,235,0.15)",color:"#cbd5e1",fontSize:12,fontWeight:600},eventsBar:{display:"flex",gap:8,overflowX:"auto",padding:"8px 0"},eventsChip:{border:"1px solid rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.04)",color:"#e2e8f0",padding:"8px 12px",borderRadius:12,cursor:"pointer",whiteSpace:"nowrap"},eventsChipActive:{background:"linear-gradient(135deg,#16a34a,#22c55e)",color:"#0b1224",borderColor:"transparent",fontWeight:700}},TM=function(t){var o=t.value,n=t.onChange,r=t.options,i=t.placeholder,a=void 0===i?"Select":i,s=t.label,l=t.disabled,c=void 0!==l&&l,p=t.selectorWidth,d=t.labelWidth,u=t.dense,f=void 0!==u&&u,m=P(),h=Object.assign(Object.assign({},SM.selector),f?{gap:"4px"}:{}),g=Object.assign(Object.assign(Object.assign(Object.assign({},SM.select),f?{padding:"6px 8px",fontSize:"13px"}:{}),p?{width:p}:{}),{border:"1px solid ".concat(m.border.subtle),backgroundColor:m.surface.control,color:m.text.primary});return e.jsxs("div",{className:"topbar-select",style:h,children:[s&&e.jsx("span",{style:Object.assign(Object.assign(Object.assign({},SM.selectorLabel),{color:m.text.muted}),d?{width:d,display:"inline-block"}:{}),children:s}),e.jsxs("select",{value:o,onChange:function(e){return n(e.target.value)},disabled:c,style:Object.assign({},g),children:[a&&e.jsx("option",{value:"",disabled:!0,children:a}),r.map(function(t){return e.jsx("option",{value:t.value,children:t.label},t.value)})]})]})},OM=function(t){var n=t.levels,r=vs(t,["levels"]),i=o.useMemo(function(){return n.map(function(e){return{value:e,label:e}})},[n]);return e.jsx(TM,Object.assign({options:i},r))},jM=function(t){var n=t.locations,r=vs(t,["locations"]),i=o.useMemo(function(){return n.map(function(e){return{value:e.id,label:e.name}})},[n]);return e.jsx(TM,Object.assign({options:i},r))},CM=function(t){var o=t.children,n=t.active,r=void 0!==n&&n,i=t.onClick,a=t.title,s=P();return e.jsx("button",{type:"button",className:"topbar-icon-button",title:a,onClick:i,style:Object.assign(Object.assign(Object.assign({},SM.iconButton),{border:"1px solid ".concat(s.border.subtle),background:r?"linear-gradient(135deg, ".concat(s.accent.primary,", ").concat(s.accent.secondary,")"):s.surface.control,color:r?s.text.onAccent:s.text.primary}),r?{borderColor:s.accent.primary+"cc"}:{}),onMouseEnter:function(e){r||(e.currentTarget.style.backgroundColor=s.state.hover)},onMouseLeave:function(e){r||(e.currentTarget.style.backgroundColor=s.surface.control)},children:o})},kM=function(t){var o=t.value,n=t.onChange,r=t.options,i=t.size,a=void 0===i?"md":i;return e.jsx("div",{className:"topbar-toggle-group",style:{display:"inline-flex",border:"1px solid #2d2d2d",borderRadius:999,overflow:"hidden",background:"rgba(255,255,255,0.04)"},children:r.map(function(t){var r=t.value===o;return e.jsx("button",{type:"button",onClick:function(){return n(t.value)},style:{border:"none",background:r?"linear-gradient(135deg,#2563eb,#7c3aed)":"transparent",color:r?"#fff":"#cbd5e1",padding:"sm"===a?"6px 10px":"8px 14px",fontSize:"sm"===a?12:14,fontWeight:600,cursor:"pointer"},children:t.label},t.value)})})},EM=function(t){var o=t.count,n=t.variant,r=void 0===n?"default":n,i=P();return e.jsx("span",{style:{backgroundColor:"danger"===r?i.semantic.critical:i.accent.primary,color:i.text.onAccent,borderRadius:"12px",padding:"2px 8px",fontSize:"12px",fontWeight:600,minWidth:"20px",textAlign:"center"},children:o})},PM={Root:function(t){var o=t.children,n=t.className,r=void 0===n?"":n,i=t.variant,a=void 0===i?"light":i,s=t.height,l=void 0===s?72:s,c=t.sticky,p=void 0===c||c,d=t.zIndex,u=void 0===d?1e3:d,f=t.style,m=P(),h="glass"===a,g=Object.assign(Object.assign(Object.assign({},SM.rootBase),{background:h?"".concat(m.surface.topbar,"cc"):m.surface.topbar,color:m.text.primary,borderBottom:"1px solid ".concat(m.border.subtle),backdropFilter:h?"blur(12px)":void 0,height:l,position:p?"sticky":"relative",zIndex:u}),f);return e.jsx("div",{className:"topbar ".concat(r),style:g,children:o})},Section:function(t){var o=t.children,n=t.align,r=void 0===n?"left":n,i=t.gap,a=void 0===i?12:i,s=t.wrap,l=void 0!==s&&s,c=t.grow,p=void 0!==c&&c,d=t.className,u=void 0===d?"":d,f="right"===r?"flex-end":"center"===r?"center":"flex-start";return e.jsx("div",{className:"topbar-section ".concat(u),style:{display:"flex",alignItems:"center",justifyContent:f,gap:a,flexWrap:l?"wrap":"nowrap",flexGrow:p?1:0},children:o})},Divider:function(t){var o=t.orientation;return"vertical"===(void 0===o?"horizontal":o)?e.jsx("div",{style:SM.vDivider,className:"topbar-divider"}):e.jsx("div",{style:SM.hDivider,className:"topbar-divider"})},Logo:function(t){var o=t.src,n=void 0===o?"/logos/merdeka-118-logo.png":o,r=t.alt,i=void 0===r?"App Logo":r,a=t.onClick;return e.jsxs("div",{className:"topbar-logo",style:SM.logo,onClick:a,children:[e.jsx("img",{src:"/logos/merdeka.png",alt:"Merdeka 118",style:{height:30,objectFit:"contain"}}),e.jsx("div",{style:{width:1,height:24,backgroundColor:"rgba(255,255,255,0.2)"}}),e.jsx("img",{src:n,alt:i,style:SM.logoImage})]})},LevelSelector:function(t){return e.jsx(OM,Object.assign({},t))},LocationSelector:function(t){return e.jsx(jM,Object.assign({},t))},Actions:function(t){var o=t.children;return e.jsx("div",{className:"topbar-actions",style:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto"},children:o})},Title:function(t){var o=t.children;return e.jsx("h1",{className:"topbar-title",style:{fontSize:"20px",fontWeight:600,margin:0,color:"inherit"},children:o})},IconButton:CM,Badge:function(t){var o=t.label;return e.jsx("span",{className:"topbar-badge",style:SM.badge,children:o})},SelectBase:TM,ToggleGroup:kM,Spacer:function(){return e.jsx("div",{style:{flex:1,minWidth:8}})},LocationSelect:jM,LevelSelect:OM,ListTypeToggle:function(t){var o=t.value,n=t.onChange;return e.jsx(kM,{value:o,onChange:n,options:[{label:"Events",value:"events"},{label:"Booths",value:"booths"}]})},EventsBar:function(t){var o=t.eventCount,n=void 0===o?0:o,r=t.onClick,i=t.className,a=void 0===i?"":i,s=P();return e.jsxs("div",{className:a,onClick:r,style:{display:"flex",alignItems:"center",gap:8,cursor:r?"pointer":"default",padding:"6px 12px",borderRadius:6,backgroundColor:s.surface.control,border:"1px solid ".concat(s.border.subtle)},children:[e.jsx("span",{style:{fontSize:14,color:s.text.primary},children:"Events"}),n>0&&e.jsx(EM,{count:n,variant:n>10?"danger":"default"})]})},BackButton:function(t){var o=t.label,n=void 0===o?"Back":o,r=t.onClick;return e.jsxs(CM,{onClick:r,title:n,children:["← ",n]})},SidebarToggleButton:function(t){var o=t.active,n=t.onClick;return e.jsx(CM,{active:o,onClick:n,title:"Toggle sidebar",children:"☰"})},ThemeToggleButton:function(t){var o=t.onClick;return e.jsx(CM,{onClick:o,title:"Toggle theme",children:"🌓"})},TimelineToggleButton:function(t){var o=t.active,n=t.onClick;return e.jsx(CM,{active:o,onClick:n,title:"Timeline",children:"🕒"})}},NM={container:{position:"fixed",right:0,top:0,bottom:0,width:"400px",display:"flex",flexDirection:"column",zIndex:1e3},header:{padding:"20px",display:"flex",justifyContent:"space-between",alignItems:"center"},body:{flex:1,padding:"20px",overflowY:"auto"},footer:{padding:"20px"},closeButton:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",padding:"0 10px"}},RM={Root:function(t){var o=t.children,n=t.isOpen;if(t.onClose,!n)return null;var r=P();return e.jsx("div",{className:"panel-container",style:Object.assign(Object.assign({},NM.container),{backgroundColor:r.surface.panel,color:r.text.primary,boxShadow:"-2px 0 8px rgba(0,0,0,0.12)"}),children:o})},Header:function(t){var o=t.title,n=t.onClose,r=P();return e.jsxs("div",{className:"panel-header",style:Object.assign(Object.assign({},NM.header),{borderBottom:"1px solid ".concat(r.border.subtle),color:r.text.primary}),children:[e.jsx("h2",{style:{margin:0},children:o}),n&&e.jsx("button",{onClick:n,style:Object.assign(Object.assign({},NM.closeButton),{color:r.text.primary}),children:"×"})]})},Body:function(t){var o=t.children;return e.jsx("div",{className:"panel-body",style:NM.body,children:o})},Footer:function(t){var o=t.children,n=P();return e.jsx("div",{className:"panel-footer",style:Object.assign(Object.assign({},NM.footer),{borderTop:"1px solid ".concat(n.border.subtle),color:n.text.primary}),children:o})}},MM={root:function(e){return{backgroundColor:e.surface.card,borderRadius:"8px",overflow:"hidden",transition:"all 0.2s",color:e.text.primary}},header:function(e){return{padding:"16px",borderBottom:"1px solid ".concat(e.border.subtle),display:"flex",alignItems:"center",gap:"12px"}},headerImage:{width:"48px",height:"48px",borderRadius:"4px",objectFit:"cover"},headerContent:{flex:1},title:function(e){return{margin:0,fontSize:"16px",fontWeight:600,color:e.text.primary}},subtitle:function(e){return{margin:"4px 0 0 0",fontSize:"14px",color:e.text.muted}},headerActions:{display:"flex",gap:"8px"},body:{padding:"16px"},footer:function(e){return{padding:"12px 16px",borderTop:"1px solid ".concat(e.border.subtle),display:"flex",gap:"8px"}},image:{width:"100%",overflow:"hidden"},imageImg:{width:"100%",height:"100%",objectFit:"cover"}},$M={Root:function(t){var o=t.children,n=t.onClick,r=t.variant,i=void 0===r?"default":r,a=t.className,s=void 0===a?"":a,l=P(),c="outlined"===i?{border:"2px solid ".concat(l.accent.primary)}:"elevated"===i?{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}:{border:"1px solid ".concat(l.border.subtle)};return e.jsx("div",{className:"card card-".concat(i," ").concat(s),style:Object.assign(Object.assign(Object.assign({},MM.root(l)),c),{cursor:n?"pointer":"default"}),onClick:n,children:o})},Header:function(t){var o=t.title,n=t.subtitle,r=t.actions,i=t.image,a=P();return e.jsxs("div",{className:"card-header",style:MM.header(a),children:[i&&e.jsx("img",{src:i,alt:o,style:MM.headerImage}),e.jsxs("div",{style:MM.headerContent,children:[e.jsx("h3",{style:MM.title(a),children:o}),n&&e.jsx("p",{style:MM.subtitle(a),children:n})]}),r&&e.jsx("div",{style:MM.headerActions,children:r})]})},Body:function(t){var o=t.children,n=P();return e.jsx("div",{className:"card-body",style:MM.body,children:e.jsx("div",{style:{color:n.text.primary},children:o})})},Footer:function(t){var o=t.children,n=t.align,r=void 0===n?"left":n,i=P();return e.jsx("div",{className:"card-footer",style:Object.assign(Object.assign({},MM.footer(i)),{justifyContent:"left"===r?"flex-start":"center"===r?"center":"flex-end"}),children:o})},Image:function(t){var o=t.src,n=t.alt,r=t.height,i=void 0===r?"200px":r;return e.jsx("div",{className:"card-image",style:Object.assign(Object.assign({},MM.image),{height:i}),children:e.jsx("img",{src:o,alt:n,style:MM.imageImg})})}},IM={backgroundColor:"#323174",borderBottom:"1px solid rgba(255,255,255,0.08)",color:"#ffffff"},AM={background:"#323174",borderBottom:"1px solid rgba(255,255,255,0.1)",color:"#FFFFFF"},BM={background:"rgba(50, 49, 116, 0.8)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)",color:"#ffffff"},LM={Root:function(t){var n=t.children,r=t.className,i=void 0===r?"":r,a=t.variant,s=void 0===a?"light":a,c=h(o.useState(""),2),p=c[0];c[1];var d=P(),u=function(e,t){var o=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return"rgba(".concat(o,", ").concat(n,", ").concat(r,", ").concat(t,")")},f=function(){if("glass"===s)return Object.assign(Object.assign({},BM),{background:u(d.surface.topbar,.8),backgroundColor:u(d.surface.topbar,.8)});var e="dark"===s?Object.assign({},AM):Object.assign({},IM);return Object.assign(Object.assign({},e),{backgroundColor:d.surface.topbar,background:d.surface.topbar})}();return e.jsx("nav",{style:f,className:"fixed bottom-0 left-0 w-full h-[64px] flex justify-around rounded-t-xl items-center shadow-md z-[40] ".concat(i),children:l.default.Children.map(n,function(e){return l.default.isValidElement(e)&&e.props&&"id"in e.props&&"function"==typeof e.type?l.default.cloneElement(e,{activeTab:p}):e})})},Item:function(t){var n=t.id,r=t.label,i=t.icon,a=t.onClick,s=h(o.useState(""),2);s[0];var l=s[1],c=h(o.useState(!1),2),p=c[0],d=c[1],u=P();return e.jsxs("button",{onClick:function(){l(n),null==a||a()},onMouseDown:function(){d(!0),setTimeout(function(){return d(!1)},300)},className:"flex flex-col items-center justify-center text-xs transition-all duration-200",style:{color:u.accent.secondary},children:[e.jsx("div",{className:"text-2xl transition-transform ".concat(p?"scale-110":"scale-100"),style:{color:u.accent.secondary},children:i}),e.jsx("span",{className:"mt-1",style:{color:u.accent.secondary},children:r})]})}},DM={root:{position:"relative",display:"inline-block"},trigger:{padding:"8px 16px",border:"1px solid #ddd",borderRadius:"4px",backgroundColor:"white",cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",minWidth:"150px",justifyContent:"space-between"},triggerDisabled:{opacity:.5,cursor:"not-allowed"},arrow:{fontSize:"10px",color:"#666"},menu:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,backgroundColor:"white",border:"1px solid #ddd",borderRadius:"4px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",zIndex:1e3,maxHeight:"300px",overflowY:"auto"},item:{padding:"10px 16px",cursor:"pointer",fontSize:"14px",transition:"background-color 0.15s"},itemDisabled:{opacity:.5,cursor:"not-allowed"},itemSelected:{backgroundColor:"#e3f2fd",color:"#1a73e8",fontWeight:500},group:{borderBottom:"1px solid #f0f0f0"},groupLabel:{padding:"8px 16px",fontSize:"12px",fontWeight:600,color:"#666",textTransform:"uppercase",backgroundColor:"#f8f8f8"}},zM={Root:function(t){var n=t.value,r=t.onChange,i=t.children,a=t.disabled,s=t.style,c=t.className,p=void 0===c?"":c,d=h(o.useState(!1),2),u=d[0],f=d[1];return e.jsx("div",{className:"dropdown ".concat(p),style:Object.assign(Object.assign({},DM.root),s),children:l.default.Children.map(i,function(e){return l.default.isValidElement(e)?l.default.cloneElement(e,{isOpen:u,setIsOpen:f,value:n,onChange:r,disabled:a}):e})})},Trigger:function(t){var o=t.children,n=t.isOpen,r=t.setIsOpen,i=t.disabled,a=t.style,s=t.className,l=void 0===s?"":s;return e.jsxs("button",{className:"dropdown-trigger ".concat(l),style:Object.assign(Object.assign(Object.assign({},DM.trigger),i?DM.triggerDisabled:{}),a),onClick:function(){return!i&&(null==r?void 0:r(!n))},disabled:i,children:[o,e.jsx("span",{style:DM.arrow,children:n?"▲":"▼"})]})},Menu:function(t){var o=t.children,n=t.isOpen,r=t.setIsOpen,i=t.value,a=t.onChange,s=t.style,c=t.className,p=void 0===c?"":c;return n?e.jsx("div",{className:"dropdown-menu ".concat(p),style:Object.assign(Object.assign({},DM.menu),s),children:l.default.Children.map(o,function(e){return l.default.isValidElement(e)?l.default.cloneElement(e,{isSelected:e.props.value===i,onClick:function(){null==a||a(e.props.value),null==r||r(!1)}}):e})}):null},Item:function(t){var o=t.children,n=t.disabled,r=t.isSelected,i=t.onClick,a=t.style,s=t.className,l=void 0===s?"":s;return e.jsx("div",{className:"dropdown-item ".concat(r?"selected":""," ").concat(l),style:Object.assign(Object.assign(Object.assign(Object.assign({},DM.item),n?DM.itemDisabled:{}),r?DM.itemSelected:{}),a),onClick:function(){return!n&&(null==i?void 0:i())},children:o})},Group:function(t){var o=t.label,n=t.children,r=t.style,i=t.className,a=void 0===i?"":i;return e.jsxs("div",{className:"dropdown-group ".concat(a),style:Object.assign(Object.assign({},DM.group),r),children:[e.jsx("div",{style:DM.groupLabel,children:o}),n]})}},VM={backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",zIndex:2e3},content:{borderRadius:"8px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)",display:"flex",flexDirection:"column",maxHeight:"90vh"},small:{width:"400px"},medium:{width:"600px"},large:{width:"800px"},header:{padding:"20px 24px",display:"flex",justifyContent:"space-between",alignItems:"center"},title:{margin:0,fontSize:"20px",fontWeight:600},headerActions:{display:"flex",alignItems:"center",gap:"12px"},closeButton:{background:"none",border:"none",fontSize:"28px",cursor:"pointer",padding:"0 8px",lineHeight:1,transition:"color 0.2s ease"},body:{padding:"24px",overflowY:"auto",flex:1},footer:{padding:"16px 24px",display:"flex",gap:"12px"}},FM={Root:function(t){var o=t.isOpen,n=t.onClose,r=t.children,i=t.size,a=void 0===i?"medium":i,s=P();return o?e.jsx("div",{className:"modal-backdrop",style:Object.assign(Object.assign({},VM.backdrop),{backgroundColor:s.surface.backdrop}),onClick:n,children:e.jsx("div",{className:"modal-content modal-".concat(a),style:Object.assign(Object.assign(Object.assign({},VM.content),VM[a]),{backgroundColor:s.surface.modal}),onClick:function(e){return e.stopPropagation()},children:r})}):null},Header:function(t){var o=t.title,n=t.onClose,r=t.actions,i=P();return e.jsxs("div",{className:"modal-header",style:Object.assign(Object.assign({},VM.header),{borderBottom:"1px solid ".concat(i.border.subtle)}),children:[e.jsx("h2",{style:Object.assign(Object.assign({},VM.title),{color:i.text.primary}),children:o}),e.jsxs("div",{style:VM.headerActions,children:[r,n&&e.jsx("button",{onClick:n,className:"modal-close",style:Object.assign(Object.assign({},VM.closeButton),{color:i.text.muted}),onMouseEnter:function(e){e.currentTarget.style.color=i.text.primary},onMouseLeave:function(e){e.currentTarget.style.color=i.text.muted},children:"×"})]})]})},Body:function(t){var o=t.children;return e.jsx("div",{className:"modal-body",style:VM.body,children:o})},Footer:function(t){var o=t.children,n=t.align,r=void 0===n?"right":n,i=P();return e.jsx("div",{className:"modal-footer",style:Object.assign(Object.assign({},VM.footer),{borderTop:"1px solid ".concat(i.border.subtle),justifyContent:"left"===r?"flex-start":"center"===r?"center":"flex-end"}),children:o})}},WM=function(t){var o=t.title,n=t.children;return e.jsxs("div",{style:{marginBottom:8},children:[e.jsx("div",{style:{marginBottom:4,fontWeight:500},children:o}),n]})},_M=function(t,o,n){return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:4},children:[e.jsx("span",{children:t}),e.jsx("input",{type:"color",value:o,onChange:function(e){return n(e.target.value)}})]})};exports.AIAnalysisPanel=function(t){var o,r,i=t.insights,a=t.statistics,s=t.topCategories,l=void 0===s?[]:s,c=t.variant,p=void 0===c?"light":c,d=t.isLoading,u=void 0!==d&&d,f=t.title,m=void 0===f?"AI Analysis":f,h=t.description,g=void 0===h?"Insights and recommendations":h,y=t.topCategoriesLabel,b=void 0===y?"Top Alert Types":y,v=t.insightsLabel,x=void 0===v?"Insights & Recommendations":v,w=t.emptyMessage,S=void 0===w?"No data available for analysis":w,T=t.emptyHint,O=P(),j=null!==(o=null==a?void 0:a.totalCount)&&void 0!==o?o:0,C=null!==(r=null==a?void 0:a.criticalCount)&&void 0!==r?r:0,k=j>0||i.length>0||l.length>0,E={critical:O.semantic.critical,warning:O.semantic.warning,success:O.semantic.success,info:O.semantic.info},N={critical:"".concat(O.semantic.critical,"14"),warning:"".concat(O.semantic.warning,"14"),success:"".concat(O.semantic.success,"14"),criticalStrong:"".concat(O.semantic.critical,"1f")},R=function(e){var t;return null!==(t=E[e])&&void 0!==t?t:O.text.muted};return e.jsx(gs,{title:m,description:g,isLoading:u,variant:p,bodyMinHeight:300,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[j>0&&e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"12px"},children:[e.jsxs("div",{style:{padding:"12px",borderRadius:"8px",backgroundColor:O.surface.control,border:"1px solid ".concat(O.border.subtle)},children:[e.jsx("div",{style:{fontSize:"24px",fontWeight:600,color:O.text.primary,marginBottom:"4px"},children:j}),e.jsx("div",{style:{fontSize:"12px",color:O.text.muted},children:"Total"})]}),C>=0&&e.jsxs("div",{style:{padding:"12px",borderRadius:"8px",backgroundColor:C>0?N.criticalStrong:O.surface.control,border:"1px solid ".concat(C>0?E.critical:O.border.subtle)},children:[e.jsx("div",{style:{fontSize:"24px",fontWeight:600,color:C>0?E.critical:O.text.primary,marginBottom:"4px"},children:C}),e.jsx("div",{style:{fontSize:"12px",color:O.text.muted},children:"Critical"})]})]}),l.length>0&&e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:600,color:O.text.primary,marginBottom:"8px"},children:b}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:l.map(function(t){var o;return e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px",borderRadius:"6px",backgroundColor:O.surface.control,border:"1px solid ".concat(O.border.subtle)},children:[e.jsx(n.Icon,{icon:null!==(o=t.icon)&&void 0!==o?o:"mdi:alert",width:20,height:20,style:{color:R(t.severity)}}),e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:500,color:O.text.primary},children:t.label}),e.jsxs("div",{style:{fontSize:"11px",color:O.text.muted},children:[t.count," (",t.percentage,"%)"]})]})]},t.label)})})]}),i.length>0&&e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:600,color:O.text.primary,marginBottom:"8px"},children:x}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:i.map(function(t,o){var r,i,a,s;return e.jsxs("div",{style:{display:"flex",gap:"12px",padding:"12px",borderRadius:"8px",backgroundColor:null!==(r=N[t.type])&&void 0!==r?r:O.surface.control,border:"1px solid ".concat(null!==(i=E[t.type])&&void 0!==i?i:O.border.subtle)},children:[e.jsx(n.Icon,{icon:null!==(a=t.icon)&&void 0!==a?a:"mdi:information",width:20,height:20,style:{color:null!==(s=E[t.type])&&void 0!==s?s:E.info,flexShrink:0,marginTop:"2px"}}),e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:600,color:O.text.primary,marginBottom:"4px"},children:t.title}),e.jsx("div",{style:{fontSize:"12px",color:O.text.muted,lineHeight:1.5},children:t.message})]})]},o)})})]}),!k&&!u&&e.jsxs("div",{style:{textAlign:"center",padding:"24px",color:O.text.muted},children:[e.jsx(n.Icon,{icon:"mdi:chart-line",width:48,height:48,style:{color:O.text.muted,opacity:.5,marginBottom:"12px"}}),e.jsx("div",{style:{fontSize:"14px"},children:S}),T&&e.jsx("div",{style:{fontSize:"12px",marginTop:"4px"},children:T})]})]})})},exports.AlertCameraChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Top Cameras by Alerts":i,s=t.description,c=void 0===s?"Cameras with most alerts":s,p=P(),d=0===o.values.length,u=l.default.useMemo(function(){var e;return e=o.colors?Array.isArray(o.colors)?o.labels.map(function(e,t){return o.colors[t]||Cs(p.accent.primary,o.labels.length)[t]}):o.labels.map(function(e){return o.colors[e]||Cs(p.accent.primary,o.labels.length)[o.labels.indexOf(e)]}):Cs(p.accent.primary,o.labels.length),{labels:o.labels,datasets:[{label:"Alert Count",data:o.values,backgroundColor:e,borderColor:p.border.subtle,borderWidth:1}]}},[o,p.accent.primary,p.border.subtle]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"bar",data:u})})},exports.AlertSeverityChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Alert Severity Distribution":i,s=t.description,c=void 0===s?"Distribution by severity level":s,p=P(),d=0===o.values.length,u={Severe:p.semantic.critical,Critical:p.semantic.critical,Medium:p.semantic.warning,Warning:p.semantic.warning,Normal:p.semantic.success,Success:p.semantic.success,Info:p.semantic.info},f=l.default.useMemo(function(){var e=o.labels.map(function(e,t){var n;if(o.colors){var r=Array.isArray(o.colors)?o.colors[t]:o.colors[e];if(r)return r}return null!==(n=u[e])&&void 0!==n?n:p.accent.primary});return{labels:o.labels,datasets:[{label:"Alert Severity",data:o.values,backgroundColor:e,borderColor:p.border.subtle,borderWidth:1}]}},[o,p.semantic,p.accent.primary,p.border.subtle]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"bar",data:f})})},exports.AlertTimelineChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Alerts Timeline":i,s=t.description,c=void 0===s?"Alerts over time":s,p=P(),d=0===o.values.length,u=l.default.useMemo(function(){var e,t;return e=o.colors?Array.isArray(o.colors)?o.colors[0]||p.accent.primary:o.colors[o.labels[0]]||p.accent.primary:p.accent.primary,t="".concat(e,"26"),{labels:o.labels,datasets:[{label:"Alerts",data:o.values,borderColor:e,backgroundColor:t,tension:.3,fill:!0}]}},[o,p.accent.primary]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"line",data:u})})},exports.AlertTriggerChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Alerts by Trigger Type":i,s=t.description,c=void 0===s?"Distribution of alerts by trigger":s,p=P(),d=0===o.values.length,u=l.default.useMemo(function(){var e;return e=o.colors?Array.isArray(o.colors)?o.labels.map(function(e,t){return o.colors[t]||Cs(p.accent.primary,o.labels.length)[t]}):o.labels.map(function(e){return o.colors[e]||Cs(p.accent.primary,o.labels.length)[o.labels.indexOf(e)]}):Cs(p.accent.primary,o.labels.length),{labels:o.labels,datasets:[{label:"Alerts by Trigger",data:o.values,backgroundColor:e,borderColor:p.border.subtle,borderWidth:1}]}},[o,p.accent.primary,p.border.subtle]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"doughnut",data:u,options:{plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}}})})},exports.AlertsPanel=function(t){var n=t.items,r=t.onItemClick,i=t.variant,a=void 0===i?"light":i,s=t.maxItems,l=void 0===s?30:s,c=t.title,d=void 0===c?"Alerts":c,u=t.description,f=void 0===u?"Critical and warning events":u,m=t.emptyMessage,h=void 0===m?"There are currently no active alerts.":m,g=o.useMemo(function(){var e=function(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n).sort(function(e,t){var o=new Date(e.timestamp||0).getTime(),n=new Date(t.timestamp||0).getTime();return o&&n?n-o:0});return e.slice(0,l).map(function(e){return{id:e.id,message:e.message,time:e.time,severity:e.severity,category:e.category}})},[n,l]);return e.jsx(gs,{title:d,description:f,variant:a,children:e.jsx(bs,{alerts:g,onAlertClick:function(e){if(r){var t=n.find(function(t){return String(t.id)===String(e.id)});t&&r(t)}},maxHeight:220,emptyText:h})})},exports.BottomBar=LM,exports.Button=xs,exports.CameraStreamWidget=function(t){var o=t.camera,n=t.streamUrl,r=t.onClose,i=t.onFullscreen,a=t.variant,s=void 0===a?"dark":a,l=t.StreamComponent,c=t.streamType,p=void 0===c?"unknown":c,d=P(),u=function(){n&&i&&i(n,o.name)},f=l;return f||"webrtc"!==p||(f=function(t){var o=t.url,n=t.cameraName,r=t.onOpenFullscreen;return e.jsx(wM,{url:o,cameraName:n,onOpenFullscreen:r})}),e.jsx(gs,{title:o.name,description:"Live Stream",variant:s,actions:e.jsxs("div",{style:{display:"flex",gap:"4px"},children:[n&&e.jsx(Yy,{size:"small",onClick:u,sx:{color:d.text.muted},title:"Open Fullscreen",children:e.jsx(bM,{fontSize:"small"})}),r&&e.jsx(Yy,{size:"small",onClick:r,sx:{color:d.text.muted},children:e.jsx(yM,{fontSize:"small"})})]}),children:e.jsx("div",{style:{width:"100%",aspectRatio:"16/9",backgroundColor:"#000",borderRadius:8,overflow:"hidden",position:"relative"},children:n?f?e.jsx(f,{url:n,cameraName:o.name,streamType:p,onOpenFullscreen:u}):e.jsxs("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:d.text.muted,padding:"0 12px",textAlign:"center"},children:['No stream renderer configured for type "',p,'". Provide a StreamComponent or use a supported type like "webrtc".']}):e.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:d.text.muted},children:"No stream URL configured"})})})},exports.Card=$M,exports.Chart=Ts,exports.ChatbotPanel=function(t){var o=t.variant,n=void 0===o?"light":o,r=t.onOpenChat,i=t.title,a=void 0===i?"Chatbot":i,s=t.description,l=void 0===s?"Ask for summaries or actions":s,c=t.placeholderText,p=void 0===c?'Try: "Summarize alerts for the last hour" or "Show top 3 congested zones".':c,d=t.buttonLabel,u=void 0===d?"Open Chat":d;return e.jsx(gs,{title:a,description:l,isLoading:!1,variant:n,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[e.jsx("p",{style:{marginTop:0,marginBottom:8},children:p}),e.jsx(xs,{variant:"primary",size:"small",style:{width:"100%"},onClick:function(){return r?r():void 0},children:u})]})})},exports.DashboardBottomRegion=function(t){var o=t.children,n=t.leftOffset,r=void 0===n?0:n,i=t.rightOffset,a=void 0===i?0:i,s=t.className,l=void 0===s?"":s,c=t.style,p=Object.assign({position:"absolute",bottom:0,left:r,right:a,zIndex:100,transition:"left 0.3s ease, right 0.3s ease"},c);return e.jsx("div",{className:"dashboard-bottom-region ".concat(l),style:p,children:o})},exports.DashboardMain=function(t){var o=t.children,n=t.overlayLayers,r=t.className,i=void 0===r?"":r,a=t.style,s=Object.assign({flex:1,position:"relative",overflow:"hidden"},a);return e.jsxs("div",{className:"dashboard-main ".concat(i),style:s,children:[o,n&&e.jsx("div",{className:"dashboard-main-overlays",style:{position:"absolute",inset:0,pointerEvents:"none"},children:e.jsx("div",{style:{pointerEvents:"auto"},children:n})})]})},exports.DashboardMobileDrawer=function(t){var o=t.isOpen,n=t.activeSide,r=t.onSelectSide,i=t.onClose,a=t.left,s=t.right,l=t.bodySpacing,c=void 0===l?{gap:16,paddingBottom:24}:l,p=P(),d="left"===n,u=d?a:s;return e.jsxs(e.Fragment,{children:[o&&e.jsx("div",{style:{position:"fixed",inset:0,background:p.surface.backdrop,zIndex:1400,paddingBottom:"20px"},onClick:i}),e.jsxs("div",{style:{position:"fixed",left:0,right:0,bottom:0,transform:o?"translateY(0)":"translateY(110%)",transition:"transform 0.25s ease",background:p.surface.panel,borderTopLeftRadius:16,borderTopRightRadius:16,boxShadow:"0 -12px 32px rgba(0,0,0,0.18)",zIndex:1401,maxHeight:"90vh",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{padding:"12px 16px",display:"flex",gap:8,alignItems:"center",borderBottom:"1px solid ".concat(p.border.subtle)},children:[e.jsx("button",{style:{flex:1,padding:"10px 12px",borderRadius:12,border:d?"2px solid ".concat(p.accent.primary):"1px solid ".concat(p.border.subtle),background:d?"".concat(p.accent.primary,"1a"):p.surface.control,color:p.text.primary,fontWeight:600},onClick:function(){return r("left")},children:a.title}),e.jsx("button",{style:{flex:1,padding:"10px 12px",borderRadius:12,border:d?"1px solid ".concat(p.border.subtle):"2px solid ".concat(p.accent.primary),background:d?p.surface.control:"".concat(p.accent.primary,"1a"),color:p.text.primary,fontWeight:600},onClick:function(){return r("right")},children:s.title}),e.jsx("button",{onClick:i,style:{padding:"10px 10px",borderRadius:12,border:"1px solid ".concat(p.border.subtle),background:p.surface.control,color:p.text.primary,fontWeight:600,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6},"aria-label":"Close drawer",children:"✕"})]}),e.jsxs(hs.Body,{side:"left",useMotion:!1,spacing:c,style:{overflowY:"auto",padding:"16px 16px 24px",flex:1},className:"mobile-drawer-content",children:[e.jsx("style",{children:"\n .mobile-drawer-content::-webkit-scrollbar {\n display: none;\n }\n .mobile-drawer-content {\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* IE 10+ */\n }\n "}),u.content]})]})]})},exports.DashboardShell=function(t){var o=t.children,n=t.fullScreen,r=void 0===n||n,i=t.gap,a=void 0===i?0:i,s=t.background,l=t.topOffset,c=void 0===l?0:l,p=t.className,d=void 0===p?"":p,u=t.style,f=Object.assign({width:r?"100vw":"100%",height:r?"100vh":"100%",position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",gap:a>0?"".concat(a,"px"):void 0,background:s,marginTop:c>0?"".concat(c,"px"):void 0},u);return e.jsx("div",{className:"dashboard-shell ".concat(d),style:f,children:o})},exports.DashboardSidePanel=function(t){var o=t.side,n=t.width,r=void 0===n?288:n,i=t.isOpen,a=t.title,s=t.headerActions,l=t.children,c=t.bodyProps,p=t.onClose,d=t.className,u=void 0===d?"":d,f=t.style;return e.jsxs(hs.SidePanel,{side:o,width:r,isOpen:i,className:u,style:f,children:[a&&e.jsx(hs.Header,{title:a,actions:s,onClose:p,side:o}),e.jsx(hs.Body,{side:o,className:null==c?void 0:c.className,style:null==c?void 0:c.style,useMotion:null==c?void 0:c.useMotion,spacing:null==c?void 0:c.spacing,children:l})]})},exports.Dropdown=zM,exports.Modal=FM,exports.Panel=RM,exports.RadioButton=function(t){var o=t.name,n=t.value,r=t.label,i=t.checked,a=t.onChange,s=t.textClassName,l=void 0===s?"":s,c=t.circleClassName,p=void 0===c?"":c;return e.jsxs("label",{className:"flex items-center cursor-pointer select-none",children:[e.jsx("input",{type:"radio",name:o,value:n,checked:i,onChange:function(e){return a(e.target.value)},className:"hidden peer"}),e.jsx("div",{className:"\n w-6 h-6 rounded-full flex items-center justify-center transition-all duration-200\n ".concat(p,"\n "),children:e.jsx("div",{className:"\n w-3 h-3 rounded-full bg-black transition-transform duration-200\n scale-0 peer-checked:scale-100\n "})}),e.jsx("span",{className:"ml-3 text-lg ".concat(l),children:r})]})},exports.RecentActivityFeed=function(t){var n=t.items,r=t.variant,i=void 0===r?"dark":r,a=t.maxItems,s=void 0===a?10:a,l=t.onItemClick,c=t.title,p=void 0===c?"Recent Activity":c,d=t.description,u=void 0===d?"Latest events":d,f=P(),m=o.useMemo(function(){return n.slice().sort(function(e,t){var o=new Date(e.timestamp||0).getTime();return new Date(t.timestamp||0).getTime()-o}).slice(0,s)},[n,s]),h=0===m.length,g={Severe:f.semantic.critical,Medium:f.semantic.warning,Info:f.semantic.info,Normal:f.semantic.success};return e.jsx(gs,{title:p,description:u,variant:i,empty:h,bodyMinHeight:220,children:!h&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:m.map(function(t){var o,n,r=(o=t.severity,null!==(n=g[o])&&void 0!==n?n:g.Normal);return e.jsxs("div",{onClick:function(){return null==l?void 0:l(t.id)},style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 12px",borderRadius:8,backgroundColor:f.surface.control,border:"1px solid ".concat(f.border.subtle),cursor:l?"pointer":"default",transition:"background-color 0.2s"},onMouseEnter:function(e){l&&(e.currentTarget.style.backgroundColor=f.surface.hover)},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=f.surface.control},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:r,flexShrink:0}}),e.jsx("span",{style:{color:f.text.primary,fontSize:13,fontWeight:500,flex:1},children:t.message}),e.jsx("span",{style:{fontSize:11,color:f.text.muted,fontWeight:500},children:t.time})]}),t.category&&e.jsx("div",{style:{fontSize:12,color:f.text.muted,marginLeft:16},children:t.category})]},t.id)})})})},exports.SidePanelUI=hs,exports.ThemeEditor=function(t){var n,r,i,a=t.modeOverride,s=t.position,l=E(function(e){return e.mode}),c=E(function(e){return e.customLightThemeOverride}),p=E(function(e){return e.customDarkThemeOverride}),d=null!==(n=null!=a?a:l)&&void 0!==n?n:"dark",u=o.useMemo(function(){return j(d,"light"===d?c:p)},[d,c,p]),f=h(o.useState(!1),2),m=f[0],g=f[1],y=h(o.useState(u.surface),2),b=y[0],v=y[1],x=h(o.useState(u.text),2),w=x[0],S=x[1],T=h(o.useState(u.accent),2),O=T[0],P=T[1],N=h(o.useState(u.semantic),2),R=N[0],M=N[1],$=h(o.useState(u.border),2),I=$[0],A=$[1],B=h(o.useState(u.chart),2),L=B[0],D=B[1],z=h(o.useState(u.state),2),V=z[0],F=z[1];o.useEffect(function(){v(u.surface),S(u.text),P(u.accent),M(u.semantic),A(u.border),D(u.chart),F(u.state)},[u]);var W=function(e){C(d,e)},_={position:"fixed",bottom:null!==(r=null==s?void 0:s.bottom)&&void 0!==r?r:24,left:null==s?void 0:s.left,right:null!==(i=null==s?void 0:s.right)&&void 0!==i?i:null==(null==s?void 0:s.left)?24:void 0,zIndex:2100};return e.jsxs("div",{style:_,children:[e.jsx(xs,{variant:"secondary",size:"small",onClick:function(){return g(function(e){return!e})},children:m?"Hide SDK Theme":"Edit SDK Theme"}),m&&e.jsxs("div",{style:{marginTop:8,padding:12,borderRadius:8,backgroundColor:u.surface.panel,color:u.text.primary,minWidth:260,maxWidth:320,boxShadow:"0 4px 10px rgba(0,0,0,0.35)",fontSize:12},children:[e.jsxs("div",{style:{marginBottom:8,fontWeight:600,fontSize:13},children:["SDK Theme (mode: ",d,")"]}),e.jsxs(WM,{title:"Surface",children:[_M("topbar",b.topbar,function(e){v(function(t){return Object.assign(Object.assign({},t),{topbar:e})}),W({surface:{topbar:e}})}),_M("panel",b.panel,function(e){v(function(t){return Object.assign(Object.assign({},t),{panel:e})}),W({surface:{panel:e}})}),_M("card",b.card,function(e){v(function(t){return Object.assign(Object.assign({},t),{card:e})}),W({surface:{card:e}})}),_M("modal",b.modal,function(e){v(function(t){return Object.assign(Object.assign({},t),{modal:e})}),W({surface:{modal:e}})}),_M("control",b.control,function(e){v(function(t){return Object.assign(Object.assign({},t),{control:e})}),W({surface:{control:e}})}),_M("neutral",b.neutral,function(e){v(function(t){return Object.assign(Object.assign({},t),{neutral:e})}),W({surface:{neutral:e}})}),_M("backdrop",b.backdrop,function(e){v(function(t){return Object.assign(Object.assign({},t),{backdrop:e})}),W({surface:{backdrop:e}})}),_M("hover",b.hover,function(e){v(function(t){return Object.assign(Object.assign({},t),{hover:e})}),W({surface:{hover:e}})})]}),e.jsxs(WM,{title:"Text",children:[_M("primary",w.primary,function(e){S(function(t){return Object.assign(Object.assign({},t),{primary:e})}),W({text:{primary:e}})}),_M("muted",w.muted,function(e){S(function(t){return Object.assign(Object.assign({},t),{muted:e})}),W({text:{muted:e}})}),_M("onAccent",w.onAccent,function(e){S(function(t){return Object.assign(Object.assign({},t),{onAccent:e})}),W({text:{onAccent:e}})}),_M("inverted",w.inverted,function(e){S(function(t){return Object.assign(Object.assign({},t),{inverted:e})}),W({text:{inverted:e}})})]}),e.jsxs(WM,{title:"Accent",children:[_M("primary",O.primary,function(e){P(function(t){return Object.assign(Object.assign({},t),{primary:e})}),W({accent:{primary:e}})}),_M("secondary",O.secondary,function(e){P(function(t){return Object.assign(Object.assign({},t),{secondary:e})}),W({accent:{secondary:e}})})]}),e.jsxs(WM,{title:"Semantic",children:[_M("success",R.success,function(e){M(function(t){return Object.assign(Object.assign({},t),{success:e})}),W({semantic:{success:e}})}),_M("warning",R.warning,function(e){M(function(t){return Object.assign(Object.assign({},t),{warning:e})}),W({semantic:{warning:e}})}),_M("critical",R.critical,function(e){M(function(t){return Object.assign(Object.assign({},t),{critical:e})}),W({semantic:{critical:e}})}),_M("info",R.info,function(e){M(function(t){return Object.assign(Object.assign({},t),{info:e})}),W({semantic:{info:e}})})]}),e.jsxs(WM,{title:"Border",children:[_M("subtle",I.subtle,function(e){A(function(t){return Object.assign(Object.assign({},t),{subtle:e})}),W({border:{subtle:e}})}),_M("strong",I.strong,function(e){A(function(t){return Object.assign(Object.assign({},t),{strong:e})}),W({border:{strong:e}})})]}),e.jsxs(WM,{title:"Chart",children:[_M("grid",L.grid,function(e){D(function(t){return Object.assign(Object.assign({},t),{grid:e})}),W({chart:{grid:e}})}),_M("text",L.text,function(e){D(function(t){return Object.assign(Object.assign({},t),{text:e})}),W({chart:{text:e}})})]}),e.jsxs(WM,{title:"State",children:[_M("hover",V.hover,function(e){F(function(t){return Object.assign(Object.assign({},t),{hover:e})}),W({state:{hover:e}})}),_M("active",V.active,function(e){F(function(t){return Object.assign(Object.assign({},t),{active:e})}),W({state:{active:e}})}),_M("focus",V.focus,function(e){F(function(t){return Object.assign(Object.assign({},t),{focus:e})}),W({state:{focus:e}})})]}),e.jsx("div",{style:{marginTop:8,display:"flex",justifyContent:"flex-end"},children:e.jsx(xs,{variant:"outline",size:"small",onClick:function(){k(d)},children:"Reset SDK Theme"})})]})]})},exports.TopBar=PM,exports.TopCamerasList=function(t){var o=t.items,n=t.variant,r=void 0===n?"dark":n,i=t.onItemClick,a=t.title,s=t.description,l=void 0===s?"Top sources by activity count":s,c=P(),p=0===o.length,d=null!=a?a:o.length>0?"Top ".concat(o.length," Sources"):"Top Sources";return e.jsx(gs,{title:d,description:l,variant:r,empty:p,bodyMinHeight:180,children:!p&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:o.map(function(t,n){return e.jsxs("div",{onClick:function(){return null==i?void 0:i(t.id)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",borderRadius:8,backgroundColor:c.surface.control,border:"1px solid ".concat(c.border.subtle),cursor:i?"pointer":"default",transition:"background-color 0.2s"},onMouseEnter:function(e){i&&(e.currentTarget.style.backgroundColor=c.surface.hover)},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=c.surface.control},children:[e.jsxs("div",{style:{flex:1},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[e.jsx("span",{style:{width:20,height:20,borderRadius:"50%",backgroundColor:Cs(c.accent.primary,o.length)[n],display:"flex",alignItems:"center",justifyContent:"center",color:c.text.primary,fontSize:11,fontWeight:600,flexShrink:0},children:n+1}),e.jsx("span",{style:{color:c.text.primary,fontSize:14,fontWeight:500},children:t.name})]}),t.lastActivity&&e.jsxs("div",{style:{fontSize:12,color:c.text.muted,marginLeft:28},children:["Last: ",t.lastActivity]})]}),e.jsx("div",{style:{padding:"4px 10px",borderRadius:12,backgroundColor:"".concat(c.text.inverted,"1f"),color:c.text.muted,fontSize:13,fontWeight:600,minWidth:40,textAlign:"center"},children:t.count})]},t.id)})})})},exports.WidgetContainer=gs,exports.getBaseTheme=function(){return"light"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dark")?S:T},exports.getTheme=j,exports.resetTheme=k,exports.setCustomTheme=C,exports.setCustomThemes=function(e){e.light&&C("light",e.light),e.dark&&C("dark",e.dark)},exports.useAppTheme=P,exports.useThemeStore=E;
224
+ `:null,hE=Eh("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],!1!==o.animation&&t[o.animation],o.hasChildren&&t.withChildren,o.hasChildren&&!o.width&&t.fitContent,o.hasChildren&&!o.height&&t.heightAuto]}})(Rh(({theme:e})=>{const t=(o=e.shape.borderRadius,String(o).match(/[\d.\-+]*\s*(.*)/)[1]||"px");var o;const n=function(e){return parseFloat(e)}(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:fE||{animation:`${dE} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(\n 90deg,\n transparent,\n ${(e.vars||e).palette.action.hover},\n transparent\n )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:mE||{"&::after":{animation:`${uE} 2s linear 0.5s infinite`}}}]}})),gE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:i,component:a="span",height:s,style:l,variant:c="text",width:p,...d}=n,u={...n,animation:r,component:a,variant:c,hasChildren:Boolean(d.children)},f=(e=>{const{classes:t,variant:o,animation:n,hasChildren:r,width:i,height:a}=e;return am({root:["root",o,n,r&&"withChildren",r&&!i&&"fitContent",r&&!a&&"heightAuto"]},pE,t)})(u);return e.jsx(hE,{as:a,ref:o,className:Ju(f.root,i),ownerState:u,...d,style:{width:p,height:s,...l}})});function yE(e,t,o,n,r){return 1===o?Math.min(e+t,r):Math.max(e-t,n)}function bE(e,t){return e-t}function vE(e,t){const{index:o}=e.reduce((e,o,n)=>{const r=Math.abs(t-o);return null===e||r<e.distance||r===e.distance?{distance:r,index:n}:e},null)??{};return o}function xE(e,t){if(void 0!==t.current&&e.changedTouches){const o=e;for(let e=0;e<o.changedTouches.length;e+=1){const n=o.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function wE(e,t,o){return 100*(e-t)/(o-t)}function SE({values:e,newValue:t,index:o}){const n=e.slice();return n[o]=t,n.sort(bE)}function TE({sliderRef:e,activeIndex:t,setActive:o}){const n=Dh(e.current);e.current?.contains(n.activeElement)&&Number(n?.activeElement?.getAttribute("data-index"))===t||e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),o&&o(t)}function OE(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,o=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>o(e,t[n]))}(e,t)}"production"!==process.env.NODE_ENV&&(gE.propTypes={animation:Kc.oneOf(["pulse","wave",!1]),children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,height:Kc.oneOfType([Kc.number,Kc.string]),style:Kc.object,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),variant:Kc.oneOfType([Kc.oneOf(["circular","rectangular","rounded","text"]),Kc.string]),width:Kc.oneOfType([Kc.number,Kc.string])});const jE={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}%`})}},CE=e=>e;let kE;function EE(){return void 0===kE&&(kE="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),kE}function PE(e){const{"aria-labelledby":t,defaultValue:o,disabled:n=!1,disableSwap:r=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:c=0,name:p,onChange:d,onChangeCommitted:u,orientation:f="horizontal",rootRef:m,scale:h=CE,step:g=1,shiftStep:y=10,tabIndex:b,value:v}=e,x=l.useRef(void 0),[w,S]=l.useState(-1),[T,O]=l.useState(-1),[j,C]=l.useState(!1),k=l.useRef(0),E=l.useRef(null),[P,N]=_h({controlled:v,default:o??c,name:"Slider"}),R=d&&((e,t,o)=>{const n=e.nativeEvent||e,r=new n.constructor(n.type,n);Object.defineProperty(r,"target",{writable:!0,value:{value:t,name:p}}),E.current=t,d(r,t,o)}),M=Array.isArray(P);let $=M?P.slice().sort(bE):[P];$=$.map(e=>null==e?c:wf(e,c,s));const I=!0===a&&null!==g?[...Array(Math.floor((s-c)/g)+1)].map((e,t)=>({value:c+g*t})):a||[],A=I.map(e=>e.value),[B,L]=l.useState(-1),D=l.useRef(null),z=qh(m,D),V=e=>t=>{const o=Number(t.currentTarget.getAttribute("data-index"));dy(t.target)&&L(o),O(o),e?.onFocus?.(t)},F=e=>t=>{dy(t.target)||L(-1),O(-1),e?.onBlur?.(t)},W=(e,t)=>{const o=Number(e.currentTarget.getAttribute("data-index")),n=$[o],i=A.indexOf(n);let a=t;if(I&&null==g){const e=A[A.length-1];a=a>=e?e:a<=A[0]?A[0]:a<n?A[i-1]:A[i+1]}if(a=wf(a,c,s),M){r&&(a=wf(a,$[o-1]||-1/0,$[o+1]||1/0));const e=a;a=SE({values:$,newValue:a,index:o});let t=o;r||(t=a.indexOf(e)),TE({sliderRef:D,activeIndex:t})}N(a),L(o),R&&!OE(a,P)&&R(e,a,o),u&&u(e,E.current??a)},_=e=>t=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(t.key)){t.preventDefault();const e=Number(t.currentTarget.getAttribute("data-index")),o=$[e];let n=null;if(null!=g){const e=t.shiftKey?y:g;switch(t.key){case"ArrowUp":n=yE(o,e,1,c,s);break;case"ArrowRight":n=yE(o,e,i?-1:1,c,s);break;case"ArrowDown":n=yE(o,e,-1,c,s);break;case"ArrowLeft":n=yE(o,e,i?1:-1,c,s);break;case"PageUp":n=yE(o,y,1,c,s);break;case"PageDown":n=yE(o,y,-1,c,s);break;case"Home":n=c;break;case"End":n=s}}else if(I){const e=A[A.length-1],r=A.indexOf(o),a=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"].includes(t.key)?n=0===r?A[0]:A[r-1]:a.includes(t.key)&&(n=r===A.length-1?e:A[r+1])}null!=n&&W(t,n)}e?.onKeyDown?.(t)};xf(()=>{n&&D.current.contains(document.activeElement)&&document.activeElement?.blur()},[n]),n&&-1!==w&&S(-1),n&&-1!==B&&L(-1);const H=l.useRef(void 0);let q=f;i&&"horizontal"===f&&(q+="-reverse");const U=({finger:e,move:t=!1})=>{const{current:o}=D,{width:n,height:i,bottom:a,left:l}=o.getBoundingClientRect();let p,d;if(p=q.startsWith("vertical")?(a-e.y)/i:(e.x-l)/n,q.includes("-reverse")&&(p=1-p),d=function(e,t,o){return(o-t)*e+t}(p,c,s),g)d=function(e,t,o){const n=Math.round((e-o)/t)*t+o;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),o=t[0].split(".")[1];return(o?o.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}(d,g,c);else{const e=vE(A,d);d=A[e]}d=wf(d,c,s);let u=0;if(M){u=t?H.current:vE($,d),r&&(d=wf(d,$[u-1]||-1/0,$[u+1]||1/0));const e=d;d=SE({values:$,newValue:d,index:u}),r&&t||(u=d.indexOf(e),H.current=u)}return{newValue:d,activeIndex:u}},G=Hh(e=>{const t=xE(e,x);if(!t)return;if(k.current+=1,"mousemove"===e.type&&0===e.buttons)return void K(e);const{newValue:o,activeIndex:n}=U({finger:t,move:!0});TE({sliderRef:D,activeIndex:n,setActive:S}),N(o),!j&&k.current>2&&C(!0),R&&!OE(o,P)&&R(e,o,n)}),K=Hh(e=>{const t=xE(e,x);if(C(!1),!t)return;const{newValue:o}=U({finger:t,move:!0});S(-1),"touchend"===e.type&&O(-1),u&&u(e,E.current??o),x.current=void 0,Y()}),X=Hh(e=>{if(n)return;EE()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(x.current=t.identifier);const o=xE(e,x);if(!1!==o){const{newValue:t,activeIndex:n}=U({finger:o});TE({sliderRef:D,activeIndex:n,setActive:S}),N(t),R&&!OE(t,P)&&R(e,t,n)}k.current=0;const r=Dh(D.current);r.addEventListener("touchmove",G,{passive:!0}),r.addEventListener("touchend",K,{passive:!0})}),Y=l.useCallback(()=>{const e=Dh(D.current);e.removeEventListener("mousemove",G),e.removeEventListener("mouseup",K),e.removeEventListener("touchmove",G),e.removeEventListener("touchend",K)},[K,G]);l.useEffect(()=>{const{current:e}=D;return e.addEventListener("touchstart",X,{passive:EE()}),()=>{e.removeEventListener("touchstart",X),Y()}},[Y,X]),l.useEffect(()=>{n&&Y()},[n,Y]);const Z=wE(M?$[0]:c,c,s),J=wE($[$.length-1],c,s)-Z,Q=e=>t=>{e.onMouseLeave?.(t),O(-1)};let ee;return"vertical"===f&&(ee=i?"vertical-rl":"vertical-lr"),{active:w,axis:q,axisProps:jE,dragging:j,focusedThumbIndex:B,getHiddenInputProps:(o={})=>{const r=Ag(o),a={onChange:(l=r||{},e=>{l.onChange?.(e),W(e,e.target.valueAsNumber)}),onFocus:V(r||{}),onBlur:F(r||{}),onKeyDown:_(r||{})};var l;const d={...r,...a};return{tabIndex:b,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":h(s),"aria-valuemin":h(c),name:p,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":e.step??void 0,disabled:n,...o,...d,style:{...Rk,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ee}}},getRootProps:(e={})=>{const t=Ag(e),o={onMouseDown:(r=t||{},e=>{if(r.onMouseDown?.(e),n)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const t=xE(e,x);if(!1!==t){const{newValue:o,activeIndex:n}=U({finger:t});TE({sliderRef:D,activeIndex:n,setActive:S}),N(o),R&&!OE(o,P)&&R(e,o,n)}k.current=0;const o=Dh(D.current);o.addEventListener("mousemove",G,{passive:!0}),o.addEventListener("mouseup",K)})};var r;const i={...t,...o};return{...e,ref:z,...i}},getThumbProps:(e={})=>{const t=Ag(e),o={onMouseOver:(n=t||{},e=>{n.onMouseOver?.(e);const t=Number(e.currentTarget.getAttribute("data-index"));O(t)}),onMouseLeave:Q(t||{})};var n;return{...e,...t,...o}},marks:I,open:T,range:M,rootRef:z,trackLeap:J,trackOffset:Z,values:$,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}function NE(e){return tf("MuiSlider",e)}const RE=of("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"]);function ME(t){const{children:o,className:n,value:r}=t,i=(e=>{const{open:t}=e;return{offset:Ju(t&&RE.valueLabelOpen),circle:RE.valueLabelCircle,label:RE.valueLabelLabel}})(t);return o?l.cloneElement(o,{className:o.props.className},e.jsxs(l.Fragment,{children:[o.props.children,e.jsx("span",{className:Ju(i.offset,n),"aria-hidden":!0,children:e.jsx("span",{className:i.circle,children:e.jsx("span",{className:i.label,children:r})})})]})):null}function $E(e){return e}"production"!==process.env.NODE_ENV&&(ME.propTypes={children:Kc.element.isRequired,className:Kc.string,value:Kc.node});const IE=Eh("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`color${Ed(o.color)}`],"medium"!==o.size&&t[`size${Ed(o.size)}`],o.marked&&t.marked,"vertical"===o.orientation&&t.vertical,"inverted"===o.track&&t.trackInverted,!1===o.track&&t.trackFalse]}})(Rh(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${RE.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${RE.dragging}`]:{[`& .${RE.thumb}, & .${RE.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(My()).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}}]}))),AE=Eh("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}}]}),BE=Eh("span",{name:"MuiSlider",slot:"Track"})(Rh(({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(My()).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)})}}}))]}))),LE=Eh("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.thumb,t[`thumbColor${Ed(o.color)}`],"medium"!==o.size&&t[`thumbSize${Ed(o.size)}`]]}})(Rh(({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%)"},[`&.${RE.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(My()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${RE.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${RE.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),DE=Eh(ME,{name:"MuiSlider",slot:"ValueLabel"})(Rh(({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%"},[`&.${RE.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%"},[`&.${RE.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"}}]})));"production"!==process.env.NODE_ENV&&(DE.propTypes={children:Kc.element.isRequired,index:Kc.number.isRequired,open:Kc.bool.isRequired,value:Kc.node});const zE=Eh("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Ch(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:o}=e;return[t.mark,o&&t.markActive]}})(Rh(({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}}]}))),VE=Eh("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Ch(e)&&"markLabelActive"!==e})(Rh(({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}}]}))),FE=({children:e})=>e,WE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSlider"}),r=qf(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":s,component:c="span",components:p={},componentsProps:d={},color:u="primary",classes:f,className:m,disableSwap:h=!1,disabled:g=!1,getAriaLabel:y,getAriaValueText:b,marks:v=!1,max:x=100,min:w=0,name:S,onChange:T,onChangeCommitted:O,orientation:j="horizontal",shiftStep:C=10,size:k="medium",step:E=1,scale:P=$E,slotProps:N,slots:R,tabIndex:M,track:$="normal",value:I,valueLabelDisplay:A="off",valueLabelFormat:B=$E,...L}=n,D={...n,isRtl:r,max:x,min:w,classes:f,disabled:g,disableSwap:h,orientation:j,marks:v,color:u,size:k,step:E,shiftStep:C,scale:P,track:$,valueLabelDisplay:A,valueLabelFormat:B},{axisProps:z,getRootProps:V,getHiddenInputProps:F,getThumbProps:W,open:_,active:H,axis:q,focusedThumbIndex:U,range:G,dragging:K,marks:X,values:Y,trackOffset:Z,trackLeap:J,getThumbStyle:Q}=PE({...D,rootRef:o});D.marked=X.length>0&&X.some(e=>e.label),D.dragging=K,D.focusedThumbIndex=U;const ee=(e=>{const{disabled:t,dragging:o,marked:n,orientation:r,track:i,classes:a,color:s,size:l}=e;return am({root:["root",t&&"disabled",o&&"dragging",n&&"marked","vertical"===r&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",s&&`color${Ed(s)}`,l&&`size${Ed(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Ed(l)}`,s&&`thumbColor${Ed(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},NE,a)})(D),te=R?.root??p.Root??IE,oe=R?.rail??p.Rail??AE,ne=R?.track??p.Track??BE,re=R?.thumb??p.Thumb??LE,ie=R?.valueLabel??p.ValueLabel??DE,ae=R?.mark??p.Mark??zE,se=R?.markLabel??p.MarkLabel??VE,le=R?.input??p.Input??"input",ce=N?.root??d.root,pe=N?.rail??d.rail,de=N?.track??d.track,ue=N?.thumb??d.thumb,fe=N?.valueLabel??d.valueLabel,me=N?.mark??d.mark,he=N?.markLabel??d.markLabel,ge=N?.input??d.input,ye=Hv({elementType:te,getSlotProps:V,externalSlotProps:ce,externalForwardedProps:L,additionalProps:{...(be=te,(!be||!Mg(be))&&{as:c})},ownerState:{...D,...ce?.ownerState},className:[ee.root,m]});var be;const ve=Hv({elementType:oe,externalSlotProps:pe,ownerState:D,className:ee.rail}),xe=Hv({elementType:ne,externalSlotProps:de,additionalProps:{style:{...z[q].offset(Z),...z[q].leap(J)}},ownerState:{...D,...de?.ownerState},className:ee.track}),we=Hv({elementType:re,getSlotProps:W,externalSlotProps:ue,ownerState:{...D,...ue?.ownerState},className:ee.thumb}),Se=Hv({elementType:ie,externalSlotProps:fe,ownerState:{...D,...fe?.ownerState},className:ee.valueLabel}),Te=Hv({elementType:ae,externalSlotProps:me,ownerState:D,className:ee.mark}),Oe=Hv({elementType:se,externalSlotProps:he,ownerState:D,className:ee.markLabel}),je=Hv({elementType:le,getSlotProps:F,externalSlotProps:ge,ownerState:D});return e.jsxs(te,{...ye,children:[e.jsx(oe,{...ve}),e.jsx(ne,{...xe}),X.filter(e=>e.value>=w&&e.value<=x).map((t,o)=>{const n=wE(t.value,w,x),r=z[q].offset(n);let i;return i=!1===$?Y.includes(t.value):"normal"===$&&(G?t.value>=Y[0]&&t.value<=Y[Y.length-1]:t.value<=Y[0])||"inverted"===$&&(G?t.value<=Y[0]||t.value>=Y[Y.length-1]:t.value>=Y[0]),e.jsxs(l.Fragment,{children:[e.jsx(ae,{"data-index":o,...Te,...!Mg(ae)&&{markActive:i},style:{...r,...Te.style},className:Ju(Te.className,i&&ee.markActive)}),null!=t.label?e.jsx(se,{"aria-hidden":!0,"data-index":o,...Oe,...!Mg(se)&&{markLabelActive:i},style:{...r,...Oe.style},className:Ju(ee.markLabel,Oe.className,i&&ee.markLabelActive),children:t.label}):null]},o)}),Y.map((t,o)=>{const n=wE(t,w,x),r=z[q].offset(n),l="off"===A?FE:ie;return e.jsx(l,{...!Mg(l)&&{valueLabelFormat:B,valueLabelDisplay:A,value:"function"==typeof B?B(P(t),o):B,index:o,open:_===o||H===o||"on"===A,disabled:g},...Se,children:e.jsx(re,{"data-index":o,...we,className:Ju(ee.thumb,we.className,H===o&&ee.active,U===o&&ee.focusVisible),style:{...r,...Q(o),...we.style},children:e.jsx(le,{"data-index":o,"aria-label":y?y(o):i,"aria-valuenow":P(t),"aria-labelledby":s,"aria-valuetext":b?b(P(t),o):a,value:Y[o],...je})})},o)})]})});function _E(e){return tf("MuiSnackbarContent",e)}"production"!==process.env.NODE_ENV&&(WE.propTypes={"aria-label":Gh(Kc.string,e=>Array.isArray(e.value||e.defaultValue)&&null!=e["aria-label"]?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":Kc.string,"aria-valuetext":Gh(Kc.string,e=>Array.isArray(e.value||e.defaultValue)&&null!=e["aria-valuetext"]?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["primary","secondary","error","info","success","warning"]),Kc.string]),components:Kc.shape({Input:Kc.elementType,Mark:Kc.elementType,MarkLabel:Kc.elementType,Rail:Kc.elementType,Root:Kc.elementType,Thumb:Kc.elementType,Track:Kc.elementType,ValueLabel:Kc.elementType}),componentsProps:Kc.shape({input:Kc.oneOfType([Kc.func,Kc.object]),mark:Kc.oneOfType([Kc.func,Kc.object]),markLabel:Kc.oneOfType([Kc.func,Kc.object]),rail:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),thumb:Kc.oneOfType([Kc.func,Kc.object]),track:Kc.oneOfType([Kc.func,Kc.object]),valueLabel:Kc.oneOfType([Kc.func,Kc.shape({children:Kc.element,className:Kc.string,open:Kc.bool,style:Kc.object,value:Kc.node,valueLabelDisplay:Kc.oneOf(["auto","off","on"])})])}),defaultValue:Kc.oneOfType([Kc.arrayOf(Kc.number),Kc.number]),disabled:Kc.bool,disableSwap:Kc.bool,getAriaLabel:Kc.func,getAriaValueText:Kc.func,marks:Kc.oneOfType([Kc.arrayOf(Kc.shape({label:Kc.node,value:Kc.number.isRequired})),Kc.bool]),max:Kc.number,min:Kc.number,name:Kc.string,onChange:Kc.func,onChangeCommitted:Kc.func,orientation:Kc.oneOf(["horizontal","vertical"]),scale:Kc.func,shiftStep:Kc.number,size:Kc.oneOfType([Kc.oneOf(["small","medium"]),Kc.string]),slotProps:Kc.shape({input:Kc.oneOfType([Kc.func,Kc.object]),mark:Kc.oneOfType([Kc.func,Kc.object]),markLabel:Kc.oneOfType([Kc.func,Kc.object]),rail:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),thumb:Kc.oneOfType([Kc.func,Kc.object]),track:Kc.oneOfType([Kc.func,Kc.object]),valueLabel:Kc.oneOfType([Kc.func,Kc.shape({children:Kc.element,className:Kc.string,open:Kc.bool,style:Kc.object,value:Kc.node,valueLabelDisplay:Kc.oneOf(["auto","off","on"])})])}),slots:Kc.shape({input:Kc.elementType,mark:Kc.elementType,markLabel:Kc.elementType,rail:Kc.elementType,root:Kc.elementType,thumb:Kc.elementType,track:Kc.elementType,valueLabel:Kc.elementType}),step:Kc.number,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),tabIndex:Kc.number,track:Kc.oneOf(["inverted","normal",!1]),value:Kc.oneOfType([Kc.arrayOf(Kc.number),Kc.number]),valueLabelDisplay:Kc.oneOf(["auto","off","on"]),valueLabelFormat:Kc.oneOfType([Kc.func,Kc.string])}),of("MuiSnackbarContent",["root","message","action"]);const HE=Eh(Yg,{name:"MuiSnackbarContent",slot:"Root"})(Rh(({theme:e})=>{const t="light"===e.palette.mode?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Af(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Af(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),qE=Eh("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),UE=Eh("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),GE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSnackbarContent"}),{action:r,className:i,message:a,role:s="alert",...l}=n,c=n,p=(e=>{const{classes:t}=e;return am({root:["root"],action:["action"],message:["message"]},_E,t)})(c);return e.jsxs(HE,{role:s,elevation:6,className:Ju(p.root,i),ownerState:c,ref:o,...l,children:[e.jsx(qE,{className:p.message,ownerState:c,children:a}),r?e.jsx(UE,{className:p.action,ownerState:c,children:r}):null]})});function KE(e){return tf("MuiSnackbar",e)}"production"!==process.env.NODE_ENV&&(GE.propTypes={action:Kc.node,classes:Kc.object,className:Kc.string,message:Kc.node,role:Kc.string,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const XE=Eh("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`anchorOrigin${Ed(o.anchorOrigin.vertical)}${Ed(o.anchorOrigin.horizontal)}`]]}})(Rh(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),YE=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSnackbar"}),r=jh(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:d,className:u,ClickAwayListenerProps:f,ContentProps:m,disableWindowBlurListener:h=!1,message:g,onBlur:y,onClose:b,onFocus:v,onMouseEnter:x,onMouseLeave:w,open:S,resumeHideDuration:T,slots:O={},slotProps:j={},TransitionComponent:C,transitionDuration:k=i,TransitionProps:{onEnter:E,onExited:P,...N}={},...R}=n,M={...n,anchorOrigin:{vertical:s,horizontal:c},autoHideDuration:p,disableWindowBlurListener:h,TransitionComponent:C,transitionDuration:k},$=(e=>{const{classes:t,anchorOrigin:o}=e;return am({root:["root",`anchorOrigin${Ed(o.vertical)}${Ed(o.horizontal)}`]},KE,t)})(M),{getRootProps:I,onClickAway:A}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:o=!1,onClose:n,open:r,resumeHideDuration:i}=e,a=Eg();l.useEffect(()=>{if(r)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"===e.key&&n?.(e,"escapeKeyDown")}},[r,n]);const s=Hh((e,t)=>{n?.(e,t)}),c=Hh(e=>{n&&null!=e&&a.start(e,()=>{s(null,"timeout")})});l.useEffect(()=>(r&&c(t),a.clear),[r,t,c,a]);const p=a.clear,d=l.useCallback(()=>{null!=t&&c(null!=i?i:.5*t)},[t,i,c]),u=e=>t=>{const o=e.onFocus;o?.(t),p()},f=e=>t=>{const o=e.onMouseEnter;o?.(t),p()},m=e=>t=>{const o=e.onMouseLeave;o?.(t),d()};return l.useEffect(()=>{if(!o&&r)return window.addEventListener("focus",d),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",p)}},[o,r,d,p]),{getRootProps:(t={})=>{const o={...Ag(e),...Ag(t)};return{role:"presentation",...t,...o,onBlur:(n=o,e=>{const t=n.onBlur;t?.(e),d()}),onFocus:u(o),onMouseEnter:f(o),onMouseLeave:m(o)};var n},onClickAway:e=>{n?.(e,"clickaway")}}}(M),[B,L]=l.useState(!0),D={slots:{transition:C,...O},slotProps:{content:m,clickAwayListener:f,transition:N,...j}},[z,V]=Dg("root",{ref:o,className:[$.root,u],elementType:XE,getSlotProps:I,externalForwardedProps:{...D,...R},ownerState:M}),[F,{ownerState:W,..._}]=Dg("clickAwayListener",{elementType:KS,externalForwardedProps:D,getSlotProps:e=>({onClickAway:(...t)=>{const o=t[0];e.onClickAway?.(...t),o?.defaultMuiPrevented||A(...t)}}),ownerState:M}),[H,q]=Dg("content",{elementType:GE,shouldForwardComponentProp:!0,externalForwardedProps:D,additionalProps:{message:g,action:a},ownerState:M}),[U,G]=Dg("transition",{elementType:zO,externalForwardedProps:D,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{L(!1),E&&E(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{L(!0),P&&P(e)})(...t)}}),additionalProps:{appear:!0,in:S,timeout:k,direction:"top"===s?"down":"up"},ownerState:M});return!S&&B?null:e.jsx(F,{..._,...O.clickAwayListener&&{ownerState:W},children:e.jsx(z,{...V,children:e.jsx(U,{...G,children:d||e.jsx(H,{...q})})})})});"production"!==process.env.NODE_ENV&&(YE.propTypes={action:Kc.node,anchorOrigin:Kc.shape({horizontal:Kc.oneOf(["center","left","right"]).isRequired,vertical:Kc.oneOf(["bottom","top"]).isRequired}),autoHideDuration:Kc.number,children:Kc.element,classes:Kc.object,className:Kc.string,ClickAwayListenerProps:Kc.object,ContentProps:Kc.object,disableWindowBlurListener:Kc.bool,key:()=>null,message:Kc.node,onBlur:Kc.func,onClose:Kc.func,onFocus:Kc.func,onMouseEnter:Kc.func,onMouseLeave:Kc.func,open:Kc.bool,resumeHideDuration:Kc.number,slotProps:Kc.shape({clickAwayListener:Kc.oneOfType([Kc.func,Kc.object]),content:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({clickAwayListener:Kc.elementType,content:Kc.elementType,root:Kc.elementType,transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TransitionComponent:Kc.elementType,transitionDuration:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),TransitionProps:Kc.object});const ZE={entering:{transform:"none"},entered:{transform:"none"}},JE=l.forwardRef(function(t,o){const n=jh(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:c,in:p,onEnter:d,onEntered:u,onEntering:f,onExit:m,onExited:h,onExiting:g,style:y,timeout:b=r,TransitionComponent:v=sg,...x}=t,w=l.useRef(null),S=qh(w,qv(s),o),T=e=>t=>{if(e){const o=w.current;void 0===t?e(o):e(o,t)}},O=T(f),j=T((e,t)=>{Ng(e);const o=Rg({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",o),e.style.transition=n.transitions.create("transform",o),d&&d(e,t)}),C=T(u),k=T(g),E=T(e=>{const t=Rg({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),m&&m(e)}),P=T(h);return e.jsx(v,{appear:a,in:p,nodeRef:w,onEnter:j,onEntered:C,onEntering:O,onExit:E,onExited:P,onExiting:k,addEndListener:e=>{i&&i(w.current,e)},timeout:b,...x,children:(e,{ownerState:t,...o})=>l.cloneElement(s,{style:{transform:"scale(0)",visibility:"exited"!==e||p?void 0:"hidden",...ZE[e],...y,...s.props.style},ref:S,...o})})});function QE(e){return tf("MuiSpeedDial",e)}"production"!==process.env.NODE_ENV&&(JE.propTypes={addEndListener:Kc.func,appear:Kc.bool,children:dw.isRequired,easing:Kc.oneOfType([Kc.shape({enter:Kc.string,exit:Kc.string}),Kc.string]),in:Kc.bool,onEnter:Kc.func,onEntered:Kc.func,onEntering:Kc.func,onExit:Kc.func,onExited:Kc.func,onExiting:Kc.func,style:Kc.object,timeout:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})])});const eP=of("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function tP(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}const oP=Eh("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`direction${Ed(o.direction)}`]]}})(Rh(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${eP.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${eP.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:48}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${eP.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${eP.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}}}]}))),nP=Eh(tO,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),rP=Eh("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.actions,!o.open&&t.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),iP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSpeedDial"}),r=jh(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{ariaLabel:a,FabProps:{ref:s,...c}={},children:p,className:d,direction:u="up",hidden:f=!1,icon:m,onBlur:h,onClose:g,onFocus:y,onKeyDown:b,onMouseEnter:v,onMouseLeave:x,onOpen:w,open:S,openIcon:T,slots:O={},slotProps:j={},TransitionComponent:C,TransitionProps:k,transitionDuration:E=i,...P}=n,[N,R]=_h({controlled:S,default:!1,name:"SpeedDial",state:"open"}),M={...n,open:N,direction:u},$=(e=>{const{classes:t,open:o,direction:n}=e;return am({root:["root",`direction${Ed(n)}`],fab:["fab"],actions:["actions",!o&&"actionsClosed"]},QE,t)})(M),I=Eg(),A=l.useRef(0),B=l.useRef(),L=l.useRef([]);L.current=[L.current[0]];const D=qh(s,l.useCallback(e=>{L.current[0]=e},[])),z=(e,t,o)=>n=>{L.current[e+1]=n,t&&t(n),o&&o(n)};l.useEffect(()=>{N||(A.current=0,B.current=void 0)},[N]);const V=e=>{"mouseleave"===e.type&&x&&x(e),"blur"===e.type&&h&&h(e),I.clear(),"blur"===e.type?I.start(0,()=>{R(!1),g&&g(e,"blur")}):(R(!1),g&&g(e,"mouseLeave"))},F=e=>{"mouseenter"===e.type&&v&&v(e),"focus"===e.type&&y&&y(e),I.clear(),N||I.start(0,()=>{R(!0),w&&w(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])})},W=a.replace(/^[^a-z]+|[^\w:.-]+/gi,""),_=l.Children.toArray(p).filter(e=>("production"!==process.env.NODE_ENV&&Kp.isFragment(e),l.isValidElement(e))),H=_.map((e,t)=>{const{FabProps:{ref:o}={},slotProps:n={},tooltipPlacement:r}=e.props,{fab:{ref:i,...a}={},...s}=n,c=r||("vertical"===tP(u)?"left":"top");return l.cloneElement(e,{slotProps:{fab:{...a,ref:z(t,o,i)},...s},delay:30*(N?t:_.length-t),open:N,tooltipPlacement:c,id:`${W}-action-${t}`})}),q={slots:{transition:C,...O},slotProps:{transition:k,...j}},[U,G]=Dg("root",{elementType:oP,externalForwardedProps:{...q,...P},ownerState:M,ref:o,className:Ju($.root,d),additionalProps:{role:"presentation"},getSlotProps:e=>({...e,onKeyDown:t=>{e.onKeyDown?.(t),(e=>{b&&b(e);const t=e.key.replace("Arrow","").toLowerCase(),{current:o=t}=B;if("Escape"===e.key)return R(!1),L.current[0].focus(),void(g&&g(e,"escapeKeyDown"));if(tP(t)===tP(o)&&void 0!==tP(t)){e.preventDefault();const n=t===o?1:-1,r=wf(A.current+n,0,L.current.length-1);L.current[r].focus(),A.current=r,B.current=o}})(t)},onBlur:t=>{e.onBlur?.(t),V(t)},onFocus:t=>{e.onFocus?.(t),F(t)},onMouseEnter:t=>{e.onMouseEnter?.(t),F(t)},onMouseLeave:t=>{e.onMouseLeave?.(t),V(t)}})}),[K,X]=Dg("transition",{elementType:JE,externalForwardedProps:q,ownerState:M});return e.jsxs(U,{...G,children:[e.jsx(K,{in:!f,timeout:E,unmountOnExit:!0,...X,children:e.jsx(nP,{color:"primary","aria-label":a,"aria-haspopup":"true","aria-expanded":N,"aria-controls":`${W}-actions`,...c,onClick:e=>{c.onClick&&c.onClick(e),I.clear(),N?(R(!1),g&&g(e,"toggle")):(R(!0),w&&w(e,"toggle"))},className:Ju($.fab,c.className),ref:D,ownerState:M,children:l.isValidElement(m)&&um(m,["SpeedDialIcon"])?l.cloneElement(m,{open:N}):m})}),e.jsx(rP,{id:`${W}-actions`,role:"menu","aria-orientation":tP(u),className:Ju($.actions,!N&&$.actionsClosed),ownerState:M,children:H})]})});function aP(e){return tf("MuiTooltip",e)}"production"!==process.env.NODE_ENV&&(iP.propTypes={ariaLabel:Kc.string.isRequired,children:Kc.node,classes:Kc.object,className:Kc.string,direction:Kc.oneOf(["down","left","right","up"]),FabProps:Kc.object,hidden:Kc.bool,icon:Kc.node,onBlur:Kc.func,onClose:Kc.func,onFocus:Kc.func,onKeyDown:Kc.func,onMouseEnter:Kc.func,onMouseLeave:Kc.func,onOpen:Kc.func,open:Kc.bool,openIcon:Kc.node,slotProps:Kc.shape({root:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({root:Kc.elementType,transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TransitionComponent:Kc.elementType,transitionDuration:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),TransitionProps:Kc.object});const sP=of("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),lP=Eh(ex,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.popper,!o.disableInteractive&&t.popperInteractive,o.arrow&&t.popperArrow,!o.open&&t.popperClose]}})(Rh(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${sP.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${sP.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${sP.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${sP.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${sP.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${sP.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${sP.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${sP.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),cP=Eh("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.tooltip,o.touch&&t.touch,o.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ed(o.placement.split("-")[0])}`]]}})(Rh(({theme:e})=>{return{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,[`.${sP.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${sP.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${sP.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${sP.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${sP.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${sP.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${sP.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),pP=Eh("span",{name:"MuiTooltip",slot:"Arrow"})(Rh(({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 dP=!1;const uP=new kg;let fP={x:0,y:0};function mP(e,t){return(o,...n)=>{t&&t(o,...n),e(o,...n)}}const hP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:i,classes:a,components:s={},componentsProps:c={},describeChild:p=!1,disableFocusListener:d=!1,disableHoverListener:u=!1,disableInteractive:f=!1,disableTouchListener:m=!1,enterDelay:h=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:b=!1,id:v,leaveDelay:x=0,leaveTouchDelay:w=1500,onClose:S,onOpen:T,open:O,placement:j="bottom",PopperComponent:C,PopperProps:k={},slotProps:E={},slots:P={},title:N,TransitionComponent:R,TransitionProps:M,...$}=n,I=l.isValidElement(i)?i:e.jsx("span",{children:i}),A=jh(),B=qf(),[L,D]=l.useState(),[z,V]=l.useState(null),F=l.useRef(!1),W=f||b,_=Eg(),H=Eg(),q=Eg(),U=Eg(),[G,K]=_h({controlled:O,default:!1,name:"Tooltip",state:"open"});let X=G;if("production"!==process.env.NODE_ENV){const{current:e}=l.useRef(void 0!==O);l.useEffect(()=>{L&&L.disabled&&!e&&""!==N&&L.tagName.toLowerCase()},[N,L,e])}const Y=Yf(v),Z=l.useRef(),J=Hh(()=>{void 0!==Z.current&&(document.body.style.WebkitUserSelect=Z.current,Z.current=void 0),U.clear()});l.useEffect(()=>J,[J]);const Q=e=>{uP.clear(),dP=!0,K(!0),T&&!X&&T(e)},ee=Hh(e=>{uP.start(800+x,()=>{dP=!1}),K(!1),S&&X&&S(e),_.start(A.transitions.duration.shortest,()=>{F.current=!1})}),te=e=>{F.current&&"touchstart"!==e.type||(L&&L.removeAttribute("title"),H.clear(),q.clear(),h||dP&&g?H.start(dP?g:h,()=>{Q(e)}):Q(e))},oe=e=>{H.clear(),q.start(x,()=>{ee(e)})},[,ne]=l.useState(!1),re=e=>{dy(e.target)||(ne(!1),oe(e))},ie=e=>{L||D(e.currentTarget),dy(e.target)&&(ne(!0),te(e))},ae=e=>{F.current=!0;const t=I.props;t.onTouchStart&&t.onTouchStart(e)};l.useEffect(()=>{if(X)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}},[ee,X]);const se=qh(qv(I),D,o);N||0===N||(X=!1);const le=l.useRef(),ce={},pe="string"==typeof N;p?(ce.title=X||!pe||u?null:N,ce["aria-describedby"]=X?Y:null):(ce["aria-label"]=pe?N:null,ce["aria-labelledby"]=X&&!pe?Y:null);const de={...ce,...$,...I.props,className:Ju($.className,I.props.className),onTouchStart:ae,ref:se,...b?{onMouseMove:e=>{const t=I.props;t.onMouseMove&&t.onMouseMove(e),fP={x:e.clientX,y:e.clientY},le.current&&le.current.update()}}:{}};"production"!==process.env.NODE_ENV&&(de["data-mui-internal-clone-element"]=!0,l.useEffect(()=>{L&&L.getAttribute("data-mui-internal-clone-element")},[L]));const ue={};m||(de.onTouchStart=e=>{ae(e),q.clear(),_.clear(),J(),Z.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(y,()=>{document.body.style.WebkitUserSelect=Z.current,te(e)})},de.onTouchEnd=e=>{I.props.onTouchEnd&&I.props.onTouchEnd(e),J(),q.start(w,()=>{ee(e)})}),u||(de.onMouseOver=mP(te,de.onMouseOver),de.onMouseLeave=mP(oe,de.onMouseLeave),W||(ue.onMouseOver=te,ue.onMouseLeave=oe)),d||(de.onFocus=mP(ie,de.onFocus),de.onBlur=mP(re,de.onBlur),W||(ue.onFocus=ie,ue.onBlur=re)),"production"!==process.env.NODE_ENV&&I.props.title;const fe={...n,isRtl:B,arrow:r,disableInteractive:W,placement:j,PopperComponentProp:C,touch:F.current},me="function"==typeof E.popper?E.popper(fe):E.popper,he=l.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(z),options:{element:z,padding:4}}];return k.popperOptions?.modifiers&&(e=e.concat(k.popperOptions.modifiers)),me?.popperOptions?.modifiers&&(e=e.concat(me.popperOptions.modifiers)),{...k.popperOptions,...me?.popperOptions,modifiers:e}},[z,k.popperOptions,me?.popperOptions]),ge=(e=>{const{classes:t,disableInteractive:o,arrow:n,touch:r,placement:i}=e;return am({popper:["popper",!o&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",r&&"touch",`tooltipPlacement${Ed(i.split("-")[0])}`],arrow:["arrow"]},aP,t)})(fe),ye="function"==typeof E.transition?E.transition(fe):E.transition,be={slots:{popper:s.Popper,transition:s.Transition??R,tooltip:s.Tooltip,arrow:s.Arrow,...P},slotProps:{arrow:E.arrow??c.arrow,popper:{...k,...me??c.popper},tooltip:E.tooltip??c.tooltip,transition:{...M,...ye??c.transition}}},[ve,xe]=Dg("popper",{elementType:lP,externalForwardedProps:be,ownerState:fe,className:Ju(ge.popper,k?.className)}),[we,Se]=Dg("transition",{elementType:zO,externalForwardedProps:be,ownerState:fe}),[Te,Oe]=Dg("tooltip",{elementType:cP,className:ge.tooltip,externalForwardedProps:be,ownerState:fe}),[je,Ce]=Dg("arrow",{elementType:pP,className:ge.arrow,externalForwardedProps:be,ownerState:fe,ref:V});return e.jsxs(l.Fragment,{children:[l.cloneElement(I,de),e.jsx(ve,{as:C??ex,placement:j,anchorEl:b?{getBoundingClientRect:()=>({top:fP.y,left:fP.x,right:fP.x,bottom:fP.y,width:0,height:0})}:L,popperRef:le,open:!!L&&X,id:Y,transition:!0,...ue,...xe,popperOptions:he,children:({TransitionProps:t})=>e.jsx(we,{timeout:A.transitions.duration.shorter,...t,...Se,children:e.jsxs(Te,{...Oe,children:[N,r?e.jsx(je,{...Ce}):null]})})})]})});function gP(e){return tf("MuiSpeedDialAction",e)}"production"!==process.env.NODE_ENV&&(hP.propTypes={arrow:Kc.bool,children:dw.isRequired,classes:Kc.object,className:Kc.string,components:Kc.shape({Arrow:Kc.elementType,Popper:Kc.elementType,Tooltip:Kc.elementType,Transition:Kc.elementType}),componentsProps:Kc.shape({arrow:Kc.object,popper:Kc.object,tooltip:Kc.object,transition:Kc.object}),describeChild:Kc.bool,disableFocusListener:Kc.bool,disableHoverListener:Kc.bool,disableInteractive:Kc.bool,disableTouchListener:Kc.bool,enterDelay:Kc.number,enterNextDelay:Kc.number,enterTouchDelay:Kc.number,followCursor:Kc.bool,id:Kc.string,leaveDelay:Kc.number,leaveTouchDelay:Kc.number,onClose:Kc.func,onOpen:Kc.func,open:Kc.bool,placement:Kc.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:Kc.elementType,PopperProps:Kc.object,slotProps:Kc.shape({arrow:Kc.oneOfType([Kc.func,Kc.object]),popper:Kc.oneOfType([Kc.func,Kc.object]),tooltip:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({arrow:Kc.elementType,popper:Kc.elementType,tooltip:Kc.elementType,transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),title:Kc.node,TransitionComponent:Kc.elementType,TransitionProps:Kc.object});const yP=of("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),bP=Eh(tO,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.fab,!o.open&&t.fabClosed]}})(Rh(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:Af(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:e})=>!e.open,style:{opacity:0,transform:"scale(0)"}}]}))),vP=Eh("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.staticTooltip,!o.open&&t.staticTooltipClosed,t[`tooltipPlacement${Ed(o.tooltipPlacement)}`]]}})(Rh(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${yP.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:e})=>!e.open,style:{[`& .${yP.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${yP.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${yP.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),xP=Eh("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(Rh(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),wP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSpeedDialAction"}),{className:r,delay:i=0,FabProps:a={},icon:s,id:c,open:p,TooltipClasses:d,tooltipOpen:u=!1,tooltipPlacement:f="left",tooltipTitle:m,slots:h={},slotProps:g={},...y}=n,b={...n,tooltipPlacement:f},v=(e=>{const{open:t,tooltipPlacement:o,classes:n}=e;return am({fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${Ed(o)}`,!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]},gP,n)})(b),x={slots:h,slotProps:{fab:a,...g,tooltip:Uh("function"==typeof g.tooltip?g.tooltip(b):g.tooltip,{title:m,open:u,placement:f,classes:d})}},[w,S]=l.useState(x.slotProps.tooltip?.open),T={transitionDelay:`${i}ms`},[O,j]=Dg("fab",{elementType:bP,externalForwardedProps:x,ownerState:b,shouldForwardComponentProp:!0,className:Ju(v.fab,r),additionalProps:{style:T,tabIndex:-1,role:"menuitem",size:"small"}}),[C,k]=Dg("tooltip",{elementType:hP,externalForwardedProps:x,shouldForwardComponentProp:!0,ref:o,additionalProps:{id:c},ownerState:b,getSlotProps:e=>({...e,onClose:t=>{e.onClose?.(t),S(!1)},onOpen:t=>{e.onOpen?.(t),S(!0)}})}),[E,P]=Dg("staticTooltip",{elementType:vP,externalForwardedProps:x,ownerState:b,ref:o,className:v.staticTooltip,additionalProps:{id:c}}),[N,R]=Dg("staticTooltipLabel",{elementType:xP,externalForwardedProps:x,ownerState:b,className:v.staticTooltipLabel,additionalProps:{style:T,id:`${c}-label`}}),M=e.jsx(O,{...j,children:s});return k.open?e.jsxs(E,{...P,...y,children:[e.jsx(N,{...R,children:k.title}),l.cloneElement(M,{"aria-labelledby":`${c}-label`})]}):(!p&&w&&S(!1),e.jsx(C,{...k,title:k.title,open:p&&w,placement:k.placement,classes:k.classes,...y,children:M}))});"production"!==process.env.NODE_ENV&&(wP.propTypes={classes:Kc.object,className:Kc.string,delay:Kc.number,FabProps:Kc.object,icon:Kc.node,id:Kc.string,open:Kc.bool,slotProps:Kc.shape({fab:Kc.oneOfType([Kc.func,Kc.object]),staticTooltip:Kc.oneOfType([Kc.func,Kc.object]),staticTooltipLabel:Kc.oneOfType([Kc.func,Kc.object]),tooltip:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({fab:Kc.elementType,staticTooltip:Kc.elementType,staticTooltipLabel:Kc.elementType,tooltip:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TooltipClasses:Kc.object,tooltipOpen:Kc.bool,tooltipPlacement:Kc.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:Kc.node});var SP=Bh(e.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function TP(e){return tf("MuiSpeedDialIcon",e)}const OP=of("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),jP=Eh("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${OP.icon}`]:t.icon},{[`& .${OP.icon}`]:o.open&&t.iconOpen},{[`& .${OP.icon}`]:o.open&&o.openIcon&&t.iconWithOpenIconOpen},{[`& .${OP.openIcon}`]:t.openIcon},{[`& .${OP.openIcon}`]:o.open&&t.openIconOpen},t.root]}})(Rh(({theme:e})=>({height:24,[`& .${OP.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${OP.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:e})=>e.open,style:{[`& .${OP.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:e})=>e.open&&e.openIcon,style:{[`& .${OP.icon}`]:{opacity:0}}},{props:({ownerState:e})=>e.open,style:{[`& .${OP.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),CP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSpeedDialIcon"}),{className:r,icon:i,open:a,openIcon:s,...c}=n,p=n,d=(e=>{const{classes:t,open:o,openIcon:n}=e;return am({root:["root"],icon:["icon",o&&"iconOpen",n&&o&&"iconWithOpenIconOpen"],openIcon:["openIcon",o&&"openIconOpen"]},TP,t)})(p);function u(e,t){return l.isValidElement(e)?l.cloneElement(e,{className:t}):e}return e.jsxs(jP,{className:Ju(d.root,r),ref:o,ownerState:p,...c,children:[s?u(s,d.openIcon):null,i?u(i,d.icon):e.jsx(SP,{className:d.icon})]})});"production"!==process.env.NODE_ENV&&(CP.propTypes={classes:Kc.object,className:Kc.string,icon:Kc.node,open:Kc.bool,openIcon:Kc.node,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),CP.muiName="SpeedDialIcon";const kP=Vm({createStyledComponent:Eh("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Mh({props:e,name:"MuiStack"})});"production"!==process.env.NODE_ENV&&(kP.propTypes={children:Kc.node,component:Kc.elementType,direction:Kc.oneOfType([Kc.oneOf(["column-reverse","column","row-reverse","row"]),Kc.arrayOf(Kc.oneOf(["column-reverse","column","row-reverse","row"])),Kc.object]),divider:Kc.node,spacing:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.number,Kc.string])),Kc.number,Kc.object,Kc.string]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),useFlexGap:Kc.bool}),of("MuiStack",["root"]);const EP=l.createContext({});"production"!==process.env.NODE_ENV&&(EP.displayName="StepperContext");const PP=l.createContext({});function NP(e){return tf("MuiStep",e)}"production"!==process.env.NODE_ENV&&(PP.displayName="StepContext"),of("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const RP=Eh("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),MP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStep"}),{active:r,children:i,className:a,component:s="div",completed:c,disabled:p,expanded:d=!1,index:u,last:f,...m}=n,{activeStep:h,connector:g,alternativeLabel:y,orientation:b,nonLinear:v}=l.useContext(EP);let[x=!1,w=!1,S=!1]=[r,c,p];h===u?x=void 0===r||r:!v&&h>u?w=void 0===c||c:!v&&h<u&&(S=void 0===p||p);const T=l.useMemo(()=>({index:u,last:f,expanded:d,icon:u+1,active:x,completed:w,disabled:S}),[u,f,d,x,w,S]),O={...n,active:x,orientation:b,alternativeLabel:y,completed:w,disabled:S,expanded:d,component:s},j=(e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:r}=e;return am({root:["root",o,n&&"alternativeLabel",r&&"completed"]},NP,t)})(O),C=e.jsxs(RP,{as:s,className:Ju(j.root,a),ref:o,ownerState:O,...m,children:[g&&y&&0!==u?g:null,i]});return e.jsx(PP.Provider,{value:T,children:g&&!y&&0!==u?e.jsxs(l.Fragment,{children:[g,C]}):C})});"production"!==process.env.NODE_ENV&&(MP.propTypes={active:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,completed:Kc.bool,component:Kc.elementType,disabled:Kc.bool,expanded:Kc.bool,index:Gg,last:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});var $P=Bh(e.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),IP=Bh(e.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function AP(e){return tf("MuiStepIcon",e)}const BP=of("MuiStepIcon",["root","active","completed","error","text"]);var LP;const DP=Eh(Ah,{name:"MuiStepIcon",slot:"Root"})(Rh(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${BP.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${BP.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${BP.error}`]:{color:(e.vars||e).palette.error.main}}))),zP=Eh("text",{name:"MuiStepIcon",slot:"Text"})(Rh(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),VP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepIcon"}),{active:r=!1,className:i,completed:a=!1,error:s=!1,icon:l,...c}=n,p={...n,active:r,completed:a,error:s},d=(e=>{const{classes:t,active:o,completed:n,error:r}=e;return am({root:["root",o&&"active",n&&"completed",r&&"error"],text:["text"]},AP,t)})(p);if("number"==typeof l||"string"==typeof l){const t=Ju(i,d.root);return s?e.jsx(DP,{as:IP,className:t,ref:o,ownerState:p,...c}):a?e.jsx(DP,{as:$P,className:t,ref:o,ownerState:p,...c}):e.jsxs(DP,{className:t,ref:o,ownerState:p,...c,children:[LP||(LP=e.jsx("circle",{cx:"12",cy:"12",r:"12"})),e.jsx(zP,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:p,children:l})]})}return l});function FP(e){return tf("MuiStepLabel",e)}"production"!==process.env.NODE_ENV&&(VP.propTypes={active:Kc.bool,classes:Kc.object,className:Kc.string,completed:Kc.bool,error:Kc.bool,icon:Kc.node,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const WP=of("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),_P=Eh("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})({display:"flex",alignItems:"center",[`&.${WP.alternativeLabel}`]:{flexDirection:"column"},[`&.${WP.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),HP=Eh("span",{name:"MuiStepLabel",slot:"Label"})(Rh(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${WP.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${WP.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${WP.alternativeLabel}`]:{marginTop:16},[`&.${WP.error}`]:{color:(e.vars||e).palette.error.main}}))),qP=Eh("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${WP.alternativeLabel}`]:{paddingRight:0}}),UP=Eh("span",{name:"MuiStepLabel",slot:"LabelContainer"})(Rh(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${WP.alternativeLabel}`]:{textAlign:"center"}}))),GP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepLabel"}),{children:r,className:i,componentsProps:a={},error:s=!1,icon:c,optional:p,slots:d={},slotProps:u={},StepIconComponent:f,StepIconProps:m,...h}=n,{alternativeLabel:g,orientation:y}=l.useContext(EP),{active:b,disabled:v,completed:x,icon:w}=l.useContext(PP),S=c||w;let T=f;S&&!T&&(T=VP);const O={...n,active:b,alternativeLabel:g,completed:x,disabled:v,error:s,orientation:y},j=(e=>{const{classes:t,orientation:o,active:n,completed:r,error:i,disabled:a,alternativeLabel:s}=e;return am({root:["root",o,i&&"error",a&&"disabled",s&&"alternativeLabel"],label:["label",n&&"active",r&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",r&&"completed",i&&"error",a&&"disabled",s&&"alternativeLabel"],labelContainer:["labelContainer",s&&"alternativeLabel"]},FP,t)})(O),C={slots:d,slotProps:{stepIcon:m,...a,...u}},[k,E]=Dg("root",{elementType:_P,externalForwardedProps:{...C,...h},ownerState:O,ref:o,className:Ju(j.root,i)}),[P,N]=Dg("label",{elementType:HP,externalForwardedProps:C,ownerState:O}),[R,M]=Dg("stepIcon",{elementType:T,externalForwardedProps:C,ownerState:O});return e.jsxs(k,{...E,children:[S||R?e.jsx(qP,{className:j.iconContainer,ownerState:O,children:e.jsx(R,{completed:x,active:b,error:s,icon:S,...M})}):null,e.jsxs(UP,{className:j.labelContainer,ownerState:O,children:[r?e.jsx(P,{...N,className:Ju(j.label,N?.className),children:r}):null,p]})]})});function KP(e){return tf("MuiStepButton",e)}"production"!==process.env.NODE_ENV&&(GP.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,componentsProps:Kc.shape({label:Kc.object}),error:Kc.bool,icon:Kc.node,optional:Kc.node,slotProps:Kc.shape({label:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),stepIcon:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({label:Kc.elementType,root:Kc.elementType,stepIcon:Kc.elementType}),StepIconComponent:Kc.elementType,StepIconProps:Kc.object,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),GP.muiName="StepLabel";const XP=of("MuiStepButton",["root","horizontal","vertical","touchRipple"]),YP=Eh(Oy,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${XP.touchRipple}`]:t.touchRipple},t.root,t[o.orientation]]}})({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box",[`& .${XP.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"},variants:[{props:{orientation:"vertical"},style:{justifyContent:"flex-start",padding:"8px",margin:"-8px"}}]}),ZP=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepButton"}),{children:r,className:i,icon:a,optional:s,...c}=n,{disabled:p,active:d}=l.useContext(PP),{orientation:u}=l.useContext(EP),f={...n,orientation:u},m=(e=>{const{classes:t,orientation:o}=e;return am({root:["root",o],touchRipple:["touchRipple"]},KP,t)})(f),h={icon:a,optional:s},g=um(r,["StepLabel"])?l.cloneElement(r,h):e.jsx(GP,{...h,children:r});return e.jsx(YP,{focusRipple:!0,disabled:p,TouchRippleProps:{className:m.touchRipple},className:Ju(m.root,i),ref:o,ownerState:f,"aria-current":d?"step":void 0,...c,children:g})});function JP(e){return tf("MuiStepConnector",e)}"production"!==process.env.NODE_ENV&&(ZP.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,icon:Kc.node,optional:Kc.node,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const QP=Eh("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),eN=Eh("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${Ed(o.orientation)}`]]}})(Rh(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),tN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepConnector"}),{className:r,...i}=n,{alternativeLabel:a,orientation:s="horizontal"}=l.useContext(EP),{active:c,disabled:p,completed:d}=l.useContext(PP),u={...n,alternativeLabel:a,orientation:s,active:c,completed:d,disabled:p},f=(e=>{const{classes:t,orientation:o,alternativeLabel:n,active:r,completed:i,disabled:a}=e;return am({root:["root",o,n&&"alternativeLabel",r&&"active",i&&"completed",a&&"disabled"],line:["line",`line${Ed(o)}`]},JP,t)})(u);return e.jsx(QP,{className:Ju(f.root,r),ref:o,ownerState:u,...i,children:e.jsx(eN,{className:f.line,ownerState:u})})});function oN(e){return tf("MuiStepContent",e)}"production"!==process.env.NODE_ENV&&(tN.propTypes={classes:Kc.object,className:Kc.string,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiStepContent",["root","last","transition"]);const nN=Eh("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.last&&t.last]}})(Rh(({theme:e})=>({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?`1px solid ${e.vars.palette.StepContent.border}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}))),rN=Eh(_g,{name:"MuiStepContent",slot:"Transition"})({}),iN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepContent"}),{children:r,className:i,TransitionComponent:a=_g,transitionDuration:s="auto",TransitionProps:c,slots:p={},slotProps:d={},...u}=n,{orientation:f}=l.useContext(EP),{active:m,last:h,expanded:g}=l.useContext(PP),y={...n,last:h},b=(e=>{const{classes:t,last:o}=e;return am({root:["root",o&&"last"],transition:["transition"]},oN,t)})(y);process.env.NODE_ENV;let v=s;"auto"!==s||a.muiSupportAuto||(v=void 0);const x={slots:p,slotProps:{transition:c,...d}},[w,S]=Dg("transition",{elementType:rN,externalForwardedProps:x,ownerState:y,className:b.transition,additionalProps:{in:m||g,timeout:v,unmountOnExit:!0}});return e.jsx(nN,{className:Ju(b.root,i),ref:o,ownerState:y,...u,children:e.jsx(w,{as:a,...S,children:r})})});function aN(e){return tf("MuiStepper",e)}"production"!==process.env.NODE_ENV&&(iN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,slotProps:Kc.shape({transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({transition:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TransitionComponent:Kc.elementType,transitionDuration:Kc.oneOfType([Kc.oneOf(["auto"]),Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),TransitionProps:Kc.object}),of("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const sN=Eh("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),lN=e.jsx(tN,{}),cN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:i=!1,children:a,className:s,component:c="div",connector:p=lN,nonLinear:d=!1,orientation:u="horizontal",...f}=n,m={...n,nonLinear:d,alternativeLabel:i,orientation:u,component:c},h=(e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:r}=e;return am({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},aN,r)})(m),g=l.Children.toArray(a).filter(Boolean),y=g.map((e,t)=>l.cloneElement(e,{index:t,last:t+1===g.length,...e.props})),b=l.useMemo(()=>({activeStep:r,alternativeLabel:i,connector:p,nonLinear:d,orientation:u}),[r,i,p,d,u]);return e.jsx(EP.Provider,{value:b,children:e.jsx(sN,{as:c,ownerState:m,className:Ju(h.root,s),ref:o,...f,children:y})})});"production"!==process.env.NODE_ENV&&(cN.propTypes={activeStep:Gg,alternativeLabel:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,connector:Kc.element,nonLinear:Kc.bool,orientation:Kc.oneOf(["horizontal","vertical"]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const pN=Eh("div",{name:"MuiSwipeArea",shouldForwardProp:kh})(Rh(({theme:e})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),dN=l.forwardRef(function(t,o){const{anchor:n,classes:r={},className:i,width:a,style:s,...l}=t,c=t;return e.jsx(pN,{className:Ju("PrivateSwipeArea-root",r.root,r[`anchor${Ed(n)}`],i),ref:o,style:{[XT(n)?"width":"height"]:a,...s},ownerState:c,...l})});"production"!==process.env.NODE_ENV&&(dN.propTypes={anchor:Kc.oneOf(["left","top","right","bottom"]).isRequired,classes:Kc.object,className:Kc.string,style:Kc.object,width:Kc.number.isRequired});let uN=null;function fN(e,t,o){return"right"===e?o.body.offsetWidth-t[0].pageX:t[0].pageX}function mN(e,t,o){return"bottom"===e?o.innerHeight-t[0].clientY:t[0].clientY}function hN(e,t){return e?t.clientWidth:t.clientHeight}function gN(e,t,o,n){return Math.min(Math.max(o?t-e:n+t-e,0),n)}const yN="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),bN=l.forwardRef(function(t,o){const n=Mh({name:"MuiSwipeableDrawer",props:t}),r=jh(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",disableBackdropTransition:s=!1,disableDiscovery:p=!1,disableSwipeToOpen:d=yN,hideBackdrop:u,hysteresis:f=.52,allowSwipeInChildren:m=!1,minFlingVelocity:h=450,ModalProps:{BackdropProps:g,...y}={},onClose:b,onOpen:v,open:x=!1,PaperProps:w={},SwipeAreaProps:S,swipeAreaWidth:T=20,transitionDuration:O=i,variant:j="temporary",slots:C={},slotProps:k={},...E}=n,[P,N]=l.useState(!1),R=l.useRef({isSwiping:null}),M=l.useRef(),$=l.useRef(),I=l.useRef(),A=qh(w.ref,I),B=l.useRef(!1),L=l.useRef();xf(()=>{L.current=null},[x]);const D=l.useCallback((e,t={})=>{const{mode:o=null,changeTransition:n=!0}=t,i=YT(r,a),l=["right","bottom"].includes(i)?1:-1,c=XT(a),p=c?`translate(${l*e}px, 0)`:`translate(0, ${l*e}px)`,d=I.current.style;d.webkitTransform=p,d.transform=p;let f="";if(o&&(f=r.transitions.create("all",Rg({easing:void 0,style:void 0,timeout:O},{mode:o}))),n&&(d.webkitTransition=f,d.transition=f),!s&&!u){const t=$.current.style;t.opacity=1-e/hN(c,I.current),n&&(t.webkitTransition=f,t.transition=f)}},[a,s,u,r,O]),z=Hh(e=>{if(!B.current)return;if(uN=null,B.current=!1,c.flushSync(()=>{N(!1)}),!R.current.isSwiping)return void(R.current.isSwiping=null);R.current.isSwiping=null;const t=YT(r,a),o=XT(a);let n;n=o?fN(t,e.changedTouches,Dh(e.currentTarget)):mN(t,e.changedTouches,zh(e.currentTarget));const i=o?R.current.startX:R.current.startY,s=hN(o,I.current),l=gN(n,i,x,s),p=l/s;Math.abs(R.current.velocity)>h&&(L.current=1e3*Math.abs((s-l)/R.current.velocity)),x?R.current.velocity>h||p>f?b():D(0,{mode:"exit"}):R.current.velocity<-h||1-p>f?v():D(hN(o,I.current),{mode:"enter"})}),V=(e=!1)=>{if(!P){!e&&p&&m||c.flushSync(()=>{N(!0)});const t=XT(a);!x&&I.current&&D(hN(t,I.current)+(p?15:-20),{changeTransition:!1}),R.current.velocity=0,R.current.lastTime=null,R.current.lastTranslate=null,R.current.paperHit=!1,B.current=!0}},F=Hh(e=>{if(!I.current||!B.current)return;if(null!==uN&&uN!==R.current)return;V(!0);const t=YT(r,a),o=XT(a),n=fN(t,e.touches,Dh(e.currentTarget)),i=mN(t,e.touches,zh(e.currentTarget));if(x&&I.current.contains(e.target)&&null===uN){const t=function(e,t){const o=[];for(;e&&e!==t.parentElement;){const n=zh(t).getComputedStyle(e);"absolute"===n.getPropertyValue("position")||"hidden"===n.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&o.push(e),e=e.parentElement}return o}(e.target,I.current),r=function({domTreeShapes:e,start:t,current:o,anchor:n}){const r={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},a={x:"clientWidth",y:"clientHeight"};return e.some(e=>{let s=o>=t;"top"!==n&&"left"!==n||(s=!s);const l="left"===n||"right"===n?"x":"y",c=Math.round(e[r[l]]),p=c>0,d=c+e[a[l]]<e[i[l]];return!!(s&&d||!s&&p)})}({domTreeShapes:t,start:o?R.current.startX:R.current.startY,current:o?n:i,anchor:a});if(r)return void(uN=!0);uN=R.current}if(null==R.current.isSwiping){const t=Math.abs(n-R.current.startX),r=Math.abs(i-R.current.startY),a=o?t>r&&t>3:r>t&&r>3;if(a&&e.cancelable&&e.preventDefault(),!0===a||(o?r>3:t>3)){if(R.current.isSwiping=a,!a)return void z(e);R.current.startX=n,R.current.startY=i,p||x||(o?R.current.startX-=20:R.current.startY-=20)}}if(!R.current.isSwiping)return;const s=hN(o,I.current);let l=o?R.current.startX:R.current.startY;x&&!R.current.paperHit&&(l=Math.min(l,s));const c=gN(o?n:i,l,x,s);if(x)if(R.current.paperHit)0===c&&(R.current.startX=n,R.current.startY=i);else{if(!(o?n<s:i<s))return;R.current.paperHit=!0,R.current.startX=n,R.current.startY=i}null===R.current.lastTranslate&&(R.current.lastTranslate=c,R.current.lastTime=performance.now()+1);const d=(c-R.current.lastTranslate)/(performance.now()-R.current.lastTime)*1e3;R.current.velocity=.4*R.current.velocity+.6*d,R.current.lastTranslate=c,R.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),D(c)}),W=Hh(e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(x&&(u||!$.current.contains(e.target))&&!I.current.contains(e.target))return;const t=YT(r,a),o=XT(a),n=fN(t,e.touches,Dh(e.currentTarget)),i=mN(t,e.touches,zh(e.currentTarget));if(!x){if(d||!(e.target===M.current||I.current?.contains(e.target)&&("function"==typeof m?m(e,M.current,I.current):m)))return;if(o){if(n>T)return}else if(i>T)return}e.defaultMuiPrevented=!0,uN=null,R.current.startX=n,R.current.startY=i,V()});l.useEffect(()=>{if("temporary"===j){const e=Dh(I.current);return e.addEventListener("touchstart",W),e.addEventListener("touchmove",F,{passive:!x}),e.addEventListener("touchend",z),()=>{e.removeEventListener("touchstart",W),e.removeEventListener("touchmove",F,{passive:!x}),e.removeEventListener("touchend",z)}}},[j,x,W,F,z]),l.useEffect(()=>()=>{uN===R.current&&(uN=null)},[]),l.useEffect(()=>{x||N(!1)},[x]);const[_,H]=Dg("swipeArea",{ref:M,elementType:dN,ownerState:n,externalForwardedProps:{slots:C,slotProps:{swipeArea:S,...k}},additionalProps:{width:T,anchor:a}});return e.jsxs(l.Fragment,{children:[e.jsx(ZT,{open:!("temporary"!==j||!P)||x,variant:j,ModalProps:{BackdropProps:{...g,ref:$},..."temporary"===j&&{keepMounted:!0},...y},hideBackdrop:u,anchor:a,transitionDuration:L.current||O,onClose:b,ref:o,slots:C,slotProps:{...k,backdrop:Uh(k.backdrop??g,{ref:$}),paper:Uh(k.paper??w,{style:{pointerEvents:"temporary"!==j||x||m?"":"none"},ref:A})},...E}),!d&&"temporary"===j&&e.jsx(qC,{children:e.jsx(_,{...H})})]})});function vN(e){return tf("MuiSwitch",e)}"production"!==process.env.NODE_ENV&&(bN.propTypes={allowSwipeInChildren:Kc.oneOfType([Kc.func,Kc.bool]),anchor:Kc.oneOf(["bottom","left","right","top"]),children:Kc.node,disableBackdropTransition:Kc.bool,disableDiscovery:Kc.bool,disableSwipeToOpen:Kc.bool,hideBackdrop:Kc.bool,hysteresis:Kc.number,minFlingVelocity:Kc.number,ModalProps:Kc.shape({BackdropProps:Kc.shape({component:Pg})}),onClose:Kc.func.isRequired,onOpen:Kc.func.isRequired,open:Kc.bool,PaperProps:Kc.shape({component:Pg,style:Kc.object}),slotProps:Kc.shape({backdrop:Kc.oneOfType([Kc.func,Kc.object]),docked:Kc.oneOfType([Kc.func,Kc.object]),paper:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),swipeArea:Kc.oneOfType([Kc.func,Kc.object]),transition:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({backdrop:Kc.elementType,docked:Kc.elementType,paper:Kc.elementType,root:Kc.elementType,swipeArea:Kc.elementType,transition:Kc.elementType}),SwipeAreaProps:Kc.object,swipeAreaWidth:Kc.number,transitionDuration:Kc.oneOfType([Kc.number,Kc.shape({appear:Kc.number,enter:Kc.number,exit:Kc.number})]),variant:Kc.oneOf(["permanent","persistent","temporary"])});const xN=of("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),wN=Eh("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.edge&&t[`edge${Ed(o.edge)}`],t[`size${Ed(o.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${xN.thumb}`]:{width:16,height:16},[`& .${xN.switchBase}`]:{padding:4,[`&.${xN.checked}`]:{transform:"translateX(16px)"}}}}]}),SN=Eh(BS,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.switchBase,{[`& .${xN.input}`]:t.input},"default"!==o.color&&t[`color${Ed(o.color)}`]]}})(Rh(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xN.checked}`]:{transform:"translateX(20px)"},[`&.${xN.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xN.checked} + .${xN.track}`]:{opacity:.5},[`&.${xN.disabled} + .${xN.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${xN.input}`]:{left:"-100%",width:"300%"}})),Rh(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(My(["light"])).map(([t])=>({props:{color:t},style:{[`&.${xN.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xN.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${xN.checked} + .${xN.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),TN=Eh("span",{name:"MuiSwitch",slot:"Track"})(Rh(({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),ON=Eh("span",{name:"MuiSwitch",slot:"Thumb"})(Rh(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),jN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiSwitch"}),{className:r,color:i="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:p={},...d}=n,u={...n,color:i,edge:a,size:s},f=(e=>{const{classes:t,edge:o,size:n,color:r,checked:i,disabled:a}=e,s=am({root:["root",o&&`edge${Ed(o)}`,`size${Ed(n)}`],switchBase:["switchBase",`color${Ed(r)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},vN,t);return{...t,...s}})(u),m={slots:c,slotProps:p},[h,g]=Dg("root",{className:Ju(f.root,r),elementType:wN,externalForwardedProps:m,ownerState:u,additionalProps:{sx:l}}),[y,b]=Dg("thumb",{className:f.thumb,elementType:ON,externalForwardedProps:m,ownerState:u}),v=e.jsx(y,{...b}),[x,w]=Dg("track",{className:f.track,elementType:TN,externalForwardedProps:m,ownerState:u});return e.jsxs(h,{...g,children:[e.jsx(SN,{type:"checkbox",icon:v,checkedIcon:v,ref:o,ownerState:u,...d,classes:{...f,root:f.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...p.switchBase&&{root:"function"==typeof p.switchBase?p.switchBase(u):p.switchBase},input:{role:"switch"},...p.input&&{input:"function"==typeof p.input?p.input(u):p.input}}}),e.jsx(x,{...w})]})});function CN(e){return tf("MuiTab",e)}"production"!==process.env.NODE_ENV&&(jN.propTypes={checked:Kc.bool,checkedIcon:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["default","primary","secondary","error","info","success","warning"]),Kc.string]),defaultChecked:Kc.bool,disabled:Kc.bool,disableRipple:Kc.bool,edge:Kc.oneOf(["end","start",!1]),icon:Kc.node,id:Kc.string,inputProps:Kc.object,inputRef:py,onChange:Kc.func,required:Kc.bool,size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),slotProps:Kc.shape({input:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),switchBase:Kc.oneOfType([Kc.func,Kc.object]),thumb:Kc.oneOfType([Kc.func,Kc.object]),track:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({input:Kc.elementType,root:Kc.elementType,switchBase:Kc.elementType,thumb:Kc.elementType,track:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any});const kN=of("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),EN=Eh(Oy,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${Ed(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${kN.iconWrapper}`]:t.iconWrapper},{[`& .${kN.icon}`]:t.icon}]}})(Rh(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${kN.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${kN.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${kN.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${kN.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${kN.selected}`]:{opacity:1},[`&.${kN.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${kN.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${kN.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${kN.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${kN.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),PN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTab"}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:c,iconPosition:p="top",indicator:d,label:u,onChange:f,onClick:m,onFocus:h,selected:g,selectionFollowsFocus:y,textColor:b="inherit",value:v,wrapped:x=!1,...w}=n,S={...n,disabled:i,disableFocusRipple:a,selected:g,icon:!!c,iconPosition:p,label:!!u,fullWidth:s,textColor:b,wrapped:x},T=(e=>{const{classes:t,textColor:o,fullWidth:n,wrapped:r,icon:i,label:a,selected:s,disabled:l}=e;return am({root:["root",i&&a&&"labelIcon",`textColor${Ed(o)}`,n&&"fullWidth",r&&"wrapped",s&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]},CN,t)})(S),O=c&&u&&l.isValidElement(c)?l.cloneElement(c,{className:Ju(T.icon,c.props.className)}):c;return e.jsxs(EN,{focusRipple:!a,className:Ju(T.root,r),ref:o,role:"tab","aria-selected":g,disabled:i,onClick:e=>{!g&&f&&f(e,v),m&&m(e)},onFocus:e=>{y&&!g&&f&&f(e,v),h&&h(e)},ownerState:S,tabIndex:g?0:-1,...w,children:["top"===p||"start"===p?e.jsxs(l.Fragment,{children:[O,u]}):e.jsxs(l.Fragment,{children:[u,O]}),d]})});"production"!==process.env.NODE_ENV&&(PN.propTypes={children:Wh,classes:Kc.object,className:Kc.string,disabled:Kc.bool,disableFocusRipple:Kc.bool,disableRipple:Kc.bool,icon:Kc.oneOfType([Kc.element,Kc.string]),iconPosition:Kc.oneOf(["bottom","end","start","top"]),label:Kc.node,onChange:Kc.func,onClick:Kc.func,onFocus:Kc.func,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any,wrapped:Kc.bool});const NN=l.createContext();function RN(e){return tf("MuiTable",e)}"production"!==process.env.NODE_ENV&&(NN.displayName="TableContext"),of("MuiTable",["root","stickyHeader"]);const MN=Eh("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})(Rh(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),$N="table",IN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTable"}),{className:r,component:i=$N,padding:a="normal",size:s="medium",stickyHeader:c=!1,...p}=n,d={...n,component:i,padding:a,size:s,stickyHeader:c},u=(e=>{const{classes:t,stickyHeader:o}=e;return am({root:["root",o&&"stickyHeader"]},RN,t)})(d),f=l.useMemo(()=>({padding:a,size:s,stickyHeader:c}),[a,s,c]);return e.jsx(NN.Provider,{value:f,children:e.jsx(MN,{as:i,role:i===$N?null:"table",ref:o,className:Ju(u.root,r),ownerState:d,...p})})});"production"!==process.env.NODE_ENV&&(IN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,padding:Kc.oneOf(["checkbox","none","normal"]),size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),stickyHeader:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const AN=l.createContext();function BN(e){return tf("MuiTableBody",e)}"production"!==process.env.NODE_ENV&&(AN.displayName="Tablelvl2Context"),of("MuiTableBody",["root"]);const LN=Eh("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),DN={variant:"body"},zN="tbody",VN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableBody"}),{className:r,component:i=zN,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},BN,t)})(s);return e.jsx(AN.Provider,{value:DN,children:e.jsx(LN,{className:Ju(l.root,r),as:i,ref:o,role:i===zN?null:"rowgroup",ownerState:s,...a})})});function FN(e){return tf("MuiTableCell",e)}"production"!==process.env.NODE_ENV&&(VN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const WN=of("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_N=Eh("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${Ed(o.size)}`],"normal"!==o.padding&&t[`padding${Ed(o.padding)}`],"inherit"!==o.align&&t[`align${Ed(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(Rh(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${WN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),HN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableCell"}),{align:r="inherit",className:i,component:a,padding:s,scope:c,size:p,sortDirection:d,variant:u,...f}=n,m=l.useContext(NN),h=l.useContext(AN),g=h&&"head"===h.variant;let y;y=a||(g?"th":"td");let b=c;"td"===y?b=void 0:!b&&g&&(b="col");const v=u||h&&h.variant,x={...n,align:r,component:y,padding:s||(m&&m.padding?m.padding:"normal"),size:p||(m&&m.size?m.size:"medium"),sortDirection:d,stickyHeader:"head"===v&&m&&m.stickyHeader,variant:v},w=(e=>{const{classes:t,variant:o,align:n,padding:r,size:i,stickyHeader:a}=e;return am({root:["root",o,a&&"stickyHeader","inherit"!==n&&`align${Ed(n)}`,"normal"!==r&&`padding${Ed(r)}`,`size${Ed(i)}`]},FN,t)})(x);let S=null;return d&&(S="asc"===d?"ascending":"descending"),e.jsx(_N,{as:y,ref:o,className:Ju(w.root,i),"aria-sort":S,scope:b,ownerState:x,...f})});function qN(e){return tf("MuiTableContainer",e)}"production"!==process.env.NODE_ENV&&(HN.propTypes={align:Kc.oneOf(["center","inherit","justify","left","right"]),children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,padding:Kc.oneOf(["checkbox","none","normal"]),scope:Kc.string,size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),sortDirection:Kc.oneOf(["asc","desc",!1]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),variant:Kc.oneOfType([Kc.oneOf(["body","footer","head"]),Kc.string])}),of("MuiTableContainer",["root"]);const UN=Eh("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),GN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableContainer"}),{className:r,component:i="div",...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},qN,t)})(s);return e.jsx(UN,{ref:o,as:i,className:Ju(l.root,r),ownerState:s,...a})});function KN(e){return tf("MuiTableFooter",e)}"production"!==process.env.NODE_ENV&&(GN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiTableFooter",["root"]);const XN=Eh("tfoot",{name:"MuiTableFooter",slot:"Root"})({display:"table-footer-group"}),YN={variant:"footer"},ZN="tfoot",JN=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableFooter"}),{className:r,component:i=ZN,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},KN,t)})(s);return e.jsx(AN.Provider,{value:YN,children:e.jsx(XN,{as:i,className:Ju(l.root,r),ref:o,role:i===ZN?null:"rowgroup",ownerState:s,...a})})});function QN(e){return tf("MuiTableHead",e)}"production"!==process.env.NODE_ENV&&(JN.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiTableHead",["root"]);const eR=Eh("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),tR={variant:"head"},oR="thead",nR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableHead"}),{className:r,component:i=oR,...a}=n,s={...n,component:i},l=(e=>{const{classes:t}=e;return am({root:["root"]},QN,t)})(s);return e.jsx(AN.Provider,{value:tR,children:e.jsx(eR,{as:i,className:Ju(l.root,r),ref:o,role:i===oR?null:"rowgroup",ownerState:s,...a})})});function rR(e){return tf("MuiToolbar",e)}"production"!==process.env.NODE_ENV&&(nR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])}),of("MuiToolbar",["root","gutters","regular","dense"]);const iR=Eh("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,!o.disableGutters&&t.gutters,t[o.variant]]}})(Rh(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.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}]}))),aR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiToolbar"}),{className:r,component:i="div",disableGutters:a=!1,variant:s="regular",...l}=n,c={...n,component:i,disableGutters:a,variant:s},p=(e=>{const{classes:t,disableGutters:o,variant:n}=e;return am({root:["root",!o&&"gutters",n]},rR,t)})(c);return e.jsx(iR,{as:i,className:Ju(p.root,r),ref:o,ownerState:c,...l})});"production"!==process.env.NODE_ENV&&(aR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,disableGutters:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),variant:Kc.oneOfType([Kc.oneOf(["dense","regular"]),Kc.string])});var sR=Bh(e.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),lR=Bh(e.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function cR(e){return tf("MuiTablePaginationActions",e)}of("MuiTablePaginationActions",["root"]);const pR=Eh("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),dR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:r,className:i,count:a,disabled:s=!1,getItemAriaLabel:l,nextIconButtonProps:c,onPageChange:p,page:d,rowsPerPage:u,showFirstButton:f,showLastButton:m,slots:h={},slotProps:g={},...y}=n,b=qf(),v=(e=>{const{classes:t}=e;return am({root:["root"]},cR,t)})(n),x=h.firstButton??Yy,w=h.lastButton??Yy,S=h.nextButton??Yy,T=h.previousButton??Yy,O=h.firstButtonIcon??nk,j=h.lastButtonIcon??rk,C=h.nextButtonIcon??lR,k=h.previousButtonIcon??sR,E=b?w:x,P=b?S:T,N=b?T:S,R=b?x:w,M=b?g.lastButton:g.firstButton,$=b?g.nextButton:g.previousButton,I=b?g.previousButton:g.nextButton,A=b?g.firstButton:g.lastButton;return e.jsxs(pR,{ref:o,className:Ju(v.root,i),...y,children:[f&&e.jsx(E,{onClick:e=>{p(e,0)},disabled:s||0===d,"aria-label":l("first",d),title:l("first",d),...M,children:b?e.jsx(j,{...g.lastButtonIcon}):e.jsx(O,{...g.firstButtonIcon})}),e.jsx(P,{onClick:e=>{p(e,d-1)},disabled:s||0===d,color:"inherit","aria-label":l("previous",d),title:l("previous",d),...$??r,children:b?e.jsx(C,{...g.nextButtonIcon}):e.jsx(k,{...g.previousButtonIcon})}),e.jsx(N,{onClick:e=>{p(e,d+1)},disabled:s||-1!==a&&d>=Math.ceil(a/u)-1,color:"inherit","aria-label":l("next",d),title:l("next",d),...I??c,children:b?e.jsx(k,{...g.previousButtonIcon}):e.jsx(C,{...g.nextButtonIcon})}),m&&e.jsx(R,{onClick:e=>{p(e,Math.max(0,Math.ceil(a/u)-1))},disabled:s||d>=Math.ceil(a/u)-1,"aria-label":l("last",d),title:l("last",d),...A,children:b?e.jsx(O,{...g.firstButtonIcon}):e.jsx(j,{...g.lastButtonIcon})})]})});function uR(e){return tf("MuiTablePagination",e)}"production"!==process.env.NODE_ENV&&(dR.propTypes={backIconButtonProps:Kc.object,children:Kc.node,classes:Kc.object,className:Kc.string,count:Kc.number.isRequired,disabled:Kc.bool,getItemAriaLabel:Kc.func.isRequired,nextIconButtonProps:Kc.object,onPageChange:Kc.func.isRequired,page:Kc.number.isRequired,rowsPerPage:Kc.number.isRequired,showFirstButton:Kc.bool.isRequired,showLastButton:Kc.bool.isRequired,slotProps:Kc.shape({firstButton:Kc.object,firstButtonIcon:Kc.object,lastButton:Kc.object,lastButtonIcon:Kc.object,nextButton:Kc.object,nextButtonIcon:Kc.object,previousButton:Kc.object,previousButtonIcon:Kc.object}),slots:Kc.shape({firstButton:Kc.elementType,firstButtonIcon:Kc.elementType,lastButton:Kc.elementType,lastButtonIcon:Kc.elementType,nextButton:Kc.elementType,nextButtonIcon:Kc.elementType,previousButton:Kc.elementType,previousButtonIcon:Kc.elementType})});const fR=of("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var mR;const hR=Eh(HN,{name:"MuiTablePagination",slot:"Root"})(Rh(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),gR=Eh(aR,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${fR.actions}`]:t.actions,...t.toolbar})})(Rh(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${fR.actions}`]:{flexShrink:0,marginLeft:20}}))),yR=Eh("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),bR=Eh("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Rh(({theme:e})=>({...e.typography.body2,flexShrink:0}))),vR=Eh(cE,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${fR.selectIcon}`]:t.selectIcon,[`& .${fR.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${fR.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),xR=Eh(PC,{name:"MuiTablePagination",slot:"MenuItem"})({}),wR=Eh("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Rh(({theme:e})=>({...e.typography.body2,flexShrink:0})));function SR({from:e,to:t,count:o}){return`${e}–${t} of ${-1!==o?o:`more than ${t}`}`}function TR(e){return`Go to ${e} page`}const OR=l.forwardRef(function(t,n){const r=Mh({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=dR,backIconButtonProps:a,colSpan:s,component:l=HN,count:c,disabled:p=!1,getItemAriaLabel:d=TR,labelDisplayedRows:u=SR,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:h,onRowsPerPageChange:g,page:y,rowsPerPage:b,rowsPerPageOptions:v=[10,25,50,100],SelectProps:x={},showFirstButton:w=!1,showLastButton:S=!1,slotProps:T={},slots:O={},...j}=r,C=r,k=(e=>{const{classes:t}=e;return am({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},uR,t)})(C),E=T?.select??x,P=E.native?"option":xR;let N;l!==HN&&"td"!==l||(N=s||1e3);const R=Yf(E.id),M=Yf(E.labelId),$={slots:O,slotProps:T},[I,A]=Dg("root",{ref:n,className:k.root,elementType:hR,externalForwardedProps:{...$,component:l,...j},ownerState:C,additionalProps:{colSpan:N}}),[B,L]=Dg("toolbar",{className:k.toolbar,elementType:gR,externalForwardedProps:$,ownerState:C}),[D,z]=Dg("spacer",{className:k.spacer,elementType:yR,externalForwardedProps:$,ownerState:C}),[V,F]=Dg("selectLabel",{className:k.selectLabel,elementType:bR,externalForwardedProps:$,ownerState:C,additionalProps:{id:M}}),[W,_]=Dg("select",{className:k.select,elementType:vR,externalForwardedProps:$,ownerState:C}),[H,q]=Dg("menuItem",{className:k.menuItem,elementType:P,externalForwardedProps:$,ownerState:C}),[U,G]=Dg("displayedRows",{className:k.displayedRows,elementType:wR,externalForwardedProps:$,ownerState:C});return e.jsx(I,{...A,children:e.jsxs(B,{...L,children:[e.jsx(D,{...z}),v.length>1&&e.jsx(V,{...F,children:f}),v.length>1&&e.jsx(W,{variant:"standard",...!E.variant&&{input:mR||(mR=e.jsx(Ex,{}))},value:b,onChange:g,id:R,labelId:M,...E,classes:{...E.classes,root:Ju(k.input,k.selectRoot,(E.classes||{}).root),select:Ju(k.select,(E.classes||{}).select),icon:Ju(k.selectIcon,(E.classes||{}).icon)},disabled:p,..._,children:v.map(e=>o.createElement(H,{...q,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),e.jsx(U,{...G,children:u({from:0===c?0:y*b+1,to:-1===c?(y+1)*b:-1===b?c:Math.min(c,(y+1)*b),count:-1===c?-1:c,page:y})}),e.jsx(i,{className:k.actions,backIconButtonProps:a,count:c,nextIconButtonProps:m,onPageChange:h,page:y,rowsPerPage:b,showFirstButton:w,showLastButton:S,slotProps:T.actions,slots:O.actions,getItemAriaLabel:d,disabled:p})]})})});function jR(e){return tf("MuiTableRow",e)}"production"!==process.env.NODE_ENV&&(OR.propTypes={ActionsComponent:Kc.elementType,backIconButtonProps:Kc.object,classes:Kc.object,colSpan:Kc.number,component:Kc.elementType,count:Gg.isRequired,disabled:Kc.bool,getItemAriaLabel:Kc.func,labelDisplayedRows:Kc.func,labelRowsPerPage:Kc.node,nextIconButtonProps:Kc.object,onPageChange:Kc.func.isRequired,onRowsPerPageChange:Kc.func,page:Gh(Gg.isRequired,e=>{const{count:t,page:o,rowsPerPage:n}=e;if(-1===t)return null;const r=Math.max(0,Math.ceil(t/n)-1);return o<0||o>r?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${r}, but page is ${o}).`):null}),rowsPerPage:Gg.isRequired,rowsPerPageOptions:Kc.arrayOf(Kc.oneOfType([Kc.number,Kc.shape({label:Kc.string.isRequired,value:Kc.number.isRequired})]).isRequired),SelectProps:Kc.object,showFirstButton:Kc.bool,showLastButton:Kc.bool,slotProps:Kc.shape({actions:Kc.shape({firstButton:Kc.object,firstButtonIcon:Kc.object,lastButton:Kc.object,lastButtonIcon:Kc.object,nextButton:Kc.object,nextButtonIcon:Kc.object,previousButton:Kc.object,previousButtonIcon:Kc.object}),displayedRows:Kc.oneOfType([Kc.func,Kc.object]),menuItem:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),select:Kc.object,selectLabel:Kc.oneOfType([Kc.func,Kc.object]),spacer:Kc.oneOfType([Kc.func,Kc.object]),toolbar:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({actions:Kc.shape({firstButton:Kc.elementType,firstButtonIcon:Kc.elementType,lastButton:Kc.elementType,lastButtonIcon:Kc.elementType,nextButton:Kc.elementType,nextButtonIcon:Kc.elementType,previousButton:Kc.elementType,previousButtonIcon:Kc.elementType}),displayedRows:Kc.elementType,menuItem:Kc.elementType,root:Kc.elementType,select:Kc.elementType,selectLabel:Kc.elementType,spacer:Kc.elementType,toolbar:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const CR=of("MuiTableRow",["root","selected","hover","head","footer"]),kR=Eh("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})(Rh(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${CR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${CR.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),ER="tr",PR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableRow"}),{className:r,component:i=ER,hover:a=!1,selected:s=!1,...c}=n,p=l.useContext(AN),d={...n,component:i,hover:a,selected:s,head:p&&"head"===p.variant,footer:p&&"footer"===p.variant},u=(e=>{const{classes:t,selected:o,hover:n,head:r,footer:i}=e;return am({root:["root",o&&"selected",n&&"hover",r&&"head",i&&"footer"]},jR,t)})(d);return e.jsx(kR,{as:i,ref:o,className:Ju(u.root,r),role:i===ER?null:"row",ownerState:d,...c})});"production"!==process.env.NODE_ENV&&(PR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,hover:Kc.bool,selected:Kc.bool,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});var NR=Bh(e.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function RR(e){return tf("MuiTableSortLabel",e)}const MR=of("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),$R=Eh(Oy,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.active&&t.active]}})(Rh(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${MR.icon}`]:{opacity:.5}},[`&.${MR.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${MR.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),IR=Eh("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,t[`iconDirection${Ed(o.direction)}`]]}})(Rh(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),AR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTableSortLabel"}),{active:r=!1,children:i,className:a,direction:s="asc",hideSortIcon:l=!1,IconComponent:c=NR,slots:p={},slotProps:d={},...u}=n,f={...n,active:r,direction:s,hideSortIcon:l,IconComponent:c},m=(e=>{const{classes:t,direction:o,active:n}=e;return am({root:["root",n&&"active",`direction${Ed(o)}`],icon:["icon",`iconDirection${Ed(o)}`]},RR,t)})(f),h={slots:p,slotProps:d},[g,y]=Dg("root",{elementType:$R,externalForwardedProps:h,ownerState:f,className:Ju(m.root,a),ref:o}),[b,v]=Dg("icon",{elementType:IR,externalForwardedProps:h,ownerState:f,className:m.icon});return e.jsxs(g,{disableRipple:!0,component:"span",...y,...u,children:[i,l&&!r?null:e.jsx(b,{as:c,...v})]})});function BR(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}"production"!==process.env.NODE_ENV&&(AR.propTypes={active:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,direction:Kc.oneOf(["asc","desc"]),hideSortIcon:Kc.bool,IconComponent:Kc.elementType,slotProps:Kc.shape({icon:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({icon:Kc.elementType,root:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const LR={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function DR(t){const{onChange:o,...n}=t,r=l.useRef(),i=l.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return xf(()=>{const e=Lh(()=>{const e=r.current;a(),e!==r.current&&o(r.current)}),t=zh(i.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o]),l.useEffect(()=>{a(),o(r.current)},[o]),e.jsx("div",{style:LR,...n,ref:i})}function zR(e){return tf("MuiTabScrollButton",e)}"production"!==process.env.NODE_ENV&&(DR.propTypes={onChange:Kc.func.isRequired});const VR=of("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),FR=Eh(Oy,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${VR.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),WR=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTabScrollButton"}),{className:r,slots:i={},slotProps:a={},direction:s,orientation:l,disabled:c,...p}=n,d=qf(),u={isRtl:d,...n},f=(e=>{const{classes:t,orientation:o,disabled:n}=e;return am({root:["root",o,n&&"disabled"]},zR,t)})(u),m=i.StartScrollButtonIcon??sR,h=i.EndScrollButtonIcon??lR,g=Hv({elementType:m,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u}),y=Hv({elementType:h,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:u});return e.jsx(FR,{component:"div",className:Ju(f.root,r),ref:o,role:null,ownerState:u,tabIndex:null,...p,style:{...p.style,..."vertical"===l&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:"left"===s?e.jsx(m,{...g}):e.jsx(h,{...y})})});function _R(e){return tf("MuiTabs",e)}"production"!==process.env.NODE_ENV&&(WR.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,direction:Kc.oneOf(["left","right"]).isRequired,disabled:Kc.bool,orientation:Kc.oneOf(["horizontal","vertical"]).isRequired,slotProps:Kc.shape({endScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object]),startScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({EndScrollButtonIcon:Kc.elementType,StartScrollButtonIcon:Kc.elementType}),style:Kc.object,sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object])});const HR=of("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),qR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,UR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,GR=(e,t,o)=>{let n=!1,r=o(e,t);for(;r;){if(r===e.firstChild){if(n)return;n=!0}const t=r.disabled||"true"===r.getAttribute("aria-disabled");if(r.hasAttribute("tabindex")&&!t)return void r.focus();r=o(e,r)}},KR=Eh("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${HR.scrollButtons}`]:t.scrollButtons},{[`& .${HR.scrollButtons}`]:o.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,o.vertical&&t.vertical]}})(Rh(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${HR.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),XR=Eh("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.scroller,o.fixed&&t.fixed,o.hideScrollbar&&t.hideScrollbar,o.scrollableX&&t.scrollableX,o.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),YR=Eh("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.list,t.flexContainer,o.vertical&&t.flexContainerVertical,o.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),ZR=Eh("span",{name:"MuiTabs",slot:"Indicator"})(Rh(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),JR=Eh(DR)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),QR={};let eM=!1;const tM=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTabs"}),r=jh(),i=qf(),{"aria-label":a,"aria-labelledby":s,action:c,centered:p=!1,children:d,className:u,component:f="div",allowScrollButtonsMobile:m=!1,indicatorColor:h="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:b,scrollButtons:v="auto",selectionFollowsFocus:x,slots:w={},slotProps:S={},TabIndicatorProps:T={},TabScrollButtonProps:O={},textColor:j="primary",value:C,variant:k="standard",visibleScrollbar:E=!1,...P}=n,N="scrollable"===k,R="vertical"===y,M=R?"scrollTop":"scrollLeft",$=R?"top":"left",I=R?"bottom":"right",A=R?"clientHeight":"clientWidth",B=R?"height":"width",L={...n,component:f,allowScrollButtonsMobile:m,indicatorColor:h,orientation:y,vertical:R,scrollButtons:v,textColor:j,variant:k,visibleScrollbar:E,fixed:!N,hideScrollbar:N&&!E,scrollableX:N&&!R,scrollableY:N&&R,centered:p&&!N,scrollButtonsHideMobile:!m},D=(e=>{const{vertical:t,fixed:o,hideScrollbar:n,scrollableX:r,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return am({root:["root",t&&"vertical"],scroller:["scroller",o&&"fixed",n&&"hideScrollbar",r&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},_R,l)})(L),z=Hv({elementType:w.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:L}),V=Hv({elementType:w.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:L});process.env.NODE_ENV;const[F,W]=l.useState(!1),[_,H]=l.useState(QR),[q,U]=l.useState(!1),[G,K]=l.useState(!1),[X,Y]=l.useState(!1),[Z,J]=l.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,ee=l.useRef(null),te=l.useRef(null),oe={slots:w,slotProps:{indicator:T,scrollButtons:O,...S}},ne=()=>{const e=ee.current;let t,o;if(e){const o=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:o.top,bottom:o.bottom,left:o.left,right:o.right}}if(e&&!1!==C){const e=te.current.children;if(e.length>0){const n=e[Q.get(C)];process.env.NODE_ENV,o=n?n.getBoundingClientRect():null,"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&!eM&&o&&0===o.width&&0===o.height&&0!==t.clientWidth&&(t=null,eM=!0)}}return{tabsMeta:t,tabMeta:o}},re=Hh(()=>{const{tabsMeta:e,tabMeta:t}=ne();let o,n=0;R?(o="top",t&&e&&(n=t.top-e.top+e.scrollTop)):(o=i?"right":"left",t&&e&&(n=(i?-1:1)*(t[o]-e[o]+e.scrollLeft)));const r={[o]:n,[B]:t?t[B]:0};if("number"!=typeof _[o]||"number"!=typeof _[B])H(r);else{const e=Math.abs(_[o]-r[o]),t=Math.abs(_[B]-r[B]);(e>=1||t>=1)&&H(r)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,o,n={},r=()=>{}){const{ease:i=BR,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const p=n=>{if(c)return void r(new Error("Animation cancelled"));null===s&&(s=n);const d=Math.min(1,(n-s)/a);t[e]=i(d)*(o-l)+l,d>=1?requestAnimationFrame(()=>{r(null)}):requestAnimationFrame(p)};l===o?r(new Error("Element already at target position")):requestAnimationFrame(p)}(M,ee.current,e,{duration:r.transitions.duration.standard}):ee.current[M]=e},ae=e=>{let t=ee.current[M];t+=R?e:e*(i?-1:1),ie(t)},se=()=>{const e=ee.current[A];let t=0;const o=Array.from(te.current.children);for(let n=0;n<o.length;n+=1){const r=o[n];if(t+r[A]>e){0===n&&(t=e);break}t+=r[A]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},[pe,{onChange:de,...ue}]=Dg("scrollbar",{className:Ju(D.scrollableX,D.hideScrollbar),elementType:JR,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:L}),fe=l.useCallback(e=>{de?.(e),J({overflow:null,scrollbarWidth:e})},[de]),[me,he]=Dg("scrollButtons",{className:Ju(D.scrollButtons,O.className),elementType:WR,externalForwardedProps:oe,ownerState:L,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:z,endScrollButtonIcon:V}}}),ge=Hh(e=>{const{tabsMeta:t,tabMeta:o}=ne();if(o&&t)if(o[$]<t[$]){const n=t[M]+(o[$]-t[$]);ie(n,{animation:e})}else if(o[I]>t[I]){const n=t[M]+(o[I]-t[I]);ie(n,{animation:e})}}),ye=Hh(()=>{N&&!1!==v&&Y(!X)});l.useEffect(()=>{const e=Lh(()=>{ee.current&&re()});let t;const o=zh(ee.current);let n;return o.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(te.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(n=new MutationObserver(o=>{o.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ye()}),n.observe(te.current,{childList:!0})),()=>{e.clear(),o.removeEventListener("resize",e),n?.disconnect(),t?.disconnect()}},[re,ye]),l.useEffect(()=>{const e=Array.from(te.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&N&&!1!==v){const o=e[0],n=e[t-1],r={root:ee.current,threshold:.99},i=new IntersectionObserver(e=>{U(!e[0].isIntersecting)},r);i.observe(o);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},r);return a.observe(n),()=>{i.disconnect(),a.disconnect()}}},[N,v,X,d?.length]),l.useEffect(()=>{W(!0)},[]),l.useEffect(()=>{re()}),l.useEffect(()=>{ge(QR!==_)},[ge,_]),l.useImperativeHandle(c,()=>({updateIndicator:re,updateScrollButtons:ye}),[re,ye]);const[be,ve]=Dg("indicator",{className:Ju(D.indicator,T.className),elementType:ZR,externalForwardedProps:oe,ownerState:L,additionalProps:{style:_}}),xe=e.jsx(be,{...ve});let we=0;const Se=l.Children.map(d,e=>{if(!l.isValidElement(e))return null;"production"!==process.env.NODE_ENV&&Kp.isFragment(e);const t=void 0===e.props.value?we:e.props.value;Q.set(t,we);const o=t===C;return we+=1,l.cloneElement(e,{fullWidth:"fullWidth"===k,indicator:o&&!F&&xe,selected:o,selectionFollowsFocus:x,onChange:g,textColor:j,value:t,...1!==we||!1!==C||e.props.tabIndex?{}:{tabIndex:0}})}),Te=(()=>{const t={};t.scrollbarSizeListener=N?e.jsx(pe,{...ue,onChange:fe}):null;const o=N&&("auto"===v&&(q||G)||!0===v);return t.scrollButtonStart=o?e.jsx(me,{direction:i?"right":"left",onClick:le,disabled:!q,...he}):null,t.scrollButtonEnd=o?e.jsx(me,{direction:i?"left":"right",onClick:ce,disabled:!G,...he}):null,t})(),[Oe,je]=Dg("root",{ref:o,className:Ju(D.root,u),elementType:KR,externalForwardedProps:{...oe,...P,component:f},ownerState:L}),[Ce,ke]=Dg("scroller",{ref:ee,className:D.scroller,elementType:XR,externalForwardedProps:oe,ownerState:L,additionalProps:{style:{overflow:Z.overflow,[R?"margin"+(i?"Left":"Right"):"marginBottom"]:E?void 0:-Z.scrollbarWidth}}}),[Ee,Pe]=Dg("list",{ref:te,className:Ju(D.list,D.flexContainer),elementType:YR,externalForwardedProps:oe,ownerState:L,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;const t=te.current,o=nT(Dh(t)),n=o?.getAttribute("role");if("tab"!==n)return;let r="horizontal"===y?"ArrowLeft":"ArrowUp",a="horizontal"===y?"ArrowRight":"ArrowDown";switch("horizontal"===y&&i&&(r="ArrowRight",a="ArrowLeft"),e.key){case r:e.preventDefault(),GR(t,o,UR);break;case a:e.preventDefault(),GR(t,o,qR);break;case"Home":e.preventDefault(),GR(t,null,qR);break;case"End":e.preventDefault(),GR(t,null,UR)}})(t),e.onKeyDown?.(t)}})});return e.jsxs(Oe,{...je,children:[Te.scrollButtonStart,Te.scrollbarSizeListener,e.jsxs(Ce,{...ke,children:[e.jsx(Ee,{"aria-label":a,"aria-labelledby":s,"aria-orientation":"vertical"===y?"vertical":null,role:"tablist",...Pe,children:Se}),F&&xe]}),Te.scrollButtonEnd]})});function oM(e){return tf("MuiTextField",e)}"production"!==process.env.NODE_ENV&&(tM.propTypes={action:py,allowScrollButtonsMobile:Kc.bool,"aria-label":Kc.string,"aria-labelledby":Kc.string,centered:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,component:Kc.elementType,indicatorColor:Kc.oneOfType([Kc.oneOf(["primary","secondary"]),Kc.string]),onChange:Kc.func,orientation:Kc.oneOf(["horizontal","vertical"]),ScrollButtonComponent:Kc.elementType,scrollButtons:Kc.oneOf(["auto",!1,!0]),selectionFollowsFocus:Kc.bool,slotProps:Kc.shape({endScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object]),indicator:Kc.oneOfType([Kc.func,Kc.object]),list:Kc.oneOfType([Kc.func,Kc.object]),root:Kc.oneOfType([Kc.func,Kc.object]),scrollbar:Kc.oneOfType([Kc.func,Kc.object]),scrollButtons:Kc.oneOfType([Kc.func,Kc.object]),scroller:Kc.oneOfType([Kc.func,Kc.object]),startScrollButtonIcon:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({endScrollButtonIcon:Kc.elementType,EndScrollButtonIcon:Kc.elementType,indicator:Kc.elementType,list:Kc.elementType,root:Kc.elementType,scrollbar:Kc.elementType,scrollButtons:Kc.elementType,scroller:Kc.elementType,startScrollButtonIcon:Kc.elementType,StartScrollButtonIcon:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),TabIndicatorProps:Kc.object,TabScrollButtonProps:Kc.object,textColor:Kc.oneOf(["inherit","primary","secondary"]),value:Kc.any,variant:Kc.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:Kc.bool}),of("MuiTextField",["root"]);const nM={standard:aj,filled:rO,outlined:QC},rM=Eh(sO,{name:"MuiTextField",slot:"Root"})({}),iM=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:p=!1,error:d=!1,FormHelperTextProps:u,fullWidth:f=!1,helperText:m,id:h,InputLabelProps:g,inputProps:y,InputProps:b,inputRef:v,label:x,maxRows:w,minRows:S,multiline:T=!1,name:O,onBlur:j,onChange:C,onFocus:k,placeholder:E,required:P=!1,rows:N,select:R=!1,SelectProps:M,slots:$={},slotProps:I={},type:A,value:B,variant:L="outlined",...D}=n,z={...n,autoFocus:i,color:l,disabled:p,error:d,fullWidth:f,multiline:T,required:P,select:R,variant:L},V=(e=>{const{classes:t}=e;return am({root:["root"]},oM,t)})(z);process.env.NODE_ENV;const F=Yf(h),W=m&&F?`${F}-helper-text`:void 0,_=x&&F?`${F}-label`:void 0,H=nM[L],q={slots:$,slotProps:{input:b,inputLabel:g,htmlInput:y,formHelperText:u,select:M,...I}},U={},G=q.slotProps.inputLabel;"outlined"===L&&(G&&void 0!==G.shrink&&(U.notched=G.shrink),U.label=x),R&&(M&&M.native||(U.id=void 0),U["aria-describedby"]=void 0);const[K,X]=Dg("root",{elementType:rM,shouldForwardComponentProp:!0,externalForwardedProps:{...q,...D},ownerState:z,className:Ju(V.root,s),ref:o,additionalProps:{disabled:p,error:d,fullWidth:f,required:P,color:l,variant:L}}),[Y,Z]=Dg("input",{elementType:H,externalForwardedProps:q,additionalProps:U,ownerState:z}),[J,Q]=Dg("inputLabel",{elementType:mj,externalForwardedProps:q,ownerState:z}),[ee,te]=Dg("htmlInput",{elementType:"input",externalForwardedProps:q,ownerState:z}),[oe,ne]=Dg("formHelperText",{elementType:xO,externalForwardedProps:q,ownerState:z}),[re,ie]=Dg("select",{elementType:cE,externalForwardedProps:q,ownerState:z}),ae=e.jsx(Y,{"aria-describedby":W,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:f,multiline:T,name:O,rows:N,maxRows:w,minRows:S,type:A,value:B,id:F,inputRef:v,onBlur:j,onChange:C,onFocus:k,placeholder:E,inputProps:te,slots:{input:$.htmlInput?ee:void 0},...Z});return e.jsxs(K,{...X,children:[null!=x&&""!==x&&e.jsx(J,{htmlFor:F,id:_,...Q,children:x}),R?e.jsx(re,{"aria-describedby":W,id:F,labelId:_,value:B,input:ae,...ie,children:a}):ae,m&&e.jsx(oe,{id:W,...ne,children:m})]})});function aM(e){return tf("MuiToggleButton",e)}"production"!==process.env.NODE_ENV&&(iM.propTypes={autoComplete:Kc.string,autoFocus:Kc.bool,children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["primary","secondary","error","info","success","warning"]),Kc.string]),defaultValue:Kc.any,disabled:Kc.bool,error:Kc.bool,FormHelperTextProps:Kc.object,fullWidth:Kc.bool,helperText:Kc.node,id:Kc.string,InputLabelProps:Kc.object,inputProps:Kc.object,InputProps:Kc.object,inputRef:py,label:Kc.node,margin:Kc.oneOf(["dense","none","normal"]),maxRows:Kc.oneOfType([Kc.number,Kc.string]),minRows:Kc.oneOfType([Kc.number,Kc.string]),multiline:Kc.bool,name:Kc.string,onBlur:Kc.func,onChange:Kc.func,onFocus:Kc.func,placeholder:Kc.string,required:Kc.bool,rows:Kc.oneOfType([Kc.number,Kc.string]),select:Kc.bool,SelectProps:Kc.object,size:Kc.oneOfType([Kc.oneOf(["medium","small"]),Kc.string]),slotProps:Kc.shape({formHelperText:Kc.oneOfType([Kc.func,Kc.object]),htmlInput:Kc.oneOfType([Kc.func,Kc.object]),input:Kc.oneOfType([Kc.func,Kc.object]),inputLabel:Kc.oneOfType([Kc.func,Kc.object]),select:Kc.oneOfType([Kc.func,Kc.object])}),slots:Kc.shape({formHelperText:Kc.elementType,htmlInput:Kc.elementType,input:Kc.elementType,inputLabel:Kc.elementType,root:Kc.elementType,select:Kc.elementType}),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),type:Kc.string,value:Kc.any,variant:Kc.oneOf(["filled","outlined","standard"])});const sM=of("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),lM=l.createContext({});"production"!==process.env.NODE_ENV&&(lM.displayName="ToggleButtonGroupContext");const cM=l.createContext(void 0);function pM(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.includes(e):e===t)}"production"!==process.env.NODE_ENV&&(cM.displayName="ToggleButtonGroupButtonContext");const dM=Eh(Oy,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[`size${Ed(o.size)}`]]}})(Rh(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${sM.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${sM.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(My()).map(([t])=>({props:{color:t},style:{[`&.${sM.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),uM=l.forwardRef(function(t,o){const{value:n,...r}=l.useContext(lM),i=l.useContext(cM),a=Mh({props:bf({...r,selected:pM(t.value,n)},t),name:"MuiToggleButton"}),{children:s,className:c,color:p="standard",disabled:d=!1,disableFocusRipple:u=!1,fullWidth:f=!1,onChange:m,onClick:h,selected:g,size:y="medium",value:b,...v}=a,x={...a,color:p,disabled:d,disableFocusRipple:u,fullWidth:f,size:y},w=(e=>{const{classes:t,fullWidth:o,selected:n,disabled:r,size:i,color:a}=e;return am({root:["root",n&&"selected",r&&"disabled",o&&"fullWidth",`size${Ed(i)}`,a]},aM,t)})(x),S=i||"";return e.jsx(dM,{className:Ju(r.className,w.root,c,S),disabled:d,focusRipple:!u,ref:o,onClick:e=>{h&&(h(e,b),e.defaultPrevented)||m&&m(e,b)},onChange:m,value:b,ownerState:x,"aria-pressed":g,...v,children:s})});function fM(e){return tf("MuiToggleButtonGroup",e)}"production"!==process.env.NODE_ENV&&(uM.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["standard","primary","secondary","error","info","success","warning"]),Kc.string]),disabled:Kc.bool,disableFocusRipple:Kc.bool,disableRipple:Kc.bool,fullWidth:Kc.bool,onChange:Kc.func,onClick:Kc.func,selected:Kc.bool,size:Kc.oneOfType([Kc.oneOf(["small","medium","large"]),Kc.string]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any.isRequired});const mM=of("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),hM=Eh("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`& .${mM.grouped}`]:t.grouped},{[`& .${mM.grouped}`]:t[`grouped${Ed(o.orientation)}`]},{[`& .${mM.firstButton}`]:t.firstButton},{[`& .${mM.lastButton}`]:t.lastButton},{[`& .${mM.middleButton}`]:t.middleButton},t.root,"vertical"===o.orientation&&t.vertical,o.fullWidth&&t.fullWidth]}})(Rh(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${mM.grouped}`]:{[`&.${mM.selected} + .${mM.grouped}.${mM.selected}`]:{borderTop:0,marginTop:0}},[`& .${mM.firstButton},& .${mM.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${mM.lastButton},& .${mM.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${mM.lastButton}.${sM.disabled},& .${mM.middleButton}.${sM.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${mM.grouped}`]:{[`&.${mM.selected} + .${mM.grouped}.${mM.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${mM.firstButton},& .${mM.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${mM.lastButton},& .${mM.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${mM.lastButton}.${sM.disabled},& .${mM.middleButton}.${sM.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),gM=l.forwardRef(function(t,o){const n=Mh({props:t,name:"MuiToggleButtonGroup"}),{children:r,className:i,color:a="standard",disabled:s=!1,exclusive:c=!1,fullWidth:p=!1,onChange:d,orientation:u="horizontal",size:f="medium",value:m,...h}=n,g={...n,disabled:s,fullWidth:p,orientation:u,size:f},y=(e=>{const{classes:t,orientation:o,fullWidth:n,disabled:r}=e;return am({root:["root",o,n&&"fullWidth"],grouped:["grouped",`grouped${Ed(o)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]},fM,t)})(g),b=l.useCallback((e,t)=>{if(!d)return;const o=m&&m.indexOf(t);let n;m&&o>=0?(n=m.slice(),n.splice(o,1)):n=m?m.concat(t):[t],d(e,n)},[d,m]),v=l.useCallback((e,t)=>{d&&d(e,m===t?null:t)},[d,m]),x=l.useMemo(()=>({className:y.grouped,onChange:c?v:b,value:m,size:f,fullWidth:p,color:a,disabled:s}),[y.grouped,c,v,b,m,f,p,a,s]),w=oS(r),S=w.length,T=e=>{const t=0===e,o=e===S-1;return t&&o?"":t?y.firstButton:o?y.lastButton:y.middleButton};return e.jsx(hM,{role:"group",className:Ju(y.root,i),ref:o,ownerState:g,...h,children:e.jsx(lM.Provider,{value:x,children:w.map((t,o)=>("production"!==process.env.NODE_ENV&&Kp.isFragment(t),e.jsx(cM.Provider,{value:T(o),children:t},o)))})})});"production"!==process.env.NODE_ENV&&(gM.propTypes={children:Kc.node,classes:Kc.object,className:Kc.string,color:Kc.oneOfType([Kc.oneOf(["standard","primary","secondary","error","info","success","warning"]),Kc.string]),disabled:Kc.bool,exclusive:Kc.bool,fullWidth:Kc.bool,onChange:Kc.func,orientation:Kc.oneOf(["horizontal","vertical"]),size:Kc.oneOfType([Kc.oneOf(["small","medium","large"]),Kc.string]),sx:Kc.oneOfType([Kc.arrayOf(Kc.oneOfType([Kc.func,Kc.object,Kc.bool])),Kc.func,Kc.object]),value:Kc.any});var yM=Bh(e.jsx("path",{d:"M19 6.41 17.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"}),"Close"),bM=Bh(e.jsx("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen"),vM=function(){return function(e,t){return t&&d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.connections=new Map,this.refCounts=new Map,this.reconnectTimeouts=new Map,this.listeners=new Map},[{key:"getStreamState",value:function(e){return this.connections.get(e)}},{key:"on",value:function(e,t){this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t)}},{key:"off",value:function(e,t){var o=this.listeners.get(e);o&&o.delete(t)}},{key:"emit",value:function(e,t){var o=this.listeners.get(e);o&&o.forEach(function(e){return e(t)})}},{key:"connect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Camera",o=this.refCounts.get(e)||0;if(this.refCounts.set(e,o+1),this.connections.has(e)){var n=this.connections.get(e);if("connected"===n.status||"connecting"===n.status)return this.emit("status:".concat(e),n),n}return this.startStream(e,t)}},{key:"disconnect",value:function(e){var t=this,o=this.refCounts.get(e)||0;o<=1?(this.refCounts.delete(e),setTimeout(function(){t.refCounts.has(e)||t.cleanup(e,!0)},5e3)):this.refCounts.set(e,o-1)}},{key:"startStream",value:function(e,t){return o=this,n=void 0,r=void 0,i=f().m(function o(){var n,r,i,a,s,l,c,p=this;return f().w(function(o){for(;;)switch(o.p=o.n){case 0:return n=this.connections.get(e),r={stream:(null==n?void 0:n.stream)||null,pc:null,status:"connecting",error:null,retryCount:(null==n?void 0:n.retryCount)||0},this.connections.set(e,r),this.emit("status:".concat(e),r),o.p=1,this.cleanup(e,!1),i=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"},{urls:"stun:stun2.l.google.com:19302"}],iceCandidatePoolSize:10,bundlePolicy:"max-bundle",rtcpMuxPolicy:"require"}),r.pc=i,i.ontrack=function(t){var o;o=t.streams&&t.streams[0]?t.streams[0]:new MediaStream([t.track]),r.stream=o,r.status="connected",r.error=null,p.emit("status:".concat(e),Object.assign({},r))},i.onconnectionstatechange=function(){"failed"===i.connectionState&&p.handleFailure(e,t,"Connection failed")},o.n=2,i.createOffer({offerToReceiveVideo:!0,offerToReceiveAudio:!1});case 2:return a=o.v,o.n=3,i.setLocalDescription(a);case 3:return o.n=4,fetch(e,{method:"POST",headers:{"Content-Type":"application/sdp",Accept:"application/sdp"},body:a.sdp});case 4:if((s=o.v).ok){o.n=5;break}throw new Error("HTTP ".concat(s.status,": ").concat(s.statusText));case 5:return o.n=6,s.text();case 6:return l=o.v,o.n=7,i.setRemoteDescription({type:"answer",sdp:l});case 7:return o.a(2,r);case 8:return o.p=8,c=o.v,this.handleFailure(e,t,c instanceof Error?c.message:"Connection failed"),o.a(2,r)}},o,this,[[1,8]])}),new(r||(r=Promise))(function(e,t){function a(e){try{l(i.next(e))}catch(e){t(e)}}function s(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var o;t.done?e(t.value):(o=t.value,o instanceof r?o:new r(function(e){e(o)})).then(a,s)}l((i=i.apply(o,n||[])).next())});var o,n,r,i}},{key:"handleFailure",value:function(e,t,o){var n=this,r=this.connections.get(e);if(r){if(r.status="failed",r.error=o,r.retryCount<3){r.retryCount++;var i=2e3+1e3*r.retryCount,a=setTimeout(function(){n.startStream(e,t)},i);this.reconnectTimeouts.set(e,a)}this.emit("status:".concat(e),Object.assign({},r))}}},{key:"cleanup",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.reconnectTimeouts.get(e);o&&(clearTimeout(o),this.reconnectTimeouts.delete(e));var n=this.connections.get(e);(null==n?void 0:n.pc)&&(n.pc.close(),n.pc=null),t&&this.connections.delete(e)}},{key:"retry",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Camera",o=this.connections.get(e);o&&(o.retryCount=0,this.startStream(e,t))}}])}(),xM=new vM,wM=function(t){var n,r=t.url,i=t.cameraName,a=t.onOpenFullscreen,s=o.useRef(null),l=h(o.useState(xM.getStreamState(r)||null),2),c=l[0],p=l[1],d=h(o.useState(!1),2),u=d[0],f=d[1];o.useEffect(function(){if(r){xM.connect(r,i),p(xM.getStreamState(r)||null);var e=function(e){p(e)};return xM.on("status:".concat(r),e),function(){xM.off("status:".concat(r),e),xM.disconnect(r)}}},[r,i]),o.useEffect(function(){s.current&&(null==c?void 0:c.stream)&&s.current.srcObject!==c.stream&&(s.current.srcObject=c.stream,s.current.play().catch(function(){}))},[null==c?void 0:c.stream]);var m="connected"===(null==c?void 0:c.status),g="connecting"===(null==c?void 0:c.status),y=null==c?void 0:c.error,b=null!==(n=null==c?void 0:c.retryCount)&&void 0!==n?n:0;return e.jsxs("div",{className:"relative bg-black rounded-lg overflow-hidden h-full w-full",children:[g&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/80 z-10",children:e.jsxs("div",{className:"text-center text-white text-xs",children:[e.jsx("div",{children:"Connecting..."}),b>0&&e.jsxs("div",{className:"mt-1 opacity-80",children:["Retry ",b]})]})}),y&&!m&&e.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-red-900/90 z-10",children:e.jsxs("div",{className:"text-center p-2 text-xs text-white",children:[e.jsx("div",{className:"font-medium",children:"Connection Error"}),e.jsx("div",{className:"mt-1 opacity-80",children:y}),e.jsx("button",{onClick:function(){r&&xM.retry(r,i)},className:"mt-2 px-2 py-1 bg-red-600 rounded text-xs",children:"Retry"})]})}),e.jsx("video",{ref:s,autoPlay:!0,playsInline:!0,muted:!0,className:"w-full h-full object-cover ".concat(m?"block":"hidden")}),m&&e.jsx("button",{onClick:u?function(){document.exitFullscreen&&document.exitFullscreen(),f(!1)}:function(){s.current&&(s.current.requestFullscreen&&s.current.requestFullscreen(),f(!0),null==a||a())},className:"absolute top-2 right-2 p-1.5 bg-black/50 text-white rounded",title:u?"Exit Full Screen":"Enter Full Screen",children:u?"⤫":"⛶"})]})},SM={rootBase:{display:"flex",alignItems:"center",gap:"20px",padding:"12px 24px"},rootLight:{backgroundColor:"#323174",borderBottom:"1px solid rgba(255,255,255,0.08)",color:"#ffffff"},rootDark:{background:"#323174",borderBottom:"1px solid rgba(255,255,255,0.08)",color:"#ffffff"},rootGlass:{background:"rgba(50, 49, 116, 0.8)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)",color:"#ffffff"},logo:{cursor:"pointer",display:"flex",alignItems:"center",gap:"16px"},logoImage:{height:"30px",width:"100%",objectFit:"contain"},search:{flex:1,maxWidth:"400px",display:"flex",alignItems:"center",color:"white"},searchInput:{width:"100%",padding:"8px 16px",border:"1px solid #ddd",borderRadius:"4px",fontSize:"14px"},searchIcon:{marginRight:8,color:"#64748b",display:"inline-flex"},selector:{display:"flex",alignItems:"center",gap:"8px"},selectorLabel:{fontSize:"14px",color:"#666",fontWeight:500},select:{padding:"8px 12px",border:"1px solid rgba(255,255,255,0.3)",borderRadius:"4px",fontSize:"14px",backgroundColor:"transparent",color:"white",cursor:"pointer"},option:{color:"#333",backgroundColor:"white"},actions:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto"},title:{fontSize:"20px",fontWeight:600,margin:0,color:"inherit"},hDivider:{width:"100%",height:1,background:"rgba(255,255,255,0.08)"},vDivider:{width:1,height:"100%",background:"rgba(255,255,255,0.12)"},iconButton:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 12px",borderRadius:10,border:"1px solid rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.04)",color:"#e2e8f0",cursor:"pointer"},iconButtonActive:{borderColor:"rgba(37,99,235,0.8)",background:"linear-gradient(135deg,#2563eb,#7c3aed)",color:"#fff"},badge:{display:"inline-flex",alignItems:"center",padding:"2px 8px",borderRadius:999,background:"rgba(37,99,235,0.15)",color:"#cbd5e1",fontSize:12,fontWeight:600},eventsBar:{display:"flex",gap:8,overflowX:"auto",padding:"8px 0"},eventsChip:{border:"1px solid rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.04)",color:"#e2e8f0",padding:"8px 12px",borderRadius:12,cursor:"pointer",whiteSpace:"nowrap"},eventsChipActive:{background:"linear-gradient(135deg,#16a34a,#22c55e)",color:"#0b1224",borderColor:"transparent",fontWeight:700}},TM=function(t){var o=t.value,n=t.onChange,r=t.options,i=t.placeholder,a=void 0===i?"Select":i,s=t.label,l=t.disabled,c=void 0!==l&&l,p=t.selectorWidth,d=t.labelWidth,u=t.dense,f=void 0!==u&&u,m=P(),h=Object.assign(Object.assign({},SM.selector),f?{gap:"4px"}:{}),g=Object.assign(Object.assign(Object.assign(Object.assign({},SM.select),f?{padding:"6px 8px",fontSize:"13px"}:{}),p?{width:p}:{}),{border:"1px solid ".concat(m.border.subtle),backgroundColor:m.surface.control,color:m.text.primary});return e.jsxs("div",{className:"topbar-select",style:h,children:[s&&e.jsx("span",{style:Object.assign(Object.assign(Object.assign({},SM.selectorLabel),{color:m.text.muted}),d?{width:d,display:"inline-block"}:{}),children:s}),e.jsxs("select",{value:o,onChange:function(e){return n(e.target.value)},disabled:c,style:Object.assign({},g),children:[a&&e.jsx("option",{value:"",disabled:!0,style:{backgroundColor:"#ffffff",color:"#000000"},children:a}),r.map(function(t){return e.jsx("option",{value:t.value,style:{backgroundColor:"#ffffff",color:"#000000"},children:t.label},t.value)})]})]})},OM=function(t){var n=t.levels,r=vs(t,["levels"]),i=o.useMemo(function(){return n.map(function(e){return{value:e,label:e}})},[n]);return e.jsx(TM,Object.assign({options:i},r))},jM=function(t){var n=t.locations,r=vs(t,["locations"]),i=o.useMemo(function(){return n.map(function(e){return{value:e.id,label:e.name}})},[n]);return e.jsx(TM,Object.assign({options:i},r))},CM=function(t){var o=t.children,n=t.active,r=void 0!==n&&n,i=t.onClick,a=t.title,s=P();return e.jsx("button",{type:"button",className:"topbar-icon-button",title:a,onClick:i,style:Object.assign(Object.assign(Object.assign({},SM.iconButton),{border:"1px solid ".concat(s.border.subtle),background:r?"linear-gradient(135deg, ".concat(s.accent.primary,", ").concat(s.accent.secondary,")"):s.surface.control,color:r?s.text.onAccent:s.text.primary}),r?{borderColor:s.accent.primary+"cc"}:{}),onMouseEnter:function(e){r||(e.currentTarget.style.backgroundColor=s.state.hover)},onMouseLeave:function(e){r||(e.currentTarget.style.backgroundColor=s.surface.control)},children:o})},kM=function(t){var o=t.value,n=t.onChange,r=t.options,i=t.size,a=void 0===i?"md":i;return e.jsx("div",{className:"topbar-toggle-group",style:{display:"inline-flex",border:"1px solid #2d2d2d",borderRadius:999,overflow:"hidden",background:"rgba(255,255,255,0.04)"},children:r.map(function(t){var r=t.value===o;return e.jsx("button",{type:"button",onClick:function(){return n(t.value)},style:{border:"none",background:r?"linear-gradient(135deg,#2563eb,#7c3aed)":"transparent",color:r?"#fff":"#cbd5e1",padding:"sm"===a?"6px 10px":"8px 14px",fontSize:"sm"===a?12:14,fontWeight:600,cursor:"pointer"},children:t.label},t.value)})})},EM=function(t){var o=t.count,n=t.variant,r=void 0===n?"default":n,i=P();return e.jsx("span",{style:{backgroundColor:"danger"===r?i.semantic.critical:i.accent.primary,color:i.text.onAccent,borderRadius:"12px",padding:"2px 8px",fontSize:"12px",fontWeight:600,minWidth:"20px",textAlign:"center"},children:o})},PM={Root:function(t){var o=t.children,n=t.className,r=void 0===n?"":n,i=t.variant,a=void 0===i?"light":i,s=t.height,l=void 0===s?72:s,c=t.sticky,p=void 0===c||c,d=t.zIndex,u=void 0===d?1e3:d,f=t.style,m=P(),h="glass"===a,g=Object.assign(Object.assign(Object.assign({},SM.rootBase),{background:h?"".concat(m.surface.topbar,"cc"):m.surface.topbar,color:m.text.primary,borderBottom:"1px solid ".concat(m.border.subtle),backdropFilter:h?"blur(12px)":void 0,height:l,position:p?"sticky":"relative",zIndex:u}),f);return e.jsx("div",{className:"topbar ".concat(r),style:g,children:o})},Section:function(t){var o=t.children,n=t.align,r=void 0===n?"left":n,i=t.gap,a=void 0===i?12:i,s=t.wrap,l=void 0!==s&&s,c=t.grow,p=void 0!==c&&c,d=t.className,u=void 0===d?"":d,f="right"===r?"flex-end":"center"===r?"center":"flex-start";return e.jsx("div",{className:"topbar-section ".concat(u),style:{display:"flex",alignItems:"center",justifyContent:f,gap:a,flexWrap:l?"wrap":"nowrap",flexGrow:p?1:0},children:o})},Divider:function(t){var o=t.orientation;return"vertical"===(void 0===o?"horizontal":o)?e.jsx("div",{style:SM.vDivider,className:"topbar-divider"}):e.jsx("div",{style:SM.hDivider,className:"topbar-divider"})},Logo:function(t){var o=t.src,n=void 0===o?"/logos/merdeka-118-logo.png":o,r=t.alt,i=void 0===r?"App Logo":r,a=t.onClick;return e.jsxs("div",{className:"topbar-logo",style:SM.logo,onClick:a,children:[e.jsx("img",{src:"/logos/merdeka.png",alt:"Merdeka 118",style:{height:30,objectFit:"contain"}}),e.jsx("div",{style:{width:1,height:24,backgroundColor:"rgba(255,255,255,0.2)"}}),e.jsx("img",{src:n,alt:i,style:SM.logoImage})]})},LevelSelector:function(t){return e.jsx(OM,Object.assign({},t))},LocationSelector:function(t){return e.jsx(jM,Object.assign({},t))},Actions:function(t){var o=t.children;return e.jsx("div",{className:"topbar-actions",style:{display:"flex",alignItems:"center",gap:"12px",marginLeft:"auto"},children:o})},Title:function(t){var o=t.children;return e.jsx("h1",{className:"topbar-title",style:{fontSize:"20px",fontWeight:600,margin:0,color:"inherit"},children:o})},IconButton:CM,Badge:function(t){var o=t.label;return e.jsx("span",{className:"topbar-badge",style:SM.badge,children:o})},SelectBase:TM,ToggleGroup:kM,Spacer:function(){return e.jsx("div",{style:{flex:1,minWidth:8}})},LocationSelect:jM,LevelSelect:OM,ListTypeToggle:function(t){var o=t.value,n=t.onChange;return e.jsx(kM,{value:o,onChange:n,options:[{label:"Events",value:"events"},{label:"Booths",value:"booths"}]})},EventsBar:function(t){var o=t.eventCount,n=void 0===o?0:o,r=t.onClick,i=t.className,a=void 0===i?"":i,s=P();return e.jsxs("div",{className:a,onClick:r,style:{display:"flex",alignItems:"center",gap:8,cursor:r?"pointer":"default",padding:"6px 12px",borderRadius:6,backgroundColor:s.surface.control,border:"1px solid ".concat(s.border.subtle)},children:[e.jsx("span",{style:{fontSize:14,color:s.text.primary},children:"Events"}),n>0&&e.jsx(EM,{count:n,variant:n>10?"danger":"default"})]})},BackButton:function(t){var o=t.label,n=void 0===o?"Back":o,r=t.onClick;return e.jsxs(CM,{onClick:r,title:n,children:["← ",n]})},SidebarToggleButton:function(t){var o=t.active,n=t.onClick;return e.jsx(CM,{active:o,onClick:n,title:"Toggle sidebar",children:"☰"})},ThemeToggleButton:function(t){var o=t.onClick;return e.jsx(CM,{onClick:o,title:"Toggle theme",children:"🌓"})},TimelineToggleButton:function(t){var o=t.active,n=t.onClick;return e.jsx(CM,{active:o,onClick:n,title:"Timeline",children:"🕒"})}},NM={container:{position:"fixed",right:0,top:0,bottom:0,width:"400px",display:"flex",flexDirection:"column",zIndex:1e3},header:{padding:"20px",display:"flex",justifyContent:"space-between",alignItems:"center"},body:{flex:1,padding:"20px",overflowY:"auto"},footer:{padding:"20px"},closeButton:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",padding:"0 10px"}},RM={Root:function(t){var o=t.children,n=t.isOpen;if(t.onClose,!n)return null;var r=P();return e.jsx("div",{className:"panel-container",style:Object.assign(Object.assign({},NM.container),{backgroundColor:r.surface.panel,color:r.text.primary,boxShadow:"-2px 0 8px rgba(0,0,0,0.12)"}),children:o})},Header:function(t){var o=t.title,n=t.onClose,r=P();return e.jsxs("div",{className:"panel-header",style:Object.assign(Object.assign({},NM.header),{borderBottom:"1px solid ".concat(r.border.subtle),color:r.text.primary}),children:[e.jsx("h2",{style:{margin:0},children:o}),n&&e.jsx("button",{onClick:n,style:Object.assign(Object.assign({},NM.closeButton),{color:r.text.primary}),children:"×"})]})},Body:function(t){var o=t.children;return e.jsx("div",{className:"panel-body",style:NM.body,children:o})},Footer:function(t){var o=t.children,n=P();return e.jsx("div",{className:"panel-footer",style:Object.assign(Object.assign({},NM.footer),{borderTop:"1px solid ".concat(n.border.subtle),color:n.text.primary}),children:o})}},MM={root:function(e){return{backgroundColor:e.surface.card,borderRadius:"8px",overflow:"hidden",transition:"all 0.2s",color:e.text.primary}},header:function(e){return{padding:"16px",borderBottom:"1px solid ".concat(e.border.subtle),display:"flex",alignItems:"center",gap:"12px"}},headerImage:{width:"48px",height:"48px",borderRadius:"4px",objectFit:"cover"},headerContent:{flex:1},title:function(e){return{margin:0,fontSize:"16px",fontWeight:600,color:e.text.primary}},subtitle:function(e){return{margin:"4px 0 0 0",fontSize:"14px",color:e.text.muted}},headerActions:{display:"flex",gap:"8px"},body:{padding:"16px"},footer:function(e){return{padding:"12px 16px",borderTop:"1px solid ".concat(e.border.subtle),display:"flex",gap:"8px"}},image:{width:"100%",overflow:"hidden"},imageImg:{width:"100%",height:"100%",objectFit:"cover"}},$M={Root:function(t){var o=t.children,n=t.onClick,r=t.variant,i=void 0===r?"default":r,a=t.className,s=void 0===a?"":a,l=P(),c="outlined"===i?{border:"2px solid ".concat(l.accent.primary)}:"elevated"===i?{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"}:{border:"1px solid ".concat(l.border.subtle)};return e.jsx("div",{className:"card card-".concat(i," ").concat(s),style:Object.assign(Object.assign(Object.assign({},MM.root(l)),c),{cursor:n?"pointer":"default"}),onClick:n,children:o})},Header:function(t){var o=t.title,n=t.subtitle,r=t.actions,i=t.image,a=P();return e.jsxs("div",{className:"card-header",style:MM.header(a),children:[i&&e.jsx("img",{src:i,alt:o,style:MM.headerImage}),e.jsxs("div",{style:MM.headerContent,children:[e.jsx("h3",{style:MM.title(a),children:o}),n&&e.jsx("p",{style:MM.subtitle(a),children:n})]}),r&&e.jsx("div",{style:MM.headerActions,children:r})]})},Body:function(t){var o=t.children,n=P();return e.jsx("div",{className:"card-body",style:MM.body,children:e.jsx("div",{style:{color:n.text.primary},children:o})})},Footer:function(t){var o=t.children,n=t.align,r=void 0===n?"left":n,i=P();return e.jsx("div",{className:"card-footer",style:Object.assign(Object.assign({},MM.footer(i)),{justifyContent:"left"===r?"flex-start":"center"===r?"center":"flex-end"}),children:o})},Image:function(t){var o=t.src,n=t.alt,r=t.height,i=void 0===r?"200px":r;return e.jsx("div",{className:"card-image",style:Object.assign(Object.assign({},MM.image),{height:i}),children:e.jsx("img",{src:o,alt:n,style:MM.imageImg})})}},IM={backgroundColor:"#323174",borderBottom:"1px solid rgba(255,255,255,0.08)",color:"#ffffff"},AM={background:"#323174",borderBottom:"1px solid rgba(255,255,255,0.1)",color:"#FFFFFF"},BM={background:"rgba(50, 49, 116, 0.8)",backdropFilter:"blur(12px)",borderBottom:"1px solid rgba(255,255,255,0.06)",color:"#ffffff"},LM={Root:function(t){var n=t.children,r=t.className,i=void 0===r?"":r,a=t.variant,s=void 0===a?"light":a,c=h(o.useState(""),2),p=c[0];c[1];var d=P(),u=function(e,t){var o=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return"rgba(".concat(o,", ").concat(n,", ").concat(r,", ").concat(t,")")},f=function(){if("glass"===s)return Object.assign(Object.assign({},BM),{background:u(d.surface.topbar,.8),backgroundColor:u(d.surface.topbar,.8)});var e="dark"===s?Object.assign({},AM):Object.assign({},IM);return Object.assign(Object.assign({},e),{backgroundColor:d.surface.topbar,background:d.surface.topbar})}();return e.jsx("nav",{style:f,className:"fixed bottom-0 left-0 w-full h-[64px] flex justify-around rounded-t-xl items-center shadow-md z-[40] ".concat(i),children:l.default.Children.map(n,function(e){return l.default.isValidElement(e)&&e.props&&"id"in e.props&&"function"==typeof e.type?l.default.cloneElement(e,{activeTab:p}):e})})},Item:function(t){var n=t.id,r=t.label,i=t.icon,a=t.onClick,s=h(o.useState(""),2);s[0];var l=s[1],c=h(o.useState(!1),2),p=c[0],d=c[1],u=P();return e.jsxs("button",{onClick:function(){l(n),null==a||a()},onMouseDown:function(){d(!0),setTimeout(function(){return d(!1)},300)},className:"flex flex-col items-center justify-center text-xs transition-all duration-200",style:{color:u.accent.secondary},children:[e.jsx("div",{className:"text-2xl transition-transform ".concat(p?"scale-110":"scale-100"),style:{color:u.accent.secondary},children:i}),e.jsx("span",{className:"mt-1",style:{color:u.accent.secondary},children:r})]})}},DM={root:{position:"relative",display:"inline-block"},trigger:{padding:"8px 16px",border:"1px solid #ddd",borderRadius:"4px",backgroundColor:"white",cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",fontSize:"14px",minWidth:"150px",justifyContent:"space-between"},triggerDisabled:{opacity:.5,cursor:"not-allowed"},arrow:{fontSize:"10px",color:"#666"},menu:{position:"absolute",top:"calc(100% + 4px)",left:0,right:0,backgroundColor:"white",border:"1px solid #ddd",borderRadius:"4px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",zIndex:1e3,maxHeight:"300px",overflowY:"auto"},item:{padding:"10px 16px",cursor:"pointer",fontSize:"14px",transition:"background-color 0.15s"},itemDisabled:{opacity:.5,cursor:"not-allowed"},itemSelected:{backgroundColor:"#e3f2fd",color:"#1a73e8",fontWeight:500},group:{borderBottom:"1px solid #f0f0f0"},groupLabel:{padding:"8px 16px",fontSize:"12px",fontWeight:600,color:"#666",textTransform:"uppercase",backgroundColor:"#f8f8f8"}},zM={Root:function(t){var n=t.value,r=t.onChange,i=t.children,a=t.disabled,s=t.style,c=t.className,p=void 0===c?"":c,d=h(o.useState(!1),2),u=d[0],f=d[1];return e.jsx("div",{className:"dropdown ".concat(p),style:Object.assign(Object.assign({},DM.root),s),children:l.default.Children.map(i,function(e){return l.default.isValidElement(e)?l.default.cloneElement(e,{isOpen:u,setIsOpen:f,value:n,onChange:r,disabled:a}):e})})},Trigger:function(t){var o=t.children,n=t.isOpen,r=t.setIsOpen,i=t.disabled,a=t.style,s=t.className,l=void 0===s?"":s;return e.jsxs("button",{className:"dropdown-trigger ".concat(l),style:Object.assign(Object.assign(Object.assign({},DM.trigger),i?DM.triggerDisabled:{}),a),onClick:function(){return!i&&(null==r?void 0:r(!n))},disabled:i,children:[o,e.jsx("span",{style:DM.arrow,children:n?"▲":"▼"})]})},Menu:function(t){var o=t.children,n=t.isOpen,r=t.setIsOpen,i=t.value,a=t.onChange,s=t.style,c=t.className,p=void 0===c?"":c;return n?e.jsx("div",{className:"dropdown-menu ".concat(p),style:Object.assign(Object.assign({},DM.menu),s),children:l.default.Children.map(o,function(e){return l.default.isValidElement(e)?l.default.cloneElement(e,{isSelected:e.props.value===i,onClick:function(){null==a||a(e.props.value),null==r||r(!1)}}):e})}):null},Item:function(t){var o=t.children,n=t.disabled,r=t.isSelected,i=t.onClick,a=t.style,s=t.className,l=void 0===s?"":s;return e.jsx("div",{className:"dropdown-item ".concat(r?"selected":""," ").concat(l),style:Object.assign(Object.assign(Object.assign(Object.assign({},DM.item),n?DM.itemDisabled:{}),r?DM.itemSelected:{}),a),onClick:function(){return!n&&(null==i?void 0:i())},children:o})},Group:function(t){var o=t.label,n=t.children,r=t.style,i=t.className,a=void 0===i?"":i;return e.jsxs("div",{className:"dropdown-group ".concat(a),style:Object.assign(Object.assign({},DM.group),r),children:[e.jsx("div",{style:DM.groupLabel,children:o}),n]})}},VM={backdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",zIndex:2e3},content:{borderRadius:"8px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)",display:"flex",flexDirection:"column",maxHeight:"90vh"},small:{width:"400px"},medium:{width:"600px"},large:{width:"800px"},header:{padding:"20px 24px",display:"flex",justifyContent:"space-between",alignItems:"center"},title:{margin:0,fontSize:"20px",fontWeight:600},headerActions:{display:"flex",alignItems:"center",gap:"12px"},closeButton:{background:"none",border:"none",fontSize:"28px",cursor:"pointer",padding:"0 8px",lineHeight:1,transition:"color 0.2s ease"},body:{padding:"24px",overflowY:"auto",flex:1},footer:{padding:"16px 24px",display:"flex",gap:"12px"}},FM={Root:function(t){var o=t.isOpen,n=t.onClose,r=t.children,i=t.size,a=void 0===i?"medium":i,s=P();return o?e.jsx("div",{className:"modal-backdrop",style:Object.assign(Object.assign({},VM.backdrop),{backgroundColor:s.surface.backdrop}),onClick:n,children:e.jsx("div",{className:"modal-content modal-".concat(a),style:Object.assign(Object.assign(Object.assign({},VM.content),VM[a]),{backgroundColor:s.surface.modal}),onClick:function(e){return e.stopPropagation()},children:r})}):null},Header:function(t){var o=t.title,n=t.onClose,r=t.actions,i=P();return e.jsxs("div",{className:"modal-header",style:Object.assign(Object.assign({},VM.header),{borderBottom:"1px solid ".concat(i.border.subtle)}),children:[e.jsx("h2",{style:Object.assign(Object.assign({},VM.title),{color:i.text.primary}),children:o}),e.jsxs("div",{style:VM.headerActions,children:[r,n&&e.jsx("button",{onClick:n,className:"modal-close",style:Object.assign(Object.assign({},VM.closeButton),{color:i.text.muted}),onMouseEnter:function(e){e.currentTarget.style.color=i.text.primary},onMouseLeave:function(e){e.currentTarget.style.color=i.text.muted},children:"×"})]})]})},Body:function(t){var o=t.children;return e.jsx("div",{className:"modal-body",style:VM.body,children:o})},Footer:function(t){var o=t.children,n=t.align,r=void 0===n?"right":n,i=P();return e.jsx("div",{className:"modal-footer",style:Object.assign(Object.assign({},VM.footer),{borderTop:"1px solid ".concat(i.border.subtle),justifyContent:"left"===r?"flex-start":"center"===r?"center":"flex-end"}),children:o})}},WM=function(t){var o=t.title,n=t.children;return e.jsxs("div",{style:{marginBottom:8},children:[e.jsx("div",{style:{marginBottom:4,fontWeight:500},children:o}),n]})},_M=function(t,o,n){return e.jsxs("label",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:4},children:[e.jsx("span",{children:t}),e.jsx("input",{type:"color",value:o,onChange:function(e){return n(e.target.value)}})]})};exports.AIAnalysisPanel=function(t){var o,r,i=t.insights,a=t.statistics,s=t.topCategories,l=void 0===s?[]:s,c=t.variant,p=void 0===c?"light":c,d=t.isLoading,u=void 0!==d&&d,f=t.title,m=void 0===f?"AI Analysis":f,h=t.description,g=void 0===h?"Insights and recommendations":h,y=t.topCategoriesLabel,b=void 0===y?"Top Alert Types":y,v=t.insightsLabel,x=void 0===v?"Insights & Recommendations":v,w=t.emptyMessage,S=void 0===w?"No data available for analysis":w,T=t.emptyHint,O=P(),j=null!==(o=null==a?void 0:a.totalCount)&&void 0!==o?o:0,C=null!==(r=null==a?void 0:a.criticalCount)&&void 0!==r?r:0,k=j>0||i.length>0||l.length>0,E={critical:O.semantic.critical,warning:O.semantic.warning,success:O.semantic.success,info:O.semantic.info},N={critical:"".concat(O.semantic.critical,"14"),warning:"".concat(O.semantic.warning,"14"),success:"".concat(O.semantic.success,"14"),criticalStrong:"".concat(O.semantic.critical,"1f")},R=function(e){var t;return null!==(t=E[e])&&void 0!==t?t:O.text.muted};return e.jsx(gs,{title:m,description:g,isLoading:u,variant:p,bodyMinHeight:300,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[j>0&&e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"12px"},children:[e.jsxs("div",{style:{padding:"12px",borderRadius:"8px",backgroundColor:O.surface.control,border:"1px solid ".concat(O.border.subtle)},children:[e.jsx("div",{style:{fontSize:"24px",fontWeight:600,color:O.text.primary,marginBottom:"4px"},children:j}),e.jsx("div",{style:{fontSize:"12px",color:O.text.muted},children:"Total"})]}),C>=0&&e.jsxs("div",{style:{padding:"12px",borderRadius:"8px",backgroundColor:C>0?N.criticalStrong:O.surface.control,border:"1px solid ".concat(C>0?E.critical:O.border.subtle)},children:[e.jsx("div",{style:{fontSize:"24px",fontWeight:600,color:C>0?E.critical:O.text.primary,marginBottom:"4px"},children:C}),e.jsx("div",{style:{fontSize:"12px",color:O.text.muted},children:"Critical"})]})]}),l.length>0&&e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:600,color:O.text.primary,marginBottom:"8px"},children:b}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:l.map(function(t){var o;return e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",padding:"10px",borderRadius:"6px",backgroundColor:O.surface.control,border:"1px solid ".concat(O.border.subtle)},children:[e.jsx(n.Icon,{icon:null!==(o=t.icon)&&void 0!==o?o:"mdi:alert",width:20,height:20,style:{color:R(t.severity)}}),e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:500,color:O.text.primary},children:t.label}),e.jsxs("div",{style:{fontSize:"11px",color:O.text.muted},children:[t.count," (",t.percentage,"%)"]})]})]},t.label)})})]}),i.length>0&&e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:600,color:O.text.primary,marginBottom:"8px"},children:x}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:i.map(function(t,o){var r,i,a,s;return e.jsxs("div",{style:{display:"flex",gap:"12px",padding:"12px",borderRadius:"8px",backgroundColor:null!==(r=N[t.type])&&void 0!==r?r:O.surface.control,border:"1px solid ".concat(null!==(i=E[t.type])&&void 0!==i?i:O.border.subtle)},children:[e.jsx(n.Icon,{icon:null!==(a=t.icon)&&void 0!==a?a:"mdi:information",width:20,height:20,style:{color:null!==(s=E[t.type])&&void 0!==s?s:E.info,flexShrink:0,marginTop:"2px"}}),e.jsxs("div",{style:{flex:1},children:[e.jsx("div",{style:{fontSize:"13px",fontWeight:600,color:O.text.primary,marginBottom:"4px"},children:t.title}),e.jsx("div",{style:{fontSize:"12px",color:O.text.muted,lineHeight:1.5},children:t.message})]})]},o)})})]}),!k&&!u&&e.jsxs("div",{style:{textAlign:"center",padding:"24px",color:O.text.muted},children:[e.jsx(n.Icon,{icon:"mdi:chart-line",width:48,height:48,style:{color:O.text.muted,opacity:.5,marginBottom:"12px"}}),e.jsx("div",{style:{fontSize:"14px"},children:S}),T&&e.jsx("div",{style:{fontSize:"12px",marginTop:"4px"},children:T})]})]})})},exports.AlertCameraChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Top Cameras by Alerts":i,s=t.description,c=void 0===s?"Cameras with most alerts":s,p=P(),d=0===o.values.length,u=l.default.useMemo(function(){var e;return e=o.colors?Array.isArray(o.colors)?o.labels.map(function(e,t){return o.colors[t]||Cs(p.accent.primary,o.labels.length)[t]}):o.labels.map(function(e){return o.colors[e]||Cs(p.accent.primary,o.labels.length)[o.labels.indexOf(e)]}):Cs(p.accent.primary,o.labels.length),{labels:o.labels,datasets:[{label:"Alert Count",data:o.values,backgroundColor:e,borderColor:p.border.subtle,borderWidth:1}]}},[o,p.accent.primary,p.border.subtle]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"bar",data:u})})},exports.AlertSeverityChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Alert Severity Distribution":i,s=t.description,c=void 0===s?"Distribution by severity level":s,p=P(),d=0===o.values.length,u={Severe:p.semantic.critical,Critical:p.semantic.critical,Medium:p.semantic.warning,Warning:p.semantic.warning,Normal:p.semantic.success,Success:p.semantic.success,Info:p.semantic.info},f=l.default.useMemo(function(){var e=o.labels.map(function(e,t){var n;if(o.colors){var r=Array.isArray(o.colors)?o.colors[t]:o.colors[e];if(r)return r}return null!==(n=u[e])&&void 0!==n?n:p.accent.primary});return{labels:o.labels,datasets:[{label:"Alert Severity",data:o.values,backgroundColor:e,borderColor:p.border.subtle,borderWidth:1}]}},[o,p.semantic,p.accent.primary,p.border.subtle]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"bar",data:f})})},exports.AlertTimelineChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Alerts Timeline":i,s=t.description,c=void 0===s?"Alerts over time":s,p=P(),d=0===o.values.length,u=l.default.useMemo(function(){var e,t;return e=o.colors?Array.isArray(o.colors)?o.colors[0]||p.accent.primary:o.colors[o.labels[0]]||p.accent.primary:p.accent.primary,t="".concat(e,"26"),{labels:o.labels,datasets:[{label:"Alerts",data:o.values,borderColor:e,backgroundColor:t,tension:.3,fill:!0}]}},[o,p.accent.primary]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"line",data:u})})},exports.AlertTriggerChart=function(t){var o=t.data,n=t.variant,r=void 0===n?"dark":n,i=t.title,a=void 0===i?"Alerts by Trigger Type":i,s=t.description,c=void 0===s?"Distribution of alerts by trigger":s,p=P(),d=0===o.values.length,u=l.default.useMemo(function(){var e;return e=o.colors?Array.isArray(o.colors)?o.labels.map(function(e,t){return o.colors[t]||Cs(p.accent.primary,o.labels.length)[t]}):o.labels.map(function(e){return o.colors[e]||Cs(p.accent.primary,o.labels.length)[o.labels.indexOf(e)]}):Cs(p.accent.primary,o.labels.length),{labels:o.labels,datasets:[{label:"Alerts by Trigger",data:o.values,backgroundColor:e,borderColor:p.border.subtle,borderWidth:1}]}},[o,p.accent.primary,p.border.subtle]);return e.jsx(gs,{title:a,description:c,variant:r,empty:d,bodyMinHeight:220,children:!d&&e.jsx(Ts,{type:"doughnut",data:u,options:{plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}}})})},exports.AlertsPanel=function(t){var n=t.items,r=t.onItemClick,i=t.variant,a=void 0===i?"light":i,s=t.maxItems,l=void 0===s?30:s,c=t.title,d=void 0===c?"Alerts":c,u=t.description,f=void 0===u?"Critical and warning events":u,m=t.emptyMessage,h=void 0===m?"There are currently no active alerts.":m,g=o.useMemo(function(){var e=function(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n).sort(function(e,t){var o=new Date(e.timestamp||0).getTime(),n=new Date(t.timestamp||0).getTime();return o&&n?n-o:0});return e.slice(0,l).map(function(e){return{id:e.id,message:e.message,time:e.time,severity:e.severity,category:e.category}})},[n,l]);return e.jsx(gs,{title:d,description:f,variant:a,children:e.jsx(bs,{alerts:g,onAlertClick:function(e){if(r){var t=n.find(function(t){return String(t.id)===String(e.id)});t&&r(t)}},maxHeight:220,emptyText:h})})},exports.BottomBar=LM,exports.Button=xs,exports.CameraStreamWidget=function(t){var o=t.camera,n=t.streamUrl,r=t.onClose,i=t.onFullscreen,a=t.variant,s=void 0===a?"dark":a,l=t.StreamComponent,c=t.streamType,p=void 0===c?"unknown":c,d=P(),u=function(){n&&i&&i(n,o.name)},f=l;return f||"webrtc"!==p||(f=function(t){var o=t.url,n=t.cameraName,r=t.onOpenFullscreen;return e.jsx(wM,{url:o,cameraName:n,onOpenFullscreen:r})}),e.jsx(gs,{title:o.name,description:"Live Stream",variant:s,actions:e.jsxs("div",{style:{display:"flex",gap:"4px"},children:[n&&e.jsx(Yy,{size:"small",onClick:u,sx:{color:d.text.muted},title:"Open Fullscreen",children:e.jsx(bM,{fontSize:"small"})}),r&&e.jsx(Yy,{size:"small",onClick:r,sx:{color:d.text.muted},children:e.jsx(yM,{fontSize:"small"})})]}),children:e.jsx("div",{style:{width:"100%",aspectRatio:"16/9",backgroundColor:"#000",borderRadius:8,overflow:"hidden",position:"relative"},children:n?f?e.jsx(f,{url:n,cameraName:o.name,streamType:p,onOpenFullscreen:u}):e.jsxs("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:d.text.muted,padding:"0 12px",textAlign:"center"},children:['No stream renderer configured for type "',p,'". Provide a StreamComponent or use a supported type like "webrtc".']}):e.jsx("div",{style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:d.text.muted},children:"No stream URL configured"})})})},exports.Card=$M,exports.Chart=Ts,exports.ChatbotPanel=function(t){var o=t.variant,n=void 0===o?"light":o,r=t.onOpenChat,i=t.title,a=void 0===i?"Chatbot":i,s=t.description,l=void 0===s?"Ask for summaries or actions":s,c=t.placeholderText,p=void 0===c?'Try: "Summarize alerts for the last hour" or "Show top 3 congested zones".':c,d=t.buttonLabel,u=void 0===d?"Open Chat":d;return e.jsx(gs,{title:a,description:l,isLoading:!1,variant:n,children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[e.jsx("p",{style:{marginTop:0,marginBottom:8},children:p}),e.jsx(xs,{variant:"primary",size:"small",style:{width:"100%"},onClick:function(){return r?r():void 0},children:u})]})})},exports.DashboardBottomRegion=function(t){var o=t.children,n=t.leftOffset,r=void 0===n?0:n,i=t.rightOffset,a=void 0===i?0:i,s=t.className,l=void 0===s?"":s,c=t.style,p=Object.assign({position:"absolute",bottom:0,left:r,right:a,zIndex:100,transition:"left 0.3s ease, right 0.3s ease"},c);return e.jsx("div",{className:"dashboard-bottom-region ".concat(l),style:p,children:o})},exports.DashboardMain=function(t){var o=t.children,n=t.overlayLayers,r=t.className,i=void 0===r?"":r,a=t.style,s=Object.assign({flex:1,position:"relative",overflow:"hidden"},a);return e.jsxs("div",{className:"dashboard-main ".concat(i),style:s,children:[o,n&&e.jsx("div",{className:"dashboard-main-overlays",style:{position:"absolute",inset:0,pointerEvents:"none"},children:e.jsx("div",{style:{pointerEvents:"auto"},children:n})})]})},exports.DashboardMobileDrawer=function(t){var o=t.isOpen,n=t.activeSide,r=t.onSelectSide,i=t.onClose,a=t.left,s=t.right,l=t.bodySpacing,c=void 0===l?{gap:16,paddingBottom:24}:l,p=P(),d="left"===n,u=d?a:s;return e.jsxs(e.Fragment,{children:[o&&e.jsx("div",{style:{position:"fixed",inset:0,background:p.surface.backdrop,zIndex:1400,paddingBottom:"20px"},onClick:i}),e.jsxs("div",{style:{position:"fixed",left:0,right:0,bottom:0,transform:o?"translateY(0)":"translateY(110%)",transition:"transform 0.25s ease",background:p.surface.panel,borderTopLeftRadius:16,borderTopRightRadius:16,boxShadow:"0 -12px 32px rgba(0,0,0,0.18)",zIndex:1401,maxHeight:"90vh",display:"flex",flexDirection:"column"},children:[e.jsxs("div",{style:{padding:"12px 16px",display:"flex",gap:8,alignItems:"center",borderBottom:"1px solid ".concat(p.border.subtle)},children:[e.jsx("button",{style:{flex:1,padding:"10px 12px",borderRadius:12,border:d?"2px solid ".concat(p.accent.primary):"1px solid ".concat(p.border.subtle),background:d?"".concat(p.accent.primary,"1a"):p.surface.control,color:p.text.primary,fontWeight:600},onClick:function(){return r("left")},children:a.title}),e.jsx("button",{style:{flex:1,padding:"10px 12px",borderRadius:12,border:d?"1px solid ".concat(p.border.subtle):"2px solid ".concat(p.accent.primary),background:d?p.surface.control:"".concat(p.accent.primary,"1a"),color:p.text.primary,fontWeight:600},onClick:function(){return r("right")},children:s.title}),e.jsx("button",{onClick:i,style:{padding:"10px 10px",borderRadius:12,border:"1px solid ".concat(p.border.subtle),background:p.surface.control,color:p.text.primary,fontWeight:600,display:"inline-flex",alignItems:"center",justifyContent:"center",gap:6},"aria-label":"Close drawer",children:"✕"})]}),e.jsxs(hs.Body,{side:"left",useMotion:!1,spacing:c,style:{overflowY:"auto",padding:"16px 16px 24px",flex:1},className:"mobile-drawer-content",children:[e.jsx("style",{children:"\n .mobile-drawer-content::-webkit-scrollbar {\n display: none;\n }\n .mobile-drawer-content {\n scrollbar-width: none; /* Firefox */\n -ms-overflow-style: none; /* IE 10+ */\n }\n "}),u.content]})]})]})},exports.DashboardShell=function(t){var o=t.children,n=t.fullScreen,r=void 0===n||n,i=t.gap,a=void 0===i?0:i,s=t.background,l=t.topOffset,c=void 0===l?0:l,p=t.className,d=void 0===p?"":p,u=t.style,f=Object.assign({width:r?"100vw":"100%",height:r?"100vh":"100%",position:"relative",display:"flex",flexDirection:"column",overflow:"hidden",gap:a>0?"".concat(a,"px"):void 0,background:s,marginTop:c>0?"".concat(c,"px"):void 0},u);return e.jsx("div",{className:"dashboard-shell ".concat(d),style:f,children:o})},exports.DashboardSidePanel=function(t){var o=t.side,n=t.width,r=void 0===n?288:n,i=t.isOpen,a=t.title,s=t.headerActions,l=t.children,c=t.bodyProps,p=t.onClose,d=t.className,u=void 0===d?"":d,f=t.style;return e.jsxs(hs.SidePanel,{side:o,width:r,isOpen:i,className:u,style:f,children:[a&&e.jsx(hs.Header,{title:a,actions:s,onClose:p,side:o}),e.jsx(hs.Body,{side:o,className:null==c?void 0:c.className,style:null==c?void 0:c.style,useMotion:null==c?void 0:c.useMotion,spacing:null==c?void 0:c.spacing,children:l})]})},exports.Dropdown=zM,exports.Modal=FM,exports.Panel=RM,exports.RadioButton=function(t){var o=t.name,n=t.value,r=t.label,i=t.checked,a=t.onChange,s=t.textClassName,l=void 0===s?"":s,c=t.circleClassName,p=void 0===c?"":c;return e.jsxs("label",{className:"flex items-center cursor-pointer select-none",children:[e.jsx("input",{type:"radio",name:o,value:n,checked:i,onChange:function(e){return a(e.target.value)},className:"hidden peer"}),e.jsx("div",{className:"\n w-6 h-6 rounded-full flex items-center justify-center transition-all duration-200\n ".concat(p,"\n "),children:e.jsx("div",{className:"\n w-3 h-3 rounded-full bg-black transition-transform duration-200\n scale-0 peer-checked:scale-100\n "})}),e.jsx("span",{className:"ml-3 text-lg ".concat(l),children:r})]})},exports.RecentActivityFeed=function(t){var n=t.items,r=t.variant,i=void 0===r?"dark":r,a=t.maxItems,s=void 0===a?10:a,l=t.onItemClick,c=t.title,p=void 0===c?"Recent Activity":c,d=t.description,u=void 0===d?"Latest events":d,f=P(),m=o.useMemo(function(){return n.slice().sort(function(e,t){var o=new Date(e.timestamp||0).getTime();return new Date(t.timestamp||0).getTime()-o}).slice(0,s)},[n,s]),h=0===m.length,g={Severe:f.semantic.critical,Medium:f.semantic.warning,Info:f.semantic.info,Normal:f.semantic.success};return e.jsx(gs,{title:p,description:u,variant:i,empty:h,bodyMinHeight:220,children:!h&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:m.map(function(t){var o,n,r=(o=t.severity,null!==(n=g[o])&&void 0!==n?n:g.Normal);return e.jsxs("div",{onClick:function(){return null==l?void 0:l(t.id)},style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 12px",borderRadius:8,backgroundColor:f.surface.control,border:"1px solid ".concat(f.border.subtle),cursor:l?"pointer":"default",transition:"background-color 0.2s"},onMouseEnter:function(e){l&&(e.currentTarget.style.backgroundColor=f.surface.hover)},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=f.surface.control},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{width:8,height:8,borderRadius:"50%",backgroundColor:r,flexShrink:0}}),e.jsx("span",{style:{color:f.text.primary,fontSize:13,fontWeight:500,flex:1},children:t.message}),e.jsx("span",{style:{fontSize:11,color:f.text.muted,fontWeight:500},children:t.time})]}),t.category&&e.jsx("div",{style:{fontSize:12,color:f.text.muted,marginLeft:16},children:t.category})]},t.id)})})})},exports.SidePanelUI=hs,exports.ThemeEditor=function(t){var n,r,i,a=t.modeOverride,s=t.position,l=E(function(e){return e.mode}),c=E(function(e){return e.customLightThemeOverride}),p=E(function(e){return e.customDarkThemeOverride}),d=null!==(n=null!=a?a:l)&&void 0!==n?n:"dark",u=o.useMemo(function(){return j(d,"light"===d?c:p)},[d,c,p]),f=h(o.useState(!1),2),m=f[0],g=f[1],y=h(o.useState(u.surface),2),b=y[0],v=y[1],x=h(o.useState(u.text),2),w=x[0],S=x[1],T=h(o.useState(u.accent),2),O=T[0],P=T[1],N=h(o.useState(u.semantic),2),R=N[0],M=N[1],$=h(o.useState(u.border),2),I=$[0],A=$[1],B=h(o.useState(u.chart),2),L=B[0],D=B[1],z=h(o.useState(u.state),2),V=z[0],F=z[1];o.useEffect(function(){v(u.surface),S(u.text),P(u.accent),M(u.semantic),A(u.border),D(u.chart),F(u.state)},[u]);var W=function(e){C(d,e)},_={position:"fixed",bottom:null!==(r=null==s?void 0:s.bottom)&&void 0!==r?r:24,left:null==s?void 0:s.left,right:null!==(i=null==s?void 0:s.right)&&void 0!==i?i:null==(null==s?void 0:s.left)?24:void 0,zIndex:2100};return e.jsxs("div",{style:_,children:[e.jsx(xs,{variant:"secondary",size:"small",onClick:function(){return g(function(e){return!e})},children:m?"Hide SDK Theme":"Edit SDK Theme"}),m&&e.jsxs("div",{style:{marginTop:8,padding:12,borderRadius:8,backgroundColor:u.surface.panel,color:u.text.primary,minWidth:260,maxWidth:320,boxShadow:"0 4px 10px rgba(0,0,0,0.35)",fontSize:12},children:[e.jsxs("div",{style:{marginBottom:8,fontWeight:600,fontSize:13},children:["SDK Theme (mode: ",d,")"]}),e.jsxs(WM,{title:"Surface",children:[_M("topbar",b.topbar,function(e){v(function(t){return Object.assign(Object.assign({},t),{topbar:e})}),W({surface:{topbar:e}})}),_M("panel",b.panel,function(e){v(function(t){return Object.assign(Object.assign({},t),{panel:e})}),W({surface:{panel:e}})}),_M("card",b.card,function(e){v(function(t){return Object.assign(Object.assign({},t),{card:e})}),W({surface:{card:e}})}),_M("modal",b.modal,function(e){v(function(t){return Object.assign(Object.assign({},t),{modal:e})}),W({surface:{modal:e}})}),_M("control",b.control,function(e){v(function(t){return Object.assign(Object.assign({},t),{control:e})}),W({surface:{control:e}})}),_M("neutral",b.neutral,function(e){v(function(t){return Object.assign(Object.assign({},t),{neutral:e})}),W({surface:{neutral:e}})}),_M("backdrop",b.backdrop,function(e){v(function(t){return Object.assign(Object.assign({},t),{backdrop:e})}),W({surface:{backdrop:e}})}),_M("hover",b.hover,function(e){v(function(t){return Object.assign(Object.assign({},t),{hover:e})}),W({surface:{hover:e}})})]}),e.jsxs(WM,{title:"Text",children:[_M("primary",w.primary,function(e){S(function(t){return Object.assign(Object.assign({},t),{primary:e})}),W({text:{primary:e}})}),_M("muted",w.muted,function(e){S(function(t){return Object.assign(Object.assign({},t),{muted:e})}),W({text:{muted:e}})}),_M("onAccent",w.onAccent,function(e){S(function(t){return Object.assign(Object.assign({},t),{onAccent:e})}),W({text:{onAccent:e}})}),_M("inverted",w.inverted,function(e){S(function(t){return Object.assign(Object.assign({},t),{inverted:e})}),W({text:{inverted:e}})})]}),e.jsxs(WM,{title:"Accent",children:[_M("primary",O.primary,function(e){P(function(t){return Object.assign(Object.assign({},t),{primary:e})}),W({accent:{primary:e}})}),_M("secondary",O.secondary,function(e){P(function(t){return Object.assign(Object.assign({},t),{secondary:e})}),W({accent:{secondary:e}})})]}),e.jsxs(WM,{title:"Semantic",children:[_M("success",R.success,function(e){M(function(t){return Object.assign(Object.assign({},t),{success:e})}),W({semantic:{success:e}})}),_M("warning",R.warning,function(e){M(function(t){return Object.assign(Object.assign({},t),{warning:e})}),W({semantic:{warning:e}})}),_M("critical",R.critical,function(e){M(function(t){return Object.assign(Object.assign({},t),{critical:e})}),W({semantic:{critical:e}})}),_M("info",R.info,function(e){M(function(t){return Object.assign(Object.assign({},t),{info:e})}),W({semantic:{info:e}})})]}),e.jsxs(WM,{title:"Border",children:[_M("subtle",I.subtle,function(e){A(function(t){return Object.assign(Object.assign({},t),{subtle:e})}),W({border:{subtle:e}})}),_M("strong",I.strong,function(e){A(function(t){return Object.assign(Object.assign({},t),{strong:e})}),W({border:{strong:e}})})]}),e.jsxs(WM,{title:"Chart",children:[_M("grid",L.grid,function(e){D(function(t){return Object.assign(Object.assign({},t),{grid:e})}),W({chart:{grid:e}})}),_M("text",L.text,function(e){D(function(t){return Object.assign(Object.assign({},t),{text:e})}),W({chart:{text:e}})})]}),e.jsxs(WM,{title:"State",children:[_M("hover",V.hover,function(e){F(function(t){return Object.assign(Object.assign({},t),{hover:e})}),W({state:{hover:e}})}),_M("active",V.active,function(e){F(function(t){return Object.assign(Object.assign({},t),{active:e})}),W({state:{active:e}})}),_M("focus",V.focus,function(e){F(function(t){return Object.assign(Object.assign({},t),{focus:e})}),W({state:{focus:e}})})]}),e.jsx("div",{style:{marginTop:8,display:"flex",justifyContent:"flex-end"},children:e.jsx(xs,{variant:"outline",size:"small",onClick:function(){k(d)},children:"Reset SDK Theme"})})]})]})},exports.TopBar=PM,exports.TopCamerasList=function(t){var o=t.items,n=t.variant,r=void 0===n?"dark":n,i=t.onItemClick,a=t.title,s=t.description,l=void 0===s?"Top sources by activity count":s,c=P(),p=0===o.length,d=null!=a?a:o.length>0?"Top ".concat(o.length," Sources"):"Top Sources";return e.jsx(gs,{title:d,description:l,variant:r,empty:p,bodyMinHeight:180,children:!p&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:o.map(function(t,n){return e.jsxs("div",{onClick:function(){return null==i?void 0:i(t.id)},style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",borderRadius:8,backgroundColor:c.surface.control,border:"1px solid ".concat(c.border.subtle),cursor:i?"pointer":"default",transition:"background-color 0.2s"},onMouseEnter:function(e){i&&(e.currentTarget.style.backgroundColor=c.surface.hover)},onMouseLeave:function(e){e.currentTarget.style.backgroundColor=c.surface.control},children:[e.jsxs("div",{style:{flex:1},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[e.jsx("span",{style:{width:20,height:20,borderRadius:"50%",backgroundColor:Cs(c.accent.primary,o.length)[n],display:"flex",alignItems:"center",justifyContent:"center",color:c.text.primary,fontSize:11,fontWeight:600,flexShrink:0},children:n+1}),e.jsx("span",{style:{color:c.text.primary,fontSize:14,fontWeight:500},children:t.name})]}),t.lastActivity&&e.jsxs("div",{style:{fontSize:12,color:c.text.muted,marginLeft:28},children:["Last: ",t.lastActivity]})]}),e.jsx("div",{style:{padding:"4px 10px",borderRadius:12,backgroundColor:"".concat(c.text.inverted,"1f"),color:c.text.muted,fontSize:13,fontWeight:600,minWidth:40,textAlign:"center"},children:t.count})]},t.id)})})})},exports.WidgetContainer=gs,exports.getBaseTheme=function(){return"light"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dark")?S:T},exports.getTheme=j,exports.resetTheme=k,exports.setCustomTheme=C,exports.setCustomThemes=function(e){e.light&&C("light",e.light),e.dark&&C("dark",e.dark)},exports.useAppTheme=P,exports.useThemeStore=E;