UNPKG

@fyno/inapp-react

Version:

React SDK for invoking Fyno inapp notifications center

1 lines 127 kB
import e,{toast as t,useToasterStore as n,Toaster as r}from"react-hot-toast";import o,{useContext as i,createContext as a,useState as l,useRef as c,useEffect as s,forwardRef as d,useImperativeHandle as u,memo as p,createElement as f,useMemo as m,useCallback as g}from"react";import h from"socket.io-client";import v from"use-sound";import{useInView as b}from"react-intersection-observer";import{styled as x,setup as y}from"goober";import{Root as C,Trigger as k,Portal as w,Content as E}from"@radix-ui/react-popover";import S from"html-react-parser";import z from"react-modal";function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var A=["children","component","sx","className"],P=o.forwardRef(function(e,t){var n=e.children,r=e.component,i=void 0===r?"div":r,a=e.sx,l=void 0===a?{}:a,c=e.className,s=void 0===c?"":c,d=_(e,A),u=function(e){var t={};return e&&Object.keys(e).forEach(function(n){var r=e[n];switch(n){case"display":t.display=r;break;case"flexDirection":t.flexDirection=r;break;case"justifyContent":t.justifyContent=r;break;case"alignItems":t.alignItems=r;break;case"gap":t.gap="number"==typeof r?8*r+"px":r;break;case"p":t.padding="number"==typeof r?8*r+"px":r;break;case"px":t.paddingLeft="number"==typeof r?8*r+"px":r,t.paddingRight="number"==typeof r?8*r+"px":r;break;case"py":t.paddingTop="number"==typeof r?8*r+"px":r,t.paddingBottom="number"==typeof r?8*r+"px":r;break;case"pl":t.paddingLeft="number"==typeof r?8*r+"px":r;break;case"pr":t.paddingRight="number"==typeof r?8*r+"px":r;break;case"pt":t.paddingTop="number"==typeof r?8*r+"px":r;break;case"pb":t.paddingBottom="number"==typeof r?8*r+"px":r;break;case"m":t.margin="number"==typeof r?8*r+"px":r;break;case"mx":t.marginLeft="number"==typeof r?8*r+"px":r,t.marginRight="number"==typeof r?8*r+"px":r;break;case"my":t.marginTop="number"==typeof r?8*r+"px":r,t.marginBottom="number"==typeof r?8*r+"px":r;break;case"ml":t.marginLeft="number"==typeof r?8*r+"px":r;break;case"mr":t.marginRight="number"==typeof r?8*r+"px":r;break;case"mt":t.marginTop="number"==typeof r?8*r+"px":r;break;case"mb":t.marginBottom="number"==typeof r?8*r+"px":r;break;case"width":t.width=r;break;case"height":t.height=r;break;case"minWidth":t.minWidth=r;break;case"maxWidth":t.maxWidth=r;break;case"minHeight":t.minHeight=r;break;case"maxHeight":t.maxHeight=r;break;case"position":t.position=r;break;case"top":t.top=r;break;case"right":t.right=r;break;case"bottom":t.bottom=r;break;case"left":t.left=r;break;case"zIndex":t.zIndex=r;break;case"overflow":t.overflow=r;break;case"overflowX":t.overflowX=r;break;case"overflowY":t.overflowY=r;break;case"background":t.background=r;break;case"backgroundColor":t.backgroundColor=r;break;case"color":t.color=r;break;case"border":t.border=r;break;case"borderRadius":t.borderRadius=r;break;case"boxShadow":t.boxShadow=r;break;case"cursor":t.cursor=r;break;case"textAlign":t.textAlign=r;break;case"fontSize":t.fontSize=r;break;case"fontWeight":t.fontWeight=r;break;case"lineHeight":t.lineHeight=r;break;case"textDecoration":t.textDecoration=r;break;case"flex":t.flex=r;break;case"flexGrow":t.flexGrow=r;break;case"flexShrink":t.flexShrink=r;break;case"flexBasis":t.flexBasis=r;break;case"order":t.order=r;break;case"alignSelf":t.alignSelf=r;break;case"justifySelf":t.justifySelf=r;break;case"gridArea":t.gridArea=r;break;case"gridColumn":t.gridColumn=r;break;case"gridRow":t.gridRow=r;break;case"opacity":t.opacity=r;break;case"transform":t.transform=r;break;case"transition":t.transition=r;break;case"visibility":t.visibility=r;break;default:"string"!=typeof r&&"number"!=typeof r||(t[n]=r)}}),t}(l);return o.createElement(i,j({ref:t,className:s,style:u},d),n)});P.displayName="Box";var N=["children","variant","component","sx","className","color","align","textAlign","gutterBottom","noWrap","paragraph"],H=["textAlign"];o.forwardRef(function(e,t){var n=e.children,r=e.variant,i=void 0===r?"body1":r,a=e.component,l=e.sx,c=void 0===l?{}:l,s=e.className,d=void 0===s?"":s,u=e.color,p=void 0===u?"inherit":u,f=e.align,m=void 0===f?"inherit":f,g=e.textAlign,h=e.gutterBottom,v=void 0!==h&&h,b=e.noWrap,x=void 0!==b&&b,y=e.paragraph,C=void 0!==y&&y,k=_(e,N),w=_(k,H),E=function(e){switch(e){case"h1":return{element:"h1",defaultStyles:{fontSize:"2.125rem",fontWeight:300,lineHeight:1.167,letterSpacing:"-0.01562em"}};case"h2":return{element:"h2",defaultStyles:{fontSize:"1.5rem",fontWeight:300,lineHeight:1.334,letterSpacing:"-0.00833em"}};case"h3":return{element:"h3",defaultStyles:{fontSize:"1.25rem",fontWeight:400,lineHeight:1.6,letterSpacing:"0em"}};case"h4":return{element:"h4",defaultStyles:{fontSize:"1.125rem",fontWeight:400,lineHeight:1.667,letterSpacing:"0.00735em"}};case"h5":return{element:"h5",defaultStyles:{fontSize:"1.0625rem",fontWeight:400,lineHeight:1.6,letterSpacing:"0em"}};case"h6":return{element:"h6",defaultStyles:{fontSize:"1rem",fontWeight:500,lineHeight:1.75,letterSpacing:"0.0075em"}};case"subtitle1":return{element:"h6",defaultStyles:{fontSize:"1rem",fontWeight:400,lineHeight:1.75,letterSpacing:"0.00938em"}};case"subtitle2":return{element:"h6",defaultStyles:{fontSize:"0.875rem",fontWeight:500,lineHeight:1.57,letterSpacing:"0.00714em"}};case"body1":return{element:"p",defaultStyles:{fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"}};case"body2":return{element:"p",defaultStyles:{fontSize:"0.875rem",fontWeight:400,lineHeight:1.43,letterSpacing:"0.01071em"}};case"button":return{element:"span",defaultStyles:{fontSize:"0.875rem",fontWeight:500,lineHeight:1.75,letterSpacing:"0.02857em",textTransform:"uppercase"}};case"caption":return{element:"span",defaultStyles:{fontSize:"0.75rem",fontWeight:400,lineHeight:1.66,letterSpacing:"0.03333em"}};case"overline":return{element:"span",defaultStyles:{fontSize:"0.75rem",fontWeight:400,lineHeight:2.66,letterSpacing:"0.08333em",textTransform:"uppercase"}};default:return{element:"p",defaultStyles:{fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"}}}}(i),S=a||E.element,z=j({},E.defaultStyles,{color:"inherit"!==p?p:void 0,textAlign:g||("inherit"!==m?m:void 0),marginBottom:C?"1em":v?"0.35em":void 0,whiteSpace:x?"nowrap":void 0,overflow:x?"hidden":void 0,textOverflow:x?"ellipsis":void 0},c);return o.createElement(S,j({ref:t,className:d,style:z},w),n)}).displayName="Typography";var D=a(),O=function(){var e=i(D);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e},R=["children","variant","size","color"],B=o.forwardRef(function(e,t){var n=e.children,r=e.variant,i=void 0===r?"outlined":r,a=e.color,l=void 0===a?"primary":a,c=_(e,R),s=O(),d=s.palette.primary.main||"#1976d2",u=s.palette.secondary.main||"#9c27b0",p="0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",f=j({},{outline:0,border:0,margin:0,cursor:"pointer",borderRadius:"4px",textTransform:"uppercase",transition:"background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},{padding:"6px 10px",fontSize:"0.63rem",minWidth:"4rem",letterSpacing:"0.5px"},{outlined:{primary:{color:d,backgroundColor:"transparent",border:"1px solid "+(d||"rgba(25, 118, 210, 0.5)"),"&:hover":{backgroundColor:"rgba(25, 118, 210, 0.04)",border:"1px solid #1976d2"}},secondary:{color:u,border:"1px solid "+(u||"rgba(156, 39, 176, 0.5)"),"&:hover":{backgroundColor:"rgba(156, 39, 176, 0.04)",border:"1px solid #9c27b0"}}},contained:{primary:{color:"#fff",backgroundColor:d,boxShadow:p,"&:hover":{backgroundColor:"#1565c0",boxShadow:"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)"}},secondary:{color:"#fff",backgroundColor:u,boxShadow:p,"&:hover":{backgroundColor:"#7b1fa2",boxShadow:"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)"}}}}[i][l]);return o.createElement("button",j({ref:t,style:f,type:"button"},c),n)});B.displayName="Button";var M=["children","onClick","style","disabled"],I=function(e){var t=e.children,n=e.onClick,r=e.style,i=e.disabled,a=void 0!==i&&i,c=(_(e,M),l(!1)),s=c[0],d=c[1],u=O(),p=j({},{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",outline:0,border:0,margin:0,padding:"7px",cursor:a?"not-allowed":"pointer",userSelect:"none",verticalAlign:"middle",textDecoration:"none",color:a?u.palette.action.disabled:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:400,lineHeight:1,letterSpacing:"0em",textTransform:"none",borderRadius:"50%",transition:"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",backgroundColor:s?"rgba(0, 0, 0, 0.04)":"transparent"},r);return o.createElement("button",{onClick:n,type:"button",style:p,onMouseEnter:function(){return d(!0)},onMouseLeave:function(){return d(!1)}},t)};I.displayName="IconButton";var T=["children","badgeContent","color","max","showZero","variant","sx","invisible","className"],F=["invisible"],L=o.forwardRef(function(e,t){var n,r,i=e.children,a=e.badgeContent,l=e.color,c=void 0===l?"default":l,s=e.max,d=e.showZero,u=void 0!==d&&d,p=e.variant,f=void 0===p?"standard":p,m=e.sx,g=void 0===m?{}:m,h=e.invisible,v=void 0!==h&&h,b=e.className,x=void 0===b?"":b,y=_(e,T),C=_(y,F),k=function(){var e={position:"absolute",top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",height:"20px",minWidth:"20px",padding:"0 6px",fontSize:"0.75rem",fontWeight:500,lineHeight:"20px",whiteSpace:"nowrap",textAlign:"center",borderRadius:"10px",boxSizing:"border-box",zIndex:1,transition:"transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},t={default:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)"},primary:{backgroundColor:"#1976d2",color:"#fff"},secondary:{backgroundColor:"#9c27b0",color:"#fff"},error:{backgroundColor:"#d32f2f",color:"#fff"},warning:{backgroundColor:"#ed6c02",color:"#fff"},info:{backgroundColor:"#0288d1",color:"#fff"},success:{backgroundColor:"#2e7d32",color:"#fff"}};return j({},e,t[c]),j({},e,{height:"8px",minWidth:"8px",padding:0,borderRadius:"4px"},t[c]),j({},{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"},g)}(),w={standard:j({},n={position:"absolute",top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",height:"20px",minWidth:"20px",padding:"0 6px",fontSize:"0.75rem",fontWeight:500,lineHeight:"20px",whiteSpace:"nowrap",textAlign:"center",borderRadius:"10px",boxSizing:"border-box",zIndex:1,transition:"transform 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},(r={default:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)"},primary:{backgroundColor:"#1976d2",color:"#fff"},secondary:{backgroundColor:"#9c27b0",color:"#fff"},error:{backgroundColor:"#d32f2f",color:"#fff"},warning:{backgroundColor:"#ed6c02",color:"#fff"},info:{backgroundColor:"#0288d1",color:"#fff"},success:{backgroundColor:"#2e7d32",color:"#fff"}})[c]),dot:j({},n,{height:"8px",minWidth:"8px",padding:0,borderRadius:"4px"},r[c])}[f],E=a;return void 0!==s&&"number"==typeof a&&a>s&&(E=s+"+"),(0!==a||u||v)&&(a||0===a||v)?v?o.createElement("span",j({ref:t,className:x,style:k},C),i):o.createElement("span",j({ref:t,className:x,style:k},C),i,o.createElement("span",{style:w},"dot"===f?"":E)):o.createElement("span",j({ref:t,className:x,style:k},C),i)});L.displayName="Badge";var W=["children","variant","color","size","disabled","clickable","deletable","onDelete","onClick","avatar","icon","label","sx","className"],U=o.forwardRef(function(e,t){var n,r,i,a=e.children,l=e.variant,c=void 0===l?"default":l,s=e.color,d=void 0===s?"default":s,u=e.size,p=void 0===u?"medium":u,f=e.disabled,m=void 0!==f&&f,g=e.clickable,h=void 0===g||g,v=e.deletable,b=void 0!==v&&v,x=e.onDelete,y=e.onClick,C=e.avatar,k=e.icon,w=e.label,E=e.sx,S=void 0===E?{}:E,z=e.className,A=void 0===z?"":z,P=_(e,W),N=(n={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",outline:0,border:0,margin:0,cursor:h&&!m?"pointer":"default",userSelect:"none",verticalAlign:"middle",textDecoration:"none",fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontWeight:400,lineHeight:1.2,letterSpacing:"0.01071em",borderRadius:"16px",transition:"all 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":h&&!m?{backgroundColor:"rgba(0, 0, 0, 0.04)"}:{},"&:active":h&&!m?{boxShadow:"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)"}:{}},i={default:j({},(r={default:{backgroundColor:"#e0e0e0",color:"rgba(0, 0, 0, 0.87)"},primary:{backgroundColor:"#e3f2fd",color:"#1976d2"},secondary:{backgroundColor:"#f3e5f5",color:"#9c27b0"},error:{backgroundColor:"#ffebee",color:"#d32f2f"},warning:{backgroundColor:"#fff3e0",color:"#ed6c02"},info:{backgroundColor:"#e1f5fe",color:"#0288d1"},success:{backgroundColor:"#e8f5e8",color:"#2e7d32"}})[d]),outlined:{backgroundColor:"transparent",color:r[d].color,border:"1px solid "+r[d].color,"&:hover":h&&!m?{backgroundColor:r[d].backgroundColor}:{}},filled:j({},r[d])},j({},n,{small:{height:"24px",fontSize:"0.75rem",padding:"0 8px"},medium:{height:"32px",fontSize:"0.8125rem",padding:"0 12px"},large:{height:"40px",fontSize:"0.875rem",padding:"0 16px"}}[p],i[c],m?{opacity:.38,cursor:"default",pointerEvents:"none"}:{},S)),H=j({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",overflow:"hidden"},{small:{width:"18px",height:"18px",marginRight:"6px"},medium:{width:"24px",height:"24px",marginRight:"8px"},large:{width:"32px",height:"32px",marginRight:"12px"}}[p]),D=j({display:"flex",alignItems:"center",justifyContent:"center",color:"inherit"},{small:{width:"16px",height:"16px",marginRight:"6px"},medium:{width:"20px",height:"20px",marginRight:"8px"},large:{width:"24px",height:"24px",marginRight:"12px"}}[p]),O=j({display:"flex",alignItems:"center",justifyContent:"center",color:"inherit"},{small:{width:"16px",height:"16px",marginLeft:"6px",cursor:"pointer","&:hover":{color:"rgba(0, 0, 0, 0.6)"}},medium:{width:"18px",height:"18px",marginLeft:"8px",cursor:"pointer","&:hover":{color:"rgba(0, 0, 0, 0.6)"}},large:{width:"20px",height:"20px",marginLeft:"12px",cursor:"pointer","&:hover":{color:"rgba(0, 0, 0, 0.6)"}}}[p]),R=null!=w?w:a;return o.createElement("span",j({ref:t,className:A,style:N,onClick:function(e){h&&!m&&y&&y(e)},role:h?"button":void 0,tabIndex:h&&!m?0:void 0},P),C&&o.createElement("span",{style:H},C),k&&o.createElement("span",{style:D},k),o.createElement("span",{className:"chip-label"},R),b&&o.createElement("span",{style:O,onClick:function(e){e.stopPropagation(),b&&!m&&x&&x(e)},role:"button",tabIndex:0,"aria-label":"delete"},"×"))});U.displayName="Chip";var V=["checked","defaultChecked","disabled","color","size","sx","className","onChange"],q=o.forwardRef(function(e,t){var n=e.checked,r=void 0!==n&&n,i=e.defaultChecked,a=void 0!==i&&i,c=e.disabled,s=void 0!==c&&c,d=e.color,u=void 0===d?"primary":d,p=e.size,f=void 0===p?"medium":p,m=e.sx,g=void 0===m?{}:m,h=e.className,v=void 0===h?"":h,b=e.onChange,x=_(e,V),y=O(),C=l(a||r),k=C[0],w=C[1],E=j({},{display:"inline-flex",alignItems:"center",position:"relative",cursor:"pointer",userSelect:"none",verticalAlign:"middle",WebkitTapHighlightColor:"transparent"},{small:{width:"40px",height:"15px"},medium:{width:"44px",height:"24px"},large:{width:"52px",height:"28px"}}[f],{primary:{"--switch-color":y.palette.primary.main||"#1976d2","--switch-color-disabled":"#bdbdbd"},secondary:{"--switch-color":y.palette.secondary.main||"#9c27b0","--switch-color-disabled":"#bdbdbd"},error:{"--switch-color":"#d32f2f","--switch-color-disabled":"#bdbdbd"},warning:{"--switch-color":"#ed6c02","--switch-color-disabled":"#bdbdbd"},info:{"--switch-color":"#0288d1","--switch-color-disabled":"#bdbdbd"},success:{"--switch-color":"#2e7d32","--switch-color-disabled":"#bdbdbd"}}[u],g),S=j({},{position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:"12px",backgroundColor:k?"var(--switch-color)":y.palette.text.disabled,transition:"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",opacity:s?.38:1},{small:{borderRadius:"8px"},medium:{borderRadius:"12px"},large:{borderRadius:"14px"}}[f]),z=j({},{position:"absolute",borderRadius:"50%",backgroundColor:"#fff",boxShadow:"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",transition:"left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},{small:{top:"1px",left:k?"calc(100% - 12px - 1px)":"1px",width:"12px",height:"12px"},medium:{top:"2px",left:k?"calc(100% - 18px - 4px)":"2px",width:"18px",height:"18px"},large:{top:"2px",left:k?"calc(100% - 22px - 4px)":"2px",width:"22px",height:"22px"}}[f]);return o.createElement("span",j({ref:t,className:v,style:E,onClick:function(e){if(!s){var t=!k;w(t),b&&b(e,t)}},role:"switch","aria-checked":k,"aria-disabled":s,tabIndex:s?-1:0},x),o.createElement("span",{style:S}),o.createElement("span",{style:z}))});q.displayName="Switch";var X=function(e){var t=e.placement,n=void 0===t?"right":t,r=e.children,i=e.title,a=void 0===i?"":i,c=e.style,s=void 0===c?{}:c,d=l(!1),u=d[0],p=d[1],f=O(),m="light"===f.palette.mode?"rgba(0, 0, 0, 0.9)":"#616161",g=j({position:"relative",display:"inline-block"},s),h=j({visibility:u?"visible":"hidden",width:"max-content",maxWidth:"150px",backgroundColor:"light"===f.palette.mode?f.palette.common.black:"#616161",color:f.palette.common.white,textAlign:"center",borderRadius:"5px",padding:"6px 8px",position:"absolute",zIndex:99999,opacity:u?1:0,transition:"opacity 0.3s, visibility 0.3s",fontSize:"11px",whiteSpace:"normal",wordWrap:"break-word"},"right"===n&&{top:"50%",left:"calc(100% + 10px)",transform:"translateY(-50%)"},"left"===n&&{top:"50%",right:"calc(100% + 10px)",transform:"translateY(-50%)"},"top"===n&&{bottom:"calc(100% + 10px)",left:"50%",transform:"translateX(-50%)"},"bottom"===n&&{top:"calc(100% + 10px)",left:"50%",transform:"translateX(-50%)"}),v=j({position:"absolute",width:0,height:0,borderStyle:"solid"},"right"===n&&{top:"50%",left:"-5px",marginTop:"-5px",borderWidth:"5px 5px 5px 0",borderColor:"transparent "+m+" transparent transparent"},"left"===n&&{top:"50%",right:"-5px",marginTop:"-5px",borderWidth:"5px 0 5px 5px",borderColor:"transparent transparent transparent "+m+" "},"top"===n&&{bottom:"-5px",left:"50%",marginLeft:"-5px",borderWidth:"5px 5px 0 5px",borderColor:m+" transparent transparent transparent"},"bottom"===n&&{top:"-5px",left:"50%",marginLeft:"-5px",borderWidth:"0 5px 5px 5px",borderColor:"transparent transparent "+m+" transparent"});return o.createElement("div",{style:g,onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)},role:"tooltip"},r,a&&o.createElement("span",{style:h},o.createElement("span",{style:v}),a))};X.displayName="TooltipComponent";var G=["children","href","target","rel","underline","color","variant","sx","className","onClick"];o.forwardRef(function(e,t){var n=e.children,r=e.href,i=e.target,a=e.rel,l=e.underline,c=void 0===l?"hover":l,s=e.color,d=void 0===s?"primary":s,u=e.variant,p=void 0===u?"inherit":u,f=e.sx,m=void 0===f?{}:f,g=e.className,h=void 0===g?"":g,v=e.onClick,b=_(e,G),x=j({},{color:"inherit",textDecoration:"none",backgroundColor:"transparent",outline:0,cursor:"pointer",transition:"color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{textDecoration:"underline"},"&:focus":{outline:"2px solid #1976d2",outlineOffset:"2px"}},{inherit:{color:"inherit"},primary:{color:"#1976d2","&:hover":{color:"#1565c0",textDecoration:"underline"}},secondary:{color:"#9c27b0","&:hover":{color:"#7b1fa2",textDecoration:"underline"}},error:{color:"#d32f2f","&:hover":{color:"#c62828",textDecoration:"underline"}},warning:{color:"#ed6c02","&:hover":{color:"#e65100",textDecoration:"underline"}},info:{color:"#0288d1","&:hover":{color:"#01579b",textDecoration:"underline"}},success:{color:"#2e7d32","&:hover":{color:"#1b5e20",textDecoration:"underline"}}}[d],{none:{textDecoration:"none","&:hover":{textDecoration:"none"}},hover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},always:{textDecoration:"underline","&:hover":{textDecoration:"underline"}}}[c],{inherit:{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"},body1:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"1rem",fontWeight:400,lineHeight:1.5,letterSpacing:"0.00938em"},body2:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.875rem",fontWeight:400,lineHeight:1.43,letterSpacing:"0.01071em"},button:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.875rem",fontWeight:500,lineHeight:1.75,letterSpacing:"0.02857em",textTransform:"uppercase"},caption:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.75rem",fontWeight:400,lineHeight:1.66,letterSpacing:"0.03333em"},overline:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.75rem",fontWeight:400,lineHeight:2.66,letterSpacing:"0.08333em",textTransform:"uppercase"}}[p],m);return r?o.createElement("a",j({ref:t,href:r,target:i,rel:a,className:h,style:x,onClick:v},b),n):o.createElement("button",j({ref:t,className:h,style:x,onClick:v,type:"button"},b),n)}).displayName="Link";var Y=["children","color","fontSize","sx","className"],Z=o.forwardRef(function(e,t){var n=e.children,r=e.color,i=void 0===r?"inherit":r,a=e.fontSize,l=void 0===a?"default":a,c=e.sx,s=void 0===c?{}:c,d=e.className,u=void 0===d?"":d,p=_(e,Y),f=j({},{display:"inline-block",fill:"currentColor",flexShrink:0,userSelect:"none",transition:"fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},{inherit:{fontSize:"inherit"},small:{fontSize:"1.125rem"},default:{fontSize:"1.5rem"},large:{fontSize:"2.25rem"}}[l],{inherit:{color:"inherit"},action:{color:"rgba(0, 0, 0, 0.54)"},disabled:{color:"rgba(0, 0, 0, 0.38)"},primary:{color:"#1976d2"},secondary:{color:"#9c27b0"},error:{color:"#d32f2f"},warning:{color:"#ed6c02"},info:{color:"#0288d1"},success:{color:"#2e7d32"}}[i],s);return o.createElement("span",j({ref:t,className:u,style:f},p),n)});Z.displayName="Icon";var $=["children","container","item","xs","sm","md","lg","xl","spacing","direction","justifyContent","alignItems","className","sx"];o.forwardRef(function(e,t){var n,r=e.children,i=e.container,a=void 0!==i&&i,l=e.item,c=void 0!==l&&l,s=e.xs,d=e.sm,u=e.md,p=e.lg,f=e.xl,m=e.spacing,g=void 0===m?0:m,h=e.direction,v=void 0===h?"row":h,b=e.justifyContent,x=void 0===b?"flex-start":b,y=e.alignItems,C=void 0===y?"stretch":y,k=e.className,w=void 0===k?"":k,E=e.sx,S=void 0===E?{}:E,z=_(e,$),A=(n={},a&&(n.display="flex",n.flexDirection=v,n.justifyContent=x,n.alignItems=C,g>0&&(n.gap=8*g+"px")),c&&(void 0!==s&&(n.flex="0 0 "+s/12*100+"%"),void 0!==d&&(n.flex="0 0 "+d/12*100+"%"),void 0!==u&&(n.flex="0 0 "+u/12*100+"%"),void 0!==p&&(n.flex="0 0 "+p/12*100+"%"),void 0!==f&&(n.flex="0 0 "+f/12*100+"%")),n);return o.createElement("div",j({ref:t,className:w,style:j({},A,S)},z),r)}).displayName="Grid";var K=["children","orientation","variant","flexItem","className","sx"];o.forwardRef(function(e,t){var n,r=e.children,i=e.orientation,a=void 0===i?"horizontal":i,l=e.variant,c=void 0===l?"fullWidth":l,s=e.flexItem,d=void 0!==s&&s,u=e.className,p=void 0===u?"":u,f=e.sx,m=void 0===f?{}:f,g=_(e,K),h=(n={border:"none",margin:0,flexShrink:0},"horizontal"===a?(n.borderTop="1px solid",n.borderTopColor="currentColor",n.width="fullWidth"===c?"100%":"auto",d&&(n.alignSelf="stretch")):(n.borderLeft="1px solid",n.borderLeftColor="currentColor",n.height="fullWidth"===c?"100%":"auto",d&&(n.alignSelf="stretch")),n);return r?o.createElement("div",j({ref:t,className:p,style:j({},h,m)},g),o.createElement("span",{style:{padding:"0 16px"}},r)):o.createElement("hr",j({ref:t,className:p,style:j({},h,m)},g))}).displayName="Divider";var J=["children","in","timeout","className","style"],Q=function(e){var t=e.children,n=e.in,r=void 0!==n&&n,i=e.timeout,a=void 0===i?300:i,d=e.className,u=void 0===d?"":d,p=e.style,f=void 0===p?{}:p,m=_(e,J),g=c(null),h=c(null),v=l(r?"auto":"0px"),b=v[0],x=v[1];return s(function(){var e=g.current;if(h.current&&e){var t;if(r)x("0px"),requestAnimationFrame(function(){x(e.scrollHeight+"px"),t=setTimeout(function(){x("auto")},a)});else{var n=e.scrollHeight;t=setTimeout(function(){x(n+"px"),requestAnimationFrame(function(){x("0px")})},a)}return function(){t&&clearTimeout(t)}}},[r,a]),o.createElement("div",j({ref:h,className:u,style:j({height:b,overflow:"hidden",transition:"height "+a+"ms cubic-bezier(0.4, 0, 0.2, 1)",width:"100%"},f)},m),o.createElement("div",{ref:g},t))},ee=["modal","children","onClose","onOpen","style","className","closeOnOutsideClick","closeOnEscape","position","offset"];d(function(e,t){var n=e.modal,r=void 0!==n&&n,i=e.children,a=e.onClose,l=e.onOpen,d=e.style,p=void 0===d?{}:d,f=e.className,m=void 0===f?"":f,g=e.closeOnOutsideClick,h=void 0===g||g,v=e.closeOnEscape,b=void 0===v||v,x=e.position,y=void 0===x?null:x,C=e.offset,k=void 0===C?8:C,w=_(e,ee),E=c(null);u(t,function(){return{open:function(e){return z(e)},close:A,toggle:function(e){return S()?A():z(e)},isOpen:S}});var S=function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.open)||!1},z=function(e){void 0===e&&(e=null);var t=E.current;if(t){if(r)t.showModal();else{t.show();var n=e||(null==y?void 0:y.relativeTo);n&&P(n)}null==l||l()}},A=function(){var e=E.current;e&&e.open&&(e.close(),null==a||a())},P=function(e){if(e&&E.current){var t=E.current,n=e.getBoundingClientRect(),r=(null==y?void 0:y.placement)||"bottom-right";switch(t.style.position="absolute",t.style.top="auto",t.style.left="auto",t.style.right="auto",t.style.bottom="auto",r){case"bottom-right":t.style.top=n.bottom+k+"px",t.style.left=n.right-t.offsetWidth+"px";break;case"bottom-left":t.style.top=n.bottom+k+"px",t.style.left=n.left+"px";break;case"top-right":t.style.bottom=window.innerHeight-n.top+k+"px",t.style.left=n.right-t.offsetWidth+"px";break;case"top-left":t.style.bottom=window.innerHeight-n.top+k+"px",t.style.left=n.left+"px";break;case"right":t.style.top=n.top+"px",t.style.left=n.right+k+"px";break;case"left":t.style.top=n.top+"px",t.style.right=window.innerWidth-n.left+k+"px";break;default:t.style.top=n.bottom+k+"px",t.style.left=n.left+n.width/2-t.offsetWidth/2+"px"}N(t)}},N=function(e){var t=e.getBoundingClientRect();t.right>window.innerWidth&&(e.style.left=window.innerWidth-t.width-10+"px"),t.left<0&&(e.style.left="10px"),t.bottom>window.innerHeight&&(e.style.top=window.innerHeight-t.height-10+"px"),t.top<0&&(e.style.top="10px")};s(function(){if(h&&!r){var e=function(e){var t=E.current;if(t&&t.open){var n=t.getBoundingClientRect();(e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)&&A()}};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}},[h,r]),s(function(){if(b){var e=function(e){var t;"Escape"===e.key&&null!==(t=E.current)&&void 0!==t&&t.open&&A()};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[b]);var H=j({padding:0,border:"none",backgroundColor:"transparent",outline:"none"},p);return s(function(){if(r){var e="dialog-backdrop-styles",t=document.getElementById(e);return t||((t=document.createElement("style")).id=e,document.head.appendChild(t)),t.textContent="\n dialog[open] {\n display: flex;\n flex-direction: column;\n animation: dialogFadeIn 0.15s ease-out;\n }\n dialog::backdrop {\n background-color: rgba(0, 0, 0, 0.5);\n backdrop-filter: blur(3px);\n animation: backdropFadeIn 0.15s ease-out;\n }\n /* Use browser's default centering for modal */\n dialog:modal {\n margin: auto;\n max-width: min(600px, 90vw);\n max-height: 80vh;\n }\n /* Prevent focus flickering */\n dialog[open] *:focus {\n outline: none;\n }\n dialog[open] *:focus-visible {\n outline: 2px solid currentColor;\n outline-offset: 2px;\n }\n @keyframes dialogFadeIn {\n from {\n opacity: 0;\n transform: scale(0.95);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }\n @keyframes backdropFadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n ",function(){}}},[r]),o.createElement("dialog",j({ref:E,className:m,style:H,onClick:function(e){e.stopPropagation()}},w),i)}).displayName="Dialog";var te=["size","thickness","value","variant","className","sx"],ne=function(e){var t=e.size,n=void 0===t?40:t,r=e.thickness,i=void 0===r?3.6:r,a=e.value,l=void 0===a?0:a,c=e.variant,s=void 0===c?"indeterminate":c,d=e.className,u=void 0===d?"":d,p=e.sx,f=void 0===p?{}:p,m=_(e,te),g=(n-i)/2,h=2*g*Math.PI,v=h,b="determinate"===s?h-l/100*h:void 0,x=j({display:"inline-block",position:"relative",width:n,height:n},f),y={transform:"rotate(-90deg)",width:n,height:n},C={stroke:"currentColor",strokeWidth:i,fill:"transparent",strokeLinecap:"round"};return"indeterminate"===s?o.createElement("div",j({className:u,style:x},m),o.createElement("svg",{style:y},o.createElement("circle",{cx:n/2,cy:n/2,r:g,style:j({},C,{strokeDasharray:v,animation:"circular-progress-spin 1.4s linear infinite"})})),o.createElement("style",null,"\n @keyframes circular-progress-spin {\n 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; }\n 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; }\n 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; }\n }\n ")):o.createElement("div",j({className:u,style:x},m),o.createElement("svg",{style:y},o.createElement("circle",{cx:n/2,cy:n/2,r:g,style:j({},C,{strokeDasharray:v,strokeDashoffset:b,transition:"stroke-dashoffset 0.35s cubic-bezier(0.4, 0, 0.2, 1)"})})))},re=["children","className","viewBox","fontSize","color","sx"],oe=function(e){var t=e.children,n=e.className,r=void 0===n?"":n,i=e.viewBox,a=void 0===i?"0 0 24 24":i,l=e.fontSize,c=void 0===l?"medium":l,s=e.color,d=void 0===s?"inherit":s,u=e.sx,p=void 0===u?{}:u,f=_(e,re),m=function(){switch(c){case"small":return"20px";case"medium":return"24px";case"large":return"35px";default:return c}},g=j({display:"inline-block",width:m(),height:m(),color:d,fill:"currentColor"},p);return o.createElement("svg",j({className:r,viewBox:a,style:g},f),t)},ie=["children","orientation","variant","scrollButtons","onChange","className","sx"],ae=["children","value","label","disabled","disableRipple","icon","iconPosition","onChange","className","sx"],le=["disableRipple"],ce=["children","value","index","className","sx"],se=a(),de=function(){var e=i(se);if(!e)throw new Error("useTabContext must be used within a TabContext.Provider");return e};o.forwardRef(function(e,t){var n,r=e.children,i=e.orientation,a=void 0===i?"horizontal":i,l=e.className,c=void 0===l?"":l,s=e.sx,d=void 0===s?{}:s,u=_(e,ie),p=(n={display:"flex",borderBottom:"horizontal"===a?"1px solid":"none",borderRight:"vertical"===a?"1px solid":"none",borderColor:"currentColor",minHeight:"48px"},"vertical"===a&&(n.flexDirection="column",n.borderRight="1px solid",n.borderRightColor="currentColor"),n);return o.createElement("div",j({ref:t,className:c,style:j({},p,d),role:"tablist"},u),o.Children.map(r,function(e){return o.isValidElement(e)?o.cloneElement(e):e}))}).displayName="TabList",o.forwardRef(function(e,t){var n,r=e.children,i=e.value,a=e.label,l=e.disabled,c=void 0!==l&&l,s=e.icon,d=e.iconPosition,u=void 0===d?"start":d,p=e.onChange,f=e.className,m=void 0===f?"":f,g=e.sx,h=void 0===g?{}:g,v=_(e,ae),b=_(v,le),x=de(),y=x.value===i,C=x.onChange||p,k=(n={padding:"12px 16px",minHeight:"48px",minWidth:"90px",textTransform:"none",fontWeight:y?"600":"500",fontSize:"0.875rem",lineHeight:"1.25rem",border:"none",background:"none",cursor:c?"default":"pointer",color:c?"rgba(0, 0, 0, 0.38)":"inherit",opacity:c?.38:1,transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none",outline:"none",position:"relative"},y&&(n.borderBottom="2px solid currentColor",n.color="primary"),n);return o.createElement("button",j({ref:t,className:m,style:j({},k,h),onClick:function(e){!c&&C&&C(e,i)},disabled:c,role:"tab","aria-selected":y,"data-selected":y,"data-value":i},b),s&&"start"===u?o.createElement(o.Fragment,null,s,a||r):s&&"end"===u?o.createElement(o.Fragment,null,a||r,s):a||r)}).displayName="Tab",o.forwardRef(function(e,t){var n=e.children,r=e.value,i=e.className,a=void 0===i?"":i,l=e.sx,c=void 0===l?{}:l,s=_(e,ce),d=de().value===r;return d?o.createElement("div",j({ref:t,className:a,style:j({},{padding:"16px",display:"flex",flexDirection:"column",flex:1},c),role:"tabpanel",hidden:!d},s),n):null}).displayName="TabPanel";var ue=["children","open","anchorEl","anchorOrigin","transformOrigin","className","sx","onClose"],pe=function(e){var t=e.children,n=e.open,r=void 0!==n&&n,i=e.anchorEl,a=void 0===i?null:i,d=e.anchorOrigin,u=void 0===d?{vertical:"bottom",horizontal:"left"}:d,p=e.transformOrigin,f=void 0===p?{vertical:"top",horizontal:"left"}:p,m=e.className,g=void 0===m?"":m,h=e.sx,v=void 0===h?{}:h,b=e.onClose,x=_(e,ue),y=Or().data,C=y.showConfig,k=y.preferenceMode,w=c(null),E=l(!1),S=E[0],z=E[1],A=l(!1)[1],P=l(!1),N=P[0],H=P[1];if(s(function(){if(r){H(!0);var e=setTimeout(function(){z(!0),A(!1)},10);return function(){return clearTimeout(e)}}if(N){z(!1),A(!0);var t=setTimeout(function(){H(!1),A(!1)},250);return function(){return clearTimeout(t)}}},[r,N]),s(function(){if(r&&("modal"!==k||!C)){var e=function(e){var t=e.target,n=w.current,r=null==n?void 0:n.contains(t),o=null==a?void 0:a.contains(t),i=t.closest("[data-radix-popper-content-wrapper]")||t.closest('[data-slot="popover-content"]')||t.closest('[role="dialog"]')||t.closest("[data-radix-portal]");r||o||i||b(e,"backdropClick")},t=function(e){"Escape"===e.key&&b(e,"escapeKeyDown")};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}}},[r,a,b]),!N)return null;var D,O,R=function(){var e={position:"fixed",zIndex:1300,outline:"none"};if(a){var t=a.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,o=w.current,i=o?o.offsetWidth:200,l=o?o.offsetHeight:100,c=t.top,s=t.left;"bottom"===u.vertical?c=t.bottom:"center"===u.vertical&&(c=t.top+t.height/2),"right"===u.horizontal?s=t.right:"center"===u.horizontal&&(s=t.left+t.width/2);var d="0%",p="0%",m=s,g=c;"center"===f.horizontal?(d="-50%",s-i/2<0?(d="0%",m=8):s+i/2>n&&(d="-100%",m=n-8)):"right"===f.horizontal?(d="-100%",s-i<0&&(d="0%",m=8)):(d="0%",s+i>n&&(d="-100%",m=n-8)),"center"===f.vertical?(p="-50%",c-l/2<0?(p="0%",g=8):c+l/2>r&&(p="-100%",g=r-8)):"bottom"===f.vertical?(p="-100%",c-l<0&&(p="0%",g=8)):(p="0%",c+l>r&&(p="-100%",g=r-8)),e.top=g,e.left=m,e.transform="translate("+d+", "+p+")";var h="0%",v="0%";"center"===f.horizontal?h="50%":"right"===f.horizontal&&(h="100%"),"center"===f.vertical?v="50%":"bottom"===f.vertical&&(v="100%"),e.transformOrigin=h+" "+v}return e}(),B=j({},{transition:"opacity 250ms cubic-bezier(0.4, 0, 0.2, 1)",visibility:"visible"},S?{opacity:1}:{opacity:0}),M=(D="0%",O="0%","center"===f.horizontal?D="50%":"right"===f.horizontal&&(D="100%"),"center"===f.vertical?O="50%":"bottom"===f.vertical&&(O="100%"),j({},{transition:"transform 300ms cubic-bezier(0.4, 0, 0.2, 1)",transformOrigin:D+" "+O},S?{transform:"scale(1)"}:{transform:"scale(0.95)"}));return o.createElement("div",j({ref:w,className:g,style:j({},R,B,v),role:"menu"},x),o.createElement("div",{style:j({borderRadius:"10px"},M)},o.createElement("div",{style:{position:"relative"}},t)))},fe=function(e,t){return e===t||e!=e&&t!=t},me=function(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1},ge=Array.prototype.splice;function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():ge.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var ve=he,be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xe(e,t){return e(t={exports:{}},t.exports),t.exports}var ye,Ce="object"==typeof be&&be&&be.Object===Object&&be,ke="object"==typeof self&&self&&self.Object===Object&&self,we=Ce||ke||Function("return this")(),Ee=we.Symbol,Se=Object.prototype,ze=Se.hasOwnProperty,je=Se.toString,_e=Ee?Ee.toStringTag:void 0,Ae=Object.prototype.toString,Pe=Ee?Ee.toStringTag:void 0,Ne=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Pe&&Pe in Object(e)?function(e){var t=ze.call(e,_e),n=e[_e];try{e[_e]=void 0;var r=!0}catch(e){}var o=je.call(e);return r&&(t?e[_e]=n:delete e[_e]),o}(e):function(e){return Ae.call(e)}(e)},He=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},De=function(e){if(!He(e))return!1;var t=Ne(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Oe=we["__core-js_shared__"],Re=(ye=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+ye:"",Be=Function.prototype.toString,Me=function(e){if(null!=e){try{return Be.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ie=/^\[object .+?Constructor\]$/,Te=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!He(e)||(t=e,Re&&Re in t))&&(De(e)?Te:Ie).test(Me(e));var t}(n)?n:void 0},Le=Fe(we,"Map"),We=Fe(Object,"create"),Ue=Object.prototype.hasOwnProperty,Ve=Object.prototype.hasOwnProperty;function qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=function(){this.__data__=We?We(null):{},this.size=0},qe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qe.prototype.get=function(e){var t=this.__data__;if(We){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ue.call(t,e)?t[e]:void 0},qe.prototype.has=function(e){var t=this.__data__;return We?void 0!==t[e]:Ve.call(t,e)},qe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=We&&void 0===t?"__lodash_hash_undefined__":t,this};var Xe=qe,Ge=function(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function Ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=function(){this.size=0,this.__data__={hash:new Xe,map:new(Le||ve),string:new Xe}},Ye.prototype.delete=function(e){var t=Ge(this,e).delete(e);return this.size-=t?1:0,t},Ye.prototype.get=function(e){return Ge(this,e).get(e)},Ye.prototype.has=function(e){return Ge(this,e).has(e)},Ye.prototype.set=function(e,t){var n=Ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var Ze=Ye;function $e(e){var t=this.__data__=new ve(e);this.size=t.size}$e.prototype.clear=function(){this.__data__=new ve,this.size=0},$e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$e.prototype.get=function(e){return this.__data__.get(e)},$e.prototype.has=function(e){return this.__data__.has(e)},$e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!Le||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ze(r)}return n.set(e,t),this.size=n.size,this};var Ke=$e,Je=function(){try{var e=Fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qe=function(e,t,n){"__proto__"==t&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},et=Object.prototype.hasOwnProperty,tt=function(e,t,n){var r=e[t];et.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||Qe(e,t,n)},nt=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],c=r?r(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),o?Qe(n,l,c):tt(n,l,c)}return n},rt=function(e){return null!=e&&"object"==typeof e},ot=function(e){return rt(e)&&"[object Arguments]"==Ne(e)},it=Object.prototype,at=it.hasOwnProperty,lt=it.propertyIsEnumerable,ct=ot(function(){return arguments}())?ot:function(e){return rt(e)&&at.call(e,"callee")&&!lt.call(e,"callee")},st=Array.isArray,dt=function(){return!1},ut=xe(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?we.Buffer:void 0;e.exports=(o?o.isBuffer:void 0)||dt}),pt=/^(?:0|[1-9]\d*)$/,ft=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&pt.test(e))&&e>-1&&e%1==0&&e<t},mt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},gt={};gt["[object Float32Array]"]=gt["[object Float64Array]"]=gt["[object Int8Array]"]=gt["[object Int16Array]"]=gt["[object Int32Array]"]=gt["[object Uint8Array]"]=gt["[object Uint8ClampedArray]"]=gt["[object Uint16Array]"]=gt["[object Uint32Array]"]=!0,gt["[object Arguments]"]=gt["[object Array]"]=gt["[object ArrayBuffer]"]=gt["[object Boolean]"]=gt["[object DataView]"]=gt["[object Date]"]=gt["[object Error]"]=gt["[object Function]"]=gt["[object Map]"]=gt["[object Number]"]=gt["[object Object]"]=gt["[object RegExp]"]=gt["[object Set]"]=gt["[object String]"]=gt["[object WeakMap]"]=!1;var ht=function(e){return function(t){return e(t)}},vt=xe(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&Ce.process,i=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i}),bt=vt&&vt.isTypedArray,xt=bt?ht(bt):function(e){return rt(e)&&mt(e.length)&&!!gt[Ne(e)]},yt=Object.prototype.hasOwnProperty,Ct=function(e,t){var n=st(e),r=!n&&ct(e),o=!n&&!r&&ut(e),i=!n&&!r&&!o&&xt(e),a=n||r||o||i,l=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=l.length;for(var s in e)!t&&!yt.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ft(s,c))||l.push(s);return l},kt=Object.prototype,wt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||kt)},Et=function(e,t){return function(n){return e(t(n))}},St=Et(Object.keys,Object),zt=Object.prototype.hasOwnProperty,jt=function(e){return null!=e&&mt(e.length)&&!De(e)},_t=function(e){return jt(e)?Ct(e):function(e){if(!wt(e))return St(e);var t=[];for(var n in Object(e))zt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},At=Object.prototype.hasOwnProperty,Pt=function(e){return jt(e)?Ct(e,!0):function(e){if(!He(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=wt(e),n=[];for(var r in e)("constructor"!=r||!t&&At.call(e,r))&&n.push(r);return n}(e)},Nt=xe(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?we.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}}),Ht=function(){return[]},Dt=Object.prototype.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,Rt=Ot?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,o=null==t?0:t.length,i=0,a=[];++r<o;){var l=t[r];Dt.call(e,l)&&(a[i++]=l)}return a}(Ot(e)))}:Ht,Bt=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Mt=Et(Object.getPrototypeOf,Object),It=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Bt(t,Rt(e)),e=Mt(e);return t}:Ht,Tt=function(e,t,n){var r=t(e);return st(e)?r:Bt(r,n(e))},Ft=function(e){return Tt(e,_t,Rt)},Lt=function(e){return Tt(e,Pt,It)},Wt=Fe(we,"DataView"),Ut=Fe(we,"Promise"),Vt=Fe(we,"Set"),qt=Fe(we,"WeakMap"),Xt=Me(Wt),Gt=Me(Le),Yt=Me(Ut),Zt=Me(Vt),$t=Me(qt),Kt=Ne;(Wt&&"[object DataView]"!=Kt(new Wt(new ArrayBuffer(1)))||Le&&"[object Map]"!=Kt(new Le)||Ut&&"[object Promise]"!=Kt(Ut.resolve())||Vt&&"[object Set]"!=Kt(new Vt)||qt&&"[object WeakMap]"!=Kt(new qt))&&(Kt=function(e){var t=Ne(e),n="[object Object]"==t?e.constructor:void 0,r=n?Me(n):"";if(r)switch(r){case Xt:return"[object DataView]";case Gt:return"[object Map]";case Yt:return"[object Promise]";case Zt:return"[object Set]";case $t:return"[object WeakMap]"}return t});var Jt=Kt,Qt=Object.prototype.hasOwnProperty,en=we.Uint8Array,tn=function(e){var t=new e.constructor(e.byteLength);return new en(t).set(new en(e)),t},nn=/\w*$/,rn=Ee?Ee.prototype:void 0,on=rn?rn.valueOf:void 0,an=Object.create,ln=function(){function e(){}return function(t){if(!He(t))return{};if(an)return an(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),cn=vt&&vt.isMap,sn=cn?ht(cn):function(e){return rt(e)&&"[object Map]"==Jt(e)},dn=vt&&vt.isSet,un=dn?ht(dn):function(e){return rt(e)&&"[object Set]"==Jt(e)},pn={};pn["[object Arguments]"]=pn["[object Array]"]=pn["[object ArrayBuffer]"]=pn["[object DataView]"]=pn["[object Boolean]"]=pn["[object Date]"]=pn["[object Float32Array]"]=pn["[object Float64Array]"]=pn["[object Int8Array]"]=pn["[object Int16Array]"]=pn["[object Int32Array]"]=pn["[object Map]"]=pn["[object Number]"]=pn["[object Object]"]=pn["[object RegExp]"]=pn["[object Set]"]=pn["[object String]"]=pn["[object Symbol]"]=pn["[object Uint8Array]"]=pn["[object Uint8ClampedArray]"]=pn["[object Uint16Array]"]=pn["[object Uint32Array]"]=!0,pn["[object Error]"]=pn["[object Function]"]=pn["[object WeakMap]"]=!1;var fn=function e(t,n,r,o,i,a){var l,c=1&n,s=2&n,d=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),void 0!==l)return l;if(!He(t))return t;var u=st(t);if(u){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Qt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,l)}else{var p=Jt(t),f="[object Function]"==p||"[object GeneratorFunction]"==p;if(ut(t))return Nt(t,c);if("[object Object]"==p||"[object Arguments]"==p||f&&!i){if(l=s||f?{}:function(e){return"function"!=typeof e.constructor||wt(e)?{}:ln(Mt(e))}(t),!c)return s?function(e,t){return nt(e,It(e),t)}(t,function(e,t){return e&&nt(t,Pt(t),e)}(l,t)):function(e,t){return nt(e,Rt(e),t)}(t,function(e,t){return e&&nt(t,_t(t),e)}(l,t))}else{if(!pn[p])return i?t:{};l=function(e,t,n){var r,o,i=e.constructor;switch(t){case"[object ArrayBuffer]":return tn(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?tn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?tn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return(o=new(r=e).constructor(r.source,nn.exec(r))).lastIndex=r.lastIndex,o;case"[object Set]":return new i;case"[object Symbol]":return on?Object(on.call(e)):{}}}(t,p,c)}}a||(a=new Ke);var m=a.get(t);if(m)return m;a.set(t,l),un(t)?t.forEach(function(o){l.add(e(o,n,r,o,t,a))}):sn(t)&&t.forEach(function(o,i){l.set(i,e(o,n,r,i,t,a))});var g=u?void 0:(d?s?Lt:Ft:s?Pt:_t)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n););}(g||t,function(o,i){g&&(o=t[i=o]),tt(l,i,e(o,n,r,i,t,a))}),l},mn=function(e){return fn(e,5)};function gn(e){return f(oe,j({className:"close-icon",viewBox:"0 0 24 24"},e),f("path",{d:"M0 0h24v24H0z",fill:"none"}),f("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))}var hn=p(gn);function vn(e){return f(oe,j({className:"check-icon",viewBox:"0 0 24 24"},e),f("path",{d:"M0 0h24v24H0z",fill:"none"}),f("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}))}var bn=p(vn);function xn(e){return f(oe,j({className:"notifications-icon",viewBox:"0 0 24 24"},e),f("path",{d:"M0 0h24v24H0V0z",fill:"none"}),f("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"}))}var yn=p(xn),Cn=function(){var e=O();return{P:x("p")({margin:0,padding:0}),CustomTypography:x("p")(function(e){var t=j({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return j({margin:0,padding:0},t)}),FlexBox:x("div")({display:"flex",alignItems:"center"}),CustomFlexBox:x("div")(function(e){var t=e.justifyContent,n=e.gap,r=e.flexDirection;return{display:"flex",flexDirection:void 0===r?"row":r,alignItems:e.alignItems,justifyContent:void 0===t?"":t,gap:void 0===n?"":n}}),Collap