@ukpc-lib/react 0.16.3-dev.25 → 0.16.3-dev.29

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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),S=require("react"),p=require("../index.esm2017-BmEMC8xN.cjs"),$=require("@mui/material");require("axios");const St=require("react-router-dom");require("@r2wc/react-to-web-component");require("react-query");require("react-dom");const ce=require("moment");function Lo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const N=Lo(S),zo=({color:e="#fff"})=>l.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M3 12H21M3 6H21M3 18H21",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),kr=e=>{var r,o;const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),S=require("react"),p=require("../index.esm2017-A_0wLJbQ.cjs"),$=require("@mui/material");require("axios");const St=require("react-router-dom");require("@r2wc/react-to-web-component");require("react-query");require("react-dom");const ce=require("moment");function Lo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const N=Lo(S),zo=({color:e="#fff"})=>l.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M3 12H21M3 6H21M3 18H21",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),kr=e=>{var r,o;const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
2
2
  .tab-title {
3
3
  ${e.fullWidthTabs?"flex: 1;":""}
4
4
  min-width: 90px;
@@ -41,7 +41,7 @@
41
41
  flex-direction: column;
42
42
  height: 100%;
43
43
  }
44
- `}),l.jsxs("div",{className:"tab-container",children:[l.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${p.color.grey200}`,flexShrink:0},className:"tab-container__title",children:t.map((i,s)=>l.jsx("button",{id:i.id,disabled:e.currentTab===`${i.id}`,onClick:n,className:`tab-title ${e.currentTab===`${i.id}`?"is-active":""}`,children:i.tabTitle},s))}),l.jsx("div",{className:"tab-content",children:t.map((i,s)=>l.jsx("div",{style:{height:"100%",display:e.currentTab===`${i.id}`?"flex":"none",flexDirection:"column"},children:e.currentTab===`${i.id}`&&l.jsx("div",{style:{flex:1,overflow:"auto"},children:i.children})},s))})]})]})},Mr=({baseUrl:e,notiPath:t,setNotiData:n})=>async(o=1,i=20,s="all")=>{const u=e+(t||"/notification-management/api/v1/notifications"),d=(await p.axiosInstance.get(u,{params:{page:o,pageSize:i,filter:{notificationFilterType:s}}})).data;return n(s==="all"?h=>({...h,all:{total:(d==null?void 0:d.total)??0}}):h=>({...h,unread:{total:(d==null?void 0:d.total)??0}})),d};var Nn=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Fo(e,t){return!!(e===t||Nn(e)&&Nn(t))}function Do(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Fo(e[n],t[n]))return!1;return!0}function Ut(e,t){t===void 0&&(t=Do);var n,r=[],o,i=!1;function s(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return i&&n===this&&t(c,r)||(o=e.apply(this,c),i=!0,n=this,r=c),o}return s}var Bo=typeof performance=="object"&&typeof performance.now=="function",$n=Bo?function(){return performance.now()}:function(){return Date.now()};function Rn(e){cancelAnimationFrame(e.id)}function Ho(e,t){var n=$n();function r(){$n()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Vt=-1;function Ln(e){if(e===void 0&&(e=!1),Vt===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Vt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Vt}var $e=null;function zn(e){if(e===void 0&&(e=!1),$e===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?$e="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?$e="negative":$e="positive-ascending"),document.body.removeChild(t),$e}return $e}process.env.NODE_ENV;var Wo=150,Uo=function(t,n){return t},pt=null,mt=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(pt=new WeakSet,mt=new WeakSet);function Vo(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(h){p._inheritsLoose(m,h);function m(y){var a;return a=h.call(this,y)||this,a._instanceProps=u(a.props,p._assertThisInitialized(a)),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:p._assertThisInitialized(a),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=Ut(function(g,v,E,w){return a.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:v,visibleStartIndex:E,visibleStopIndex:w})}),a._callOnScroll=void 0,a._callOnScroll=Ut(function(g,v,E){return a.props.onScroll({scrollDirection:g,scrollOffset:v,scrollUpdateWasRequested:E})}),a._getItemStyle=void 0,a._getItemStyle=function(g){var v=a.props,E=v.direction,w=v.itemSize,T=v.layout,x=a._getItemStyleCache(f&&w,f&&T,f&&E),_;if(x.hasOwnProperty(g))_=x[g];else{var C=n(a.props,g,a._instanceProps),j=o(a.props,g,a._instanceProps),M=E==="horizontal"||T==="horizontal",z=E==="rtl",k=M?C:0;x[g]=_={position:"absolute",left:z?void 0:k,right:z?k:void 0,top:M?0:C,height:M?"100%":j,width:M?j:"100%"}}return _},a._getItemStyleCache=void 0,a._getItemStyleCache=Ut(function(g,v,E){return{}}),a._onScrollHorizontal=function(g){var v=g.currentTarget,E=v.clientWidth,w=v.scrollLeft,T=v.scrollWidth;a.setState(function(x){if(x.scrollOffset===w)return null;var _=a.props.direction,C=w;if(_==="rtl")switch(zn()){case"negative":C=-w;break;case"positive-descending":C=T-E-w;break}return C=Math.max(0,Math.min(C,T-E)),{isScrolling:!0,scrollDirection:x.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(g){var v=g.currentTarget,E=v.clientHeight,w=v.scrollHeight,T=v.scrollTop;a.setState(function(x){if(x.scrollOffset===T)return null;var _=Math.max(0,Math.min(T,w-E));return{isScrolling:!0,scrollDirection:x.scrollOffset<_?"forward":"backward",scrollOffset:_,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(g){var v=a.props.outerRef;a._outerRef=g,typeof v=="function"?v(g):v!=null&&typeof v=="object"&&v.hasOwnProperty("current")&&(v.current=g)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&Rn(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=Ho(a._resetIsScrolling,Wo)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}m.getDerivedStateFromProps=function(a,g){return Go(a,g),d(a),null};var b=m.prototype;return b.scrollTo=function(a){a=Math.max(0,a),this.setState(function(g){return g.scrollOffset===a?null:{scrollDirection:g.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},b.scrollToItem=function(a,g){g===void 0&&(g="auto");var v=this.props,E=v.itemCount,w=v.layout,T=this.state.scrollOffset;a=Math.max(0,Math.min(a,E-1));var x=0;if(this._outerRef){var _=this._outerRef;w==="vertical"?x=_.scrollWidth>_.clientWidth?Ln():0:x=_.scrollHeight>_.clientHeight?Ln():0}this.scrollTo(i(this.props,a,g,T,this._instanceProps,x))},b.componentDidMount=function(){var a=this.props,g=a.direction,v=a.initialScrollOffset,E=a.layout;if(typeof v=="number"&&this._outerRef!=null){var w=this._outerRef;g==="horizontal"||E==="horizontal"?w.scrollLeft=v:w.scrollTop=v}this._callPropsCallbacks()},b.componentDidUpdate=function(){var a=this.props,g=a.direction,v=a.layout,E=this.state,w=E.scrollOffset,T=E.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var x=this._outerRef;if(g==="horizontal"||v==="horizontal")if(g==="rtl")switch(zn()){case"negative":x.scrollLeft=-w;break;case"positive-ascending":x.scrollLeft=w;break;default:var _=x.clientWidth,C=x.scrollWidth;x.scrollLeft=C-_-w;break}else x.scrollLeft=w;else x.scrollTop=w}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rn(this._resetIsScrollingTimeoutId)},b.render=function(){var a=this.props,g=a.children,v=a.className,E=a.direction,w=a.height,T=a.innerRef,x=a.innerElementType,_=a.innerTagName,C=a.itemCount,j=a.itemData,M=a.itemKey,z=M===void 0?Uo:M,k=a.layout,R=a.outerElementType,G=a.outerTagName,W=a.style,re=a.useIsScrolling,se=a.width,he=this.state.isScrolling,A=E==="horizontal"||k==="horizontal",L=A?this._onScrollHorizontal:this._onScrollVertical,O=this._getRangeToRender(),F=O[0],q=O[1],oe=[];if(C>0)for(var te=F;te<=q;te++)oe.push(S.createElement(g,{data:j,key:z(te,j),index:te,isScrolling:re?he:void 0,style:this._getItemStyle(te)}));var xe=r(this.props,this._instanceProps);return S.createElement(R||G||"div",{className:v,onScroll:L,ref:this._outerRefSetter,style:p._extends({position:"relative",height:w,width:se,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:E},W)},S.createElement(x||_||"div",{children:oe,ref:T,style:{height:A?"100%":xe,pointerEvents:he?"none":void 0,width:A?xe:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var g=this._getRangeToRender(),v=g[0],E=g[1],w=g[2],T=g[3];this._callOnItemsRendered(v,E,w,T)}}if(typeof this.props.onScroll=="function"){var x=this.state,_=x.scrollDirection,C=x.scrollOffset,j=x.scrollUpdateWasRequested;this._callOnScroll(_,C,j)}},b._getRangeToRender=function(){var a=this.props,g=a.itemCount,v=a.overscanCount,E=this.state,w=E.isScrolling,T=E.scrollDirection,x=E.scrollOffset;if(g===0)return[0,0,0,0];var _=s(this.props,x,this._instanceProps),C=c(this.props,_,x,this._instanceProps),j=!w||T==="backward"?Math.max(1,v):1,M=!w||T==="forward"?Math.max(1,v):1;return[Math.max(0,_-j),Math.max(0,Math.min(g-1,C+M)),_,C]},m}(S.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Go=function(t,n){var r=t.children,o=t.direction,i=t.height,s=t.layout,c=t.innerTagName,u=t.outerTagName,f=t.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&mt&&!mt.has(d)&&(mt.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||s==="horizontal";switch(o){case"horizontal":case"vertical":pt&&!pt.has(d)&&(pt.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+o+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(h&&typeof f!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(f===null?"null":typeof f)+'" was specified.'));if(!h&&typeof i!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}},Ko=50,Be=function(t,n,r){var o=t,i=o.itemSize,s=r.itemMetadataMap,c=r.lastMeasuredIndex;if(n>c){var u=0;if(c>=0){var f=s[c];u=f.offset+f.size}for(var d=c+1;d<=n;d++){var h=i(d);s[d]={offset:u,size:h},u+=h}r.lastMeasuredIndex=n}return s[n]},Yo=function(t,n,r){var o=n.itemMetadataMap,i=n.lastMeasuredIndex,s=i>0?o[i].offset:0;return s>=r?jr(t,n,i,0,r):qo(t,n,Math.max(0,i),r)},jr=function(t,n,r,o,i){for(;o<=r;){var s=o+Math.floor((r-o)/2),c=Be(t,s,n).offset;if(c===i)return s;c<i?o=s+1:c>i&&(r=s-1)}return o>0?o-1:0},qo=function(t,n,r,o){for(var i=t.itemCount,s=1;r<i&&Be(t,r,n).offset<o;)r+=s,s*=2;return jr(t,n,Math.min(r,i-1),Math.floor(r/2),o)},Fn=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,i=n.estimatedItemSize,s=n.lastMeasuredIndex,c=0;if(s>=r&&(s=r-1),s>=0){var u=o[s];c=u.offset+u.size}var f=r-s-1,d=f*i;return c+d},Or=Vo({getItemOffset:function(t,n,r){return Be(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Fn,getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var c=t.direction,u=t.height,f=t.layout,d=t.width,h=c==="horizontal"||f==="horizontal",m=h?d:u,b=Be(t,n,i),y=Fn(t,i),a=Math.max(0,Math.min(y-m,b.offset)),g=Math.max(0,b.offset-m+b.size+s);switch(r==="smart"&&(o>=g-m&&o<=a+m?r="auto":r="center"),r){case"start":return a;case"end":return g;case"center":return Math.round(g+(a-g)/2);case"auto":default:return o>=g&&o<=a?o:o<g?g:a}},getStartIndexForOffset:function(t,n,r){return Yo(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var i=t.direction,s=t.height,c=t.itemCount,u=t.layout,f=t.width,d=i==="horizontal"||u==="horizontal",h=d?f:s,m=Be(t,n,o),b=r+h,y=m.offset+m.size,a=n;a<c-1&&y<b;)a++,y+=Be(t,a,o).size;return a},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:o||Ko,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,c){c===void 0&&(c=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),c&&n.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});const Gt=20,Dn=({baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:r,tabType:o,popupRef:i})=>{const[s,c]=S.useState(!1),[u,f]=S.useState(0);S.useEffect(()=>{const A=()=>{i&&i.current&&f(i.current.offsetHeight-200)};return A(),window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[]);const[d,h]=S.useState([]),[m,b]=S.useState(!0),[y,a]=S.useState(!1),[g,v]=S.useState(1),[E,w]=S.useState({}),T=S.useRef(null),{setNotiData:x}=S.useContext(p.CustomOpenList),_=Mr({baseUrl:e,notiPath:t,setNotiData:x}),C=S.useRef(null),j=S.useCallback(async()=>{if(!(y||!m)){a(!0);try{const A=d.length===0?1:g+1,L=await _(A,Gt,o),O=(L==null?void 0:L.rows)||[];C.current=(L==null?void 0:L.count)||(L==null?void 0:L.total)||null,h(F=>[...F,...O]),v(A),(O.length<Gt||C.current&&d.length+O.length>=C.current)&&b(!1)}catch{b(!1)}finally{a(!1)}}},[y,m,g,_,d.length,o]),M=m?d.length+1:d.length,z=A=>!m||A<d.length,k=async()=>{try{const O=e+(t||"/notification-management/api/v1/notifications");await p.axiosInstance.put(O)}catch(L){console.log(L)}const A=await _(1,Gt,o);h((A==null?void 0:A.rows)||[]),x(L=>({...L,unread:{total:0}})),v(1),b(!0),c(!1)},R=()=>{c(!0),k()},G=({style:A})=>l.jsxs($.Box,{style:A,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,className:"notification-loading-item",children:[l.jsx($.CircularProgress,{style:{color:n==null?void 0:n.primary500}}),l.jsx($.Typography,{color:"text.first",variant:"body2",children:"Loading..."})]}),W=async(A,L,O)=>{h(o==="unread"&&L?oe=>oe.filter(te=>te.id!==A):oe=>oe.map(te=>te.id===A?{...te,isRead:L}:te)),x(oe=>{let te=0;const xe=d.find(qe=>qe.id===A);return xe&&(!xe.isRead&&L&&(te=-1),xe.isRead&&!L&&(te=1)),{...oe,unread:{...oe.unread,total:Math.max(0,(oe.unread.total||0)+te)}}});const F=O||`/notification-management/api/v1/notifications/${A}`,q=e+F;await p.axiosInstance.put(q,{isRead:L})},re=A=>{var oe;const q=d[A];return q&&q.notificationType==="deleteMultiple"&&E[q.id]?90+38*(((oe=q.data)==null?void 0:oe.length)??0)+8:90},se=(A,L)=>{w(O=>{const F={...O,[A]:!O[A]};return setTimeout(()=>{var q;(q=T.current)==null||q.resetAfterIndex(L)},0),F})},he=({index:A,style:L})=>{if(!z(A))return l.jsx(G,{style:L});const O=d[A];return l.jsx("div",{style:L,children:l.jsx(p.NotitficationItem,{notification:O,notiPath:t,markAllAsReadState:s,brandColors:n,onMark:W,showDetail:!!E[O.id],onToggleDetail:()=>se(O.id,A)},O.id||A)})};return l.jsxs("div",{children:[l.jsx("div",{className:"mark-all-read",children:l.jsx("button",{onClick:R,style:{visibility:r===0?"hidden":"visible"},children:p.translate("notificationAdmin.notify.markedRead",{defaultValue:"Mark all as read"})})}),l.jsx("div",{className:"notification-items__wrapper",style:{height:"100%"},children:l.jsx("div",{className:"notification-items__content",style:{height:"100%"},children:l.jsx(p.InfiniteLoader,{isItemLoaded:z,itemCount:M,loadMoreItems:j,threshold:10,children:({onItemsRendered:A,ref:L})=>l.jsx(Or,{height:u,itemCount:M,itemSize:re,width:"100%",onItemsRendered:A,ref:O=>{T.current=O,typeof L=="function"&&L(O)},children:he})})})})]})},Xo=({baseUrl:e,notiPath:t,brandColors:n})=>{var h,m;const r=S.useRef(null),{setShowModalFalse:o}=S.useContext(p.CustomOpenList),{notidata:i}=S.useContext(p.CustomOpenList);console.log(i);const[s,c]=S.useState(window.innerWidth<768);S.useEffect(()=>{const b=()=>{c(window.innerWidth<768)};return window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]),S.useEffect(()=>{const b=a=>{!(!!a.composedPath?a.composedPath():[a.target]).some(w=>{var T;return w===r.current||((T=w==null?void 0:w.classList)==null?void 0:T.contains("noti-container"))})&&o()},y=setTimeout(()=>{document.addEventListener("mousedown",b)},100);return()=>{clearTimeout(y),document.removeEventListener("mousedown",b)}},[o]);const[u,f]=S.useState("all"),d=[{id:"all",tabTitle:`${p.translate("notificationAdmin.notify.allNotification",{defaultValue:"All"})} (${((h=i==null?void 0:i.all)==null?void 0:h.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"all",popupRef:r})},{id:"unread",tabTitle:`${p.translate("notificationAdmin.notify.unreadNotification",{defaultValue:"Unread"})} (${((m=i==null?void 0:i.unread)==null?void 0:m.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"unread",popupRef:r})}];return l.jsx(l.Fragment,{children:l.jsx("div",{ref:r,style:{position:s?"fixed":"absolute",backgroundColor:"#fff",width:s?"100vw":"550px",height:"90vh",right:s?"0":"100px",left:s?"0":"auto",top:s?"64px":"100%",padding:s?"16px":"32px",boxShadow:"10px 0px 20px #999",borderRadius:s?"0":"0 0 8px 8px",overflow:"hidden",zIndex:"100"},children:l.jsxs("div",{className:"list-content",children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("h3",{style:{fontSize:"24px",fontWeight:"500",color:p.color.textPrimary},className:"list-title",children:p.translate("notificationAdmin.notify.title",{defaultValue:"Notifications"})}),l.jsx("button",{onClick:o,children:l.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),l.jsx(kr,{tabs:d,setCurrentTab:f,currentTab:u,brandColors:n})]})})})};function Zo({iconColor:e="#fff",baseUrl:t,notiPath:n,brandColors:r}){var d,h;const{isOpen:o,toggleOpen:i,setShowModalFalse:s}=S.useContext(p.CustomOpenList),{notidata:c,setNotiData:u}=S.useContext(p.CustomOpenList),f=Mr({baseUrl:t,notiPath:n,setNotiData:u});return S.useEffect(()=>{(async()=>{var b,y;try{const[a]=await Promise.all([f(1,20,"unread")]);u(()=>({all:{total:0},unread:{total:(a==null?void 0:a.total)||0}}))}catch(a){p.pushError(((y=(b=a.response)==null?void 0:b.data)==null?void 0:y.errorMessage)||"Have error when get notification list")}})()},[]),l.jsxs("div",{children:[l.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[l.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:m=>{m.stopPropagation(),i()},style:{cursor:"pointer",color:e},children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(c==null?void 0:c.unread)&&(c==null?void 0:c.unread.total)!=0&&l.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:p.color.danger},className:"notification-badge",children:((d=c==null?void 0:c.unread)==null?void 0:d.total)>9?"9+":`${(h=c==null?void 0:c.unread)==null?void 0:h.total}`})]}),l.jsx("div",{className:"noti-list-container",children:o&&l.jsx(Xo,{baseUrl:t,notiPath:n,brandColors:r})})]})}const Jo=({color:e="#fff"})=>l.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M17.5 17.5L12.5001 12.5M14.1667 8.33333C14.1667 11.555 11.555 14.1667 8.33333 14.1667C5.11167 14.1667 2.5 11.555 2.5 8.33333C2.5 5.11167 5.11167 2.5 8.33333 2.5C11.555 2.5 14.1667 5.11167 14.1667 8.33333Z",stroke:e,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Qo=".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{position:fixed;top:0;left:0;width:100%;height:64px;display:flex;z-index:1100;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}.mobile-toggle-btn{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;margin-right:8px}.search-toggle-btn{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}.search-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000080;z-index:1200}@media (min-width: 768px){.right-side-container{margin-right:2.5rem}}@media (max-width: 768px){.navbar-wrapper{padding-left:1.5rem}.navbar-logo-button{display:flex;align-items:center}.right-side-container{margin-right:1.5rem}.search-popup{position:fixed;top:86px;left:50%;transform:translate(-50%);z-index:1300;background-color:#000;padding:16px;width:100%}.search-popup.topbar-search-label{width:85%}}",ei=".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}",ti=':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}',ni="._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}",Pr='.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}',ri=S.createContext({}),Ar=!0;function oi({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:s,duration:c,enableAnimation:u=Ar,customHighlightBackground:f}){const d={};return s==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}s`),u||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof r=="string"||typeof r=="number")&&(d.height=r),(typeof o=="string"||typeof o=="number")&&(d.borderRadius=o),i&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof f=="string"&&(d["--custom-highlight-background"]=f),d}function Nr({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...c}){var u,f,d;const h=S.useContext(ri),m={...c};for(const[w,T]of Object.entries(c))typeof T>"u"&&delete m[w];const b={...h,...m,circle:i},y={...s,...oi(b)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const g=(u=b.inline)!==null&&u!==void 0?u:!1,v=[],E=Math.ceil(e);for(let w=0;w<E;w++){let T=y;if(E>e&&w===E-1){const _=(f=T.width)!==null&&f!==void 0?f:"100%",C=e%1,j=typeof _=="number"?_*C:`calc(${_} * ${C})`;T={...T,width:j}}const x=S.createElement("span",{className:a,style:T,key:w},"‌");g?v.push(x):v.push(S.createElement(S.Fragment,{key:w},x,S.createElement("br",null)))}return S.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(d=b.enableAnimation)!==null&&d!==void 0?d:Ar},t?v.map((w,T)=>S.createElement(t,{key:T},w)):v)}const ii='@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}',si=({baseUrl:e,searchPath:t})=>{const[n,r]=S.useState(!1);console.log("hasPermission state",n);const o=async()=>{const s=e+(t||"/user-management/api/v1/users/my-account/access-stella-search");try{const c=await p.axiosInstance.get(s);console.log("hasPermission data",c.data),r(c.data)}catch(c){console.log(c)}};return S.useEffect(()=>{o()},[e,t]),{hasPermission:n}};function Ee(e){return Array.isArray?Array.isArray(e):Lr(e)==="[object Array]"}function ai(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ci(e){return e==null?"":ai(e)}function Se(e){return typeof e=="string"}function $r(e){return typeof e=="number"}function li(e){return e===!0||e===!1||ui(e)&&Lr(e)=="[object Boolean]"}function Rr(e){return typeof e=="object"}function ui(e){return Rr(e)&&e!==null}function ue(e){return e!=null}function Kt(e){return!e.trim().length}function Lr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const di="Incorrect 'index' type",fi=e=>`Invalid value for key ${e}`,hi=e=>`Pattern length exceeds max of ${e}.`,pi=e=>`Missing ${e} property in key`,mi=e=>`Property 'weight' in key '${e}' must be a positive integer`,Bn=Object.prototype.hasOwnProperty;class gi{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=zr(r);n+=o.weight,this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function zr(e){let t=null,n=null,r=null,o=1,i=null;if(Se(e)||Ee(e))r=e,t=Hn(e),n=Jt(e);else{if(!Bn.call(e,"name"))throw new Error(pi("name"));const s=e.name;if(r=s,Bn.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(mi(s));t=Hn(s),n=Jt(s),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Hn(e){return Ee(e)?e:e.split(".")}function Jt(e){return Ee(e)?e.join("."):e}function yi(e,t){let n=[],r=!1;const o=(i,s,c)=>{if(ue(i))if(!s[c])n.push(i);else{let u=s[c];const f=i[u];if(!ue(f))return;if(c===s.length-1&&(Se(f)||$r(f)||li(f)))n.push(ci(f));else if(Ee(f)){r=!0;for(let d=0,h=f.length;d<h;d+=1)o(f[d],s,c+1)}else s.length&&o(f,s,c+1)}};return o(e,Se(t)?t.split("."):t,0),r?n:n[0]}const xi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},bi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vi={location:0,threshold:.6,distance:100},Si={useExtendedSearch:!1,getFn:yi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var P={...bi,...xi,...vi,...Si};const wi=/[^ ]+/g;function _i(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const i=o.match(wi).length;if(n.has(i))return n.get(i);const s=1/Math.pow(i,.5*e),c=parseFloat(Math.round(s*r)/r);return n.set(i,c),c},clear(){n.clear()}}}class yn{constructor({getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){this.norm=_i(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Se(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Se(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!ue(t)||Kt(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(ue(s)){if(Ee(s)){let c=[];const u=[{nestedArrIndex:-1,value:s}];for(;u.length;){const{nestedArrIndex:f,value:d}=u.pop();if(ue(d))if(Se(d)&&!Kt(d)){let h={v:d,i:f,n:this.norm.get(d)};c.push(h)}else Ee(d)&&d.forEach((h,m)=>{u.push({nestedArrIndex:m,value:h})})}r.$[i]=c}else if(Se(s)&&!Kt(s)){let c={v:s,n:this.norm.get(s)};r.$[i]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Fr(e,t,{getFn:n=P.getFn,fieldNormWeight:r=P.fieldNormWeight}={}){const o=new yn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(zr)),o.setSources(t),o.create(),o}function Ei(e,{getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new yn({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function dt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=P.distance,ignoreLocation:i=P.ignoreLocation}={}){const s=t/e.length;if(i)return s;const c=Math.abs(r-n);return o?s+c/o:c?1:s}function Ci(e=[],t=P.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){let c=e[i];c&&r===-1?r=i:!c&&r!==-1&&(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const Pe=32;function Ti(e,t,n,{location:r=P.location,distance:o=P.distance,threshold:i=P.threshold,findAllMatches:s=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,includeMatches:u=P.includeMatches,ignoreLocation:f=P.ignoreLocation}={}){if(t.length>Pe)throw new Error(hi(Pe));const d=t.length,h=e.length,m=Math.max(0,Math.min(r,h));let b=i,y=m;const a=c>1||u,g=a?Array(h):[];let v;for(;(v=e.indexOf(t,y))>-1;){let C=dt(t,{currentLocation:v,expectedLocation:m,distance:o,ignoreLocation:f});if(b=Math.min(C,b),y=v+d,a){let j=0;for(;j<d;)g[v+j]=1,j+=1}}y=-1;let E=[],w=1,T=d+h;const x=1<<d-1;for(let C=0;C<d;C+=1){let j=0,M=T;for(;j<M;)dt(t,{errors:C,currentLocation:m+M,expectedLocation:m,distance:o,ignoreLocation:f})<=b?j=M:T=M,M=Math.floor((T-j)/2+j);T=M;let z=Math.max(1,m-M+1),k=s?h:Math.min(m+M,h)+d,R=Array(k+2);R[k+1]=(1<<C)-1;for(let W=k;W>=z;W-=1){let re=W-1,se=n[e.charAt(re)];if(a&&(g[re]=+!!se),R[W]=(R[W+1]<<1|1)&se,C&&(R[W]|=(E[W+1]|E[W])<<1|1|E[W+1]),R[W]&x&&(w=dt(t,{errors:C,currentLocation:re,expectedLocation:m,distance:o,ignoreLocation:f}),w<=b)){if(b=w,y=re,y<=m)break;z=Math.max(1,2*m-y)}}if(dt(t,{errors:C+1,currentLocation:m,expectedLocation:m,distance:o,ignoreLocation:f})>b)break;E=R}const _={isMatch:y>=0,score:Math.max(.001,w)};if(a){const C=Ci(g,c);C.length?u&&(_.indices=C):_.isMatch=!1}return _}function Ii(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class Dr{constructor(t,{location:n=P.location,threshold:r=P.threshold,distance:o=P.distance,includeMatches:i=P.includeMatches,findAllMatches:s=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,isCaseSensitive:u=P.isCaseSensitive,ignoreLocation:f=P.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(m,b)=>{this.chunks.push({pattern:m,alphabet:Ii(m),startIndex:b})},h=this.pattern.length;if(h>Pe){let m=0;const b=h%Pe,y=h-b;for(;m<y;)d(this.pattern.substr(m,Pe),m),m+=Pe;if(b){const a=h-Pe;d(this.pattern.substr(a),a)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let y={isMatch:!0,score:0};return r&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,ignoreLocation:f}=this.options;let d=[],h=0,m=!1;this.chunks.forEach(({pattern:y,alphabet:a,startIndex:g})=>{const{isMatch:v,score:E,indices:w}=Ti(t,y,a,{location:o+g,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:f});v&&(m=!0),h+=E,v&&w&&(d=[...d,...w])});let b={isMatch:m,score:m?h/this.chunks.length:1};return m&&r&&(b.indices=d),b}}class Me{constructor(t){this.pattern=t}static isMultiMatch(t){return Wn(t,this.multiRegex)}static isSingleMatch(t){return Wn(t,this.singleRegex)}search(){}}function Wn(e,t){const n=e.match(t);return n?n[1]:null}class ki extends Me{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mi extends Me{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class ji extends Me{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Oi extends Me{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Pi extends Me{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ai extends Me{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Br extends Me{constructor(t,{location:n=P.location,threshold:r=P.threshold,distance:o=P.distance,includeMatches:i=P.includeMatches,findAllMatches:s=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,isCaseSensitive:u=P.isCaseSensitive,ignoreLocation:f=P.ignoreLocation}={}){super(t),this._bitapSearch=new Dr(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Hr extends Me{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}}const Qt=[ki,Hr,ji,Oi,Ai,Pi,Mi,Br],Un=Qt.length,Ni=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$i="|";function Ri(e,t={}){return e.split($i).map(n=>{let r=n.trim().split(Ni).filter(i=>i&&!!i.trim()),o=[];for(let i=0,s=r.length;i<s;i+=1){const c=r[i];let u=!1,f=-1;for(;!u&&++f<Un;){const d=Qt[f];let h=d.isMultiMatch(c);h&&(o.push(new d(h,t)),u=!0)}if(!u)for(f=-1;++f<Un;){const d=Qt[f];let h=d.isSingleMatch(c);if(h){o.push(new d(h,t));break}}}return o})}const Li=new Set([Br.type,Hr.type]);class zi{constructor(t,{isCaseSensitive:n=P.isCaseSensitive,includeMatches:r=P.includeMatches,minMatchCharLength:o=P.minMatchCharLength,ignoreLocation:i=P.ignoreLocation,findAllMatches:s=P.findAllMatches,location:c=P.location,threshold:u=P.threshold,distance:f=P.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:c,threshold:u,distance:f},this.pattern=n?t:t.toLowerCase(),this.query=Ri(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let i=0,s=[],c=0;for(let u=0,f=n.length;u<f;u+=1){const d=n[u];s.length=0,i=0;for(let h=0,m=d.length;h<m;h+=1){const b=d[h],{isMatch:y,indices:a,score:g}=b.search(t);if(y){if(i+=1,c+=g,r){const v=b.constructor.type;Li.has(v)?s=[...s,...a]:s.push(a)}}else{c=0,i=0,s.length=0;break}}if(i){let h={isMatch:!0,score:c/i};return r&&(h.indices=s),h}}return{isMatch:!1,score:1}}}const en=[];function Fi(...e){en.push(...e)}function tn(e,t){for(let n=0,r=en.length;n<r;n+=1){let o=en[n];if(o.condition(e,t))return new o(e,t)}return new Dr(e,t)}const wt={AND:"$and",OR:"$or"},nn={PATH:"$path",PATTERN:"$val"},rn=e=>!!(e[wt.AND]||e[wt.OR]),Di=e=>!!e[nn.PATH],Bi=e=>!Ee(e)&&Rr(e)&&!rn(e),Vn=e=>({[wt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Wr(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const s=Di(o);if(!s&&i.length>1&&!rn(o))return r(Vn(o));if(Bi(o)){const u=s?o[nn.PATH]:i[0],f=s?o[nn.PATTERN]:o[u];if(!Se(f))throw new Error(fi(u));const d={keyId:Jt(u),pattern:f};return n&&(d.searcher=tn(f,t)),d}let c={children:[],operator:i[0]};return i.forEach(u=>{const f=o[u];Ee(f)&&f.forEach(d=>{c.children.push(r(d))})}),c};return rn(e)||(e=Vn(e)),r(e)}function Hi(e,{ignoreFieldNorm:t=P.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:s})=>{const c=o?o.weight:null;r*=Math.pow(s===0&&c?Number.EPSILON:s,(c||1)*(t?1:i))}),n.score=r})}function Wi(e,t){const n=e.matches;t.matches=[],ue(n)&&n.forEach(r=>{if(!ue(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let s={indices:o,value:i};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),t.matches.push(s)})}function Ui(e,t){t.score=e.score}function Vi(e,t,{includeMatches:n=P.includeMatches,includeScore:r=P.includeScore}={}){const o=[];return n&&o.push(Wi),r&&o.push(Ui),e.map(i=>{const{idx:s}=i,c={item:t[s],refIndex:s};return o.length&&o.forEach(u=>{u(i,c)}),c})}class Ve{constructor(t,n={},r){this.options={...P,...n},this.options.useExtendedSearch,this._keyStore=new gi(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof yn))throw new Error(di);this._myIndex=n||Fr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ue(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:c}=this.options;let u=Se(t)?Se(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Hi(u,{ignoreFieldNorm:c}),i&&u.sort(s),$r(n)&&n>-1&&(u=u.slice(0,n)),Vi(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=tn(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:f,indices:d}=n.searchIn(i);u&&o.push({item:i,idx:s,matches:[{score:f,value:i,norm:c,indices:d}]})}),o}_searchLogical(t){const n=Wr(t,this.options),r=(c,u,f)=>{if(!c.children){const{keyId:h,searcher:m}=c,b=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:m});return b&&b.length?[{idx:f,item:u,matches:b}]:[]}const d=[];for(let h=0,m=c.children.length;h<m;h+=1){const b=c.children[h],y=r(b,u,f);if(y.length)d.push(...y);else if(c.operator===wt.AND)return[]}return d},o=this._myIndex.records,i={},s=[];return o.forEach(({$:c,i:u})=>{if(ue(c)){let f=r(n,c,u);f.length&&(i[u]||(i[u]={idx:u,item:c,matches:[]},s.push(i[u])),f.forEach(({matches:d})=>{i[u].matches.push(...d)}))}}),s}_searchObjectList(t){const n=tn(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:s,i:c})=>{if(!ue(s))return;let u=[];r.forEach((f,d)=>{u.push(...this._findMatches({key:f,value:s[d],searcher:n}))}),u.length&&i.push({idx:c,item:s,matches:u})}),i}_findMatches({key:t,value:n,searcher:r}){if(!ue(n))return[];let o=[];if(Ee(n))n.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:f,indices:d}=r.searchIn(i);u&&o.push({score:f,key:t,value:i,idx:s,norm:c,indices:d})});else{const{v:i,n:s}=n,{isMatch:c,score:u,indices:f}=r.searchIn(i);c&&o.push({score:u,key:t,value:i,norm:s,indices:f})}return o}}Ve.version="6.6.2";Ve.createIndex=Fr;Ve.parseIndex=Ei;Ve.config=P;Ve.parseQuery=Wr;Fi(zi);const Gn={shouldSort:!0,threshold:.6,location:0,distance:100,minMatchCharLength:1,keys:["name"]};function Gi(e,t,n){let r;return function(){const o=this,i=arguments,s=function(){r=null,e.apply(o,i)};r&&clearTimeout(r),r=setTimeout(s,t)}}const Ki="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.89222'%20cy='8.34901'%20r='5.59901'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.6428%2013.1855L14.4568%2014.9995'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",on=({showIcon:e})=>e?l.jsx("img",{id:"icon",className:"StyledSearchIcon search-icon",width:20,height:20,src:Ki,alt:"icon"}):null;function Yi({results:e=[],onClick:t,setSearchString:n,showIcon:r,maxResults:o,resultStringKeyName:i="name",highlightedItem:s,setHighlightedItem:c,formatResult:u,showNoResultsFlag:f=!0,showNoResultsText:d="No results"}){const h=u||(y=>y[i]),m=y=>{t(y),n(y[i])},b=({event:y,result:a})=>{y.button===0&&(y.preventDefault(),m(a))};return f?l.jsx(Kn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(on,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:d})]})}):(e==null?void 0:e.length)<=0&&!f?null:l.jsx(Kn,{children:e.slice(0,o).map((y,a)=>l.jsxs("li",{className:s===a?"selectedSearch":"",id:s===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:g=>b({event:g,result:y}),onClick:()=>m(y),children:[l.jsx(on,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(y)})]},`rsa-result-${y.entityId}`))})}const Kn=({children:e})=>l.jsxs("div",{className:"StyledResults",children:[l.jsx("div",{className:"line"}),l.jsx("ul",{id:"autocomplete-results",children:e})]}),qi=({showClear:e,setSearchString:t,searchString:n,setFocus:r,onClear:o})=>{const i=()=>{t({target:{value:""}}),r(),o()};return!e||!n||(n==null?void 0:n.length)<=0?null:l.jsx("div",{className:"StyledClearIcon clear-icon",onClick:i,children:l.jsx("svg",{width:20,height:20,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})};function Xi({searchString:e,setSearchString:t,setHighlightedItem:n,eraseResults:r,autoFocus:o,onFocus:i,onClear:s,placeholder:c,showIcon:u=!0,showClear:f=!0,maxLength:d}){const h=S.useRef(null);let m=!0;const b=()=>{m=!1,h!=null&&h.current&&h.current.focus(),m=!0},y=g=>{m&&i(g)},a=d?{maxLength:d}:{};return S.useEffect(()=>{document.querySelector("global-topbar");const g=v=>{const E=document.getElementById("AddTagButton"),w=document.getElementsByClassName("btn-edit");["a","e","t"].includes(v.key.toLowerCase())&&((w==null?void 0:w.length)>0&&w[0].addEventListener("click",x=>{const _=document.querySelector("global-topbar"),C=_!=null?_.shadowRoot:document,j=C.getElementById("GlobalSearchInput");C.activeElement===j?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0),E!=null&&E.addEventListener("click",x=>{const _=document.querySelector("global-topbar"),C=_!=null?_.shadowRoot:document,j=C.getElementById("GlobalSearchInput");C.activeElement===j?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0))};return document.addEventListener("keydown",g,!0),()=>document.removeEventListener("keydown",g,!0)},[]),l.jsxs("div",{className:"StyledSearchInput",children:[l.jsx(on,{showIcon:u}),l.jsx("input",{type:"text",name:"topbar-search",className:"topbar-search-input",id:"GlobalSearchInput",ref:h,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:y,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:g=>{var v;if(g.key==="Enter"){const E=document.querySelector("global-topbar");if((E!=null?E.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",g);const T=g.currentTarget.value;(v=window.top)==null||v.shellNavigate(`/app/stella/page/Search/Index?Term=${T}`);return}}n({event:g})},"data-test":"search-input",...a}),l.jsx(qi,{showClear:f,setSearchString:t,searchString:e,onClear:s,setFocus:b})]})}const Zi=200,Ji=10;function Yn({items:e=[],fuseOptions:t=Gn,inputDebounce:n=Zi,onSearch:r=()=>{},onHover:o=()=>{},onSelect:i=()=>{},onFocus:s=()=>{},onClear:c=()=>{},searchOnFocus:u=!0,showIcon:f=!0,showClear:d=!0,maxResults:h=Ji,placeholder:m="",autoFocus:b=!1,styling:y={},resultStringKeyName:a="name",inputSearchString:g="",formatResult:v,showNoResults:E=!0,showNoResultsText:w="No results",showItemsOnFocus:T=!1,maxLength:x=0,baseUrl:_=""}){({...y});const C={...Gn,...t},j=new Ve(e,C);j.setCollection(e);const[M,z]=S.useState(g),[k,R]=S.useState([]),[G,W]=S.useState(-1),[re,se]=S.useState(!1),[he,A]=S.useState(!1),[L,O]=S.useState(!1),[F,q]=S.useState(!1);S.useEffect(()=>{z(g);const D=setTimeout(()=>R(lt(g)),0);return()=>clearTimeout(D)},[g]),S.useEffect(()=>{(M==null?void 0:M.length)>=3?e&&(e==null?void 0:e.length)>0&&R(e):R([])},[e]),S.useEffect(()=>{const D=()=>{Ae(),q(!1)};return document.addEventListener("click",D),()=>document.removeEventListener("click",D)},[]),S.useEffect(()=>{(()=>{E&&M.length>0&&!he&&k.length===0&&!re?O(!0):O(!1),T&&k.length===0&&M.length===0&&F&&R(e.slice(0,h))})()},[he,E,re,M,k,T,F]);const oe=D=>{u&&s(D),q(!0)},te=D=>{let I=[];(D==null?void 0:D.length)>0&&(I=lt(D)),R(I),r(D,I),A(!1)},xe=S.useCallback(n>0?Gi(D=>te(D),n):D=>te(D),[e]),qe=D=>{Ae(),i(D),z(D[a]),W(0)},lt=D=>j.search(D,{limit:h}).map(I=>({...I.item})).slice(0,h),Wt=({target:D})=>{const I=D.value;z(I),xe(I),A(!0),re&&se(!1)},Ae=()=>{R([]),se(!0)},ut=({index:D,event:I})=>{let Te=-1;const Oe=Ne=>{W(Ne),k!=null&&k[Ne]&&o(k[Ne])};if(D!==void 0)W(D),k!=null&&k[D]&&o(k[D]);else if(I)switch(I.key){case"Enter":k.length>0&&k[G]?(I.preventDefault(),i(k[G])):r(M,k),W(-1),Ae();break;case"ArrowUp":I.preventDefault(),Te=G>-1?G-1:k.length-1,Oe(Te);break;case"ArrowDown":I.preventDefault(),Te=G<k.length-1?G+1:-1,Oe(Te);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Xi,{searchString:M,setSearchString:Wt,eraseResults:Ae,autoFocus:b,onFocus:oe,onClear:c,placeholder:m,showIcon:!0,showClear:d,setHighlightedItem:ut,maxLength:x,baseUrl:_})}),l.jsx(Yi,{results:k,onClick:qe,setSearchString:z,showIcon:f,maxResults:h,resultStringKeyName:a,formatResult:v,highlightedItem:G,setHighlightedItem:ut,showNoResultsFlag:L,showNoResultsText:w})]})})}const Qi=e=>l.jsx(p.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"top-right",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),es=e=>l.jsx(p.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit",width:"610px"},containerId:"toastifyNotification",...e});function ts({baseUrl:e,brandColors:t,isOpen:n,onClose:r}){const[o,i]=S.useState("global"),[s,c]=S.useState([]),[u,f]=S.useState([]),[d,h]=S.useState(!1);S.useEffect(()=>{n&&p.handleClickOutside({childrenClass:"menu-tabs-container",action:r})},[n,r]);const m=y=>{c(y),h(!0)};if(S.useEffect(()=>{const y=a=>{const v=a.detail.favoriteMenus||[];f(v)};return window.addEventListener("favoriteMenusChange",y),()=>{window.removeEventListener("favoriteMenusChange",y)}},[]),!n)return null;const b=[{id:"global",tabTitle:"Menu",children:l.jsx(p.GlobalMenu,{baseUrl:e,brandColors:t,dndMode:"html5",onDataLoaded:m,inlineMode:!0})},{id:"favorite",tabTitle:"Favorites",children:l.jsx(p.FavoriteMenu,{baseUrl:e,brandColors:t,dndMode:"html5",isTreeMode:!0,initialFavoriteItems:d?u:void 0})}];return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:p.languageStyles}),l.jsx("div",{className:"menu-tabs-backdrop",onClick:r,style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:999,transition:"opacity 0.3s ease"}}),l.jsxs("div",{className:"menu-tabs-container",style:{position:"fixed",top:"64px",left:0,width:"90%",backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",zIndex:1e3,height:"calc(100vh - 64px)",display:"flex",flexDirection:"column"},children:[l.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid #e0e0e0",display:"flex",justifyContent:"center",alignItems:"center"},children:l.jsx(p.LanguageDropdown,{})}),l.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:l.jsx(kr,{tabs:b,setCurrentTab:i,currentTab:o,brandColors:t,fullWidthTabs:!0})})]})]})}function ns(e){return l.jsx(ts,{...e})}function rs({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:i,style:s,customColors:c,notiprops:u,isBrand:f,logout:d,disabledLogoClick:h=!1}=t,m={...s,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[b,y]=S.useState(!1),[a,g]=S.useState(!1);console.log("🚀 ~ TopBarContent ~ isMenuOpen:",a);const[v,E]=S.useState(window.innerWidth<768),w=St.useLocation(),{Term:T}=St.useParams();console.log("term",T);const[x,_]=S.useState([]),[C,j]=S.useState([]),[M,z]=S.useState(!1),k=S.useRef(null),R=si({baseUrl:o});console.log("searchPermission",R.hasPermission),S.useEffect(()=>{const O=()=>{const F=window.innerWidth<768;E(F),!F&&a&&g(!1)};return window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[a]),S.useEffect(()=>{a&&g(!1)},[w.pathname]),S.useEffect(()=>{if(v&&M){const O=F=>{k.current&&!k.current.contains(F.target)&&z(!1)};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)}},[v,M]),S.useEffect(()=>{x.length>=3?G(x):j([])},[x]);const G=async O=>{await fetch(`/stella/page/Search/Suggestions?term=${O}`).then(F=>F.json()).then(F=>{j(F),console.log(F)}).catch(F=>{console.error(F)})},W=O=>{console.log(O)},re=(O,F)=>{_(O),console.log(O,F)},se=O=>{const F=O.entityType,q=O.entityId;switch(F){case"Zone":document.location.href=o+"/stella/page/SiteManagement/Zone/Details/"+q;return;case"Location":document.location.href=o+"/stella/page/SiteManagement/Location/Details/"+q;return;case"Company":document.location.href=o+"/stella/page/SiteManagement/Company/Details/"+q;return;default:console.log(`Unsure how to navigate to ${F} ${q}`);return}},he=()=>{const O=document.querySelector("global-topbar"),q=(O!=null?O.shadowRoot:document).getElementById("GlobalSearchInput");q&&q.value.length>=3&&(setTimeout(()=>{},1e3),G(q.value))},A=()=>{g(!a)},L=O=>O.entityType==="Location"?l.jsxs(l.Fragment,{children:[l.jsx("div",{dangerouslySetInnerHTML:{__html:O.name}})," ",l.jsxs("div",{style:{fontSize:"0.6em"},children:["Status: ",O.entityStatus]})]}):l.jsx(l.Fragment,{children:l.jsx("div",{dangerouslySetInnerHTML:{__html:O.name}})});return l.jsxs(p.StyleWrapper,{styles:[Qo,ti,Pr,ni,ii,ei],style:{zIndex:"calc(var(--menu-z-index) + 1)"},className:"backdrop-delay-transition",id:"topbar-wrapper",children:[l.jsx("nav",{className:`navbar-wrapper ${e}`,style:c?m:s,children:l.jsxs("div",{className:"navbar-container",children:[l.jsxs("div",{className:"navbar-logo-button",children:[v&&l.jsx("button",{className:"mobile-toggle-btn",onClick:A,children:l.jsx(zo,{color:c==null?void 0:c.headerTextColor})}),h?l.jsx("div",{className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}):l.jsx("a",{href:"/home",className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})})]}),l.jsxs("div",{className:"right-side-container",children:[!v&&f&&R.hasPermission?l.jsx("span",{children:l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",children:l.jsx("div",{id:"autocomplete",style:{width:223},children:l.jsx(Yn,{items:C,onSearch:re,onHover:W,onSelect:se,onFocus:he,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:L,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):v&&f&&R.hasPermission?l.jsxs(l.Fragment,{children:[M?null:l.jsx("button",{className:"search-toggle-btn",onClick:()=>z(!0),children:l.jsx(Jo,{color:c==null?void 0:c.headerTextColor})}),M&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"search-backdrop",onClick:()=>z(!1)}),l.jsx("div",{className:"search-popup",ref:k,children:l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",style:{flex:1},children:l.jsx("div",{id:"autocomplete",style:{width:"100%"},children:l.jsx(Yn,{items:C,onSearch:re,onHover:W,onSelect:se,onFocus:he,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:L,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})}),l.jsx("button",{onClick:()=>z(!1),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":"Close search",children:l.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11.9998 13.4008L7.0998 18.3008C6.91647 18.4841 6.68314 18.5758 6.3998 18.5758C6.11647 18.5758 5.88314 18.4841 5.6998 18.3008C5.51647 18.1174 5.4248 17.8841 5.4248 17.6008C5.4248 17.3174 5.51647 17.0841 5.6998 16.9008L10.5998 12.0008L5.6998 7.10078C5.51647 6.91745 5.4248 6.68411 5.4248 6.40078C5.4248 6.11745 5.51647 5.88411 5.6998 5.70078C5.88314 5.51745 6.11647 5.42578 6.3998 5.42578C6.68314 5.42578 6.91647 5.51745 7.0998 5.70078L11.9998 10.6008L16.8998 5.70078C17.0831 5.51745 17.3165 5.42578 17.5998 5.42578C17.8831 5.42578 18.1165 5.51745 18.2998 5.70078C18.4831 5.88411 18.5748 6.11745 18.5748 6.40078C18.5748 6.68411 18.4831 6.91745 18.2998 7.10078L13.3998 12.0008L18.2998 16.9008C18.4831 17.0841 18.5748 17.3174 18.5748 17.6008C18.5748 17.8841 18.4831 18.1174 18.2998 18.3008C18.1165 18.4841 17.8831 18.5758 17.5998 18.5758C17.3165 18.5758 17.0831 18.4841 16.8998 18.3008L11.9998 13.4008Z",fill:"white"})})})]})})]})]}):"",t.customElement,l.jsx("span",{children:l.jsxs(p.CustomOpenListProvider,{children:[l.jsx($o,{baseUrl:u.baseUrl,path:u.path,apiKey:u.apiKey,authDomain:u.authDomain,projectId:u.projectId,storageBucket:u.storageBucket,messagingSenderId:u.messagingSenderId,appId:u.appId,measurementId:u.measurementId,vapidKey:u.vapidKey}),l.jsx(Zo,{iconColor:c==null?void 0:c.headerTextColor,baseUrl:o,notiPath:i,brandColors:c})]})}),v&&l.jsx(qn,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,setShowConfirmModal:y}),!v&&l.jsxs(l.Fragment,{children:[l.jsx(Ur,{}),l.jsxs("div",{className:"userContainer",children:[l.jsx(qn,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,userName:r==null?void 0:r.firstName,setShowConfirmModal:y}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Nr,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})]})}),a&&l.jsx(ns,{isOpen:a,onClose:()=>g(!1),baseUrl:o,brandColors:c}),l.jsx(p.LogoutConfirmModal,{isOpen:b,onClose:()=>y(!1),onConfirm:d})]})}function Ur(){var u;const e=[{value:p.Language.en,element:l.jsx(p.UnitedKingdomIcon,{})},{value:p.Language.de,element:l.jsx(p.GermanyIcon,{})}],[t,n]=S.useState(!1),[r,o]=S.useState(new Array(e.length).fill(!1)),{language:i,setLanguage:s}=p.useCustomTranslation();S.useEffect(()=>{p.handleClickOutside({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(f=>f.value==i))==null?void 0:u.element;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:p.languageStyles}),l.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:l.jsx("div",{className:"languageDropdown",onClick:()=>{n(!t)},children:c})})]})}function qn({avatarUrl:e,userName:t}){const[n,r]=S.useState(!1),o=S.useRef(null);S.useRef(null);const[i,s]=S.useState(!1),[c,u]=S.useState(!1);return S.useEffect(()=>{p.handleClickOutside({childrenClass:"userAvatar",action(){r(!1)}})},[]),l.jsx(l.Fragment,{children:l.jsx("div",{style:{position:"relative"},children:e?l.jsx("img",{onClick:()=>r(!n),ref:o,alt:"user avatar",className:"userAvatar",src:e}):l.jsx("div",{onClick:()=>r(!n),ref:o,className:"userAvatar",id:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""})})})}function os(e){const{user:t,logout:n,isFetching:r}=p.useAuth();return l.jsx(rs,{...e,isFetching:r,user:t,logout:n})}const is=({children:e})=>l.jsxs($.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[l.jsx(ss,{}),e]});function ss(){return l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[l.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),l.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),l.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),l.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),l.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),l.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),l.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),l.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),l.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),l.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),l.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),l.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),l.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),l.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),l.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),l.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),l.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),l.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),l.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),l.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),l.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),l.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),l.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),l.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),l.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),l.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),l.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),l.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var as=typeof p.commonjsGlobal=="object"&&p.commonjsGlobal&&p.commonjsGlobal.Object===Object&&p.commonjsGlobal,cs=typeof self=="object"&&self&&self.Object===Object&&self;as||cs||Function("return this")();function ls(e){const[t,n]=S.useState(!!e),r=S.useCallback(()=>{n(!0)},[]),o=S.useCallback(()=>{n(!1)},[]),i=S.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:o,toggle:i}}function us(e){var t;return l.jsxs($.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&l.jsxs($.DialogTitle,{component:$.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?l.jsx($.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?l.jsx($.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),l.jsx($.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&l.jsx($.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:l.jsxs(l.Fragment,{children:[!e.hideClose&&l.jsx($.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&l.jsx($.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function ds(e){const t=ls(typeof e=="boolean"?e:void 0);return{setTrue:()=>{t.setTrue(),p.setShellBackdrop(!0)},open:t.value,onClose:()=>{t.setFalse(),p.setShellBackdrop(!1)},onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}function fs({rootPath:e}){return l.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center"},children:[l.jsx("h1",{children:"404 - Not Found"}),l.jsx("p",{children:"Sorry, the page you are looking for does not exist."}),l.jsx($.Box,{height:"16px"}),l.jsx(St.Link,{to:e,children:l.jsx($.Button,{variant:"contained",color:"primary",children:"Go to Home"})})]})}function hs(){const{colors:e}=p.useTheme();return l.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100vh - 144px)",alignItems:"center",justifyContent:"center",zIndex:100},children:l.jsx("h1",{style:{color:`${e==null?void 0:e.primary300}`,fontSize:"82px",fontWeight:700,textTransform:"uppercase",marginTop:0,marginBottom:0,textAlign:"center"},children:"Welcome to the Intelli-Verse"})})}function Ie(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vr(e){if(N.isValidElement(e)||!Ie(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vr(e[n])}),t}function we(e,t,n={clone:!0}){const r=n.clone?p._extends({},e):e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach(o=>{N.isValidElement(t[o])?r[o]=t[o]:Ie(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ie(e[o])?r[o]=we(e[o],t[o],n):n.clone?r[o]=Ie(t[o])?Vr(t[o]):t[o]:r[o]=t[o]}),r}const ps=Object.freeze(Object.defineProperty({__proto__:null,default:we,isPlainObject:Ie},Symbol.toStringTag,{value:"Module"}));function Qe(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));var sn={exports:{}},K={};/**
44
+ `}),l.jsxs("div",{className:"tab-container",children:[l.jsx("div",{style:{display:"flex",width:"100%",height:"50px",borderBottom:`1px solid ${p.color.grey200}`,flexShrink:0},className:"tab-container__title",children:t.map((i,s)=>l.jsx("button",{id:i.id,disabled:e.currentTab===`${i.id}`,onClick:n,className:`tab-title ${e.currentTab===`${i.id}`?"is-active":""}`,children:i.tabTitle},s))}),l.jsx("div",{className:"tab-content",children:t.map((i,s)=>l.jsx("div",{style:{height:"100%",display:e.currentTab===`${i.id}`?"flex":"none",flexDirection:"column"},children:e.currentTab===`${i.id}`&&l.jsx("div",{style:{flex:1,overflow:"auto"},children:i.children})},s))})]})]})},Mr=({baseUrl:e,notiPath:t,setNotiData:n})=>async(o=1,i=20,s="all")=>{const u=e+(t||"/notification-management/api/v1/notifications"),d=(await p.axiosInstance.get(u,{params:{page:o,pageSize:i,filter:{notificationFilterType:s}}})).data;return n(s==="all"?h=>({...h,all:{total:(d==null?void 0:d.total)??0}}):h=>({...h,unread:{total:(d==null?void 0:d.total)??0}})),d};var Nn=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Fo(e,t){return!!(e===t||Nn(e)&&Nn(t))}function Do(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Fo(e[n],t[n]))return!1;return!0}function Ut(e,t){t===void 0&&(t=Do);var n,r=[],o,i=!1;function s(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return i&&n===this&&t(c,r)||(o=e.apply(this,c),i=!0,n=this,r=c),o}return s}var Bo=typeof performance=="object"&&typeof performance.now=="function",$n=Bo?function(){return performance.now()}:function(){return Date.now()};function Rn(e){cancelAnimationFrame(e.id)}function Ho(e,t){var n=$n();function r(){$n()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Vt=-1;function Ln(e){if(e===void 0&&(e=!1),Vt===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Vt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Vt}var $e=null;function zn(e){if(e===void 0&&(e=!1),$e===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?$e="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?$e="negative":$e="positive-ascending"),document.body.removeChild(t),$e}return $e}process.env.NODE_ENV;var Wo=150,Uo=function(t,n){return t},pt=null,mt=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(pt=new WeakSet,mt=new WeakSet);function Vo(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,u=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(h){p._inheritsLoose(m,h);function m(y){var a;return a=h.call(this,y)||this,a._instanceProps=u(a.props,p._assertThisInitialized(a)),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:p._assertThisInitialized(a),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=Ut(function(g,b,E,_){return a.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:b,visibleStartIndex:E,visibleStopIndex:_})}),a._callOnScroll=void 0,a._callOnScroll=Ut(function(g,b,E){return a.props.onScroll({scrollDirection:g,scrollOffset:b,scrollUpdateWasRequested:E})}),a._getItemStyle=void 0,a._getItemStyle=function(g){var b=a.props,E=b.direction,_=b.itemSize,T=b.layout,x=a._getItemStyleCache(f&&_,f&&T,f&&E),w;if(x.hasOwnProperty(g))w=x[g];else{var C=n(a.props,g,a._instanceProps),j=o(a.props,g,a._instanceProps),M=E==="horizontal"||T==="horizontal",z=E==="rtl",k=M?C:0;x[g]=w={position:"absolute",left:z?void 0:k,right:z?k:void 0,top:M?0:C,height:M?"100%":j,width:M?j:"100%"}}return w},a._getItemStyleCache=void 0,a._getItemStyleCache=Ut(function(g,b,E){return{}}),a._onScrollHorizontal=function(g){var b=g.currentTarget,E=b.clientWidth,_=b.scrollLeft,T=b.scrollWidth;a.setState(function(x){if(x.scrollOffset===_)return null;var w=a.props.direction,C=_;if(w==="rtl")switch(zn()){case"negative":C=-_;break;case"positive-descending":C=T-E-_;break}return C=Math.max(0,Math.min(C,T-E)),{isScrolling:!0,scrollDirection:x.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(g){var b=g.currentTarget,E=b.clientHeight,_=b.scrollHeight,T=b.scrollTop;a.setState(function(x){if(x.scrollOffset===T)return null;var w=Math.max(0,Math.min(T,_-E));return{isScrolling:!0,scrollDirection:x.scrollOffset<w?"forward":"backward",scrollOffset:w,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(g){var b=a.props.outerRef;a._outerRef=g,typeof b=="function"?b(g):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=g)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&Rn(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=Ho(a._resetIsScrolling,Wo)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}m.getDerivedStateFromProps=function(a,g){return Go(a,g),d(a),null};var v=m.prototype;return v.scrollTo=function(a){a=Math.max(0,a),this.setState(function(g){return g.scrollOffset===a?null:{scrollDirection:g.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},v.scrollToItem=function(a,g){g===void 0&&(g="auto");var b=this.props,E=b.itemCount,_=b.layout,T=this.state.scrollOffset;a=Math.max(0,Math.min(a,E-1));var x=0;if(this._outerRef){var w=this._outerRef;_==="vertical"?x=w.scrollWidth>w.clientWidth?Ln():0:x=w.scrollHeight>w.clientHeight?Ln():0}this.scrollTo(i(this.props,a,g,T,this._instanceProps,x))},v.componentDidMount=function(){var a=this.props,g=a.direction,b=a.initialScrollOffset,E=a.layout;if(typeof b=="number"&&this._outerRef!=null){var _=this._outerRef;g==="horizontal"||E==="horizontal"?_.scrollLeft=b:_.scrollTop=b}this._callPropsCallbacks()},v.componentDidUpdate=function(){var a=this.props,g=a.direction,b=a.layout,E=this.state,_=E.scrollOffset,T=E.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var x=this._outerRef;if(g==="horizontal"||b==="horizontal")if(g==="rtl")switch(zn()){case"negative":x.scrollLeft=-_;break;case"positive-ascending":x.scrollLeft=_;break;default:var w=x.clientWidth,C=x.scrollWidth;x.scrollLeft=C-w-_;break}else x.scrollLeft=_;else x.scrollTop=_}this._callPropsCallbacks()},v.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rn(this._resetIsScrollingTimeoutId)},v.render=function(){var a=this.props,g=a.children,b=a.className,E=a.direction,_=a.height,T=a.innerRef,x=a.innerElementType,w=a.innerTagName,C=a.itemCount,j=a.itemData,M=a.itemKey,z=M===void 0?Uo:M,k=a.layout,R=a.outerElementType,G=a.outerTagName,W=a.style,re=a.useIsScrolling,se=a.width,he=this.state.isScrolling,A=E==="horizontal"||k==="horizontal",L=A?this._onScrollHorizontal:this._onScrollVertical,O=this._getRangeToRender(),F=O[0],q=O[1],oe=[];if(C>0)for(var te=F;te<=q;te++)oe.push(S.createElement(g,{data:j,key:z(te,j),index:te,isScrolling:re?he:void 0,style:this._getItemStyle(te)}));var xe=r(this.props,this._instanceProps);return S.createElement(R||G||"div",{className:b,onScroll:L,ref:this._outerRefSetter,style:p._extends({position:"relative",height:_,width:se,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:E},W)},S.createElement(x||w||"div",{children:oe,ref:T,style:{height:A?"100%":xe,pointerEvents:he?"none":void 0,width:A?xe:"100%"}}))},v._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var g=this._getRangeToRender(),b=g[0],E=g[1],_=g[2],T=g[3];this._callOnItemsRendered(b,E,_,T)}}if(typeof this.props.onScroll=="function"){var x=this.state,w=x.scrollDirection,C=x.scrollOffset,j=x.scrollUpdateWasRequested;this._callOnScroll(w,C,j)}},v._getRangeToRender=function(){var a=this.props,g=a.itemCount,b=a.overscanCount,E=this.state,_=E.isScrolling,T=E.scrollDirection,x=E.scrollOffset;if(g===0)return[0,0,0,0];var w=s(this.props,x,this._instanceProps),C=c(this.props,w,x,this._instanceProps),j=!_||T==="backward"?Math.max(1,b):1,M=!_||T==="forward"?Math.max(1,b):1;return[Math.max(0,w-j),Math.max(0,Math.min(g-1,C+M)),w,C]},m}(S.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Go=function(t,n){var r=t.children,o=t.direction,i=t.height,s=t.layout,c=t.innerTagName,u=t.outerTagName,f=t.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(c!=null||u!=null)&&mt&&!mt.has(d)&&(mt.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var h=o==="horizontal"||s==="horizontal";switch(o){case"horizontal":case"vertical":pt&&!pt.has(d)&&(pt.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+o+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(h&&typeof f!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(f===null?"null":typeof f)+'" was specified.'));if(!h&&typeof i!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}},Ko=50,Be=function(t,n,r){var o=t,i=o.itemSize,s=r.itemMetadataMap,c=r.lastMeasuredIndex;if(n>c){var u=0;if(c>=0){var f=s[c];u=f.offset+f.size}for(var d=c+1;d<=n;d++){var h=i(d);s[d]={offset:u,size:h},u+=h}r.lastMeasuredIndex=n}return s[n]},Yo=function(t,n,r){var o=n.itemMetadataMap,i=n.lastMeasuredIndex,s=i>0?o[i].offset:0;return s>=r?jr(t,n,i,0,r):qo(t,n,Math.max(0,i),r)},jr=function(t,n,r,o,i){for(;o<=r;){var s=o+Math.floor((r-o)/2),c=Be(t,s,n).offset;if(c===i)return s;c<i?o=s+1:c>i&&(r=s-1)}return o>0?o-1:0},qo=function(t,n,r,o){for(var i=t.itemCount,s=1;r<i&&Be(t,r,n).offset<o;)r+=s,s*=2;return jr(t,n,Math.min(r,i-1),Math.floor(r/2),o)},Fn=function(t,n){var r=t.itemCount,o=n.itemMetadataMap,i=n.estimatedItemSize,s=n.lastMeasuredIndex,c=0;if(s>=r&&(s=r-1),s>=0){var u=o[s];c=u.offset+u.size}var f=r-s-1,d=f*i;return c+d},Or=Vo({getItemOffset:function(t,n,r){return Be(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:Fn,getOffsetForIndexAndAlignment:function(t,n,r,o,i,s){var c=t.direction,u=t.height,f=t.layout,d=t.width,h=c==="horizontal"||f==="horizontal",m=h?d:u,v=Be(t,n,i),y=Fn(t,i),a=Math.max(0,Math.min(y-m,v.offset)),g=Math.max(0,v.offset-m+v.size+s);switch(r==="smart"&&(o>=g-m&&o<=a+m?r="auto":r="center"),r){case"start":return a;case"end":return g;case"center":return Math.round(g+(a-g)/2);case"auto":default:return o>=g&&o<=a?o:o<g?g:a}},getStartIndexForOffset:function(t,n,r){return Yo(t,r,n)},getStopIndexForStartIndex:function(t,n,r,o){for(var i=t.direction,s=t.height,c=t.itemCount,u=t.layout,f=t.width,d=i==="horizontal"||u==="horizontal",h=d?f:s,m=Be(t,n,o),v=r+h,y=m.offset+m.size,a=n;a<c-1&&y<v;)a++,y+=Be(t,a,o).size;return a},initInstanceProps:function(t,n){var r=t,o=r.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:o||Ko,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,c){c===void 0&&(c=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),c&&n.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});const Gt=20,Dn=({baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:r,tabType:o,popupRef:i})=>{const[s,c]=S.useState(!1),[u,f]=S.useState(0);S.useEffect(()=>{const A=()=>{i&&i.current&&f(i.current.offsetHeight-200)};return A(),window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[]);const[d,h]=S.useState([]),[m,v]=S.useState(!0),[y,a]=S.useState(!1),[g,b]=S.useState(1),[E,_]=S.useState({}),T=S.useRef(null),{setNotiData:x}=S.useContext(p.CustomOpenList),w=Mr({baseUrl:e,notiPath:t,setNotiData:x}),C=S.useRef(null),j=S.useCallback(async()=>{if(!(y||!m)){a(!0);try{const A=d.length===0?1:g+1,L=await w(A,Gt,o),O=(L==null?void 0:L.rows)||[];C.current=(L==null?void 0:L.count)||(L==null?void 0:L.total)||null,h(F=>[...F,...O]),b(A),(O.length<Gt||C.current&&d.length+O.length>=C.current)&&v(!1)}catch{v(!1)}finally{a(!1)}}},[y,m,g,w,d.length,o]),M=m?d.length+1:d.length,z=A=>!m||A<d.length,k=async()=>{try{const O=e+(t||"/notification-management/api/v1/notifications");await p.axiosInstance.put(O)}catch(L){console.log(L)}const A=await w(1,Gt,o);h((A==null?void 0:A.rows)||[]),x(L=>({...L,unread:{total:0}})),b(1),v(!0),c(!1)},R=()=>{c(!0),k()},G=({style:A})=>l.jsxs($.Box,{style:A,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,className:"notification-loading-item",children:[l.jsx($.CircularProgress,{style:{color:n==null?void 0:n.primary500}}),l.jsx($.Typography,{color:"text.first",variant:"body2",children:"Loading..."})]}),W=async(A,L,O)=>{h(o==="unread"&&L?oe=>oe.filter(te=>te.id!==A):oe=>oe.map(te=>te.id===A?{...te,isRead:L}:te)),x(oe=>{let te=0;const xe=d.find(qe=>qe.id===A);return xe&&(!xe.isRead&&L&&(te=-1),xe.isRead&&!L&&(te=1)),{...oe,unread:{...oe.unread,total:Math.max(0,(oe.unread.total||0)+te)}}});const F=O||`/notification-management/api/v1/notifications/${A}`,q=e+F;await p.axiosInstance.put(q,{isRead:L})},re=A=>{var oe;const q=d[A];return q&&q.notificationType==="deleteMultiple"&&E[q.id]?90+38*(((oe=q.data)==null?void 0:oe.length)??0)+8:90},se=(A,L)=>{_(O=>{const F={...O,[A]:!O[A]};return setTimeout(()=>{var q;(q=T.current)==null||q.resetAfterIndex(L)},0),F})},he=({index:A,style:L})=>{if(!z(A))return l.jsx(G,{style:L});const O=d[A];return l.jsx("div",{style:L,children:l.jsx(p.NotitficationItem,{notification:O,notiPath:t,markAllAsReadState:s,brandColors:n,onMark:W,showDetail:!!E[O.id],onToggleDetail:()=>se(O.id,A)},O.id||A)})};return l.jsxs("div",{children:[l.jsx("div",{className:"mark-all-read",children:l.jsx("button",{onClick:R,style:{visibility:r===0?"hidden":"visible"},children:p.translate("notificationAdmin.notify.markedRead",{defaultValue:"Mark all as read"})})}),l.jsx("div",{className:"notification-items__wrapper",style:{height:"100%"},children:l.jsx("div",{className:"notification-items__content",style:{height:"100%"},children:l.jsx(p.InfiniteLoader,{isItemLoaded:z,itemCount:M,loadMoreItems:j,threshold:10,children:({onItemsRendered:A,ref:L})=>l.jsx(Or,{height:u,itemCount:M,itemSize:re,width:"100%",onItemsRendered:A,ref:O=>{T.current=O,typeof L=="function"&&L(O)},children:he})})})})]})},Xo=({baseUrl:e,notiPath:t,brandColors:n})=>{var v,y;const r=S.useRef(null),{setShowModalFalse:o}=S.useContext(p.CustomOpenList),{notidata:i}=S.useContext(p.CustomOpenList);console.log(i);const[s,c]=S.useState(window.innerWidth<767),[u,f]=S.useState(window.innerWidth>=767&&window.innerWidth<1024);S.useEffect(()=>{const a=()=>{c(window.innerWidth<767),f(window.innerWidth>=767&&window.innerWidth<1024)};return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[]),S.useEffect(()=>{const a=b=>{!(!!b.composedPath?b.composedPath():[b.target]).some(x=>{var w;return x===r.current||((w=x==null?void 0:x.classList)==null?void 0:w.contains("noti-container"))})&&o()},g=setTimeout(()=>{document.addEventListener("mousedown",a)},100);return()=>{clearTimeout(g),document.removeEventListener("mousedown",a)}},[o]);const[d,h]=S.useState("all"),m=[{id:"all",tabTitle:`${p.translate("notificationAdmin.notify.allNotification",{defaultValue:"All"})} (${((v=i==null?void 0:i.all)==null?void 0:v.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"all",popupRef:r})},{id:"unread",tabTitle:`${p.translate("notificationAdmin.notify.unreadNotification",{defaultValue:"Unread"})} (${((y=i==null?void 0:i.unread)==null?void 0:y.total)||0})`,children:l.jsx(Dn,{baseUrl:e,notiPath:t,brandColors:n,notiUnreadNumber:i.unread.total,tabType:"unread",popupRef:r})}];return l.jsx(l.Fragment,{children:l.jsx("div",{ref:r,style:{position:s?"fixed":"absolute",backgroundColor:"#fff",width:s?"100vw":"550px",height:"90vh",right:s||u?"0":"100px",left:s?"0":"auto",top:s?"64px":"100%",padding:s?"16px":"32px",boxShadow:"10px 0px 20px #999",borderRadius:s?"0":"0 0 8px 8px",overflow:"hidden",zIndex:"100"},children:l.jsxs("div",{className:"list-content",children:[l.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[l.jsx("h3",{style:{fontSize:"24px",fontWeight:"500",color:p.color.textPrimary},className:"list-title",children:p.translate("notificationAdmin.notify.title",{defaultValue:"Notifications"})}),l.jsx("button",{onClick:o,children:l.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})})]}),l.jsx(kr,{tabs:m,setCurrentTab:h,currentTab:d,brandColors:n})]})})})};function Zo({iconColor:e="#fff",baseUrl:t,notiPath:n,brandColors:r}){var d,h;const{isOpen:o,toggleOpen:i,setShowModalFalse:s}=S.useContext(p.CustomOpenList),{notidata:c,setNotiData:u}=S.useContext(p.CustomOpenList),f=Mr({baseUrl:t,notiPath:n,setNotiData:u});return S.useEffect(()=>{(async()=>{var v,y;try{const[a]=await Promise.all([f(1,20,"unread")]);u(()=>({all:{total:0},unread:{total:(a==null?void 0:a.total)||0}}))}catch(a){p.pushError(((y=(v=a.response)==null?void 0:v.data)==null?void 0:y.errorMessage)||"Have error when get notification list")}})()},[]),l.jsxs("div",{children:[l.jsxs("div",{className:"noti-container",style:{position:"relative"},children:[l.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:m=>{m.stopPropagation(),i()},style:{cursor:"pointer",color:e},children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(c==null?void 0:c.unread)&&(c==null?void 0:c.unread.total)!=0&&l.jsx("span",{style:{position:"absolute",top:"-9px",right:"-6px",width:"20px",height:"20px",border:"1px solid #fff",borderRadius:"50%",color:"#fff",fontSize:"12px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:p.color.danger},className:"notification-badge",children:((d=c==null?void 0:c.unread)==null?void 0:d.total)>9?"9+":`${(h=c==null?void 0:c.unread)==null?void 0:h.total}`})]}),l.jsx("div",{className:"noti-list-container",children:o&&l.jsx(Xo,{baseUrl:t,notiPath:n,brandColors:r})})]})}const Jo=({color:e="#fff"})=>l.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M17.5 17.5L12.5001 12.5M14.1667 8.33333C14.1667 11.555 11.555 14.1667 8.33333 14.1667C5.11167 14.1667 2.5 11.555 2.5 8.33333C2.5 5.11167 5.11167 2.5 8.33333 2.5C11.555 2.5 14.1667 5.11167 14.1667 8.33333Z",stroke:e,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Qo=".avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar-wrapper{position:fixed;top:0;left:0;width:100%;height:64px;display:flex;z-index:1100;background:#292929;padding-left:2.5rem}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between;position:relative}.logo-container{height:100%;display:flex;align-items:center}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem;transition:width .3s}.userAvatar{width:2.5rem;height:2.5rem;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}#userAvatarNull{width:2.5rem;height:2.5rem;background:#ddd;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}.topbar-search-label{display:flex;position:relative}.topbar-search-input{color:#292929;border-radius:3px;height:40px;outline:none;font-size:14px;text-overflow:ellipsis;max-width:166px}.mobile-toggle-btn{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;margin-right:8px}.search-toggle-btn{background:none;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center}#icon{position:absolute;left:9px;top:8px;width:16px;height:24px}.search-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:#00000080;z-index:1200}@media (min-width: 768px){.right-side-container{margin-right:2.5rem}}@media (max-width: 768px){.navbar-wrapper{padding-left:1.5rem}.navbar-logo-button{display:flex;align-items:center}.right-side-container{margin-right:1.5rem}.search-popup{position:fixed;top:86px;left:50%;transform:translate(-50%);z-index:1300;background-color:#000;padding:16px;width:100%}.search-popup.topbar-search-label{width:85%}}",ei=".StyledReactSearchAutocomplete ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb{background:#c2c2c2;border-radius:5px}.StyledReactSearchAutocomplete ::-webkit-scrollbar-thumb:hover{background:#757575}.StyledReactSearchAutocomplete .container{display:flex;width:100%;height:100vh;justify-content:center;align-items:center}.StyledReactSearchAutocomplete .container>div{width:300px;height:40px}.StyledReactSearchAutocomplete .container>div input{width:100%;height:40px;border:1px solid #ccc;border-radius:5px;font-size:14px;color:#000}.StyledReactSearchAutocomplete .container>div input:focus{outline:1px solid rgb(83,172,255)}.StyledReactSearchAutocomplete .list{display:flex;flex-direction:column;max-height:220px;width:inherit;overflow:auto;overflow-x:hidden;box-shadow:#0000001f 0 1px 3px,#0000003d 0 1px 2px;color:#000}.StyledReactSearchAutocomplete .list button{background:none;border:none;width:100%;height:100%;max-height:3em;padding:10px;text-align:left;cursor:pointer;border-bottom:1px solid #ccc}.StyledReactSearchAutocomplete .list button:hover{background:#f8f8f8}.StyledReactSearchAutocomplete .list button:last-child{border-bottom:none}.StyledReactSearchAutocomplete{position:relative;height:46px}.StyledReactSearchAutocomplete .wrapper{position:absolute;display:flex;flex-direction:column;width:100%;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;margin-top:2px;border-radius:3px}.StyledReactSearchAutocomplete .wrapper:hover,.StyledReactSearchAutocomplete .wrapper:active,.StyledReactSearchAutocomplete .wrapper:focus-within{box-shadow:#20212447 0 1px 6px}.StyledResults{position:absolute;display:flex;flex-direction:column;border:1px solid #dfe1e5;background-color:#fff;color:#212121;font-size:14px;font-family:inherit;z-index:0;min-width:250px;max-width:400px;top:calc(100% - 2px);left:0}.StyledResults>div.line{border-top-color:#e8eaed;border-top-style:solid;border-top-width:1px;margin:0 20px 0 14px;padding-bottom:4px}.StyledResults>ul{list-style-type:none;margin:0;padding:0 0 16px;max-height:300px;max-width:450px}#autocomplete-results strong,#autocomplete-results li strong,#autocomplete-results li div strong{font-weight:700!important}.StyledResults>ul>li{display:flex;align-items:center;padding:4px 10px 4px 0;font-size:14px;width:100%}.StyledResults>ul>li>div{margin-left:13px;font-size:14px}.StyledResults .ellipsis{text-align:left;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.StyledResults .selectedSearch{color:#fff;text-decoration:none;background-color:#0d6efd}.StyledSearchInput{min-height:40px;width:100%;display:flex;align-items:center}.StyledSearchInput input{width:100%}.StyledSearchInput>input::-moz-placeholder{color:gray;opacity:1}.StyledSearchInput>input::placeholder{color:gray;opacity:1}.StyledSearchInput>input:-ms-input-placeholder{color:gray}.StyledSearchInput>input::-ms-input-placeholder{color:gray}.StyledClearIcon{margin:0 0 0 5px}.StyledClearIcon:hover{cursor:pointer}.StyledClearIcon>svg{fill:gray}.StyledSearchIcon{flex-shrink:0;margin:0 0 0 10px;fill:gray}.search-icon{position:unset!important;float:left;margin-right:5px;margin-left:5px}",ti=':root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto;color:#292929}.notitification-item__container{display:flex;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__content-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between}.notification-item__context-link{color:#007bff}.notification-item__context-text{color:#292929}.notification-item__content{width:68%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}.list-dot{border-radius:50%;width:8px;height:8px;margin-right:4px;display:block}',ni="._subscription-diaglog_1bysb_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_1bysb_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff;color:#292929}._subscription-title_1bysb_25{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_1bysb_25,._subscription-text_1bysb_34{margin-bottom:24px}._subscription-btn__container_1bysb_38{display:flex;justify-content:space-between;align-items:center}._btn-success_1bysb_44,._btn-cancel_1bysb_45{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}._btn-cancel_1bysb_45{background-color:#ddd}._btn-cancel_1bysb_45:hover{background-color:#c5c5c5}._btn-success_1bysb_44{background-color:#93d500}._btn-success_1bysb_44:hover{background-color:#2e7d32}",Pr='.notification-massage_container{background:#fff;padding:0 64px 0 72px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif;text-decoration:none;color:inherit}.notification-massage_container:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}.notification-name{font-weight:500;font-size:14px;margin:0}.notification-message_service{font-size:12px}.notification-message_button-close{position:absolute;top:12px;right:24px;width:24px;height:24px}',ri=S.createContext({}),Ar=!0;function oi({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:i,direction:s,duration:c,enableAnimation:u=Ar,customHighlightBackground:f}){const d={};return s==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}s`),u||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof r=="string"||typeof r=="number")&&(d.height=r),(typeof o=="string"||typeof o=="number")&&(d.borderRadius=o),i&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),typeof f=="string"&&(d["--custom-highlight-background"]=f),d}function Nr({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:i=!1,style:s,...c}){var u,f,d;const h=S.useContext(ri),m={...c};for(const[_,T]of Object.entries(c))typeof T>"u"&&delete m[_];const v={...h,...m,circle:i},y={...s,...oi(v)};let a="react-loading-skeleton";n&&(a+=` ${n}`);const g=(u=v.inline)!==null&&u!==void 0?u:!1,b=[],E=Math.ceil(e);for(let _=0;_<E;_++){let T=y;if(E>e&&_===E-1){const w=(f=T.width)!==null&&f!==void 0?f:"100%",C=e%1,j=typeof w=="number"?w*C:`calc(${w} * ${C})`;T={...T,width:j}}const x=S.createElement("span",{className:a,style:T,key:_},"‌");g?b.push(x):b.push(S.createElement(S.Fragment,{key:_},x,S.createElement("br",null)))}return S.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":(d=v.enableAnimation)!==null&&d!==void 0?d:Ar},t?b.map((_,T)=>S.createElement(t,{key:T},_)):b)}const ii='@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}}',si=({baseUrl:e,searchPath:t})=>{const[n,r]=S.useState(!1);console.log("hasPermission state",n);const o=async()=>{const s=e+(t||"/user-management/api/v1/users/my-account/access-stella-search");try{const c=await p.axiosInstance.get(s);console.log("hasPermission data",c.data),r(c.data)}catch(c){console.log(c)}};return S.useEffect(()=>{o()},[e,t]),{hasPermission:n}};function Ee(e){return Array.isArray?Array.isArray(e):Lr(e)==="[object Array]"}function ai(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ci(e){return e==null?"":ai(e)}function Se(e){return typeof e=="string"}function $r(e){return typeof e=="number"}function li(e){return e===!0||e===!1||ui(e)&&Lr(e)=="[object Boolean]"}function Rr(e){return typeof e=="object"}function ui(e){return Rr(e)&&e!==null}function ue(e){return e!=null}function Kt(e){return!e.trim().length}function Lr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const di="Incorrect 'index' type",fi=e=>`Invalid value for key ${e}`,hi=e=>`Pattern length exceeds max of ${e}.`,pi=e=>`Missing ${e} property in key`,mi=e=>`Property 'weight' in key '${e}' must be a positive integer`,Bn=Object.prototype.hasOwnProperty;class gi{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=zr(r);n+=o.weight,this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function zr(e){let t=null,n=null,r=null,o=1,i=null;if(Se(e)||Ee(e))r=e,t=Hn(e),n=Jt(e);else{if(!Bn.call(e,"name"))throw new Error(pi("name"));const s=e.name;if(r=s,Bn.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(mi(s));t=Hn(s),n=Jt(s),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Hn(e){return Ee(e)?e:e.split(".")}function Jt(e){return Ee(e)?e.join("."):e}function yi(e,t){let n=[],r=!1;const o=(i,s,c)=>{if(ue(i))if(!s[c])n.push(i);else{let u=s[c];const f=i[u];if(!ue(f))return;if(c===s.length-1&&(Se(f)||$r(f)||li(f)))n.push(ci(f));else if(Ee(f)){r=!0;for(let d=0,h=f.length;d<h;d+=1)o(f[d],s,c+1)}else s.length&&o(f,s,c+1)}};return o(e,Se(t)?t.split("."):t,0),r?n:n[0]}const xi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},bi={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vi={location:0,threshold:.6,distance:100},Si={useExtendedSearch:!1,getFn:yi,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var P={...bi,...xi,...vi,...Si};const wi=/[^ ]+/g;function _i(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const i=o.match(wi).length;if(n.has(i))return n.get(i);const s=1/Math.pow(i,.5*e),c=parseFloat(Math.round(s*r)/r);return n.set(i,c),c},clear(){n.clear()}}}class yn{constructor({getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){this.norm=_i(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Se(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Se(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!ue(t)||Kt(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let s=o.getFn?o.getFn(t):this.getFn(t,o.path);if(ue(s)){if(Ee(s)){let c=[];const u=[{nestedArrIndex:-1,value:s}];for(;u.length;){const{nestedArrIndex:f,value:d}=u.pop();if(ue(d))if(Se(d)&&!Kt(d)){let h={v:d,i:f,n:this.norm.get(d)};c.push(h)}else Ee(d)&&d.forEach((h,m)=>{u.push({nestedArrIndex:m,value:h})})}r.$[i]=c}else if(Se(s)&&!Kt(s)){let c={v:s,n:this.norm.get(s)};r.$[i]=c}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Fr(e,t,{getFn:n=P.getFn,fieldNormWeight:r=P.fieldNormWeight}={}){const o=new yn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(zr)),o.setSources(t),o.create(),o}function Ei(e,{getFn:t=P.getFn,fieldNormWeight:n=P.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new yn({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function dt(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=P.distance,ignoreLocation:i=P.ignoreLocation}={}){const s=t/e.length;if(i)return s;const c=Math.abs(r-n);return o?s+c/o:c?1:s}function Ci(e=[],t=P.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let s=e.length;i<s;i+=1){let c=e[i];c&&r===-1?r=i:!c&&r!==-1&&(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const Pe=32;function Ti(e,t,n,{location:r=P.location,distance:o=P.distance,threshold:i=P.threshold,findAllMatches:s=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,includeMatches:u=P.includeMatches,ignoreLocation:f=P.ignoreLocation}={}){if(t.length>Pe)throw new Error(hi(Pe));const d=t.length,h=e.length,m=Math.max(0,Math.min(r,h));let v=i,y=m;const a=c>1||u,g=a?Array(h):[];let b;for(;(b=e.indexOf(t,y))>-1;){let C=dt(t,{currentLocation:b,expectedLocation:m,distance:o,ignoreLocation:f});if(v=Math.min(C,v),y=b+d,a){let j=0;for(;j<d;)g[b+j]=1,j+=1}}y=-1;let E=[],_=1,T=d+h;const x=1<<d-1;for(let C=0;C<d;C+=1){let j=0,M=T;for(;j<M;)dt(t,{errors:C,currentLocation:m+M,expectedLocation:m,distance:o,ignoreLocation:f})<=v?j=M:T=M,M=Math.floor((T-j)/2+j);T=M;let z=Math.max(1,m-M+1),k=s?h:Math.min(m+M,h)+d,R=Array(k+2);R[k+1]=(1<<C)-1;for(let W=k;W>=z;W-=1){let re=W-1,se=n[e.charAt(re)];if(a&&(g[re]=+!!se),R[W]=(R[W+1]<<1|1)&se,C&&(R[W]|=(E[W+1]|E[W])<<1|1|E[W+1]),R[W]&x&&(_=dt(t,{errors:C,currentLocation:re,expectedLocation:m,distance:o,ignoreLocation:f}),_<=v)){if(v=_,y=re,y<=m)break;z=Math.max(1,2*m-y)}}if(dt(t,{errors:C+1,currentLocation:m,expectedLocation:m,distance:o,ignoreLocation:f})>v)break;E=R}const w={isMatch:y>=0,score:Math.max(.001,_)};if(a){const C=Ci(g,c);C.length?u&&(w.indices=C):w.isMatch=!1}return w}function Ii(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}class Dr{constructor(t,{location:n=P.location,threshold:r=P.threshold,distance:o=P.distance,includeMatches:i=P.includeMatches,findAllMatches:s=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,isCaseSensitive:u=P.isCaseSensitive,ignoreLocation:f=P.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f},this.pattern=u?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const d=(m,v)=>{this.chunks.push({pattern:m,alphabet:Ii(m),startIndex:v})},h=this.pattern.length;if(h>Pe){let m=0;const v=h%Pe,y=h-v;for(;m<y;)d(this.pattern.substr(m,Pe),m),m+=Pe;if(v){const a=h-Pe;d(this.pattern.substr(a),a)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,includeMatches:r}=this.options;if(n||(t=t.toLowerCase()),this.pattern===t){let y={isMatch:!0,score:0};return r&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,ignoreLocation:f}=this.options;let d=[],h=0,m=!1;this.chunks.forEach(({pattern:y,alphabet:a,startIndex:g})=>{const{isMatch:b,score:E,indices:_}=Ti(t,y,a,{location:o+g,distance:i,threshold:s,findAllMatches:c,minMatchCharLength:u,includeMatches:r,ignoreLocation:f});b&&(m=!0),h+=E,b&&_&&(d=[...d,..._])});let v={isMatch:m,score:m?h/this.chunks.length:1};return m&&r&&(v.indices=d),v}}class Me{constructor(t){this.pattern=t}static isMultiMatch(t){return Wn(t,this.multiRegex)}static isSingleMatch(t){return Wn(t,this.singleRegex)}search(){}}function Wn(e,t){const n=e.match(t);return n?n[1]:null}class ki extends Me{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mi extends Me{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class ji extends Me{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Oi extends Me{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Pi extends Me{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ai extends Me{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Br extends Me{constructor(t,{location:n=P.location,threshold:r=P.threshold,distance:o=P.distance,includeMatches:i=P.includeMatches,findAllMatches:s=P.findAllMatches,minMatchCharLength:c=P.minMatchCharLength,isCaseSensitive:u=P.isCaseSensitive,ignoreLocation:f=P.ignoreLocation}={}){super(t),this._bitapSearch=new Dr(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:s,minMatchCharLength:c,isCaseSensitive:u,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Hr extends Me{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const s=!!o.length;return{isMatch:s,score:s?0:1,indices:o}}}const Qt=[ki,Hr,ji,Oi,Ai,Pi,Mi,Br],Un=Qt.length,Ni=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$i="|";function Ri(e,t={}){return e.split($i).map(n=>{let r=n.trim().split(Ni).filter(i=>i&&!!i.trim()),o=[];for(let i=0,s=r.length;i<s;i+=1){const c=r[i];let u=!1,f=-1;for(;!u&&++f<Un;){const d=Qt[f];let h=d.isMultiMatch(c);h&&(o.push(new d(h,t)),u=!0)}if(!u)for(f=-1;++f<Un;){const d=Qt[f];let h=d.isSingleMatch(c);if(h){o.push(new d(h,t));break}}}return o})}const Li=new Set([Br.type,Hr.type]);class zi{constructor(t,{isCaseSensitive:n=P.isCaseSensitive,includeMatches:r=P.includeMatches,minMatchCharLength:o=P.minMatchCharLength,ignoreLocation:i=P.ignoreLocation,findAllMatches:s=P.findAllMatches,location:c=P.location,threshold:u=P.threshold,distance:f=P.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:r,minMatchCharLength:o,findAllMatches:s,ignoreLocation:i,location:c,threshold:u,distance:f},this.pattern=n?t:t.toLowerCase(),this.query=Ri(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o}=this.options;t=o?t:t.toLowerCase();let i=0,s=[],c=0;for(let u=0,f=n.length;u<f;u+=1){const d=n[u];s.length=0,i=0;for(let h=0,m=d.length;h<m;h+=1){const v=d[h],{isMatch:y,indices:a,score:g}=v.search(t);if(y){if(i+=1,c+=g,r){const b=v.constructor.type;Li.has(b)?s=[...s,...a]:s.push(a)}}else{c=0,i=0,s.length=0;break}}if(i){let h={isMatch:!0,score:c/i};return r&&(h.indices=s),h}}return{isMatch:!1,score:1}}}const en=[];function Fi(...e){en.push(...e)}function tn(e,t){for(let n=0,r=en.length;n<r;n+=1){let o=en[n];if(o.condition(e,t))return new o(e,t)}return new Dr(e,t)}const wt={AND:"$and",OR:"$or"},nn={PATH:"$path",PATTERN:"$val"},rn=e=>!!(e[wt.AND]||e[wt.OR]),Di=e=>!!e[nn.PATH],Bi=e=>!Ee(e)&&Rr(e)&&!rn(e),Vn=e=>({[wt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Wr(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const s=Di(o);if(!s&&i.length>1&&!rn(o))return r(Vn(o));if(Bi(o)){const u=s?o[nn.PATH]:i[0],f=s?o[nn.PATTERN]:o[u];if(!Se(f))throw new Error(fi(u));const d={keyId:Jt(u),pattern:f};return n&&(d.searcher=tn(f,t)),d}let c={children:[],operator:i[0]};return i.forEach(u=>{const f=o[u];Ee(f)&&f.forEach(d=>{c.children.push(r(d))})}),c};return rn(e)||(e=Vn(e)),r(e)}function Hi(e,{ignoreFieldNorm:t=P.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:s})=>{const c=o?o.weight:null;r*=Math.pow(s===0&&c?Number.EPSILON:s,(c||1)*(t?1:i))}),n.score=r})}function Wi(e,t){const n=e.matches;t.matches=[],ue(n)&&n.forEach(r=>{if(!ue(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let s={indices:o,value:i};r.key&&(s.key=r.key.src),r.idx>-1&&(s.refIndex=r.idx),t.matches.push(s)})}function Ui(e,t){t.score=e.score}function Vi(e,t,{includeMatches:n=P.includeMatches,includeScore:r=P.includeScore}={}){const o=[];return n&&o.push(Wi),r&&o.push(Ui),e.map(i=>{const{idx:s}=i,c={item:t[s],refIndex:s};return o.length&&o.forEach(u=>{u(i,c)}),c})}class Ve{constructor(t,n={},r){this.options={...P,...n},this.options.useExtendedSearch,this._keyStore=new gi(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof yn))throw new Error(di);this._myIndex=n||Fr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ue(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];t(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:s,ignoreFieldNorm:c}=this.options;let u=Se(t)?Se(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Hi(u,{ignoreFieldNorm:c}),i&&u.sort(s),$r(n)&&n>-1&&(u=u.slice(0,n)),Vi(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=tn(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:f,indices:d}=n.searchIn(i);u&&o.push({item:i,idx:s,matches:[{score:f,value:i,norm:c,indices:d}]})}),o}_searchLogical(t){const n=Wr(t,this.options),r=(c,u,f)=>{if(!c.children){const{keyId:h,searcher:m}=c,v=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:m});return v&&v.length?[{idx:f,item:u,matches:v}]:[]}const d=[];for(let h=0,m=c.children.length;h<m;h+=1){const v=c.children[h],y=r(v,u,f);if(y.length)d.push(...y);else if(c.operator===wt.AND)return[]}return d},o=this._myIndex.records,i={},s=[];return o.forEach(({$:c,i:u})=>{if(ue(c)){let f=r(n,c,u);f.length&&(i[u]||(i[u]={idx:u,item:c,matches:[]},s.push(i[u])),f.forEach(({matches:d})=>{i[u].matches.push(...d)}))}}),s}_searchObjectList(t){const n=tn(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:s,i:c})=>{if(!ue(s))return;let u=[];r.forEach((f,d)=>{u.push(...this._findMatches({key:f,value:s[d],searcher:n}))}),u.length&&i.push({idx:c,item:s,matches:u})}),i}_findMatches({key:t,value:n,searcher:r}){if(!ue(n))return[];let o=[];if(Ee(n))n.forEach(({v:i,i:s,n:c})=>{if(!ue(i))return;const{isMatch:u,score:f,indices:d}=r.searchIn(i);u&&o.push({score:f,key:t,value:i,idx:s,norm:c,indices:d})});else{const{v:i,n:s}=n,{isMatch:c,score:u,indices:f}=r.searchIn(i);c&&o.push({score:u,key:t,value:i,norm:s,indices:f})}return o}}Ve.version="6.6.2";Ve.createIndex=Fr;Ve.parseIndex=Ei;Ve.config=P;Ve.parseQuery=Wr;Fi(zi);const Gn={shouldSort:!0,threshold:.6,location:0,distance:100,minMatchCharLength:1,keys:["name"]};function Gi(e,t,n){let r;return function(){const o=this,i=arguments,s=function(){r=null,e.apply(o,i)};r&&clearTimeout(r),r=setTimeout(s,t)}}const Ki="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7.89222'%20cy='8.34901'%20r='5.59901'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.6428%2013.1855L14.4568%2014.9995'%20stroke='%2385858A'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",on=({showIcon:e})=>e?l.jsx("img",{id:"icon",className:"StyledSearchIcon search-icon",width:20,height:20,src:Ki,alt:"icon"}):null;function Yi({results:e=[],onClick:t,setSearchString:n,showIcon:r,maxResults:o,resultStringKeyName:i="name",highlightedItem:s,setHighlightedItem:c,formatResult:u,showNoResultsFlag:f=!0,showNoResultsText:d="No results"}){const h=u||(y=>y[i]),m=y=>{t(y),n(y[i])},v=({event:y,result:a})=>{y.button===0&&(y.preventDefault(),m(a))};return f?l.jsx(Kn,{children:l.jsxs("li",{"data-test":"no-results-message",children:[l.jsx(on,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:d})]})}):(e==null?void 0:e.length)<=0&&!f?null:l.jsx(Kn,{children:e.slice(0,o).map((y,a)=>l.jsxs("li",{className:s===a?"selectedSearch":"",id:s===a?"selectedSearch":"",onMouseEnter:()=>c({index:a}),"data-test":"result",onMouseDown:g=>v({event:g,result:y}),onClick:()=>m(y),children:[l.jsx(on,{showIcon:r}),l.jsx("div",{className:"ellipsis",children:h(y)})]},`rsa-result-${y.entityId}`))})}const Kn=({children:e})=>l.jsxs("div",{className:"StyledResults",children:[l.jsx("div",{className:"line"}),l.jsx("ul",{id:"autocomplete-results",children:e})]}),qi=({showClear:e,setSearchString:t,searchString:n,setFocus:r,onClear:o})=>{const i=()=>{t({target:{value:""}}),r(),o()};return!e||!n||(n==null?void 0:n.length)<=0?null:l.jsx("div",{className:"StyledClearIcon clear-icon",onClick:i,children:l.jsx("svg",{width:20,height:20,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.58 12 5 17.58 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})})})};function Xi({searchString:e,setSearchString:t,setHighlightedItem:n,eraseResults:r,autoFocus:o,onFocus:i,onClear:s,placeholder:c,showIcon:u=!0,showClear:f=!0,maxLength:d}){const h=S.useRef(null);let m=!0;const v=()=>{m=!1,h!=null&&h.current&&h.current.focus(),m=!0},y=g=>{m&&i(g)},a=d?{maxLength:d}:{};return S.useEffect(()=>{document.querySelector("global-topbar");const g=b=>{const E=document.getElementById("AddTagButton"),_=document.getElementsByClassName("btn-edit");["a","e","t"].includes(b.key.toLowerCase())&&((_==null?void 0:_.length)>0&&_[0].addEventListener("click",x=>{const w=document.querySelector("global-topbar"),C=w!=null?w.shadowRoot:document,j=C.getElementById("GlobalSearchInput");C.activeElement===j?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0),E!=null&&E.addEventListener("click",x=>{const w=document.querySelector("global-topbar"),C=w!=null?w.shadowRoot:document,j=C.getElementById("GlobalSearchInput");C.activeElement===j?(x.preventDefault(),x.stopPropagation(),console.log("Shadow DOM keydown:",x.key)):x.click()},!0))};return document.addEventListener("keydown",g,!0),()=>document.removeEventListener("keydown",g,!0)},[]),l.jsxs("div",{className:"StyledSearchInput",children:[l.jsx(on,{showIcon:u}),l.jsx("input",{type:"text",name:"topbar-search",className:"topbar-search-input",id:"GlobalSearchInput",ref:h,spellCheck:!1,autoComplete:"off",value:e.replace(/(<([^>]+)>)/gi,""),onChange:t,onFocus:y,placeholder:c,autoFocus:o,onBlur:()=>r(),onKeyDown:g=>{var b;if(g.key==="Enter"){const E=document.querySelector("global-topbar");if((E!=null?E.shadowRoot:document).getElementById("selectedSearch")===null){console.log("enter",g);const T=g.currentTarget.value;(b=window.top)==null||b.shellNavigate(`/app/stella/page/Search/Index?Term=${T}`);return}}n({event:g})},"data-test":"search-input",...a}),l.jsx(qi,{showClear:f,setSearchString:t,searchString:e,onClear:s,setFocus:v})]})}const Zi=200,Ji=10;function Yn({items:e=[],fuseOptions:t=Gn,inputDebounce:n=Zi,onSearch:r=()=>{},onHover:o=()=>{},onSelect:i=()=>{},onFocus:s=()=>{},onClear:c=()=>{},searchOnFocus:u=!0,showIcon:f=!0,showClear:d=!0,maxResults:h=Ji,placeholder:m="",autoFocus:v=!1,styling:y={},resultStringKeyName:a="name",inputSearchString:g="",formatResult:b,showNoResults:E=!0,showNoResultsText:_="No results",showItemsOnFocus:T=!1,maxLength:x=0,baseUrl:w=""}){({...y});const C={...Gn,...t},j=new Ve(e,C);j.setCollection(e);const[M,z]=S.useState(g),[k,R]=S.useState([]),[G,W]=S.useState(-1),[re,se]=S.useState(!1),[he,A]=S.useState(!1),[L,O]=S.useState(!1),[F,q]=S.useState(!1);S.useEffect(()=>{z(g);const D=setTimeout(()=>R(lt(g)),0);return()=>clearTimeout(D)},[g]),S.useEffect(()=>{(M==null?void 0:M.length)>=3?e&&(e==null?void 0:e.length)>0&&R(e):R([])},[e]),S.useEffect(()=>{const D=()=>{Ae(),q(!1)};return document.addEventListener("click",D),()=>document.removeEventListener("click",D)},[]),S.useEffect(()=>{(()=>{E&&M.length>0&&!he&&k.length===0&&!re?O(!0):O(!1),T&&k.length===0&&M.length===0&&F&&R(e.slice(0,h))})()},[he,E,re,M,k,T,F]);const oe=D=>{u&&s(D),q(!0)},te=D=>{let I=[];(D==null?void 0:D.length)>0&&(I=lt(D)),R(I),r(D,I),A(!1)},xe=S.useCallback(n>0?Gi(D=>te(D),n):D=>te(D),[e]),qe=D=>{Ae(),i(D),z(D[a]),W(0)},lt=D=>j.search(D,{limit:h}).map(I=>({...I.item})).slice(0,h),Wt=({target:D})=>{const I=D.value;z(I),xe(I),A(!0),re&&se(!1)},Ae=()=>{R([]),se(!0)},ut=({index:D,event:I})=>{let Te=-1;const Oe=Ne=>{W(Ne),k!=null&&k[Ne]&&o(k[Ne])};if(D!==void 0)W(D),k!=null&&k[D]&&o(k[D]);else if(I)switch(I.key){case"Enter":k.length>0&&k[G]?(I.preventDefault(),i(k[G])):r(M,k),W(-1),Ae();break;case"ArrowUp":I.preventDefault(),Te=G>-1?G-1:k.length-1,Oe(Te);break;case"ArrowDown":I.preventDefault(),Te=G<k.length-1?G+1:-1,Oe(Te);break}};return l.jsx(l.Fragment,{children:l.jsxs("div",{className:"StyledReactSearchAutocomplete",children:[l.jsx("div",{className:"wrapper",children:l.jsx(Xi,{searchString:M,setSearchString:Wt,eraseResults:Ae,autoFocus:v,onFocus:oe,onClear:c,placeholder:m,showIcon:!0,showClear:d,setHighlightedItem:ut,maxLength:x,baseUrl:w})}),l.jsx(Yi,{results:k,onClick:qe,setSearchString:z,showIcon:f,maxResults:h,resultStringKeyName:a,formatResult:b,highlightedItem:G,setHighlightedItem:ut,showNoResultsFlag:L,showNoResultsText:_})]})})}const Qi=e=>l.jsx(p.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"top-right",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),es=e=>l.jsx(p.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit",width:"610px"},containerId:"toastifyNotification",...e});function ts({baseUrl:e,brandColors:t,isOpen:n,onClose:r}){const[o,i]=S.useState("global"),[s,c]=S.useState([]),[u,f]=S.useState([]),[d,h]=S.useState(!1);S.useEffect(()=>{n&&p.handleClickOutside({childrenClass:"menu-tabs-container",action:r})},[n,r]);const m=y=>{c(y),h(!0)};if(S.useEffect(()=>{const y=a=>{const b=a.detail.favoriteMenus||[];f(b)};return window.addEventListener("favoriteMenusChange",y),()=>{window.removeEventListener("favoriteMenusChange",y)}},[]),!n)return null;const v=[{id:"global",tabTitle:"Menu",children:l.jsx(p.GlobalMenu,{baseUrl:e,brandColors:t,dndMode:"html5",onDataLoaded:m,inlineMode:!0})},{id:"favorite",tabTitle:"Favorites",children:l.jsx(p.FavoriteMenu,{baseUrl:e,brandColors:t,dndMode:"html5",isTreeMode:!0,initialFavoriteItems:d?u:void 0})}];return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:p.languageStyles}),l.jsx("div",{className:"menu-tabs-backdrop",onClick:r,style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:999,transition:"opacity 0.3s ease"}}),l.jsxs("div",{className:"menu-tabs-container",style:{position:"fixed",top:"64px",left:0,width:"90%",backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0 4px 8px rgba(0,0,0,0.1)",zIndex:1e3,height:"calc(100vh - 64px)",display:"flex",flexDirection:"column"},children:[l.jsx("div",{style:{padding:"12px 16px",borderBottom:"1px solid #e0e0e0",display:"flex",justifyContent:"center",alignItems:"center"},children:l.jsx(p.LanguageDropdown,{})}),l.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:l.jsx(kr,{tabs:v,setCurrentTab:i,currentTab:o,brandColors:t,fullWidthTabs:!0})})]})]})}function ns(e){return l.jsx(ts,{...e})}function rs({classNames:e="",...t}){const{logo:n,user:r,baseUrl:o,notiPath:i,style:s,customColors:c,notiprops:u,isBrand:f,logout:d,disabledLogoClick:h=!1}=t,m={...s,color:(c==null?void 0:c.headerTextColor)||"white",backgroundColor:(c==null?void 0:c.headerBgColor)||"black"},[v,y]=S.useState(!1),[a,g]=S.useState(!1);console.log("🚀 ~ TopBarContent ~ isMenuOpen:",a);const[b,E]=S.useState(window.innerWidth<767),_=St.useLocation(),{Term:T}=St.useParams();console.log("term",T);const[x,w]=S.useState([]),[C,j]=S.useState([]),[M,z]=S.useState(!1),k=S.useRef(null),R=si({baseUrl:o});console.log("searchPermission",R.hasPermission),S.useEffect(()=>{const O=()=>{const F=window.innerWidth<767;E(F),!F&&a&&g(!1)};return window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[a]),S.useEffect(()=>{a&&g(!1)},[_.pathname]),S.useEffect(()=>{if(b&&M){const O=F=>{k.current&&!k.current.contains(F.target)&&z(!1)};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)}},[b,M]),S.useEffect(()=>{x.length>=3?G(x):j([])},[x]);const G=async O=>{await fetch(`/stella/page/Search/Suggestions?term=${O}`).then(F=>F.json()).then(F=>{j(F),console.log(F)}).catch(F=>{console.error(F)})},W=O=>{console.log(O)},re=(O,F)=>{w(O),console.log(O,F)},se=O=>{const F=O.entityType,q=O.entityId;switch(F){case"Zone":document.location.href=o+"/stella/page/SiteManagement/Zone/Details/"+q;return;case"Location":document.location.href=o+"/stella/page/SiteManagement/Location/Details/"+q;return;case"Company":document.location.href=o+"/stella/page/SiteManagement/Company/Details/"+q;return;default:console.log(`Unsure how to navigate to ${F} ${q}`);return}},he=()=>{const O=document.querySelector("global-topbar"),q=(O!=null?O.shadowRoot:document).getElementById("GlobalSearchInput");q&&q.value.length>=3&&(setTimeout(()=>{},1e3),G(q.value))},A=()=>{g(!a)},L=O=>O.entityType==="Location"?l.jsxs(l.Fragment,{children:[l.jsx("div",{dangerouslySetInnerHTML:{__html:O.name}})," ",l.jsxs("div",{style:{fontSize:"0.6em"},children:["Status: ",O.entityStatus]})]}):l.jsx(l.Fragment,{children:l.jsx("div",{dangerouslySetInnerHTML:{__html:O.name}})});return l.jsxs(p.StyleWrapper,{styles:[Qo,ti,Pr,ni,ii,ei],style:{zIndex:"calc(var(--menu-z-index) + 1)"},className:"backdrop-delay-transition",id:"topbar-wrapper",children:[l.jsx("nav",{className:`navbar-wrapper ${e}`,style:c?m:s,children:l.jsxs("div",{className:"navbar-container",children:[l.jsxs("div",{className:"navbar-logo-button",children:[b&&l.jsx("button",{className:"mobile-toggle-btn",onClick:A,children:l.jsx(zo,{color:c==null?void 0:c.headerTextColor})}),h?l.jsx("div",{className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})}):l.jsx("a",{href:"/home",className:"logo-container",children:l.jsx("img",{src:n||"#",alt:" ",style:{maxHeight:"40px"}})})]}),l.jsxs("div",{className:"right-side-container",children:[!b&&f&&R.hasPermission?l.jsx("span",{children:l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",children:l.jsx("div",{id:"autocomplete",style:{width:223},children:l.jsx(Yn,{items:C,onSearch:re,onHover:W,onSelect:se,onFocus:he,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:L,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})})}):b&&f&&R.hasPermission?l.jsxs(l.Fragment,{children:[M?null:l.jsx("button",{className:"search-toggle-btn",onClick:()=>z(!0),children:l.jsx(Jo,{color:c==null?void 0:c.headerTextColor})}),M&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"search-backdrop",onClick:()=>z(!1)}),l.jsx("div",{className:"search-popup",ref:k,children:l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[l.jsx("label",{className:"topbar-search-label",htmlFor:"topbar-search",style:{flex:1},children:l.jsx("div",{id:"autocomplete",style:{width:"100%"},children:l.jsx(Yn,{items:C,onSearch:re,onHover:W,onSelect:se,onFocus:he,autoFocus:!0,inputDebounce:300,placeholder:"Search",formatResult:L,searchOnFocus:!0,showIcon:!1,showNoResults:!1})})}),l.jsx("button",{onClick:()=>z(!1),style:{background:"none",border:"none",cursor:"pointer",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":"Close search",children:l.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11.9998 13.4008L7.0998 18.3008C6.91647 18.4841 6.68314 18.5758 6.3998 18.5758C6.11647 18.5758 5.88314 18.4841 5.6998 18.3008C5.51647 18.1174 5.4248 17.8841 5.4248 17.6008C5.4248 17.3174 5.51647 17.0841 5.6998 16.9008L10.5998 12.0008L5.6998 7.10078C5.51647 6.91745 5.4248 6.68411 5.4248 6.40078C5.4248 6.11745 5.51647 5.88411 5.6998 5.70078C5.88314 5.51745 6.11647 5.42578 6.3998 5.42578C6.68314 5.42578 6.91647 5.51745 7.0998 5.70078L11.9998 10.6008L16.8998 5.70078C17.0831 5.51745 17.3165 5.42578 17.5998 5.42578C17.8831 5.42578 18.1165 5.51745 18.2998 5.70078C18.4831 5.88411 18.5748 6.11745 18.5748 6.40078C18.5748 6.68411 18.4831 6.91745 18.2998 7.10078L13.3998 12.0008L18.2998 16.9008C18.4831 17.0841 18.5748 17.3174 18.5748 17.6008C18.5748 17.8841 18.4831 18.1174 18.2998 18.3008C18.1165 18.4841 17.8831 18.5758 17.5998 18.5758C17.3165 18.5758 17.0831 18.4841 16.8998 18.3008L11.9998 13.4008Z",fill:"white"})})})]})})]})]}):"",t.customElement,l.jsx("span",{children:l.jsxs(p.CustomOpenListProvider,{children:[l.jsx($o,{baseUrl:u.baseUrl,path:u.path,apiKey:u.apiKey,authDomain:u.authDomain,projectId:u.projectId,storageBucket:u.storageBucket,messagingSenderId:u.messagingSenderId,appId:u.appId,measurementId:u.measurementId,vapidKey:u.vapidKey}),l.jsx(Zo,{iconColor:c==null?void 0:c.headerTextColor,baseUrl:o,notiPath:i,brandColors:c})]})}),b&&l.jsx(qn,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,setShowConfirmModal:y}),!b&&l.jsxs(l.Fragment,{children:[l.jsx(Ur,{}),l.jsxs("div",{className:"userContainer",children:[l.jsx(qn,{primaryColor:c==null?void 0:c.headerTextColor,avatarUrl:r==null?void 0:r.avatarUrl,userName:r==null?void 0:r.firstName,setShowConfirmModal:y}),l.jsx("p",{className:"userFullName",style:{color:c==null?void 0:c.headerTextColor,width:t.isFetching?"100px":"auto"},children:t.isFetching?l.jsx(Nr,{baseColor:"#ebebeb26",highlightColor:"#f5f5f57d",style:{lineHeight:"unset"}}):r?r.firstName+" "+r.lastName:"Unknown User"})]})]})]})]})}),a&&l.jsx(ns,{isOpen:a,onClose:()=>g(!1),baseUrl:o,brandColors:c}),l.jsx(p.LogoutConfirmModal,{isOpen:v,onClose:()=>y(!1),onConfirm:d})]})}function Ur(){var u;const e=[{value:p.Language.en,element:l.jsx(p.UnitedKingdomIcon,{})},{value:p.Language.de,element:l.jsx(p.GermanyIcon,{})}],[t,n]=S.useState(!1),[r,o]=S.useState(new Array(e.length).fill(!1)),{language:i,setLanguage:s}=p.useCustomTranslation();S.useEffect(()=>{p.handleClickOutside({childrenClass:"languageDropdown",action(){n(!1)}})},[]);const c=(u=e.find(f=>f.value==i))==null?void 0:u.element;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:p.languageStyles}),l.jsx("div",{className:"languageDropdownContainer",style:{position:"relative"},children:l.jsx("div",{className:"languageDropdown",onClick:()=>{n(!t)},children:c})})]})}function qn({avatarUrl:e,userName:t}){const[n,r]=S.useState(!1),o=S.useRef(null);S.useRef(null);const[i,s]=S.useState(!1),[c,u]=S.useState(!1);return S.useEffect(()=>{p.handleClickOutside({childrenClass:"userAvatar",action(){r(!1)}})},[]),l.jsx(l.Fragment,{children:l.jsx("div",{style:{position:"relative"},children:e?l.jsx("img",{onClick:()=>r(!n),ref:o,alt:"user avatar",className:"userAvatar",src:e}):l.jsx("div",{onClick:()=>r(!n),ref:o,className:"userAvatar",id:"userAvatarNull",children:(t==null?void 0:t.charAt(0))??""})})})}function os(e){const{user:t,logout:n,isFetching:r}=p.useAuth();return l.jsx(rs,{...e,isFetching:r,user:t,logout:n})}const is=({children:e})=>l.jsxs($.Stack,{justifyContent:"center",alignItems:"center",sx:{backgroundColor:"#FAFAFA",minHeight:"450px"},children:[l.jsx(ss,{}),e]});function ss(){return l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"150",height:"150",fill:"none",viewBox:"0 0 150 150",children:[l.jsx("path",{fill:"#F9FAFB",d:"M120.843 66.48a2.885 2.885 0 100-5.77 2.885 2.885 0 000 5.77zM75 127.04c28.319 0 51.276-9.006 51.276-20.115 0-11.11-22.957-20.115-51.276-20.115-28.32 0-51.276 9.006-51.276 20.115 0 11.109 22.957 20.115 51.276 20.115z"}),l.jsx("path",{fill:"#DDD",d:"M73.354 34.489l-2.13 13.355H57.378L73.354 34.49z"}),l.jsx("path",{fill:"#F9FAFB",d:"M71.223 48.157H57.38a.313.313 0 01-.295-.206.313.313 0 01.093-.346L73.154 34.25a.313.313 0 01.508.288l-2.13 13.357a.308.308 0 01-.308.263zm-12.983-.625h12.717l1.957-12.268L58.24 47.532zM74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#000",d:"M74.63 59.596a.314.314 0 01-.252-.128l-.844-1.15a.314.314 0 01.043-.418.311.311 0 01.42.003c.005.005.012.01.018.018a.188.188 0 01.015.018l.045.06.807 1.1a.312.312 0 01-.252.497z"}),l.jsx("path",{fill:"#85858A",d:"M74.454 58.965l3.503 4.775c-.209-.284-.431-.56-.667-.83-2.59-2.952-6.367-4.428-10.378-4.428-1.74 0-3.524.278-5.275.833l-3.503-4.775a17.477 17.477 0 015.275-.833c4.011 0 7.788 1.476 10.378 4.428.236.27.458.546.667.83z"}),l.jsx("path",{fill:"#F9FAFB",d:"M77.957 64.053a.314.314 0 01-.253-.128c-.203-.278-.422-.55-.65-.81-2.446-2.786-6.047-4.32-10.143-4.32-1.727 0-3.468.274-5.18.818a.316.316 0 01-.348-.113l-3.503-4.775a.312.312 0 01.158-.483 17.748 17.748 0 015.37-.847c4.278 0 8.047 1.61 10.612 4.533.24.274.47.561.685.853l3.5 4.772.003.003a.311.311 0 01-.251.497zM66.912 58.17c3.207 0 6.128.905 8.471 2.59l-1.18-1.61c-.203-.278-.423-.55-.65-.81-2.446-2.786-6.048-4.32-10.144-4.32-1.586 0-3.186.231-4.762.691l3.11 4.24a17.67 17.67 0 015.155-.782zM56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#000",d:"M56.104 81.024a.312.312 0 01-.233-.105l-.049-.055a8.826 8.826 0 01-.458-.571l-3.503-4.775a.312.312 0 01.504-.37l.003.005c.132.179.274.355.422.525l.045.05.02.023 3.502 4.775a.312.312 0 01-.253.498z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#000",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.361 7.361 0 01-.265-.283l-.01-.011c-.036-.044-.078-.103-.117-.157l-.043-.06-3.353-4.57a.312.312 0 01.485-.394c.08.09.163.177.246.263l.03.033 3.502 4.775a.313.313 0 01-.252.499z"}),l.jsx("path",{fill:"#85858A",d:"M52.855 76.208l3.503 4.775a7.826 7.826 0 01-.743-.875l-3.503-4.775a7.8 7.8 0 00.743.875z"}),l.jsx("path",{fill:"#F9FAFB",d:"M56.358 81.296a.311.311 0 01-.223-.095 7.86 7.86 0 01-.773-.908l-3.502-4.775a.312.312 0 11.504-.37l.003.005a7.954 7.954 0 00.712.837l.03.034 3.502 4.775a.313.313 0 01-.253.497z"}),l.jsx("path",{fill:"#EEE",d:"M71.03 70.342a11.476 11.476 0 01-1.11 2.438 12.543 12.543 0 01-2.703 3.136c-2.342 1.96-5.159 2.937-7.82 2.937-2.66 0-5.164-.98-6.88-2.938C49.078 72 50.09 65.651 54.775 61.738c2.343-1.96 5.16-2.938 7.82-2.938s5.165.98 6.881 2.938a8.329 8.329 0 01.754 1.008 8.034 8.034 0 011.056 2.539c.376 1.62.28 3.364-.257 5.057z"}),l.jsx("path",{fill:"#98A2B3",d:"M71.289 65.285h-9.161c-.967 0-1.632-.754-1.482-1.688.148-.933 1.052-1.687 2.02-1.687h6.956a8.024 8.024 0 011.667 3.375zM71.03 70.342a11.476 11.476 0 01-1.11 2.438c-.155.256-.32.51-.5.76h-8.705c-.918 0-1.543-.716-1.403-1.6.142-.883.997-1.6 1.913-1.6h9.805v.002z"}),l.jsx("path",{fill:"#F7F9FC",d:"M73.632 34.257h38.646l-.591 3.703-10.155 63.675H48.801l3.071-19.259c2.022 1.048 4.33 1.571 6.72 1.571 3.213 0 6.576-.946 9.602-2.839h27.097c.471 0 .909-.366.983-.82.072-.452-.25-.819-.72-.819H70.44c2.295-1.933 3.996-4.255 5.068-6.708h21.116c.47 0 .908-.367.98-.818.072-.453-.25-.82-.72-.82H76.129c.712-2.236.91-4.531.57-6.71h21.256c.47 0 .908-.366.98-.817.073-.453-.25-.821-.719-.821H76.333a12.247 12.247 0 00-2.544-4.642c-2.59-2.951-6.367-4.427-10.378-4.427-2.389 0-4.86.523-7.215 1.569l1.184-7.432h13.845l2.13-13.354.277-.232zM93.96 89.454c.47 0 .908-.366.982-.82.072-.452-.25-.819-.72-.819H61.258c-.468 0-.907.367-.979.818-.072.453.25.821.718.821h32.964zm5.325-33.386c.47 0 .908-.367.981-.818.072-.453-.25-.82-.72-.82H77.201c-.47 0-.907.366-.979.82-.072.451.247.818.718.818h22.346z"}),l.jsx("path",{fill:"#F9FAFB",d:"M101.532 101.946h-52.73a.311.311 0 01-.309-.361l3.072-19.259a.312.312 0 01.453-.228c1.942 1.006 4.215 1.537 6.576 1.537 3.255 0 6.517-.966 9.435-2.792a.317.317 0 01.165-.047h27.098c.316 0 .625-.256.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H70.44a.313.313 0 01-.201-.551c2.175-1.834 3.898-4.114 4.983-6.595a.313.313 0 01.286-.187h21.116c.316 0 .625-.254.672-.556a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H76.128a.314.314 0 01-.299-.407c.696-2.182.889-4.453.56-6.566a.31.31 0 01.308-.361h21.256c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.321.423.423 0 00-.331-.138h-21.88a.312.312 0 01-.3-.225 11.883 11.883 0 00-2.481-4.523c-2.446-2.786-6.047-4.32-10.143-4.32-2.367 0-4.818.532-7.09 1.542a.316.316 0 01-.317-.037.31.31 0 01-.118-.298l1.184-7.431a.313.313 0 01.309-.264h13.578l2.087-13.092a.314.314 0 01.107-.19l.278-.235a.316.316 0 01.201-.074h38.649a.312.312 0 01.308.361L101.84 101.68a.31.31 0 01-.308.267zm-52.365-.625h52.098l10.646-66.753H73.746l-.102.086-2.11 13.24a.313.313 0 01-.309.264H57.647l-1.054 6.61c2.201-.9 4.546-1.373 6.818-1.373 4.278 0 8.047 1.61 10.613 4.533a12.512 12.512 0 012.541 4.535h21.652c.32 0 .614.13.807.356.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082H77.058c.253 1.971.078 4.059-.51 6.084h20.337c.32 0 .614.13.807.357.191.225.27.518.22.825-.097.607-.663 1.082-1.29 1.082h-20.91c-1.019 2.252-2.544 4.337-4.444 6.083h24.285c.32 0 .614.13.807.357.191.225.27.517.22.824-.097.607-.663 1.083-1.29 1.083H68.283c-2.998 1.858-6.347 2.839-9.69 2.839-2.307 0-4.536-.488-6.48-1.416l-2.946 18.477zM93.96 89.767H60.997c-.318 0-.612-.13-.805-.357a1.004 1.004 0 01-.221-.827c.097-.607.662-1.082 1.287-1.082h32.964c.32 0 .614.131.807.357.192.225.27.517.22.824-.095.608-.661 1.085-1.288 1.085zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.42.42 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001zm38.028-31.746H76.94c-.32 0-.612-.13-.805-.356a1.004 1.004 0 01-.221-.824c.097-.608.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.663 1.08-1.289 1.08zm-22.085-1.64c-.315 0-.622.256-.67.558a.387.387 0 00.079.32.423.423 0 00.33.135h22.346c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H77.201v.002z"}),l.jsx("path",{fill:"#DDD",d:"M55.21 61.447l-.332 2.085c-.052.039-.103.078-.153.12-1.13.942-1.372 2.473-.544 3.416.036.042.075.082.115.12l-1.44 9.019a8.348 8.348 0 01-.3-.325c-1.709-1.949-2.312-4.503-1.903-7.056.407-2.554 1.823-5.106 4.154-7.054.13-.11.267-.22.403-.325zM96.884 71.122c.471 0 .792.367.72.821-.073.451-.511.818-.98.818H75.507c.237-.54.444-1.087.618-1.639h20.758z"}),l.jsx("path",{fill:"#DDD",d:"M96.623 73.074H75.508a.31.31 0 01-.261-.142.316.316 0 01-.025-.296c.235-.536.439-1.076.607-1.607a.31.31 0 01.299-.218h20.756c.32 0 .614.13.807.357.192.225.271.518.221.825-.096.606-.662 1.08-1.289 1.08zm-20.643-.625h20.643c.317 0 .625-.254.672-.556a.392.392 0 00-.079-.32.423.423 0 00-.332-.138h-20.53a16.42 16.42 0 01-.374 1.014zM95.555 79.468c.47 0 .791.367.719.818-.072.453-.511.821-.982.821H68.193a19.625 19.625 0 002.248-1.638h25.114z"}),l.jsx("path",{fill:"#DDD",d:"M95.292 81.42H68.193a.313.313 0 01-.165-.578 19.558 19.558 0 002.148-1.56l.059-.049a.33.33 0 01.205-.076h25.114c.32 0 .614.13.807.357.192.225.27.517.221.824-.097.605-.662 1.082-1.29 1.082zm-26.063-.626h26.063c.316 0 .625-.255.672-.556a.39.39 0 00-.08-.32.423.423 0 00-.331-.137h-25c-.425.355-.868.694-1.324 1.013z"}),l.jsx("path",{fill:"#EEE",d:"M115.432 38.557l-.495 3.106-.095.598-10.06 63.074H51.517l-2.716-3.702h52.731l10.155-63.672.592-3.704 3.153 4.3z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.31.31 0 01-.252-.127l-2.716-3.702a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.464l10.113-63.41.592-3.704a.311.311 0 01.56-.135l3.153 4.3c.05.067.069.152.057.234l-.591 3.704-10.061 63.075a.312.312 0 01-.308.262zm-53.107-.625h52.839l10.019-62.81.57-3.576-2.634-3.592-.473 2.966-10.156 63.672a.313.313 0 01-.308.264H49.418l2.257 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M108.03 109.039l3.503 4.775H58.8l-3.503-4.775h52.733z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126H58.8a.31.31 0 01-.252-.127l-3.503-4.775a.312.312 0 01.253-.498h52.734c.1 0 .193.048.251.128l3.503 4.775a.314.314 0 01-.253.497zm-52.575-.625h51.958l-3.044-4.15H55.913l3.045 4.15z"}),l.jsx("path",{fill:"#F7F9FC",d:"M118.776 41.663l-10.746 67.376H55.297l.59-3.704h48.895l10.154-63.672h3.84z"}),l.jsx("path",{fill:"#F9FAFB",d:"M108.03 109.351H55.297a.313.313 0 01-.308-.361l.59-3.703a.313.313 0 01.308-.263h48.628l10.112-63.41a.314.314 0 01.309-.264h3.84a.313.313 0 01.308.361l-10.745 67.376a.313.313 0 01-.309.264zm-52.366-.625h52.1l10.645-66.751h-3.207l-10.112 63.41a.314.314 0 01-.308.264H56.154l-.49 3.077z"}),l.jsx("path",{fill:"#EEE",d:"M118.776 41.663l3.503 4.775-10.746 67.376-3.503-4.775 10.746-67.376z"}),l.jsx("path",{fill:"#F9FAFB",d:"M111.533 114.126a.306.306 0 01-.251-.127l-3.503-4.775a.312.312 0 01-.057-.235l10.746-67.377a.309.309 0 01.234-.254.309.309 0 01.325.12l3.503 4.775a.31.31 0 01.057.234l-10.746 67.377a.309.309 0 01-.308.262zm-3.174-5.168l2.982 4.067 10.607-66.508-2.982-4.067-10.607 66.508z"}),l.jsx("path",{fill:"#85858A",d:"M49.987 81.18L31.79 96.393c-.043.036-.088.068-.132.101l-.061.046c-.036.025-.074.047-.11.071-.026.017-.053.035-.079.05-.02.011-.04.02-.06.032a2.11 2.11 0 01-.148.075l-.055.022a2.406 2.406 0 01-.294.107l-.076.021c-.04.01-.08.02-.121.028l-.074.014a4.26 4.26 0 01-.132.018l-.062.007c-.064.005-.13.008-.193.008-.545 0-1.056-.2-1.407-.6l-.649-.739a1.784 1.784 0 01-.09-.112l3.503 4.775c.027.039.058.076.09.112l.648.739c.352.4.863.6 1.408.6.063 0 .127-.003.193-.008.02-.002.041-.006.062-.007l.132-.018.074-.014c.04-.009.08-.017.12-.028l.077-.021.055-.015.04-.015c.067-.023.134-.049.2-.077l.04-.015c.005-.003.01-.006.015-.007.05-.024.098-.049.148-.075.019-.01.037-.017.055-.028l.005-.004c.026-.015.053-.033.08-.05.033-.021.067-.04.1-.064a.025.025 0 00.009-.007l.061-.046c.034-.025.068-.048.1-.075a.364.364 0 00.032-.026l18.197-15.213-3.504-4.775z"}),l.jsx("path",{fill:"#F9FAFB",d:"M33.694 102.081c-.658 0-1.241-.252-1.641-.707l-.65-.739a1.901 1.901 0 01-.106-.134l-3.501-4.772c0-.001-.002-.001-.002-.003a.312.312 0 01.503-.369l.001.003c.023.03.046.06.071.089l.649.739c.279.318.696.493 1.172.493.056 0 .11-.003.165-.009l.056-.007c.037-.004.075-.008.114-.015l.047-.01.018-.004.106-.023.068-.019a2.276 2.276 0 00.257-.093l.047-.019c.044-.02.087-.043.13-.067l.053-.028c.011-.006.024-.013.035-.022l.058-.037a2.329 2.329 0 00.099-.067l.04-.03c.035-.027.07-.052.104-.081l18.198-15.213a.314.314 0 01.45.055l3.504 4.775a.313.313 0 01-.052.425l-18.23 15.246c-.03.023-.059.045-.09.066l-.04.029-.05.038a1.955 1.955 0 01-.095.062l-.052.032a.92.92 0 01-.058.036c-.006.005-.011.007-.017.01a.658.658 0 01-.044.022l-.013.006c-.055.029-.11.058-.166.085l-.017.008-.044.018c-.075.032-.15.061-.225.086-.013.006-.03.011-.045.017l-.046.012-.015.004-.087.024c-.046.011-.09.022-.137.031l-.015.002-.07.014c-.05.009-.1.016-.148.021l-.018.003a1.864 1.864 0 01-.27.017zm-4.003-4.825l2.112 2.877c.022.031.047.061.072.091l.648.739c.311.355.8.531 1.338.486l.054-.007a1.482 1.482 0 00.161-.025l.017-.003a1.73 1.73 0 00.105-.024c.023-.005.045-.012.068-.018l.048-.012a.295.295 0 01.034-.014c.059-.02.118-.042.177-.068.01-.006.023-.01.036-.014l.01-.004c.045-.021.089-.045.133-.068a.296.296 0 01.035-.018l.01-.006c.002-.003.006-.004.01-.005l.034-.021.065-.041a.622.622 0 00.057-.036l.033-.025.053-.04.063-.047.027-.022 17.974-15.025-3.132-4.271L31.99 96.633c-.044.037-.089.071-.135.105l-.03.023c-.017.013-.032.025-.049.036-.033.023-.067.043-.1.064l-.048.03c-.021.015-.042.027-.063.04-.017.01-.033.018-.05.026l-.018.01c-.054.029-.11.058-.165.084-.016.007-.03.014-.047.02l-.016.007a2.6 2.6 0 01-.554.173l-.015.003c-.022.004-.046.01-.068.013-.05.008-.099.015-.149.02l-.02.003a2.429 2.429 0 01-.772-.035z"}),l.jsx("path",{fill:"#98A2B3",d:"M76.699 64.414a12.649 12.649 0 00-.367-1.639 12.218 12.218 0 00-2.544-4.642c-2.59-2.951-6.367-4.426-10.378-4.426-2.39 0-4.861.522-7.216 1.57a19.487 19.487 0 00-4.58 2.862c-6.318 5.28-8.203 13.503-4.815 19.405l-18.2 15.216c-.956.797-1.162 2.093-.462 2.894l.65.74c.35.4.863.6 1.405.6a2.51 2.51 0 001.597-.6l18.198-15.212a13.02 13.02 0 001.885 1.193c2.022 1.046 4.33 1.57 6.721 1.57 3.214 0 6.576-.944 9.6-2.838.753-.47 1.482-.999 2.249-1.639 2.293-1.935 3.996-4.255 5.068-6.71.234-.537.443-1.087.616-1.638.713-2.231.911-4.53.573-6.706zm-9.481 11.503c-2.343 1.96-5.16 2.937-7.82 2.937s-5.165-.979-6.881-2.937c-3.438-3.917-2.425-10.264 2.26-14.178 2.342-1.96 5.16-2.938 7.82-2.938s5.164.98 6.88 2.938a8.34 8.34 0 01.754 1.008 8.029 8.029 0 011.056 2.54c.375 1.62.281 3.364-.258 5.056a11.476 11.476 0 01-1.11 2.438 12.45 12.45 0 01-2.701 3.136z"}),l.jsx("path",{fill:"#F9FAFB",d:"M30.192 97.307c-.659 0-1.242-.251-1.64-.708l-.65-.74a2.048 2.048 0 01-.486-1.52c.055-.68.412-1.344.982-1.82L46.4 77.471c-1.585-2.903-1.989-6.42-1.136-9.936.882-3.635 3.066-7.057 6.151-9.636a19.8 19.8 0 014.654-2.907c2.347-1.045 4.886-1.597 7.343-1.597 4.278 0 8.048 1.61 10.613 4.533a12.492 12.492 0 012.61 4.76c.16.543.286 1.106.375 1.677.344 2.207.141 4.577-.584 6.85a16.681 16.681 0 01-.627 1.668c-1.123 2.569-2.906 4.927-5.155 6.824a20.11 20.11 0 01-2.284 1.664c-3.014 1.887-6.39 2.886-9.766 2.886-2.46 0-4.833-.556-6.864-1.606A13.36 13.36 0 0150 81.58L31.989 96.633a2.817 2.817 0 01-1.797.674zM63.41 54.019c-2.37 0-4.82.534-7.089 1.544a19.182 19.182 0 00-4.507 2.815c-6.13 5.123-8.126 13.12-4.744 19.01a.313.313 0 01-.071.395L28.799 93c-.442.37-.72.875-.76 1.389-.032.401.086.777.333 1.06l.649.738c.279.32.694.495 1.17.495.495 0 .992-.188 1.398-.528l18.198-15.211a.313.313 0 01.39-.009c.583.443 1.2.835 1.84 1.164 1.941 1.005 4.216 1.536 6.577 1.536 3.257 0 6.52-.965 9.434-2.79.751-.47 1.476-.997 2.213-1.614 2.175-1.833 3.898-4.114 4.983-6.594.234-.536.437-1.077.605-1.607.696-2.184.89-4.453.561-6.565a12.39 12.39 0 00-.357-1.598 11.865 11.865 0 00-2.48-4.525c-2.445-2.786-6.048-4.32-10.142-4.32zm-4.014 25.148c-2.868 0-5.396-1.08-7.117-3.045-1.536-1.75-2.276-4.066-2.086-6.525.234-3.015 1.83-5.968 4.38-8.098 2.323-1.942 5.172-3.011 8.023-3.011 2.868 0 5.396 1.08 7.117 3.044a8.743 8.743 0 01.783 1.046 8.385 8.385 0 011.097 2.637c.385 1.66.293 3.466-.265 5.221a11.584 11.584 0 01-1.14 2.506 12.926 12.926 0 01-2.77 3.215c-2.322 1.94-5.17 3.01-8.022 3.01zm3.2-20.054c-2.704 0-5.411 1.018-7.62 2.865-2.423 2.023-3.94 4.82-4.16 7.668-.177 2.289.51 4.442 1.934 6.064 1.6 1.826 3.961 2.832 6.646 2.832 2.704 0 5.411-1.018 7.62-2.865a12.3 12.3 0 002.637-3.059c.313-.518.582-1.057.803-1.603.101-.25.194-.508.276-.768.524-1.648.611-3.34.252-4.893a7.792 7.792 0 00-1.739-3.41c-1.603-1.826-3.964-2.831-6.649-2.831z"}),l.jsx("path",{fill:"#F7F9FC",d:"M59.778 66.756a.997.997 0 00-.11-.225.974.974 0 00-.103-.14 1.233 1.233 0 00-.94-.4 1.694 1.694 0 00-1.07.401c-.372.31-.575.734-.586 1.14-.008.292.082.574.278.797.235.267.576.402.94.402s.749-.134 1.068-.402c.152-.127.277-.272.371-.429.045-.072.08-.147.113-.225.125-.305.14-.632.039-.92z"}),l.jsx("path",{fill:"#F7F9FC",d:"M58.64 64.293a1.938 1.938 0 00-.373-.639c-.414-.472-1.018-.708-1.659-.708a2.941 2.941 0 00-1.883.707c-1.13.941-1.372 2.472-.544 3.415.037.042.075.082.115.12.405.391.958.586 1.543.586.375 0 .764-.08 1.135-.242.262-.114.515-.27.75-.464.266-.225.486-.48.651-.755.063-.105.118-.212.164-.32l.032-.078c.22-.54.246-1.115.07-1.622z"}),l.jsx("path",{fill:"#DDD",d:"M104.782 105.335H51.517l-2.716-3.702h52.731l3.25 3.702z"}),l.jsx("path",{fill:"#F9FAFB",d:"M104.782 105.647H51.518a.308.308 0 01-.252-.128l-2.716-3.701a.31.31 0 01-.026-.326.31.31 0 01.279-.171h52.73c.09 0 .175.039.235.107l3.25 3.701c.08.092.1.224.05.335a.317.317 0 01-.286.183zm-53.107-.625h52.415l-2.701-3.076H49.417l2.258 3.076z"}),l.jsx("path",{fill:"#DDD",d:"M98.215 62.775c.47 0 .792.367.72.82-.073.452-.512.819-.981.819H76.698a12.81 12.81 0 00-.365-1.639h21.882z"}),l.jsx("path",{fill:"#DDD",d:"M97.954 64.726H76.7a.312.312 0 01-.309-.265 12.214 12.214 0 00-.357-1.599.309.309 0 01.05-.275.31.31 0 01.25-.125h21.884c.319 0 .614.131.806.357.192.225.271.518.221.825-.097.607-.663 1.082-1.29 1.082zm-20.99-.625h20.99c.317 0 .625-.254.672-.555a.392.392 0 00-.079-.321.423.423 0 00-.332-.138H76.743c.088.335.161.674.22 1.014zM99.547 54.43c.471 0 .792.366.72.82-.073.451-.512.818-.981.818H76.94c-.47 0-.79-.367-.718-.818.072-.453.51-.82.98-.82h22.345z"}),l.jsx("path",{fill:"#DDD",d:"M99.286 56.38H76.94c-.32 0-.613-.129-.806-.355a1.004 1.004 0 01-.22-.824c.097-.607.662-1.083 1.287-1.083h22.346c.32 0 .614.13.807.357.191.225.271.518.221.825-.096.606-.663 1.08-1.29 1.08zM77.2 54.742c-.315 0-.622.255-.67.557a.391.391 0 00.078.32.423.423 0 00.33.136h22.347c.316 0 .625-.254.672-.555a.392.392 0 00-.08-.32.423.423 0 00-.331-.138H77.2zM94.222 87.815c.471 0 .792.367.72.818-.073.453-.511.821-.982.821H60.997c-.468 0-.79-.366-.718-.82.072-.452.511-.819.98-.819h32.963z"}),l.jsx("path",{fill:"#DDD",d:"M93.961 89.767H60.997c-.318 0-.61-.13-.804-.356a1.004 1.004 0 01-.22-.826c.096-.607.662-1.082 1.287-1.082h32.962c.32 0 .614.13.807.357.192.225.27.516.22.823-.095.607-.662 1.084-1.288 1.084zm-32.703-1.64c-.315 0-.622.255-.67.556a.395.395 0 00.079.323.419.419 0 00.329.137H93.96c.316 0 .625-.255.672-.557a.39.39 0 00-.08-.32.423.423 0 00-.331-.137H61.258v-.001z"}),l.jsx("path",{fill:"#DDD",d:"M80.201 69.189c-.025-.16-.053-.32-.083-.478l-.008-.046-.02-.089c-.026-.129-.056-.258-.086-.386-.011-.047-.022-.096-.035-.143a14.558 14.558 0 00-.133-.496c-.065-.223-.14-.444-.218-.663-.01-.028-.017-.056-.028-.084-.01-.029-.023-.057-.033-.085a11.396 11.396 0 00-.553-1.268c-.013-.023-.022-.047-.033-.07-.017-.034-.038-.067-.055-.1a16.26 16.26 0 00-.219-.4c-.032-.055-.061-.11-.094-.164a11.61 11.61 0 00-.337-.536v-.003c-.1-.147-.2-.293-.306-.438l-3.503-4.775a12.034 12.034 0 01.644.977l.095.164a16.362 16.362 0 01.308.57c.104.205.203.412.294.621l.021.053a11.536 11.536 0 01.297.761 12.302 12.302 0 01.47 1.69 11.138 11.138 0 01.111.614c.339 2.175.14 4.473-.57 6.707a16.401 16.401 0 01-.619 1.64c-.048.11-.1.22-.15.33-.04.086-.08.172-.122.258l-.104.214c-.043.086-.088.17-.132.257a11.944 11.944 0 01-.253.467l-.117.206-.151.256-.112.186c-.134.215-.271.43-.414.64l-.087.127a17.85 17.85 0 01-.902 1.204l-.11.135c-.15.18-.304.36-.463.537l-.075.082a18.882 18.882 0 01-1.029 1.053l-.27.249c-.048.044-.096.09-.146.134-.142.127-.285.25-.43.374a20.29 20.29 0 01-1.082.844l-.084.063a21.276 21.276 0 01-1.082.73c-.209.13-.418.256-.63.377-.056.032-.112.06-.167.093-.186.104-.373.205-.56.303l-.213.11a18.01 18.01 0 01-.62.298c-.038.017-.074.035-.112.051-.048.023-.098.043-.147.064-.136.06-.272.12-.41.175l-.204.082c-.12.047-.24.095-.36.14-.072.028-.145.055-.217.081-.118.043-.236.083-.355.124a9.937 9.937 0 01-.218.072c-.097.032-.195.06-.293.091a16.404 16.404 0 01-.997.275 16.845 16.845 0 01-1.56.308c-.123.019-.247.036-.37.052l-.267.035c-.13.015-.257.026-.385.037-.083.007-.168.017-.251.023-.142.01-.282.018-.422.025-.071.004-.14.008-.212.01-.21.01-.42.013-.63.013-2.39 0-4.697-.523-6.721-1.57a12.644 12.644 0 01-1.885-1.195l3.503 4.775c.593.454 1.224.851 1.885 1.194 2.022 1.048 4.33 1.571 6.72 1.571.209 0 .419-.004.63-.012.07-.003.14-.009.21-.011.141-.007.283-.014.423-.025l.25-.023c.13-.01.257-.023.386-.037.09-.01.178-.022.267-.033.124-.017.247-.032.37-.052l.277-.044.363-.064c.093-.018.187-.036.28-.056.12-.025.24-.05.358-.077a16.81 16.81 0 00.918-.235l.362-.107.18-.053.113-.037.218-.073c.118-.04.236-.08.354-.123l.218-.08c.12-.045.24-.092.36-.141l.204-.082c.137-.057.273-.115.41-.175.048-.022.098-.042.147-.064a.206.206 0 01.026-.011c.028-.013.056-.028.084-.04a18.01 18.01 0 001.393-.711c.04-.023.08-.042.12-.066.014-.008.031-.02.046-.027.211-.121.422-.246.63-.377.213-.133.423-.272.633-.415l.057-.038c.13-.09.262-.183.393-.277l.084-.063c.167-.122.334-.247.5-.378l.038-.029c.089-.07.18-.14.268-.214a19.263 19.263 0 00.703-.598l.146-.134c.09-.083.182-.165.27-.25l.014-.012c.017-.015.032-.032.048-.047.148-.142.293-.287.436-.43l.135-.14c.134-.14.266-.28.395-.423l.059-.063.015-.018c.158-.178.312-.357.462-.537l.11-.134c.132-.162.263-.326.388-.492.013-.019.03-.037.044-.056l.013-.017c.158-.211.31-.424.458-.639l.086-.125c.143-.213.282-.426.415-.642l.027-.04.086-.146c.051-.084.101-.17.151-.255l.117-.207.14-.256.111-.21a8.98 8.98 0 00.13-.258c.037-.07.072-.142.106-.214l.123-.258c.016-.038.036-.074.052-.111l.098-.22c.237-.54.444-1.087.618-1.639.72-2.237.92-4.534.58-6.712z"}),l.jsx("path",{fill:"#F9FAFB",d:"M62.094 89.035c-2.46 0-4.833-.556-6.864-1.607a13.081 13.081 0 01-1.931-1.224.303.303 0 01-.063-.064l-3.503-4.775a.313.313 0 01.442-.433c.57.438 1.189.83 1.839 1.165 1.941 1.006 4.215 1.536 6.576 1.536.196 0 .404-.004.618-.012.04-.001.08-.004.12-.007l.087-.006c.14-.007.277-.014.416-.025.054-.004.108-.01.16-.013l.085-.009c.13-.01.255-.023.378-.037.065-.007.13-.017.196-.025l.068-.009a16.852 16.852 0 00.607-.09l.028-.004c.118-.02.237-.04.355-.063l.277-.055c.116-.024.234-.05.351-.077.093-.02.185-.043.278-.065.117-.029.235-.058.351-.09l.275-.075c.118-.033.236-.07.354-.106l.04-.012c.083-.025.166-.052.248-.078l.214-.07c.116-.04.232-.08.348-.123.071-.026.143-.051.214-.08.118-.044.236-.09.354-.137l.055-.02.147-.059c.135-.055.268-.114.403-.172l.063-.028c.027-.01.055-.023.081-.035l.108-.05a18.639 18.639 0 001.371-.698l.068-.038.096-.052a16.582 16.582 0 001.242-.78c.147-.101.296-.204.443-.31l.083-.062c.18-.132.342-.254.493-.372l.038-.03c.187-.148.362-.29.532-.431.143-.121.283-.243.422-.367l.086-.079.094-.086c.077-.07.155-.14.23-.211l.062-.06c.14-.135.28-.272.43-.424l.133-.137c.132-.138.262-.276.389-.417l.073-.079c.147-.164.296-.337.456-.53l.108-.131c.138-.168.263-.326.38-.483l.058-.073c.144-.191.291-.397.45-.627l.084-.124c.145-.212.28-.425.407-.63l.096-.157.014-.024.149-.251c.034-.06.068-.12.1-.18l.015-.025.139-.251.11-.207c.042-.083.085-.168.129-.251l.102-.21.12-.253.012-.029c.046-.099.092-.197.135-.296.235-.536.44-1.076.607-1.608.696-2.184.889-4.453.56-6.565a11.271 11.271 0 00-.082-.467l-.028-.133a11.506 11.506 0 00-.083-.377l-.035-.142a12.175 12.175 0 00-.343-1.13l-.06-.164c-.08-.212-.154-.401-.23-.578l-.021-.051a11.148 11.148 0 00-.374-.772c-.07-.13-.14-.26-.214-.39l-.029-.05-.064-.109a11.675 11.675 0 00-.628-.951.312.312 0 01.503-.37l.001.002 3.502 4.773a12.91 12.91 0 01.661 1.002c.024.038.044.077.067.115l.029.051c.078.136.153.273.225.41l.02.036.035.067c.009.015.016.032.023.047l.01.025c.119.233.217.442.303.639l.023.053c.082.191.16.39.243.61l.01.029c.01.019.018.038.025.06.007.017.012.037.018.056l.01.03a11.728 11.728 0 01.359 1.185l.028.114.008.034c.032.132.061.264.088.396l.008.034.013.056.008.048c.034.181.062.34.086.49.343 2.21.143 4.577-.582 6.85a16.635 16.635 0 01-.73 1.892l-.031.068-.022.046a14.23 14.23 0 01-.23.48 11.92 11.92 0 01-.248.476l-.143.26-.021.037a9.74 9.74 0 01-.253.433l-.036.06c-.017.03-.035.058-.051.088l-.02.03c-.139.224-.28.443-.429.663l-.087.126c-.166.24-.319.453-.467.65l-.058.076c-.123.16-.255.33-.395.5l-.014.018-.097.119c-.165.198-.318.377-.47.547l-.017.02a.915.915 0 01-.037.038l-.023.025c-.132.145-.266.288-.402.43l-.137.14c-.154.158-.3.3-.443.438l-.017.017a9.64 9.64 0 00-.032.032l-.012.011c-.078.074-.157.146-.236.218l-.096.09-.093.084a19.541 19.541 0 01-.986.823l-.038.031c-.158.124-.325.25-.508.383l-.086.064a23.375 23.375 0 01-.438.309l-.02.013a18.483 18.483 0 01-1.283.806l-.05.03-.072.038a19.12 19.12 0 01-1.465.747l-.032.016c-.018.008-.036.018-.054.025l-.02.008-.098.043-.059.025c-.138.061-.277.12-.416.178l-.149.06-.058.023c-.122.049-.245.096-.367.142l-.22.082-.36.126-.221.074-.047.015-.069.022c-.036.011-.072.022-.11.032l-.073.022a18.815 18.815 0 01-.65.186c-.122.032-.243.064-.365.093-.095.024-.19.046-.286.069a17.79 17.79 0 01-.365.079 15.73 15.73 0 01-.656.122l-.032.005c-.083.014-.165.028-.249.04-.126.02-.251.037-.377.052l-.069.008c-.067.009-.136.018-.202.025-.13.016-.261.027-.392.04l-.083.008-.174.015c-.144.011-.287.018-.43.025l-.081.004a10.9 10.9 0 01-.767.024zm-8.379-3.3a12.43 12.43 0 001.804 1.137c1.942 1.006 4.216 1.536 6.577 1.536a16.05 16.05 0 00.739-.02l.086-.005c.139-.007.276-.013.415-.025l.163-.014.084-.008c.128-.01.253-.023.38-.037l.193-.024.069-.01c.12-.015.243-.032.364-.05.079-.012.16-.025.239-.039l.032-.005c.12-.02.237-.04.355-.063l.277-.055a20.067 20.067 0 00.63-.142l.352-.09c.091-.025.183-.049.273-.075.118-.033.236-.07.354-.106l.084-.025.093-.027.11-.038a17.076 17.076 0 00.561-.192c.072-.026.144-.051.215-.079.118-.044.236-.09.354-.137l.06-.024.14-.055c.135-.056.27-.114.403-.173l.064-.027.08-.035.061-.028.049-.024c.198-.091.404-.19.611-.293a21.557 21.557 0 00.761-.404l.063-.033.054-.03.046-.027a18.234 18.234 0 001.243-.78l.055-.035c.13-.09.259-.18.388-.274l.084-.062c.178-.131.34-.252.492-.373l.038-.03.264-.21a19.304 19.304 0 00.69-.587c.029-.025.057-.052.083-.077l.1-.092c.075-.069.152-.137.225-.208a.08.08 0 01.011-.01l.052-.05a17.113 17.113 0 00.562-.56c.132-.138.263-.277.389-.417l.074-.08a18.896 18.896 0 00.548-.644l.016-.018c.134-.165.263-.33.382-.483l.056-.074c.143-.189.29-.394.45-.626l.084-.123c.144-.212.28-.425.408-.63l.025-.039.046-.078.039-.065.148-.25c.032-.056.064-.111.095-.168l.02-.038c.046-.083.094-.166.138-.25a14.79 14.79 0 00.238-.458l.104-.211.12-.253.052-.11.096-.213c.236-.538.44-1.078.607-1.609.696-2.183.889-4.453.56-6.565a12.975 12.975 0 00-.082-.465l-.027-.132a16.316 16.316 0 00-.083-.377l-.008-.034-.025-.106a11.436 11.436 0 00-.343-1.13l-.017-.05-.01-.031-.012-.03-.021-.052a12.056 12.056 0 00-.23-.578l-.022-.051c-.08-.186-.175-.385-.287-.607l-.022-.046-.011-.025a13.258 13.258 0 00-.267-.486l-.03-.054a11.045 11.045 0 00-.389-.628c-.002-.001-.003-.004-.005-.007a13.32 13.32 0 00-.296-.422l-1.195-1.63a12.852 12.852 0 01.261.9l.036.146c.03.132.06.263.087.395l.03.139c.034.178.062.337.086.49.343 2.208.141 4.577-.582 6.85a16.382 16.382 0 01-.63 1.67c-.045.102-.094.205-.141.308l-.013.028-.123.262-.107.218-.133.261-.113.214c-.047.088-.096.174-.145.261l-.013.025a12.525 12.525 0 01-.26.446l-.014.024-.1.165c-.13.213-.272.432-.422.653l-.088.128c-.164.239-.316.451-.466.65l-.059.075c-.123.162-.252.326-.394.5l-.113.136c-.163.198-.318.376-.47.546l-.077.082a23.629 23.629 0 01-.54.572 18.55 18.55 0 01-.443.437l-.064.063-.238.22-.09.082c-.032.03-.062.059-.094.087a19.541 19.541 0 01-.988.823l-.037.03c-.157.123-.324.25-.509.384l-.086.064a21.1 21.1 0 01-1.1.743c-.197.124-.407.249-.64.383l-.106.059-.063.036a18.867 18.867 0 01-1.417.72l-.049.023-.064.03-.091.04-.06.026c-.139.06-.278.12-.417.178l-.155.062-.053.02c-.122.05-.243.097-.367.142l-.222.082a17.86 17.86 0 01-.58.2l-.26.08-.04.01a18.815 18.815 0 01-1.666.427 17.24 17.24 0 01-.655.122l-.028.004-.254.042c-.127.02-.252.036-.377.052l-.066.008c-.07.01-.138.018-.206.026-.129.016-.258.027-.387.04l-.087.008a7.906 7.906 0 01-.173.015c-.143.01-.286.018-.43.025l-.081.004a17.27 17.27 0 01-.775.02c-2.461 0-4.834-.556-6.864-1.608-.154-.079-.306-.162-.456-.247l2.446 3.33zM120.843 90.037a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.134zM33.935 82.412a2.067 2.067 0 100-4.133 2.067 2.067 0 000 4.133zM34.97 84.083a.728.728 0 100-1.455.728.728 0 000 1.455zM45.217 56.42a2.067 2.067 0 100-4.134 2.067 2.067 0 000 4.133zM47.632 53.008a.728.728 0 100-1.455.728.728 0 000 1.455z"}),l.jsx("path",{fill:"#EEE",d:"M126.15 45.536a3.556 3.556 0 10-.001-7.11 3.556 3.556 0 00.001 7.11z"}),l.jsx("path",{fill:"#F9FAFB",d:"M122.594 40.225a1.693 1.693 0 100-3.386 1.693 1.693 0 000 3.386z"})]})}var as=typeof p.commonjsGlobal=="object"&&p.commonjsGlobal&&p.commonjsGlobal.Object===Object&&p.commonjsGlobal,cs=typeof self=="object"&&self&&self.Object===Object&&self;as||cs||Function("return this")();function ls(e){const[t,n]=S.useState(!!e),r=S.useCallback(()=>{n(!0)},[]),o=S.useCallback(()=>{n(!1)},[]),i=S.useCallback(()=>{n(s=>!s)},[]);return{value:t,setValue:n,setTrue:r,setFalse:o,toggle:i}}function us(e){var t;return l.jsxs($.Dialog,{...e.dialogProps,open:e.open,children:[!e.hideTitle&&l.jsxs($.DialogTitle,{component:$.Stack,sx:{...e.titleProps,textAlign:"center"},children:[typeof e.title=="string"?l.jsx($.Typography,{variant:"h4",children:e.title}):e.title,typeof e.subTitle=="string"?l.jsx($.Typography,{color:"success.main",variant:"body1",...e.subTitleProps,children:e.subTitle}):e.subTitle]}),l.jsx($.DialogContent,{sx:{...e.contentProps,overflowY:e.fixOverflow?"unset":void 0},children:e.desc}),!(e.hideClose&&e.hideConfirm)&&l.jsx($.DialogActions,{...e.dialogActionsProps,sx:{display:"flex",justifyContent:"space-between","& button":{minWidth:e.minWidthButton||200},px:3,pb:3,...(t=e.dialogActionsProps)==null?void 0:t.sx},children:e.customActions?e.customActions:l.jsxs(l.Fragment,{children:[!e.hideClose&&l.jsx($.Button,{color:"error",onClick:e.onClose,children:"Close"}),!e.hideConfirm&&l.jsx($.Button,{color:"primary",onClick:e.onConfirm,children:"Submit"})]})})]})}function ds(e){const t=ls(typeof e=="boolean"?e:void 0);return{setTrue:()=>{t.setTrue(),p.setShellBackdrop(!0)},open:t.value,onClose:()=>{t.setFalse(),p.setShellBackdrop(!1)},onConfirm:typeof e!="boolean"?e==null?void 0:e.onConfirm:void 0}}function fs({rootPath:e}){return l.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center"},children:[l.jsx("h1",{children:"404 - Not Found"}),l.jsx("p",{children:"Sorry, the page you are looking for does not exist."}),l.jsx($.Box,{height:"16px"}),l.jsx(St.Link,{to:e,children:l.jsx($.Button,{variant:"contained",color:"primary",children:"Go to Home"})})]})}function hs(){const{colors:e}=p.useTheme();return l.jsx("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:"calc(100vh - 144px)",alignItems:"center",justifyContent:"center",zIndex:100},children:l.jsx("h1",{style:{color:`${e==null?void 0:e.primary300}`,fontSize:"82px",fontWeight:700,textTransform:"uppercase",marginTop:0,marginBottom:0,textAlign:"center"},children:"Welcome to the Intelli-Verse"})})}function Ie(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vr(e){if(N.isValidElement(e)||!Ie(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vr(e[n])}),t}function we(e,t,n={clone:!0}){const r=n.clone?p._extends({},e):e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach(o=>{N.isValidElement(t[o])?r[o]=t[o]:Ie(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ie(e[o])?r[o]=we(e[o],t[o],n):n.clone?r[o]=Ie(t[o])?Vr(t[o]):t[o]:r[o]=t[o]}),r}const ps=Object.freeze(Object.defineProperty({__proto__:null,default:we,isPlainObject:Ie},Symbol.toStringTag,{value:"Module"}));function Qe(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ms=Object.freeze(Object.defineProperty({__proto__:null,default:Qe},Symbol.toStringTag,{value:"Module"}));var sn={exports:{}},K={};/**
45
45
  * @license React
46
46
  * react-is.production.js
47
47
  *
@@ -49,7 +49,7 @@
49
49
  *
50
50
  * This source code is licensed under the MIT license found in the
51
51
  * LICENSE file in the root directory of this source tree.
52
- */var Xn;function gs(){if(Xn)return K;Xn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function y(a){if(typeof a=="object"&&a!==null){var g=a.$$typeof;switch(g){case e:switch(a=a.type,a){case n:case o:case r:case u:case f:return a;default:switch(a=a&&a.$$typeof,a){case s:case c:case h:case d:return a;case i:return a;default:return g}}case t:return g}}}return K.ContextConsumer=i,K.ContextProvider=s,K.Element=e,K.ForwardRef=c,K.Fragment=n,K.Lazy=h,K.Memo=d,K.Portal=t,K.Profiler=o,K.StrictMode=r,K.Suspense=u,K.SuspenseList=f,K.isContextConsumer=function(a){return y(a)===i},K.isContextProvider=function(a){return y(a)===s},K.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},K.isForwardRef=function(a){return y(a)===c},K.isFragment=function(a){return y(a)===n},K.isLazy=function(a){return y(a)===h},K.isMemo=function(a){return y(a)===d},K.isPortal=function(a){return y(a)===t},K.isProfiler=function(a){return y(a)===o},K.isStrictMode=function(a){return y(a)===r},K.isSuspense=function(a){return y(a)===u},K.isSuspenseList=function(a){return y(a)===f},K.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===n||a===o||a===r||a===u||a===f||a===m||typeof a=="object"&&a!==null&&(a.$$typeof===h||a.$$typeof===d||a.$$typeof===s||a.$$typeof===i||a.$$typeof===c||a.$$typeof===b||a.getModuleId!==void 0)},K.typeOf=y,K}var Y={};/**
52
+ */var Xn;function gs(){if(Xn)return K;Xn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");function y(a){if(typeof a=="object"&&a!==null){var g=a.$$typeof;switch(g){case e:switch(a=a.type,a){case n:case o:case r:case u:case f:return a;default:switch(a=a&&a.$$typeof,a){case s:case c:case h:case d:return a;case i:return a;default:return g}}case t:return g}}}return K.ContextConsumer=i,K.ContextProvider=s,K.Element=e,K.ForwardRef=c,K.Fragment=n,K.Lazy=h,K.Memo=d,K.Portal=t,K.Profiler=o,K.StrictMode=r,K.Suspense=u,K.SuspenseList=f,K.isContextConsumer=function(a){return y(a)===i},K.isContextProvider=function(a){return y(a)===s},K.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===e},K.isForwardRef=function(a){return y(a)===c},K.isFragment=function(a){return y(a)===n},K.isLazy=function(a){return y(a)===h},K.isMemo=function(a){return y(a)===d},K.isPortal=function(a){return y(a)===t},K.isProfiler=function(a){return y(a)===o},K.isStrictMode=function(a){return y(a)===r},K.isSuspense=function(a){return y(a)===u},K.isSuspenseList=function(a){return y(a)===f},K.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===n||a===o||a===r||a===u||a===f||a===m||typeof a=="object"&&a!==null&&(a.$$typeof===h||a.$$typeof===d||a.$$typeof===s||a.$$typeof===i||a.$$typeof===c||a.$$typeof===v||a.getModuleId!==void 0)},K.typeOf=y,K}var Y={};/**
53
53
  * @license React
54
54
  * react-is.development.js
55
55
  *
@@ -57,37 +57,37 @@
57
57
  *
58
58
  * This source code is licensed under the MIT license found in the
59
59
  * LICENSE file in the root directory of this source tree.
60
- */var Zn;function ys(){return Zn||(Zn=1,process.env.NODE_ENV!=="production"&&function(){function e(a){if(typeof a=="object"&&a!==null){var g=a.$$typeof;switch(g){case t:switch(a=a.type,a){case r:case i:case o:case f:case d:return a;default:switch(a=a&&a.$$typeof,a){case c:case u:case m:case h:return a;case s:return a;default:return g}}case n:return g}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");Y.ContextConsumer=s,Y.ContextProvider=c,Y.Element=t,Y.ForwardRef=u,Y.Fragment=r,Y.Lazy=m,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=f,Y.SuspenseList=d,Y.isContextConsumer=function(a){return e(a)===s},Y.isContextProvider=function(a){return e(a)===c},Y.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===t},Y.isForwardRef=function(a){return e(a)===u},Y.isFragment=function(a){return e(a)===r},Y.isLazy=function(a){return e(a)===m},Y.isMemo=function(a){return e(a)===h},Y.isPortal=function(a){return e(a)===n},Y.isProfiler=function(a){return e(a)===i},Y.isStrictMode=function(a){return e(a)===o},Y.isSuspense=function(a){return e(a)===f},Y.isSuspenseList=function(a){return e(a)===d},Y.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===r||a===i||a===o||a===f||a===d||a===b||typeof a=="object"&&a!==null&&(a.$$typeof===m||a.$$typeof===h||a.$$typeof===c||a.$$typeof===s||a.$$typeof===u||a.$$typeof===y||a.getModuleId!==void 0)},Y.typeOf=e}()),Y}process.env.NODE_ENV==="production"?sn.exports=gs():sn.exports=ys();var Jn=sn.exports;const xs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gr(e){const t=`${e}`.match(xs);return t&&t[1]||""}function Kr(e,t=""){return e.displayName||e.name||Gr(e)||t}function Qn(e,t,n){const r=Kr(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function bs(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Kr(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Jn.ForwardRef:return Qn(e,e.render,"ForwardRef");case Jn.Memo:return Qn(e,e.type,"memo");default:return}}}const vs=Object.freeze(Object.defineProperty({__proto__:null,default:bs,getFunctionName:Gr},Symbol.toStringTag,{value:"Module"}));function ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qe(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ss=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"}));function ws(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function _s(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Es(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,s)=>{const c=o||"<<anonymous>>",u=s||r;return typeof n[r]<"u"?new Error(`The ${i} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function Cs(e,t){var n,r;return N.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Yr(e){return e&&e.ownerDocument||document}function Ts(e){return Yr(e).defaultView||window}function Is(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?p._extends({},t.propTypes):null;return o=>(i,s,c,u,f,...d)=>{const h=f||s,m=n==null?void 0:n[h];if(m){const b=m(i,s,c,u,f,...d);if(b)return b}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function qr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xr=typeof window<"u"?N.useLayoutEffect:N.useEffect;let er=0;function ks(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(er+=1,n(`mui-${er}`))},[t]),r}const tr=N.useId;function Ms(e){if(tr!==void 0){const t=tr();return e??t}return ks(e)}function js(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Os({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=N.useRef(e!==void 0),[i,s]=N.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
60
+ */var Zn;function ys(){return Zn||(Zn=1,process.env.NODE_ENV!=="production"&&function(){function e(a){if(typeof a=="object"&&a!==null){var g=a.$$typeof;switch(g){case t:switch(a=a.type,a){case r:case i:case o:case f:case d:return a;default:switch(a=a&&a.$$typeof,a){case c:case u:case m:case h:return a;case s:return a;default:return g}}case n:return g}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");Y.ContextConsumer=s,Y.ContextProvider=c,Y.Element=t,Y.ForwardRef=u,Y.Fragment=r,Y.Lazy=m,Y.Memo=h,Y.Portal=n,Y.Profiler=i,Y.StrictMode=o,Y.Suspense=f,Y.SuspenseList=d,Y.isContextConsumer=function(a){return e(a)===s},Y.isContextProvider=function(a){return e(a)===c},Y.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===t},Y.isForwardRef=function(a){return e(a)===u},Y.isFragment=function(a){return e(a)===r},Y.isLazy=function(a){return e(a)===m},Y.isMemo=function(a){return e(a)===h},Y.isPortal=function(a){return e(a)===n},Y.isProfiler=function(a){return e(a)===i},Y.isStrictMode=function(a){return e(a)===o},Y.isSuspense=function(a){return e(a)===f},Y.isSuspenseList=function(a){return e(a)===d},Y.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===r||a===i||a===o||a===f||a===d||a===v||typeof a=="object"&&a!==null&&(a.$$typeof===m||a.$$typeof===h||a.$$typeof===c||a.$$typeof===s||a.$$typeof===u||a.$$typeof===y||a.getModuleId!==void 0)},Y.typeOf=e}()),Y}process.env.NODE_ENV==="production"?sn.exports=gs():sn.exports=ys();var Jn=sn.exports;const xs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gr(e){const t=`${e}`.match(xs);return t&&t[1]||""}function Kr(e,t=""){return e.displayName||e.name||Gr(e)||t}function Qn(e,t,n){const r=Kr(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function bs(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Kr(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Jn.ForwardRef:return Qn(e,e.render,"ForwardRef");case Jn.Memo:return Qn(e,e.type,"memo");default:return}}}const vs=Object.freeze(Object.defineProperty({__proto__:null,default:bs,getFunctionName:Gr},Symbol.toStringTag,{value:"Module"}));function ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Qe(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ss=Object.freeze(Object.defineProperty({__proto__:null,default:ke},Symbol.toStringTag,{value:"Module"}));function ws(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function _s(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Es(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,i,s)=>{const c=o||"<<anonymous>>",u=s||r;return typeof n[r]<"u"?new Error(`The ${i} \`${u}\` of \`${c}\` is deprecated. ${t}`):null}}function Cs(e,t){var n,r;return N.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Yr(e){return e&&e.ownerDocument||document}function Ts(e){return Yr(e).defaultView||window}function Is(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?p._extends({},t.propTypes):null;return o=>(i,s,c,u,f,...d)=>{const h=f||s,m=n==null?void 0:n[h];if(m){const v=m(i,s,c,u,f,...d);if(v)return v}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function qr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Xr=typeof window<"u"?N.useLayoutEffect:N.useEffect;let er=0;function ks(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(er+=1,n(`mui-${er}`))},[t]),r}const tr=N.useId;function Ms(e){if(tr!==void 0){const t=tr();return e??t}return ks(e)}function js(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Os({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=N.useRef(e!==void 0),[i,s]=N.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
61
61
  `))},[r,n,e]);const{current:f}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(f,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
62
- `))},[JSON.stringify(t)])}const u=N.useCallback(f=>{o||s(f)},[]);return[c,u]}function Ps(e){const t=N.useRef(e);return Xr(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function As(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{qr(n,t)})},e)}class xn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let kt=!0,an=!1;const Ns=new xn,$s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Rs(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&$s[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ls(e){e.metaKey||e.altKey||e.ctrlKey||(kt=!0)}function Yt(){kt=!1}function zs(){this.visibilityState==="hidden"&&an&&(kt=!0)}function Fs(e){e.addEventListener("keydown",Ls,!0),e.addEventListener("mousedown",Yt,!0),e.addEventListener("pointerdown",Yt,!0),e.addEventListener("touchstart",Yt,!0),e.addEventListener("visibilitychange",zs,!0)}function Ds(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kt||Rs(t)}function Bs(){const e=N.useCallback(o=>{o!=null&&Fs(o.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(an=!0,Ns.start(100,()=>{an=!1}),t.current=!1,!0):!1}function r(o){return Ds(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function cn(e,t){const n=p._extends({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=p._extends({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=p._extends({},i),Object.keys(o).forEach(s=>{n[r][s]=cn(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Hs(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const c=t(s);c!==""&&i.push(c),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const nr=e=>e,Ws=()=>{let e=nr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=nr}}},Zr=Ws(),Us={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function bn(e,t,n="Mui"){const r=Us[t];return r?`${n}-${r}`:`${Zr.generate(e)}-${t}`}function Vs(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=bn(e,o,n)}),r}function Gs(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Ys=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.PropTypes.node,p.PropTypes.object);function qs(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?cn(o.defaultProps,r):!o.styleOverrides&&!o.variants?cn(o,r):r}function Xs({props:e,name:t}){const n=N.useContext(Ys);return qs({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(p.PropTypes.node,p.PropTypes.object.isRequired);function Zs(e){return Xs(e)}var ot={},Jr={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Jr);var vn=Jr.exports;const Js=p.getAugmentedNamespace(p._extends$1),Qs=p.getAugmentedNamespace(p.objectWithoutPropertiesLoose);function ea(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ta(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var na=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ta(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ea(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ae="-ms-",_t="-moz-",B="-webkit-",Qr="comm",Sn="rule",wn="decl",ra="@import",eo="@keyframes",oa="@layer",ia=Math.abs,Mt=String.fromCharCode,sa=Object.assign;function aa(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function to(e){return e.trim()}function ca(e,t){return(e=t.exec(e))?e[0]:e}function H(e,t,n){return e.replace(t,n)}function ln(e,t){return e.indexOf(t)}function ie(e,t){return e.charCodeAt(t)|0}function et(e,t,n){return e.slice(t,n)}function be(e){return e.length}function _n(e){return e.length}function ft(e,t){return t.push(e),e}function la(e,t){return e.map(t).join("")}var jt=1,Ue=1,no=0,le=0,ne=0,Ge="";function Ot(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:jt,column:Ue,length:s,return:""}}function Xe(e,t){return sa(Ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function ua(){return ne}function da(){return ne=le>0?ie(Ge,--le):0,Ue--,ne===10&&(Ue=1,jt--),ne}function fe(){return ne=le<no?ie(Ge,le++):0,Ue++,ne===10&&(Ue=1,jt++),ne}function _e(){return ie(Ge,le)}function gt(){return le}function it(e,t){return et(Ge,e,t)}function tt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ro(e){return jt=Ue=1,no=be(Ge=e),le=0,[]}function oo(e){return Ge="",e}function yt(e){return to(it(le-1,un(e===91?e+2:e===40?e+1:e)))}function fa(e){for(;(ne=_e())&&ne<33;)fe();return tt(e)>2||tt(ne)>3?"":" "}function ha(e,t){for(;--t&&fe()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return it(e,gt()+(t<6&&_e()==32&&fe()==32))}function un(e){for(;fe();)switch(ne){case e:return le;case 34:case 39:e!==34&&e!==39&&un(ne);break;case 40:e===41&&un(e);break;case 92:fe();break}return le}function pa(e,t){for(;fe()&&e+ne!==57;)if(e+ne===84&&_e()===47)break;return"/*"+it(t,le-1)+"*"+Mt(e===47?e:fe())}function ma(e){for(;!tt(_e());)fe();return it(e,le)}function ga(e){return oo(xt("",null,null,null,[""],e=ro(e),0,[0],e))}function xt(e,t,n,r,o,i,s,c,u){for(var f=0,d=0,h=s,m=0,b=0,y=0,a=1,g=1,v=1,E=0,w="",T=o,x=i,_=r,C=w;g;)switch(y=E,E=fe()){case 40:if(y!=108&&ie(C,h-1)==58){ln(C+=H(yt(E),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:C+=yt(E);break;case 9:case 10:case 13:case 32:C+=fa(y);break;case 92:C+=ha(gt()-1,7);continue;case 47:switch(_e()){case 42:case 47:ft(ya(pa(fe(),gt()),t,n),u);break;default:C+="/"}break;case 123*a:c[f++]=be(C)*v;case 125*a:case 59:case 0:switch(E){case 0:case 125:g=0;case 59+d:v==-1&&(C=H(C,/\f/g,"")),b>0&&be(C)-h&&ft(b>32?or(C+";",r,n,h-1):or(H(C," ","")+";",r,n,h-2),u);break;case 59:C+=";";default:if(ft(_=rr(C,t,n,f,d,o,c,w,T=[],x=[],h),i),E===123)if(d===0)xt(C,t,_,_,T,i,h,c,x);else switch(m===99&&ie(C,3)===110?100:m){case 100:case 108:case 109:case 115:xt(e,_,_,r&&ft(rr(e,_,_,0,0,o,c,w,o,T=[],h),x),o,x,h,c,r?T:x);break;default:xt(C,_,_,_,[""],x,0,c,x)}}f=d=b=0,a=v=1,w=C="",h=s;break;case 58:h=1+be(C),b=y;default:if(a<1){if(E==123)--a;else if(E==125&&a++==0&&da()==125)continue}switch(C+=Mt(E),E*a){case 38:v=d>0?1:(C+="\f",-1);break;case 44:c[f++]=(be(C)-1)*v,v=1;break;case 64:_e()===45&&(C+=yt(fe())),m=_e(),d=h=be(w=C+=ma(gt())),E++;break;case 45:y===45&&be(C)==2&&(a=0)}}return i}function rr(e,t,n,r,o,i,s,c,u,f,d){for(var h=o-1,m=o===0?i:[""],b=_n(m),y=0,a=0,g=0;y<r;++y)for(var v=0,E=et(e,h+1,h=ia(a=s[y])),w=e;v<b;++v)(w=to(a>0?m[v]+" "+E:H(E,/&\f/g,m[v])))&&(u[g++]=w);return Ot(e,t,n,o===0?Sn:c,u,f,d)}function ya(e,t,n){return Ot(e,t,n,Qr,Mt(ua()),et(e,2,-2),0)}function or(e,t,n,r){return Ot(e,t,n,wn,et(e,0,r),et(e,r+1,-1),r)}function He(e,t){for(var n="",r=_n(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xa(e,t,n,r){switch(e.type){case oa:if(e.children.length)break;case ra:case wn:return e.return=e.return||e.value;case Qr:return"";case eo:return e.return=e.value+"{"+He(e.children,r)+"}";case Sn:e.value=e.props.join(",")}return be(n=He(e.children,r))?e.return=e.value+"{"+n+"}":""}function ba(e){var t=_n(e);return function(n,r,o,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,i)||"";return s}}function va(e){return function(t){t.root||(t=t.return)&&e(t)}}function io(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Sa=function(t,n,r){for(var o=0,i=0;o=i,i=_e(),o===38&&i===12&&(n[r]=1),!tt(i);)fe();return it(t,le)},wa=function(t,n){var r=-1,o=44;do switch(tt(o)){case 0:o===38&&_e()===12&&(n[r]=1),t[r]+=Sa(le-1,n,r);break;case 2:t[r]+=yt(o);break;case 4:if(o===44){t[++r]=_e()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Mt(o)}while(o=fe());return t},_a=function(t,n){return oo(wa(ro(t),n))},ir=new WeakMap,Ea=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ir.get(r))&&!o){ir.set(t,!0);for(var i=[],s=_a(n,i),c=r.props,u=0,f=0;u<s.length;u++)for(var d=0;d<c.length;d++,f++)t.props[f]=i[u]?s[u].replace(/&\f/g,c[d]):c[d]+" "+s[u]}}},Ca=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function so(e,t){switch(aa(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+_t+e+ae+e+e;case 6828:case 4268:return B+e+ae+e+e;case 6165:return B+e+ae+"flex-"+e+e;case 5187:return B+e+H(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+ae+"flex-$1$2")+e;case 5443:return B+e+ae+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return B+e+ae+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+ae+H(e,"shrink","negative")+e;case 5292:return B+e+ae+H(e,"basis","preferred-size")+e;case 6060:return B+"box-"+H(e,"-grow","")+B+e+ae+H(e,"grow","positive")+e;case 4554:return B+H(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(be(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+_t+(ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ln(e,"stretch")?so(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ie(e,t+1)!==115)break;case 6444:switch(ie(e,be(e)-3-(~ln(e,"!important")&&10))){case 107:return H(e,":",":"+B)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(ie(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+ae+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return B+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+ae+e+e}return e}var Ta=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case wn:t.return=so(t.value,t.length);break;case eo:return He([Xe(t,{value:H(t.value,"@","@"+B)})],o);case Sn:if(t.length)return la(t.props,function(i){switch(ca(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return He([Xe(t,{props:[H(i,/:(read-\w+)/,":"+_t+"$1")]})],o);case"::placeholder":return He([Xe(t,{props:[H(i,/:(plac\w+)/,":"+B+"input-$1")]}),Xe(t,{props:[H(i,/:(plac\w+)/,":"+_t+"$1")]}),Xe(t,{props:[H(i,/:(plac\w+)/,ae+"input-$1")]})],o)}return""})}},Ia=[Ta],ao=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(a){var g=a.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(a),a.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ia,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(a){for(var g=a.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)i[g[v]]=!0;c.push(a)});var u,f=[Ea,Ca];{var d,h=[xa,va(function(a){d.insert(a)})],m=ba(f.concat(o,h)),b=function(g){return He(ga(g),m)};u=function(g,v,E,w){d=E,b(g?g+"{"+v.styles+"}":v.styles),w&&(y.inserted[v.name]=!0)}}var y={key:n,sheet:new na({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(c),y},dn={exports:{}},U={};/** @license React v16.13.1
62
+ `))},[JSON.stringify(t)])}const u=N.useCallback(f=>{o||s(f)},[]);return[c,u]}function Ps(e){const t=N.useRef(e);return Xr(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function As(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{qr(n,t)})},e)}class xn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let kt=!0,an=!1;const Ns=new xn,$s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Rs(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&$s[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Ls(e){e.metaKey||e.altKey||e.ctrlKey||(kt=!0)}function Yt(){kt=!1}function zs(){this.visibilityState==="hidden"&&an&&(kt=!0)}function Fs(e){e.addEventListener("keydown",Ls,!0),e.addEventListener("mousedown",Yt,!0),e.addEventListener("pointerdown",Yt,!0),e.addEventListener("touchstart",Yt,!0),e.addEventListener("visibilitychange",zs,!0)}function Ds(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return kt||Rs(t)}function Bs(){const e=N.useCallback(o=>{o!=null&&Fs(o.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(an=!0,Ns.start(100,()=>{an=!1}),t.current=!1,!0):!1}function r(o){return Ds(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function cn(e,t){const n=p._extends({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=p._extends({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=p._extends({},i),Object.keys(o).forEach(s=>{n[r][s]=cn(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Hs(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const c=t(s);c!==""&&i.push(c),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const nr=e=>e,Ws=()=>{let e=nr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=nr}}},Zr=Ws(),Us={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function bn(e,t,n="Mui"){const r=Us[t];return r?`${n}-${r}`:`${Zr.generate(e)}-${t}`}function Vs(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=bn(e,o,n)}),r}function Gs(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Ys=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.PropTypes.node,p.PropTypes.object);function qs(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?cn(o.defaultProps,r):!o.styleOverrides&&!o.variants?cn(o,r):r}function Xs({props:e,name:t}){const n=N.useContext(Ys);return qs({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(p.PropTypes.node,p.PropTypes.object.isRequired);function Zs(e){return Xs(e)}var ot={},Jr={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Jr);var vn=Jr.exports;const Js=p.getAugmentedNamespace(p._extends$1),Qs=p.getAugmentedNamespace(p.objectWithoutPropertiesLoose);function ea(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ta(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var na=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ta(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ea(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ae="-ms-",_t="-moz-",B="-webkit-",Qr="comm",Sn="rule",wn="decl",ra="@import",eo="@keyframes",oa="@layer",ia=Math.abs,Mt=String.fromCharCode,sa=Object.assign;function aa(e,t){return ie(e,0)^45?(((t<<2^ie(e,0))<<2^ie(e,1))<<2^ie(e,2))<<2^ie(e,3):0}function to(e){return e.trim()}function ca(e,t){return(e=t.exec(e))?e[0]:e}function H(e,t,n){return e.replace(t,n)}function ln(e,t){return e.indexOf(t)}function ie(e,t){return e.charCodeAt(t)|0}function et(e,t,n){return e.slice(t,n)}function be(e){return e.length}function _n(e){return e.length}function ft(e,t){return t.push(e),e}function la(e,t){return e.map(t).join("")}var jt=1,Ue=1,no=0,le=0,ne=0,Ge="";function Ot(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:jt,column:Ue,length:s,return:""}}function Xe(e,t){return sa(Ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function ua(){return ne}function da(){return ne=le>0?ie(Ge,--le):0,Ue--,ne===10&&(Ue=1,jt--),ne}function fe(){return ne=le<no?ie(Ge,le++):0,Ue++,ne===10&&(Ue=1,jt++),ne}function _e(){return ie(Ge,le)}function gt(){return le}function it(e,t){return et(Ge,e,t)}function tt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ro(e){return jt=Ue=1,no=be(Ge=e),le=0,[]}function oo(e){return Ge="",e}function yt(e){return to(it(le-1,un(e===91?e+2:e===40?e+1:e)))}function fa(e){for(;(ne=_e())&&ne<33;)fe();return tt(e)>2||tt(ne)>3?"":" "}function ha(e,t){for(;--t&&fe()&&!(ne<48||ne>102||ne>57&&ne<65||ne>70&&ne<97););return it(e,gt()+(t<6&&_e()==32&&fe()==32))}function un(e){for(;fe();)switch(ne){case e:return le;case 34:case 39:e!==34&&e!==39&&un(ne);break;case 40:e===41&&un(e);break;case 92:fe();break}return le}function pa(e,t){for(;fe()&&e+ne!==57;)if(e+ne===84&&_e()===47)break;return"/*"+it(t,le-1)+"*"+Mt(e===47?e:fe())}function ma(e){for(;!tt(_e());)fe();return it(e,le)}function ga(e){return oo(xt("",null,null,null,[""],e=ro(e),0,[0],e))}function xt(e,t,n,r,o,i,s,c,u){for(var f=0,d=0,h=s,m=0,v=0,y=0,a=1,g=1,b=1,E=0,_="",T=o,x=i,w=r,C=_;g;)switch(y=E,E=fe()){case 40:if(y!=108&&ie(C,h-1)==58){ln(C+=H(yt(E),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:C+=yt(E);break;case 9:case 10:case 13:case 32:C+=fa(y);break;case 92:C+=ha(gt()-1,7);continue;case 47:switch(_e()){case 42:case 47:ft(ya(pa(fe(),gt()),t,n),u);break;default:C+="/"}break;case 123*a:c[f++]=be(C)*b;case 125*a:case 59:case 0:switch(E){case 0:case 125:g=0;case 59+d:b==-1&&(C=H(C,/\f/g,"")),v>0&&be(C)-h&&ft(v>32?or(C+";",r,n,h-1):or(H(C," ","")+";",r,n,h-2),u);break;case 59:C+=";";default:if(ft(w=rr(C,t,n,f,d,o,c,_,T=[],x=[],h),i),E===123)if(d===0)xt(C,t,w,w,T,i,h,c,x);else switch(m===99&&ie(C,3)===110?100:m){case 100:case 108:case 109:case 115:xt(e,w,w,r&&ft(rr(e,w,w,0,0,o,c,_,o,T=[],h),x),o,x,h,c,r?T:x);break;default:xt(C,w,w,w,[""],x,0,c,x)}}f=d=v=0,a=b=1,_=C="",h=s;break;case 58:h=1+be(C),v=y;default:if(a<1){if(E==123)--a;else if(E==125&&a++==0&&da()==125)continue}switch(C+=Mt(E),E*a){case 38:b=d>0?1:(C+="\f",-1);break;case 44:c[f++]=(be(C)-1)*b,b=1;break;case 64:_e()===45&&(C+=yt(fe())),m=_e(),d=h=be(_=C+=ma(gt())),E++;break;case 45:y===45&&be(C)==2&&(a=0)}}return i}function rr(e,t,n,r,o,i,s,c,u,f,d){for(var h=o-1,m=o===0?i:[""],v=_n(m),y=0,a=0,g=0;y<r;++y)for(var b=0,E=et(e,h+1,h=ia(a=s[y])),_=e;b<v;++b)(_=to(a>0?m[b]+" "+E:H(E,/&\f/g,m[b])))&&(u[g++]=_);return Ot(e,t,n,o===0?Sn:c,u,f,d)}function ya(e,t,n){return Ot(e,t,n,Qr,Mt(ua()),et(e,2,-2),0)}function or(e,t,n,r){return Ot(e,t,n,wn,et(e,0,r),et(e,r+1,-1),r)}function He(e,t){for(var n="",r=_n(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function xa(e,t,n,r){switch(e.type){case oa:if(e.children.length)break;case ra:case wn:return e.return=e.return||e.value;case Qr:return"";case eo:return e.return=e.value+"{"+He(e.children,r)+"}";case Sn:e.value=e.props.join(",")}return be(n=He(e.children,r))?e.return=e.value+"{"+n+"}":""}function ba(e){var t=_n(e);return function(n,r,o,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,o,i)||"";return s}}function va(e){return function(t){t.root||(t=t.return)&&e(t)}}function io(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Sa=function(t,n,r){for(var o=0,i=0;o=i,i=_e(),o===38&&i===12&&(n[r]=1),!tt(i);)fe();return it(t,le)},wa=function(t,n){var r=-1,o=44;do switch(tt(o)){case 0:o===38&&_e()===12&&(n[r]=1),t[r]+=Sa(le-1,n,r);break;case 2:t[r]+=yt(o);break;case 4:if(o===44){t[++r]=_e()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Mt(o)}while(o=fe());return t},_a=function(t,n){return oo(wa(ro(t),n))},ir=new WeakMap,Ea=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ir.get(r))&&!o){ir.set(t,!0);for(var i=[],s=_a(n,i),c=r.props,u=0,f=0;u<s.length;u++)for(var d=0;d<c.length;d++,f++)t.props[f]=i[u]?s[u].replace(/&\f/g,c[d]):c[d]+" "+s[u]}}},Ca=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function so(e,t){switch(aa(e,t)){case 5103:return B+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+_t+e+ae+e+e;case 6828:case 4268:return B+e+ae+e+e;case 6165:return B+e+ae+"flex-"+e+e;case 5187:return B+e+H(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+ae+"flex-$1$2")+e;case 5443:return B+e+ae+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return B+e+ae+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+ae+H(e,"shrink","negative")+e;case 5292:return B+e+ae+H(e,"basis","preferred-size")+e;case 6060:return B+"box-"+H(e,"-grow","")+B+e+ae+H(e,"grow","positive")+e;case 4554:return B+H(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,B+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(be(e)-1-t>6)switch(ie(e,t+1)){case 109:if(ie(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+_t+(ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ln(e,"stretch")?so(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ie(e,t+1)!==115)break;case 6444:switch(ie(e,be(e)-3-(~ln(e,"!important")&&10))){case 107:return H(e,":",":"+B)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(ie(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+ae+"$2box$3")+e}break;case 5936:switch(ie(e,t+11)){case 114:return B+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+ae+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+ae+e+e}return e}var Ta=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case wn:t.return=so(t.value,t.length);break;case eo:return He([Xe(t,{value:H(t.value,"@","@"+B)})],o);case Sn:if(t.length)return la(t.props,function(i){switch(ca(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return He([Xe(t,{props:[H(i,/:(read-\w+)/,":"+_t+"$1")]})],o);case"::placeholder":return He([Xe(t,{props:[H(i,/:(plac\w+)/,":"+B+"input-$1")]}),Xe(t,{props:[H(i,/:(plac\w+)/,":"+_t+"$1")]}),Xe(t,{props:[H(i,/:(plac\w+)/,ae+"input-$1")]})],o)}return""})}},Ia=[Ta],ao=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(a){var g=a.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(a),a.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ia,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(a){for(var g=a.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;c.push(a)});var u,f=[Ea,Ca];{var d,h=[xa,va(function(a){d.insert(a)})],m=ba(f.concat(o,h)),v=function(g){return He(ga(g),m)};u=function(g,b,E,_){d=E,v(g?g+"{"+b.styles+"}":b.styles),_&&(y.inserted[b.name]=!0)}}var y={key:n,sheet:new na({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(c),y},dn={exports:{}},U={};/** @license React v16.13.1
63
63
  * react-is.production.min.js
64
64
  *
65
65
  * Copyright (c) Facebook, Inc. and its affiliates.
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var sr;function ka(){if(sr)return U;sr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function w(x){if(typeof x=="object"&&x!==null){var _=x.$$typeof;switch(_){case t:switch(x=x.type,x){case u:case f:case r:case i:case o:case h:return x;default:switch(x=x&&x.$$typeof,x){case c:case d:case y:case b:case s:return x;default:return _}}case n:return _}}}function T(x){return w(x)===f}return U.AsyncMode=u,U.ConcurrentMode=f,U.ContextConsumer=c,U.ContextProvider=s,U.Element=t,U.ForwardRef=d,U.Fragment=r,U.Lazy=y,U.Memo=b,U.Portal=n,U.Profiler=i,U.StrictMode=o,U.Suspense=h,U.isAsyncMode=function(x){return T(x)||w(x)===u},U.isConcurrentMode=T,U.isContextConsumer=function(x){return w(x)===c},U.isContextProvider=function(x){return w(x)===s},U.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},U.isForwardRef=function(x){return w(x)===d},U.isFragment=function(x){return w(x)===r},U.isLazy=function(x){return w(x)===y},U.isMemo=function(x){return w(x)===b},U.isPortal=function(x){return w(x)===n},U.isProfiler=function(x){return w(x)===i},U.isStrictMode=function(x){return w(x)===o},U.isSuspense=function(x){return w(x)===h},U.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===f||x===i||x===o||x===h||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===b||x.$$typeof===s||x.$$typeof===c||x.$$typeof===d||x.$$typeof===g||x.$$typeof===v||x.$$typeof===E||x.$$typeof===a)},U.typeOf=w,U}var V={};/** @license React v16.13.1
69
+ */var sr;function ka(){if(sr)return U;sr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case t:switch(x=x.type,x){case u:case f:case r:case i:case o:case h:return x;default:switch(x=x&&x.$$typeof,x){case c:case d:case y:case v:case s:return x;default:return w}}case n:return w}}}function T(x){return _(x)===f}return U.AsyncMode=u,U.ConcurrentMode=f,U.ContextConsumer=c,U.ContextProvider=s,U.Element=t,U.ForwardRef=d,U.Fragment=r,U.Lazy=y,U.Memo=v,U.Portal=n,U.Profiler=i,U.StrictMode=o,U.Suspense=h,U.isAsyncMode=function(x){return T(x)||_(x)===u},U.isConcurrentMode=T,U.isContextConsumer=function(x){return _(x)===c},U.isContextProvider=function(x){return _(x)===s},U.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},U.isForwardRef=function(x){return _(x)===d},U.isFragment=function(x){return _(x)===r},U.isLazy=function(x){return _(x)===y},U.isMemo=function(x){return _(x)===v},U.isPortal=function(x){return _(x)===n},U.isProfiler=function(x){return _(x)===i},U.isStrictMode=function(x){return _(x)===o},U.isSuspense=function(x){return _(x)===h},U.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===f||x===i||x===o||x===h||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===v||x.$$typeof===s||x.$$typeof===c||x.$$typeof===d||x.$$typeof===g||x.$$typeof===b||x.$$typeof===E||x.$$typeof===a)},U.typeOf=_,U}var V={};/** @license React v16.13.1
70
70
  * react-is.development.js
71
71
  *
72
72
  * Copyright (c) Facebook, Inc. and its affiliates.
73
73
  *
74
74
  * This source code is licensed under the MIT license found in the
75
75
  * LICENSE file in the root directory of this source tree.
76
- */var ar;function Ma(){return ar||(ar=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function w(I){return typeof I=="string"||typeof I=="function"||I===r||I===f||I===i||I===o||I===h||I===m||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===b||I.$$typeof===s||I.$$typeof===c||I.$$typeof===d||I.$$typeof===g||I.$$typeof===v||I.$$typeof===E||I.$$typeof===a)}function T(I){if(typeof I=="object"&&I!==null){var Te=I.$$typeof;switch(Te){case t:var Oe=I.type;switch(Oe){case u:case f:case r:case i:case o:case h:return Oe;default:var Ne=Oe&&Oe.$$typeof;switch(Ne){case c:case d:case y:case b:case s:return Ne;default:return Te}}case n:return Te}}}var x=u,_=f,C=c,j=s,M=t,z=d,k=r,R=y,G=b,W=n,re=i,se=o,he=h,A=!1;function L(I){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(I)||T(I)===u}function O(I){return T(I)===f}function F(I){return T(I)===c}function q(I){return T(I)===s}function oe(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function te(I){return T(I)===d}function xe(I){return T(I)===r}function qe(I){return T(I)===y}function lt(I){return T(I)===b}function Wt(I){return T(I)===n}function Ae(I){return T(I)===i}function ut(I){return T(I)===o}function D(I){return T(I)===h}V.AsyncMode=x,V.ConcurrentMode=_,V.ContextConsumer=C,V.ContextProvider=j,V.Element=M,V.ForwardRef=z,V.Fragment=k,V.Lazy=R,V.Memo=G,V.Portal=W,V.Profiler=re,V.StrictMode=se,V.Suspense=he,V.isAsyncMode=L,V.isConcurrentMode=O,V.isContextConsumer=F,V.isContextProvider=q,V.isElement=oe,V.isForwardRef=te,V.isFragment=xe,V.isLazy=qe,V.isMemo=lt,V.isPortal=Wt,V.isProfiler=Ae,V.isStrictMode=ut,V.isSuspense=D,V.isValidElementType=w,V.typeOf=T}()),V}process.env.NODE_ENV==="production"?dn.exports=ka():dn.exports=Ma();var ja=dn.exports,co=ja,Oa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lo={};lo[co.ForwardRef]=Oa;lo[co.Memo]=Pa;var Aa=!0;function uo(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var En=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Aa===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cn=function(t,n,r){En(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Na(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ra=/[A-Z]|^ms/g,La=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fo=function(t){return t.charCodeAt(1)===45},cr=function(t){return t!=null&&typeof t!="boolean"},qt=io(function(e){return fo(e)?e:e.replace(Ra,"-$&").toLowerCase()}),lr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(La,function(r,o,i){return ve={name:o,styles:i,next:ve},o})}return $a[t]!==1&&!fo(t)&&typeof n=="number"&&n!==0?n+"px":n};function nt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ve={name:o.name,styles:o.styles,next:ve},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)ve={name:s.name,styles:s.styles,next:ve},s=s.next;var c=i.styles+";";return c}return za(e,t,n)}case"function":{if(e!==void 0){var u=ve,f=n(e);return ve=u,nt(e,t,f)}break}}var d=n;if(t==null)return d;var h=t[d];return h!==void 0?h:d}function za(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nt(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=i+"{"+t[c]+"}":cr(c)&&(r+=qt(i)+":"+lr(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)cr(s[u])&&(r+=qt(i)+":"+lr(i,s[u])+";");else{var f=nt(e,t,s);switch(i){case"animation":case"animationName":{r+=qt(i)+":"+f+";";break}default:r+=i+"{"+f+"}"}}}return r}var ur=/label:\s*([^\s;{]+)\s*(;|$)/g,ve;function Pt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ve=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=nt(n,t,i);else{var s=i;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=nt(n,t,e[c]),r){var u=i;o+=u[c]}ur.lastIndex=0;for(var f="",d;(d=ur.exec(o))!==null;)f+="-"+d[1];var h=Na(o)+f;return{name:h,styles:o,next:ve}}var Fa=function(t){return t()},ho=N.useInsertionEffect?N.useInsertionEffect:!1,po=ho||Fa,dr=ho||N.useLayoutEffect,mo=N.createContext(typeof HTMLElement<"u"?ao({key:"css"}):null),Da=mo.Provider,Tn=function(t){return S.forwardRef(function(n,r){var o=S.useContext(mo);return t(n,o,r)})},At=N.createContext({}),In={}.hasOwnProperty,fn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ba=function(t,n){var r={};for(var o in n)In.call(n,o)&&(r[o]=n[o]);return r[fn]=t,r},Ha=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),po(function(){return Cn(n,r,o)}),null},Wa=Tn(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[fn],i=[r],s="";typeof e.className=="string"?s=uo(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var c=Pt(i,void 0,N.useContext(At));s+=t.key+"-"+c.name;var u={};for(var f in e)In.call(e,f)&&f!=="css"&&f!==fn&&(u[f]=e[f]);return u.className=s,n&&(u.ref=n),N.createElement(N.Fragment,null,N.createElement(Ha,{cache:t,serialized:c,isStringTag:typeof o=="string"}),N.createElement(o,u))}),Ua=Wa,fr=function(t,n){var r=arguments;if(n==null||!In.call(n,"css"))return N.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Ua,i[1]=Ba(t,n);for(var s=2;s<o;s++)i[s]=r[s];return N.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(fr||(fr={}));var Va=Tn(function(e,t){var n=e.styles,r=Pt([n],void 0,N.useContext(At)),o=N.useRef();return dr(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",i),s.hydrate([u])),o.current=[s,c],function(){s.flush()}},[t]),dr(function(){var i=o.current,s=i[0],c=i[1];if(c){i[1]=!1;return}if(r.next!==void 0&&Cn(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pt(t)}function Ga(){var e=go.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Ka=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ya=io(function(e){return Ka.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qa=Ya,Xa=function(t){return t!=="theme"},hr=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qa:Xa},pr=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Za=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),po(function(){return Cn(n,r,o)}),null},Ja=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var c=pr(t,n,r),u=c||hr(o),f=!u("as");return function(){var d=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var m=d[0];h.push(m[0]);for(var b=d.length,y=1;y<b;y++)h.push(d[y],m[y])}var a=Tn(function(g,v,E){var w=f&&g.as||o,T="",x=[],_=g;if(g.theme==null){_={};for(var C in g)_[C]=g[C];_.theme=N.useContext(At)}typeof g.className=="string"?T=uo(v.registered,x,g.className):g.className!=null&&(T=g.className+" ");var j=Pt(h.concat(x),v.registered,_);T+=v.key+"-"+j.name,s!==void 0&&(T+=" "+s);var M=f&&c===void 0?hr(w):u,z={};for(var k in g)f&&k==="as"||M(k)&&(z[k]=g[k]);return z.className=T,E&&(z.ref=E),N.createElement(N.Fragment,null,N.createElement(Za,{cache:v,serialized:j,isStringTag:typeof w=="string"}),N.createElement(w,z))});return a.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",a.defaultProps=t.defaultProps,a.__emotion_real=a,a.__emotion_base=o,a.__emotion_styles=h,a.__emotion_forwardProp=c,Object.defineProperty(a,"toString",{value:function(){return"."+s}}),a.withComponent=function(g,v){var E=e(g,p._extends({},n,v,{shouldForwardProp:pr(a,v,!0)}));return E.apply(void 0,h)},a}},Qa=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],hn=Ja.bind(null);Qa.forEach(function(e){hn[e]=hn(e)});let pn;typeof document=="object"&&(pn=ao({key:"css",prepend:!0}));function yo(e){const{injectFirst:t,children:n}=e;return t&&pn?l.jsx(Da,{value:pn,children:n}):n}process.env.NODE_ENV!=="production"&&(yo.propTypes={children:p.PropTypes.node,injectFirst:p.PropTypes.bool});function ec(e){return e==null||Object.keys(e).length===0}function xo(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ec(o)?n:o):t;return l.jsx(Va,{styles:r})}process.env.NODE_ENV!=="production"&&(xo.propTypes={defaultTheme:p.PropTypes.object,styles:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.string,p.PropTypes.object,p.PropTypes.func])});/**
76
+ */var ar;function Ma(){return ar||(ar=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,a=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function _(I){return typeof I=="string"||typeof I=="function"||I===r||I===f||I===i||I===o||I===h||I===m||typeof I=="object"&&I!==null&&(I.$$typeof===y||I.$$typeof===v||I.$$typeof===s||I.$$typeof===c||I.$$typeof===d||I.$$typeof===g||I.$$typeof===b||I.$$typeof===E||I.$$typeof===a)}function T(I){if(typeof I=="object"&&I!==null){var Te=I.$$typeof;switch(Te){case t:var Oe=I.type;switch(Oe){case u:case f:case r:case i:case o:case h:return Oe;default:var Ne=Oe&&Oe.$$typeof;switch(Ne){case c:case d:case y:case v:case s:return Ne;default:return Te}}case n:return Te}}}var x=u,w=f,C=c,j=s,M=t,z=d,k=r,R=y,G=v,W=n,re=i,se=o,he=h,A=!1;function L(I){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(I)||T(I)===u}function O(I){return T(I)===f}function F(I){return T(I)===c}function q(I){return T(I)===s}function oe(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function te(I){return T(I)===d}function xe(I){return T(I)===r}function qe(I){return T(I)===y}function lt(I){return T(I)===v}function Wt(I){return T(I)===n}function Ae(I){return T(I)===i}function ut(I){return T(I)===o}function D(I){return T(I)===h}V.AsyncMode=x,V.ConcurrentMode=w,V.ContextConsumer=C,V.ContextProvider=j,V.Element=M,V.ForwardRef=z,V.Fragment=k,V.Lazy=R,V.Memo=G,V.Portal=W,V.Profiler=re,V.StrictMode=se,V.Suspense=he,V.isAsyncMode=L,V.isConcurrentMode=O,V.isContextConsumer=F,V.isContextProvider=q,V.isElement=oe,V.isForwardRef=te,V.isFragment=xe,V.isLazy=qe,V.isMemo=lt,V.isPortal=Wt,V.isProfiler=Ae,V.isStrictMode=ut,V.isSuspense=D,V.isValidElementType=_,V.typeOf=T}()),V}process.env.NODE_ENV==="production"?dn.exports=ka():dn.exports=Ma();var ja=dn.exports,co=ja,Oa={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lo={};lo[co.ForwardRef]=Oa;lo[co.Memo]=Pa;var Aa=!0;function uo(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var En=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Aa===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Cn=function(t,n,r){En(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Na(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var $a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ra=/[A-Z]|^ms/g,La=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fo=function(t){return t.charCodeAt(1)===45},cr=function(t){return t!=null&&typeof t!="boolean"},qt=io(function(e){return fo(e)?e:e.replace(Ra,"-$&").toLowerCase()}),lr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(La,function(r,o,i){return ve={name:o,styles:i,next:ve},o})}return $a[t]!==1&&!fo(t)&&typeof n=="number"&&n!==0?n+"px":n};function nt(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ve={name:o.name,styles:o.styles,next:ve},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)ve={name:s.name,styles:s.styles,next:ve},s=s.next;var c=i.styles+";";return c}return za(e,t,n)}case"function":{if(e!==void 0){var u=ve,f=n(e);return ve=u,nt(e,t,f)}break}}var d=n;if(t==null)return d;var h=t[d];return h!==void 0?h:d}function za(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nt(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=i+"{"+t[c]+"}":cr(c)&&(r+=qt(i)+":"+lr(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)cr(s[u])&&(r+=qt(i)+":"+lr(i,s[u])+";");else{var f=nt(e,t,s);switch(i){case"animation":case"animationName":{r+=qt(i)+":"+f+";";break}default:r+=i+"{"+f+"}"}}}return r}var ur=/label:\s*([^\s;{]+)\s*(;|$)/g,ve;function Pt(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ve=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=nt(n,t,i);else{var s=i;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=nt(n,t,e[c]),r){var u=i;o+=u[c]}ur.lastIndex=0;for(var f="",d;(d=ur.exec(o))!==null;)f+="-"+d[1];var h=Na(o)+f;return{name:h,styles:o,next:ve}}var Fa=function(t){return t()},ho=N.useInsertionEffect?N.useInsertionEffect:!1,po=ho||Fa,dr=ho||N.useLayoutEffect,mo=N.createContext(typeof HTMLElement<"u"?ao({key:"css"}):null),Da=mo.Provider,Tn=function(t){return S.forwardRef(function(n,r){var o=S.useContext(mo);return t(n,o,r)})},At=N.createContext({}),In={}.hasOwnProperty,fn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ba=function(t,n){var r={};for(var o in n)In.call(n,o)&&(r[o]=n[o]);return r[fn]=t,r},Ha=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),po(function(){return Cn(n,r,o)}),null},Wa=Tn(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[fn],i=[r],s="";typeof e.className=="string"?s=uo(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var c=Pt(i,void 0,N.useContext(At));s+=t.key+"-"+c.name;var u={};for(var f in e)In.call(e,f)&&f!=="css"&&f!==fn&&(u[f]=e[f]);return u.className=s,n&&(u.ref=n),N.createElement(N.Fragment,null,N.createElement(Ha,{cache:t,serialized:c,isStringTag:typeof o=="string"}),N.createElement(o,u))}),Ua=Wa,fr=function(t,n){var r=arguments;if(n==null||!In.call(n,"css"))return N.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=Ua,i[1]=Ba(t,n);for(var s=2;s<o;s++)i[s]=r[s];return N.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(fr||(fr={}));var Va=Tn(function(e,t){var n=e.styles,r=Pt([n],void 0,N.useContext(At)),o=N.useRef();return dr(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",i),s.hydrate([u])),o.current=[s,c],function(){s.flush()}},[t]),dr(function(){var i=o.current,s=i[0],c=i[1];if(c){i[1]=!1;return}if(r.next!==void 0&&Cn(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pt(t)}function Ga(){var e=go.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Ka=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ya=io(function(e){return Ka.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qa=Ya,Xa=function(t){return t!=="theme"},hr=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qa:Xa},pr=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Za=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return En(n,r,o),po(function(){return Cn(n,r,o)}),null},Ja=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var c=pr(t,n,r),u=c||hr(o),f=!u("as");return function(){var d=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var m=d[0];h.push(m[0]);for(var v=d.length,y=1;y<v;y++)h.push(d[y],m[y])}var a=Tn(function(g,b,E){var _=f&&g.as||o,T="",x=[],w=g;if(g.theme==null){w={};for(var C in g)w[C]=g[C];w.theme=N.useContext(At)}typeof g.className=="string"?T=uo(b.registered,x,g.className):g.className!=null&&(T=g.className+" ");var j=Pt(h.concat(x),b.registered,w);T+=b.key+"-"+j.name,s!==void 0&&(T+=" "+s);var M=f&&c===void 0?hr(_):u,z={};for(var k in g)f&&k==="as"||M(k)&&(z[k]=g[k]);return z.className=T,E&&(z.ref=E),N.createElement(N.Fragment,null,N.createElement(Za,{cache:b,serialized:j,isStringTag:typeof _=="string"}),N.createElement(_,z))});return a.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",a.defaultProps=t.defaultProps,a.__emotion_real=a,a.__emotion_base=o,a.__emotion_styles=h,a.__emotion_forwardProp=c,Object.defineProperty(a,"toString",{value:function(){return"."+s}}),a.withComponent=function(g,b){var E=e(g,p._extends({},n,b,{shouldForwardProp:pr(a,b,!0)}));return E.apply(void 0,h)},a}},Qa=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],hn=Ja.bind(null);Qa.forEach(function(e){hn[e]=hn(e)});let pn;typeof document=="object"&&(pn=ao({key:"css",prepend:!0}));function yo(e){const{injectFirst:t,children:n}=e;return t&&pn?l.jsx(Da,{value:pn,children:n}):n}process.env.NODE_ENV!=="production"&&(yo.propTypes={children:p.PropTypes.node,injectFirst:p.PropTypes.bool});function ec(e){return e==null||Object.keys(e).length===0}function xo(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(ec(o)?n:o):t;return l.jsx(Va,{styles:r})}process.env.NODE_ENV!=="production"&&(xo.propTypes={defaultTheme:p.PropTypes.object,styles:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.string,p.PropTypes.object,p.PropTypes.func])});/**
77
77
  * @mui/styled-engine v5.16.14
78
78
  *
79
79
  * @license MIT
80
80
  * This source code is licensed under the MIT license found in the
81
81
  * LICENSE file in the root directory of this source tree.
82
82
  */function tc(e,t){const n=hn(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
83
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const nc=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:xo,StyledEngineProvider:yo,ThemeContext:At,css:go,default:tc,internal_processStyles:nc,keyframes:Ga},Symbol.toStringTag,{value:"Module"})),oc=p.getAugmentedNamespace(rc),ic=p.getAugmentedNamespace(ps),sc=p.getAugmentedNamespace(Ss),ac=p.getAugmentedNamespace(vs),cc=["values","unit","step"],lc=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>p._extends({},n,{[r.key]:r.val}),{})};function bo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=p._objectWithoutPropertiesLoose(e,cc),i=lc(t),s=Object.keys(i);function c(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function u(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,b){const y=s.indexOf(b);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:b)-r/100}${n})`}function d(m){return s.indexOf(m)+1<s.length?f(m,s[s.indexOf(m)+1]):c(m)}function h(m){const b=s.indexOf(m);return b===0?c(s[1]):b===s.length-1?u(s[b]):f(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return p._extends({keys:s,values:i,up:c,down:u,between:f,only:d,not:h,unit:n},o)}const uc={borderRadius:4},je=process.env.NODE_ENV!=="production"?p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string,p.PropTypes.object,p.PropTypes.array]):{};function Je(e,t){return t?we(e,t,{clone:!1}):e}const kn={xs:0,sm:600,md:900,lg:1200,xl:1536},mr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kn[e]}px)`};function Ce(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||mr;return t.reduce((s,c,u)=>(s[i.up(i.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const i=r.breakpoints||mr;return Object.keys(t).reduce((s,c)=>{if(Object.keys(i.values||kn).indexOf(c)!==-1){const u=i.up(c);s[u]=n(t[c],c)}else{const u=c;s[u]=t[u]}return s},{})}return n(t)}function dc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function fc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Nt(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Et(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Nt(e,n)||r,t&&(o=t(o,r,e)),o}function Q(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,f=Nt(u,r)||{};return Ce(s,c,h=>{let m=Et(f,o,h);return h===m&&typeof h=="string"&&(m=Et(f,o,`${t}${h==="default"?"":ke(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:je}:{},i.filterProps=[t],i}function hc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pc={m:"margin",p:"padding"},mc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gc=hc(e=>{if(e.length>2)if(gr[e])e=gr[e];else return[e];const[t,n]=e.split(""),r=pc[t],o=mc[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),$t=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],yc=[...$t,...Rt];function st(e,t,n,r){var o;const i=(o=Nt(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
83
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const nc=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},rc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:xo,StyledEngineProvider:yo,ThemeContext:At,css:go,default:tc,internal_processStyles:nc,keyframes:Ga},Symbol.toStringTag,{value:"Module"})),oc=p.getAugmentedNamespace(rc),ic=p.getAugmentedNamespace(ps),sc=p.getAugmentedNamespace(Ss),ac=p.getAugmentedNamespace(vs),cc=["values","unit","step"],lc=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>p._extends({},n,{[r.key]:r.val}),{})};function bo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=p._objectWithoutPropertiesLoose(e,cc),i=lc(t),s=Object.keys(i);function c(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function u(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,v){const y=s.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:v)-r/100}${n})`}function d(m){return s.indexOf(m)+1<s.length?f(m,s[s.indexOf(m)+1]):c(m)}function h(m){const v=s.indexOf(m);return v===0?c(s[1]):v===s.length-1?u(s[v]):f(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return p._extends({keys:s,values:i,up:c,down:u,between:f,only:d,not:h,unit:n},o)}const uc={borderRadius:4},je=process.env.NODE_ENV!=="production"?p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string,p.PropTypes.object,p.PropTypes.array]):{};function Je(e,t){return t?we(e,t,{clone:!1}):e}const kn={xs:0,sm:600,md:900,lg:1200,xl:1536},mr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kn[e]}px)`};function Ce(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||mr;return t.reduce((s,c,u)=>(s[i.up(i.keys[u])]=n(t[u]),s),{})}if(typeof t=="object"){const i=r.breakpoints||mr;return Object.keys(t).reduce((s,c)=>{if(Object.keys(i.values||kn).indexOf(c)!==-1){const u=i.up(c);s[u]=n(t[c],c)}else{const u=c;s[u]=t[u]}return s},{})}return n(t)}function dc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function fc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Nt(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Et(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Nt(e,n)||r,t&&(o=t(o,r,e)),o}function Q(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,f=Nt(u,r)||{};return Ce(s,c,h=>{let m=Et(f,o,h);return h===m&&typeof h=="string"&&(m=Et(f,o,`${t}${h==="default"?"":ke(h)}`,h)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:je}:{},i.filterProps=[t],i}function hc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pc={m:"margin",p:"padding"},mc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gc=hc(e=>{if(e.length>2)if(gr[e])e=gr[e];else return[e];const[t,n]=e.split(""),r=pc[t],o=mc[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),$t=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],yc=[...$t,...Rt];function st(e,t,n,r){var o;const i=(o=Nt(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
84
84
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
85
85
  `))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
86
- `)),()=>{})}function vo(e){return st(e,"spacing",8,"spacing")}function at(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function xc(e,t){return n=>e.reduce((r,o)=>(r[o]=at(t,n),r),{})}function bc(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gc(n),i=xc(o,r),s=e[n];return Ce(e,s,i)}function So(e,t){const n=vo(e.theme);return Object.keys(e).map(r=>bc(e,t,r,n)).reduce(Je,{})}function Z(e){return So(e,$t)}Z.propTypes=process.env.NODE_ENV!=="production"?$t.reduce((e,t)=>(e[t]=je,e),{}):{};Z.filterProps=$t;function J(e){return So(e,Rt)}J.propTypes=process.env.NODE_ENV!=="production"?Rt.reduce((e,t)=>(e[t]=je,e),{}):{};J.filterProps=Rt;process.env.NODE_ENV!=="production"&&yc.reduce((e,t)=>(e[t]=je,e),{});function vc(e=8){if(e.mui)return e;const t=vo({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Lt(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Je(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function me(e){return typeof e!="number"?e:`${e}px solid`}function ye(e,t){return Q({prop:e,themeKey:"borders",transform:t})}const Sc=ye("border",me),wc=ye("borderTop",me),_c=ye("borderRight",me),Ec=ye("borderBottom",me),Cc=ye("borderLeft",me),Tc=ye("borderColor"),Ic=ye("borderTopColor"),kc=ye("borderRightColor"),Mc=ye("borderBottomColor"),jc=ye("borderLeftColor"),Oc=ye("outline",me),Pc=ye("outlineColor"),zt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=st(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:at(t,r)});return Ce(e,e.borderRadius,n)}return null};zt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:je}:{};zt.filterProps=["borderRadius"];Lt(Sc,wc,_c,Ec,Cc,Tc,Ic,kc,Mc,jc,zt,Oc,Pc);const Ft=e=>{if(e.gap!==void 0&&e.gap!==null){const t=st(e.theme,"spacing",8,"gap"),n=r=>({gap:at(t,r)});return Ce(e,e.gap,n)}return null};Ft.propTypes=process.env.NODE_ENV!=="production"?{gap:je}:{};Ft.filterProps=["gap"];const Dt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=st(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:at(t,r)});return Ce(e,e.columnGap,n)}return null};Dt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:je}:{};Dt.filterProps=["columnGap"];const Bt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=st(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:at(t,r)});return Ce(e,e.rowGap,n)}return null};Bt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:je}:{};Bt.filterProps=["rowGap"];const Ac=Q({prop:"gridColumn"}),Nc=Q({prop:"gridRow"}),$c=Q({prop:"gridAutoFlow"}),Rc=Q({prop:"gridAutoColumns"}),Lc=Q({prop:"gridAutoRows"}),zc=Q({prop:"gridTemplateColumns"}),Fc=Q({prop:"gridTemplateRows"}),Dc=Q({prop:"gridTemplateAreas"}),Bc=Q({prop:"gridArea"});Lt(Ft,Dt,Bt,Ac,Nc,$c,Rc,Lc,zc,Fc,Dc,Bc);function We(e,t){return t==="grey"?t:e}const Hc=Q({prop:"color",themeKey:"palette",transform:We}),Wc=Q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:We}),Uc=Q({prop:"backgroundColor",themeKey:"palette",transform:We});Lt(Hc,Wc,Uc);function de(e){return e<=1&&e!==0?`${e*100}%`:e}const Vc=Q({prop:"width",transform:de}),Mn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||kn[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:de(n)}};return Ce(e,e.maxWidth,t)}return null};Mn.filterProps=["maxWidth"];const Gc=Q({prop:"minWidth",transform:de}),Kc=Q({prop:"height",transform:de}),Yc=Q({prop:"maxHeight",transform:de}),qc=Q({prop:"minHeight",transform:de});Q({prop:"size",cssProperty:"width",transform:de});Q({prop:"size",cssProperty:"height",transform:de});const Xc=Q({prop:"boxSizing"});Lt(Vc,Mn,Gc,Kc,Yc,qc,Xc);const ct={border:{themeKey:"borders",transform:me},borderTop:{themeKey:"borders",transform:me},borderRight:{themeKey:"borders",transform:me},borderBottom:{themeKey:"borders",transform:me},borderLeft:{themeKey:"borders",transform:me},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:me},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zt},color:{themeKey:"palette",transform:We},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:We},backgroundColor:{themeKey:"palette",transform:We},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ft},rowGap:{style:Bt},columnGap:{style:Dt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:de},maxWidth:{style:Mn},minWidth:{transform:de},height:{transform:de},maxHeight:{transform:de},minHeight:{transform:de},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zc(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Jc(e,t){return typeof e=="function"?e(t):e}function wo(){function e(n,r,o,i){const s={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:f,transform:d,style:h}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=Nt(o,f)||{};return h?h(s):Ce(s,r,y=>{let a=Et(m,d,y);return y===a&&typeof y=="string"&&(a=Et(m,d,`${n}${y==="default"?"":ke(y)}`,y)),u===!1?a:{[u]:a}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ct;function c(u){let f=u;if(typeof u=="function")f=u(i);else if(typeof u!="object")return u;if(!f)return null;const d=dc(i.breakpoints),h=Object.keys(d);let m=d;return Object.keys(f).forEach(b=>{const y=Jc(f[b],i);if(y!=null)if(typeof y=="object")if(s[b])m=Je(m,e(b,y,i,s));else{const a=Ce({theme:i},y,g=>({[b]:g}));Zc(a,y)?m[b]=t({sx:y,theme:i}):m=Je(m,a)}else m=Je(m,e(b,y,i,s))}),fc(h,m)}return Array.isArray(o)?o.map(c):c(o)}return t}const Ht=wo();Ht.filterProps=["sx"];function _o(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Qc=["breakpoints","palette","spacing","shape"];function Eo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=p._objectWithoutPropertiesLoose(e,Qc),c=bo(n),u=vc(o);let f=we({breakpoints:c,direction:"ltr",components:{},palette:p._extends({mode:"light"},r),spacing:u,shape:p._extends({},uc,i)},s);return f.applyStyles=_o,f=t.reduce((d,h)=>we(d,h),f),f.unstable_sxConfig=p._extends({},ct,s==null?void 0:s.unstable_sxConfig),f.unstable_sx=function(h){return Ht({sx:h,theme:this})},f}const el=Object.freeze(Object.defineProperty({__proto__:null,default:Eo,private_createBreakpoints:bo,unstable_applyStyles:_o},Symbol.toStringTag,{value:"Module"})),tl=p.getAugmentedNamespace(el),nl=["sx"],rl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ct;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function ol(e){const{sx:t}=e,n=p._objectWithoutPropertiesLoose(e,nl),{systemProps:r,otherProps:o}=rl(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const c=t(...s);return Ie(c)?p._extends({},r,c):r}:i=p._extends({},r,t),p._extends({},o,{sx:i})}const il=Object.freeze(Object.defineProperty({__proto__:null,default:Ht,extendSxProp:ol,unstable_createStyleFunctionSx:wo,unstable_defaultSxConfig:ct},Symbol.toStringTag,{value:"Module"})),sl=p.getAugmentedNamespace(il);var Ke=vn;Object.defineProperty(ot,"__esModule",{value:!0});var al=ot.default=Sl;ot.shouldForwardProp=bt;ot.systemDefaultTheme=void 0;var pe=Ke(Js),mn=Ke(Qs),yr=gl(oc),cl=ic,ll=Ke(sc),ul=Ke(ac),dl=Ke(tl),fl=Ke(sl);const hl=["ownerState"],pl=["variants"],ml=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Co(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Co=function(r){return r?n:t})(e)}function gl(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Co(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yl(e){return Object.keys(e).length===0}function xl(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bl=ot.systemDefaultTheme=(0,dl.default)(),xr=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ht({defaultTheme:e,theme:t,themeId:n}){return yl(t)?e:t[n]||t}function vl(e){return e?(t,n)=>n[e]:null}function vt(e,t){let{ownerState:n}=t,r=(0,mn.default)(t,hl);const o=typeof e=="function"?e((0,pe.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>vt(i,(0,pe.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,mn.default)(o,pl);return i.forEach(u=>{let f=!0;typeof u.props=="function"?f=u.props((0,pe.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(d=>{(n==null?void 0:n[d])!==u.props[d]&&r[d]!==u.props[d]&&(f=!1)}),f&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,pe.default)({ownerState:n},r,n)):u.style))}),c}return o}function Sl(e={}){const{themeId:t,defaultTheme:n=bl,rootShouldForwardProp:r=bt,slotShouldForwardProp:o=bt}=e,i=s=>(0,fl.default)((0,pe.default)({},s,{theme:ht((0,pe.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,c={})=>{(0,yr.internal_processStyles)(s,x=>x.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:f,skipVariantsResolver:d,skipSx:h,overridesResolver:m=vl(xr(f))}=c,b=(0,mn.default)(c,ml),y=d!==void 0?d:f&&f!=="Root"&&f!=="root"||!1,a=h||!1;let g;process.env.NODE_ENV!=="production"&&u&&(g=`${u}-${xr(f||"Root")}`);let v=bt;f==="Root"||f==="root"?v=r:f?v=o:xl(s)&&(v=void 0);const E=(0,yr.default)(s,(0,pe.default)({shouldForwardProp:v,label:g},b)),w=x=>typeof x=="function"&&x.__emotion_real!==x||(0,cl.isPlainObject)(x)?_=>vt(x,(0,pe.default)({},_,{theme:ht({theme:_.theme,defaultTheme:n,themeId:t})})):x,T=(x,..._)=>{let C=w(x);const j=_?_.map(w):[];u&&m&&j.push(k=>{const R=ht((0,pe.default)({},k,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[u]||!R.components[u].styleOverrides)return null;const G=R.components[u].styleOverrides,W={};return Object.entries(G).forEach(([re,se])=>{W[re]=vt(se,(0,pe.default)({},k,{theme:R}))}),m(k,W)}),u&&!y&&j.push(k=>{var R;const G=ht((0,pe.default)({},k,{defaultTheme:n,themeId:t})),W=G==null||(R=G.components)==null||(R=R[u])==null?void 0:R.variants;return vt({variants:W},(0,pe.default)({},k,{theme:G}))}),a||j.push(i);const M=j.length-_.length;if(Array.isArray(x)&&M>0){const k=new Array(M).fill("");C=[...x,...k],C.raw=[...x.raw,...k]}const z=E(C,...j);if(process.env.NODE_ENV!=="production"){let k;u&&(k=`${u}${(0,ll.default)(f||"")}`),k===void 0&&(k=`Styled(${(0,ul.default)(s)})`),z.displayName=k}return s.muiName&&(z.muiName=s.muiName),z};return E.withConfig&&(T.withConfig=E.withConfig),T}}function wl(e,t){return p._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ee={};const _l=p.getAugmentedNamespace(ms),El=p.getAugmentedNamespace(Ks);var To=vn;Object.defineProperty(ee,"__esModule",{value:!0});ee.alpha=jo;ee.blend=Rl;ee.colorChannel=void 0;var Cl=ee.darken=On;ee.decomposeColor=ge;ee.emphasize=Oo;var br=ee.getContrastRatio=Ol;ee.getLuminance=Ct;ee.hexToRgb=Io;ee.hslToRgb=Mo;var Tl=ee.lighten=Pn;ee.private_safeAlpha=Pl;ee.private_safeColorChannel=void 0;ee.private_safeDarken=Al;ee.private_safeEmphasize=$l;ee.private_safeLighten=Nl;ee.recomposeColor=Ye;ee.rgbToHex=jl;var vr=To(_l),Il=To(El);function jn(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,Il.default)(e,t,n)}function Io(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function kl(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ge(e){if(e.type)return e;if(e.charAt(0)==="#")return ge(Io(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
86
+ `)),()=>{})}function vo(e){return st(e,"spacing",8,"spacing")}function at(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function xc(e,t){return n=>e.reduce((r,o)=>(r[o]=at(t,n),r),{})}function bc(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=gc(n),i=xc(o,r),s=e[n];return Ce(e,s,i)}function So(e,t){const n=vo(e.theme);return Object.keys(e).map(r=>bc(e,t,r,n)).reduce(Je,{})}function Z(e){return So(e,$t)}Z.propTypes=process.env.NODE_ENV!=="production"?$t.reduce((e,t)=>(e[t]=je,e),{}):{};Z.filterProps=$t;function J(e){return So(e,Rt)}J.propTypes=process.env.NODE_ENV!=="production"?Rt.reduce((e,t)=>(e[t]=je,e),{}):{};J.filterProps=Rt;process.env.NODE_ENV!=="production"&&yc.reduce((e,t)=>(e[t]=je,e),{});function vc(e=8){if(e.mui)return e;const t=vo({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Lt(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Je(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function me(e){return typeof e!="number"?e:`${e}px solid`}function ye(e,t){return Q({prop:e,themeKey:"borders",transform:t})}const Sc=ye("border",me),wc=ye("borderTop",me),_c=ye("borderRight",me),Ec=ye("borderBottom",me),Cc=ye("borderLeft",me),Tc=ye("borderColor"),Ic=ye("borderTopColor"),kc=ye("borderRightColor"),Mc=ye("borderBottomColor"),jc=ye("borderLeftColor"),Oc=ye("outline",me),Pc=ye("outlineColor"),zt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=st(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:at(t,r)});return Ce(e,e.borderRadius,n)}return null};zt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:je}:{};zt.filterProps=["borderRadius"];Lt(Sc,wc,_c,Ec,Cc,Tc,Ic,kc,Mc,jc,zt,Oc,Pc);const Ft=e=>{if(e.gap!==void 0&&e.gap!==null){const t=st(e.theme,"spacing",8,"gap"),n=r=>({gap:at(t,r)});return Ce(e,e.gap,n)}return null};Ft.propTypes=process.env.NODE_ENV!=="production"?{gap:je}:{};Ft.filterProps=["gap"];const Dt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=st(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:at(t,r)});return Ce(e,e.columnGap,n)}return null};Dt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:je}:{};Dt.filterProps=["columnGap"];const Bt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=st(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:at(t,r)});return Ce(e,e.rowGap,n)}return null};Bt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:je}:{};Bt.filterProps=["rowGap"];const Ac=Q({prop:"gridColumn"}),Nc=Q({prop:"gridRow"}),$c=Q({prop:"gridAutoFlow"}),Rc=Q({prop:"gridAutoColumns"}),Lc=Q({prop:"gridAutoRows"}),zc=Q({prop:"gridTemplateColumns"}),Fc=Q({prop:"gridTemplateRows"}),Dc=Q({prop:"gridTemplateAreas"}),Bc=Q({prop:"gridArea"});Lt(Ft,Dt,Bt,Ac,Nc,$c,Rc,Lc,zc,Fc,Dc,Bc);function We(e,t){return t==="grey"?t:e}const Hc=Q({prop:"color",themeKey:"palette",transform:We}),Wc=Q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:We}),Uc=Q({prop:"backgroundColor",themeKey:"palette",transform:We});Lt(Hc,Wc,Uc);function de(e){return e<=1&&e!==0?`${e*100}%`:e}const Vc=Q({prop:"width",transform:de}),Mn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||kn[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:de(n)}};return Ce(e,e.maxWidth,t)}return null};Mn.filterProps=["maxWidth"];const Gc=Q({prop:"minWidth",transform:de}),Kc=Q({prop:"height",transform:de}),Yc=Q({prop:"maxHeight",transform:de}),qc=Q({prop:"minHeight",transform:de});Q({prop:"size",cssProperty:"width",transform:de});Q({prop:"size",cssProperty:"height",transform:de});const Xc=Q({prop:"boxSizing"});Lt(Vc,Mn,Gc,Kc,Yc,qc,Xc);const ct={border:{themeKey:"borders",transform:me},borderTop:{themeKey:"borders",transform:me},borderRight:{themeKey:"borders",transform:me},borderBottom:{themeKey:"borders",transform:me},borderLeft:{themeKey:"borders",transform:me},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:me},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zt},color:{themeKey:"palette",transform:We},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:We},backgroundColor:{themeKey:"palette",transform:We},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ft},rowGap:{style:Bt},columnGap:{style:Dt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:de},maxWidth:{style:Mn},minWidth:{transform:de},height:{transform:de},maxHeight:{transform:de},minHeight:{transform:de},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zc(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Jc(e,t){return typeof e=="function"?e(t):e}function wo(){function e(n,r,o,i){const s={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:f,transform:d,style:h}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=Nt(o,f)||{};return h?h(s):Ce(s,r,y=>{let a=Et(m,d,y);return y===a&&typeof y=="string"&&(a=Et(m,d,`${n}${y==="default"?"":ke(y)}`,y)),u===!1?a:{[u]:a}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:ct;function c(u){let f=u;if(typeof u=="function")f=u(i);else if(typeof u!="object")return u;if(!f)return null;const d=dc(i.breakpoints),h=Object.keys(d);let m=d;return Object.keys(f).forEach(v=>{const y=Jc(f[v],i);if(y!=null)if(typeof y=="object")if(s[v])m=Je(m,e(v,y,i,s));else{const a=Ce({theme:i},y,g=>({[v]:g}));Zc(a,y)?m[v]=t({sx:y,theme:i}):m=Je(m,a)}else m=Je(m,e(v,y,i,s))}),fc(h,m)}return Array.isArray(o)?o.map(c):c(o)}return t}const Ht=wo();Ht.filterProps=["sx"];function _o(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Qc=["breakpoints","palette","spacing","shape"];function Eo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=p._objectWithoutPropertiesLoose(e,Qc),c=bo(n),u=vc(o);let f=we({breakpoints:c,direction:"ltr",components:{},palette:p._extends({mode:"light"},r),spacing:u,shape:p._extends({},uc,i)},s);return f.applyStyles=_o,f=t.reduce((d,h)=>we(d,h),f),f.unstable_sxConfig=p._extends({},ct,s==null?void 0:s.unstable_sxConfig),f.unstable_sx=function(h){return Ht({sx:h,theme:this})},f}const el=Object.freeze(Object.defineProperty({__proto__:null,default:Eo,private_createBreakpoints:bo,unstable_applyStyles:_o},Symbol.toStringTag,{value:"Module"})),tl=p.getAugmentedNamespace(el),nl=["sx"],rl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ct;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function ol(e){const{sx:t}=e,n=p._objectWithoutPropertiesLoose(e,nl),{systemProps:r,otherProps:o}=rl(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const c=t(...s);return Ie(c)?p._extends({},r,c):r}:i=p._extends({},r,t),p._extends({},o,{sx:i})}const il=Object.freeze(Object.defineProperty({__proto__:null,default:Ht,extendSxProp:ol,unstable_createStyleFunctionSx:wo,unstable_defaultSxConfig:ct},Symbol.toStringTag,{value:"Module"})),sl=p.getAugmentedNamespace(il);var Ke=vn;Object.defineProperty(ot,"__esModule",{value:!0});var al=ot.default=Sl;ot.shouldForwardProp=bt;ot.systemDefaultTheme=void 0;var pe=Ke(Js),mn=Ke(Qs),yr=gl(oc),cl=ic,ll=Ke(sc),ul=Ke(ac),dl=Ke(tl),fl=Ke(sl);const hl=["ownerState"],pl=["variants"],ml=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Co(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Co=function(r){return r?n:t})(e)}function gl(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Co(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function yl(e){return Object.keys(e).length===0}function xl(e){return typeof e=="string"&&e.charCodeAt(0)>96}function bt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bl=ot.systemDefaultTheme=(0,dl.default)(),xr=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ht({defaultTheme:e,theme:t,themeId:n}){return yl(t)?e:t[n]||t}function vl(e){return e?(t,n)=>n[e]:null}function vt(e,t){let{ownerState:n}=t,r=(0,mn.default)(t,hl);const o=typeof e=="function"?e((0,pe.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>vt(i,(0,pe.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let c=(0,mn.default)(o,pl);return i.forEach(u=>{let f=!0;typeof u.props=="function"?f=u.props((0,pe.default)({ownerState:n},r,n)):Object.keys(u.props).forEach(d=>{(n==null?void 0:n[d])!==u.props[d]&&r[d]!==u.props[d]&&(f=!1)}),f&&(Array.isArray(c)||(c=[c]),c.push(typeof u.style=="function"?u.style((0,pe.default)({ownerState:n},r,n)):u.style))}),c}return o}function Sl(e={}){const{themeId:t,defaultTheme:n=bl,rootShouldForwardProp:r=bt,slotShouldForwardProp:o=bt}=e,i=s=>(0,fl.default)((0,pe.default)({},s,{theme:ht((0,pe.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,c={})=>{(0,yr.internal_processStyles)(s,x=>x.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:u,slot:f,skipVariantsResolver:d,skipSx:h,overridesResolver:m=vl(xr(f))}=c,v=(0,mn.default)(c,ml),y=d!==void 0?d:f&&f!=="Root"&&f!=="root"||!1,a=h||!1;let g;process.env.NODE_ENV!=="production"&&u&&(g=`${u}-${xr(f||"Root")}`);let b=bt;f==="Root"||f==="root"?b=r:f?b=o:xl(s)&&(b=void 0);const E=(0,yr.default)(s,(0,pe.default)({shouldForwardProp:b,label:g},v)),_=x=>typeof x=="function"&&x.__emotion_real!==x||(0,cl.isPlainObject)(x)?w=>vt(x,(0,pe.default)({},w,{theme:ht({theme:w.theme,defaultTheme:n,themeId:t})})):x,T=(x,...w)=>{let C=_(x);const j=w?w.map(_):[];u&&m&&j.push(k=>{const R=ht((0,pe.default)({},k,{defaultTheme:n,themeId:t}));if(!R.components||!R.components[u]||!R.components[u].styleOverrides)return null;const G=R.components[u].styleOverrides,W={};return Object.entries(G).forEach(([re,se])=>{W[re]=vt(se,(0,pe.default)({},k,{theme:R}))}),m(k,W)}),u&&!y&&j.push(k=>{var R;const G=ht((0,pe.default)({},k,{defaultTheme:n,themeId:t})),W=G==null||(R=G.components)==null||(R=R[u])==null?void 0:R.variants;return vt({variants:W},(0,pe.default)({},k,{theme:G}))}),a||j.push(i);const M=j.length-w.length;if(Array.isArray(x)&&M>0){const k=new Array(M).fill("");C=[...x,...k],C.raw=[...x.raw,...k]}const z=E(C,...j);if(process.env.NODE_ENV!=="production"){let k;u&&(k=`${u}${(0,ll.default)(f||"")}`),k===void 0&&(k=`Styled(${(0,ul.default)(s)})`),z.displayName=k}return s.muiName&&(z.muiName=s.muiName),z};return E.withConfig&&(T.withConfig=E.withConfig),T}}function wl(e,t){return p._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ee={};const _l=p.getAugmentedNamespace(ms),El=p.getAugmentedNamespace(Ks);var To=vn;Object.defineProperty(ee,"__esModule",{value:!0});ee.alpha=jo;ee.blend=Rl;ee.colorChannel=void 0;var Cl=ee.darken=On;ee.decomposeColor=ge;ee.emphasize=Oo;var br=ee.getContrastRatio=Ol;ee.getLuminance=Ct;ee.hexToRgb=Io;ee.hslToRgb=Mo;var Tl=ee.lighten=Pn;ee.private_safeAlpha=Pl;ee.private_safeColorChannel=void 0;ee.private_safeDarken=Al;ee.private_safeEmphasize=$l;ee.private_safeLighten=Nl;ee.recomposeColor=Ye;ee.rgbToHex=jl;var vr=To(_l),Il=To(El);function jn(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),(0,Il.default)(e,t,n)}function Io(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function kl(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ge(e){if(e.type)return e;if(e.charAt(0)==="#")return ge(Io(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
87
87
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,vr.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
88
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,vr.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ko=e=>{const t=ge(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};ee.colorChannel=ko;const Ml=(e,t)=>{try{return ko(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ee.private_safeColorChannel=Ml;function Ye(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function jl(e){if(e.indexOf("#")===0)return e;const{values:t}=ge(e);return`#${t.map((n,r)=>kl(r===3?Math.round(255*n):n)).join("")}`}function Mo(e){e=ge(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(f,d=(f+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Ye({type:c,values:u})}function Ct(e){e=ge(e);let t=e.type==="hsl"||e.type==="hsla"?ge(Mo(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ol(e,t){const n=Ct(e),r=Ct(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function jo(e,t){return e=ge(e),t=jn(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ye(e)}function Pl(e,t,n){try{return jo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function On(e,t){if(e=ge(e),t=jn(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ye(e)}function Al(e,t,n){try{return On(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Pn(e,t){if(e=ge(e),t=jn(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ye(e)}function Nl(e,t,n){try{return Pn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oo(e,t=.15){return Ct(e)>.5?On(e,t):Pn(e,t)}function $l(e,t,n){try{return Oo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Rl(e,t,n,r=1){const o=(u,f)=>Math.round((u**(1/r)*(1-n)+f**(1/r)*n)**r),i=ge(e),s=ge(t),c=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Ye({type:"rgb",values:c})}const rt={black:"#000",white:"#fff"},Ll={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Re={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Le={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ze={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ze={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Fe={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},De={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},zl=["mode","contrastThreshold","tonalOffset"],Sr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rt.white,default:rt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Xt={text:{primary:rt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:rt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wr(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tl(e.main,o):t==="dark"&&(e.dark=Cl(e.main,i)))}function Fl(e="light"){return e==="dark"?{main:ze[200],light:ze[50],dark:ze[400]}:{main:ze[700],light:ze[400],dark:ze[800]}}function Dl(e="light"){return e==="dark"?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[500],light:Re[300],dark:Re[700]}}function Bl(e="light"){return e==="dark"?{main:Le[500],light:Le[300],dark:Le[700]}:{main:Le[700],light:Le[400],dark:Le[800]}}function Hl(e="light"){return e==="dark"?{main:Fe[400],light:Fe[300],dark:Fe[700]}:{main:Fe[700],light:Fe[500],dark:Fe[900]}}function Wl(e="light"){return e==="dark"?{main:De[400],light:De[300],dark:De[700]}:{main:De[800],light:De[500],dark:De[900]}}function Ul(e="light"){return e==="dark"?{main:Ze[400],light:Ze[300],dark:Ze[700]}:{main:"#ed6c02",light:Ze[500],dark:Ze[900]}}function Vl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=p._objectWithoutPropertiesLoose(e,zl),i=e.primary||Fl(t),s=e.secondary||Dl(t),c=e.error||Bl(t),u=e.info||Hl(t),f=e.success||Wl(t),d=e.warning||Ul(t);function h(a){const g=br(a,Xt.text.primary)>=n?Xt.text.primary:Sr.text.primary;if(process.env.NODE_ENV!=="production"){const v=br(a,g);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${g} on ${a}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
89
- `))}return g}const m=({color:a,name:g,mainShade:v=500,lightShade:E=300,darkShade:w=700})=>{if(a=p._extends({},a),!a.main&&a[v]&&(a.main=a[v]),!a.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
90
- The color object needs to have a \`main\` property or a \`${v}\` property.`:Qe(11,g?` (${g})`:"",v));if(typeof a.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
88
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,vr.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ko=e=>{const t=ge(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};ee.colorChannel=ko;const Ml=(e,t)=>{try{return ko(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ee.private_safeColorChannel=Ml;function Ye(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function jl(e){if(e.indexOf("#")===0)return e;const{values:t}=ge(e);return`#${t.map((n,r)=>kl(r===3?Math.round(255*n):n)).join("")}`}function Mo(e){e=ge(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(f,d=(f+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),Ye({type:c,values:u})}function Ct(e){e=ge(e);let t=e.type==="hsl"||e.type==="hsla"?ge(Mo(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ol(e,t){const n=Ct(e),r=Ct(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function jo(e,t){return e=ge(e),t=jn(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ye(e)}function Pl(e,t,n){try{return jo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function On(e,t){if(e=ge(e),t=jn(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ye(e)}function Al(e,t,n){try{return On(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Pn(e,t){if(e=ge(e),t=jn(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ye(e)}function Nl(e,t,n){try{return Pn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oo(e,t=.15){return Ct(e)>.5?On(e,t):Pn(e,t)}function $l(e,t,n){try{return Oo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Rl(e,t,n,r=1){const o=(u,f)=>Math.round((u**(1/r)*(1-n)+f**(1/r)*n)**r),i=ge(e),s=ge(t),c=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Ye({type:"rgb",values:c})}const rt={black:"#000",white:"#fff"},Ll={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Re={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Le={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ze={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ze={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Fe={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},De={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},zl=["mode","contrastThreshold","tonalOffset"],Sr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rt.white,default:rt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Xt={text:{primary:rt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:rt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function wr(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tl(e.main,o):t==="dark"&&(e.dark=Cl(e.main,i)))}function Fl(e="light"){return e==="dark"?{main:ze[200],light:ze[50],dark:ze[400]}:{main:ze[700],light:ze[400],dark:ze[800]}}function Dl(e="light"){return e==="dark"?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[500],light:Re[300],dark:Re[700]}}function Bl(e="light"){return e==="dark"?{main:Le[500],light:Le[300],dark:Le[700]}:{main:Le[700],light:Le[400],dark:Le[800]}}function Hl(e="light"){return e==="dark"?{main:Fe[400],light:Fe[300],dark:Fe[700]}:{main:Fe[700],light:Fe[500],dark:Fe[900]}}function Wl(e="light"){return e==="dark"?{main:De[400],light:De[300],dark:De[700]}:{main:De[800],light:De[500],dark:De[900]}}function Ul(e="light"){return e==="dark"?{main:Ze[400],light:Ze[300],dark:Ze[700]}:{main:"#ed6c02",light:Ze[500],dark:Ze[900]}}function Vl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=p._objectWithoutPropertiesLoose(e,zl),i=e.primary||Fl(t),s=e.secondary||Dl(t),c=e.error||Bl(t),u=e.info||Hl(t),f=e.success||Wl(t),d=e.warning||Ul(t);function h(a){const g=br(a,Xt.text.primary)>=n?Xt.text.primary:Sr.text.primary;if(process.env.NODE_ENV!=="production"){const b=br(a,g);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${g} on ${a}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
89
+ `))}return g}const m=({color:a,name:g,mainShade:b=500,lightShade:E=300,darkShade:_=700})=>{if(a=p._extends({},a),!a.main&&a[b]&&(a.main=a[b]),!a.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
90
+ The color object needs to have a \`main\` property or a \`${b}\` property.`:Qe(11,g?` (${g})`:"",b));if(typeof a.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
91
91
  \`color.main\` should be a string, but \`${JSON.stringify(a.main)}\` was provided instead.
92
92
 
93
93
  Did you intend to use one of the following approaches?
@@ -100,7 +100,7 @@ const theme1 = createTheme({ palette: {
100
100
 
101
101
  const theme2 = createTheme({ palette: {
102
102
  primary: { main: green[500] },
103
- } });`:Qe(12,g?` (${g})`:"",JSON.stringify(a.main)));return wr(a,"light",E,r),wr(a,"dark",w,r),a.contrastText||(a.contrastText=h(a.main)),a},b={dark:Xt,light:Sr};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),we(p._extends({common:p._extends({},rt),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:f,name:"success"}),grey:Ll,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},b[t]),o)}const Gl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Kl(e){return Math.round(e*1e5)/1e5}const _r={textTransform:"uppercase"},Er='"Roboto", "Helvetica", "Arial", sans-serif';function Yl(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Er,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:d,pxToRem:h}=n,m=p._objectWithoutPropertiesLoose(n,Gl);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=h||(v=>`${v/f*b}rem`),a=(v,E,w,T,x)=>p._extends({fontFamily:r,fontWeight:v,fontSize:y(E),lineHeight:w},r===Er?{letterSpacing:`${Kl(T/E)}em`}:{},x,d),g={h1:a(i,96,1.167,-1.5),h2:a(i,60,1.2,-.5),h3:a(s,48,1.167,0),h4:a(s,34,1.235,.25),h5:a(s,24,1.334,0),h6:a(c,20,1.6,.15),subtitle1:a(s,16,1.75,.15),subtitle2:a(c,14,1.57,.1),body1:a(s,16,1.5,.15),body2:a(s,14,1.43,.15),button:a(c,14,1.75,.4,_r),caption:a(s,12,1.66,.4),overline:a(s,12,2.66,1,_r),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return we(p._extends({htmlFontSize:f,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},g),m,{clone:!1})}const ql=.2,Xl=.14,Zl=.12;function X(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ql})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Xl})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zl})`].join(",")}const Jl=["none",X(0,2,1,-1,0,1,1,0,0,1,3,0),X(0,3,1,-2,0,2,2,0,0,1,5,0),X(0,3,3,-2,0,3,4,0,0,1,8,0),X(0,2,4,-1,0,4,5,0,0,1,10,0),X(0,3,5,-1,0,5,8,0,0,1,14,0),X(0,3,5,-1,0,6,10,0,0,1,18,0),X(0,4,5,-2,0,7,10,1,0,2,16,1),X(0,5,5,-3,0,8,10,1,0,3,14,2),X(0,5,6,-3,0,9,12,1,0,3,16,2),X(0,6,6,-3,0,10,14,1,0,4,18,3),X(0,6,7,-4,0,11,15,1,0,4,20,3),X(0,7,8,-4,0,12,17,2,0,5,22,4),X(0,7,8,-4,0,13,19,2,0,5,24,4),X(0,7,9,-4,0,14,21,2,0,5,26,4),X(0,8,9,-5,0,15,22,2,0,6,28,5),X(0,8,10,-5,0,16,24,2,0,6,30,5),X(0,8,11,-5,0,17,26,2,0,6,32,5),X(0,9,11,-5,0,18,28,2,0,7,34,6),X(0,9,12,-6,0,19,29,2,0,7,36,6),X(0,10,13,-6,0,20,31,3,0,8,38,7),X(0,10,13,-6,0,21,33,3,0,8,40,7),X(0,10,14,-6,0,22,35,3,0,8,42,7),X(0,11,14,-7,0,23,36,3,0,9,44,8),X(0,11,15,-7,0,24,38,3,0,9,46,8)],Ql=["duration","easing","delay"],e0={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},t0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cr(e){return`${Math.round(e)}ms`}function n0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function r0(e){const t=p._extends({},e0,e.easing),n=p._extends({},t0,e.duration),r=(o=["all"],i={})=>{const{duration:s=n.standard,easing:c=t.easeInOut,delay:u=0}=i,f=p._objectWithoutPropertiesLoose(i,Ql);if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",h=m=>!isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!d(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
104
- `)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:Cr(s)} ${c} ${typeof u=="string"?u:Cr(u)}`).join(",")};return p._extends({getAutoHeightDuration:n0,create:r},e,{easing:t,duration:n})}const o0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},i0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function s0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=p._objectWithoutPropertiesLoose(e,i0);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Qe(18));const c=Vl(r),u=Eo(e);let f=we(u,{mixins:wl(u.breakpoints,n),palette:c,shadows:Jl.slice(),typography:Yl(c,i),transitions:r0(o),zIndex:p._extends({},o0)});if(f=we(f,s),f=t.reduce((d,h)=>we(d,h),f),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(m,b)=>{let y;for(y in m){const a=m[y];if(d.indexOf(y)!==-1&&Object.keys(a).length>0){if(process.env.NODE_ENV!=="production"){const g=bn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:a}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
105
- `))}m[y]={}}}};Object.keys(f.components).forEach(m=>{const b=f.components[m].styleOverrides;b&&m.indexOf("Mui")===0&&h(b,m)})}return f.unstable_sxConfig=p._extends({},ct,s==null?void 0:s.unstable_sxConfig),f.unstable_sx=function(h){return Ht({sx:h,theme:this})},f}const a0=s0(),c0="$$material";function l0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const u0=e=>l0(e)&&e!=="classes",d0=al({themeId:c0,defaultTheme:a0,rootShouldForwardProp:u0});function f0(e){return bn("MuiSvgIcon",e)}Vs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const h0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],p0=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ke(t)}`,`fontSize${ke(n)}`]};return Hs(o,f0,r)},m0=d0("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ke(n.color)}`],t[`fontSize${ke(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,c,u,f,d,h,m,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((f=e.typography)==null||(d=f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}[t.fontSize],color:(h=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Tt=N.forwardRef(function(t,n){const r=Zs({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:c="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,b=p._objectWithoutPropertiesLoose(r,h0),y=N.isValidElement(o)&&o.type==="svg",a=p._extends({},r,{color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:y}),g={};d||(g.viewBox=m);const v=p0(a);return l.jsxs(m0,p._extends({as:c,className:p.clsx(v.root,i),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,b,y&&o.props,{ownerState:a,children:[y?o.props.children:o,h?l.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Tt.propTypes={children:p.PropTypes.node,classes:p.PropTypes.object,className:p.PropTypes.string,color:p.PropTypes.oneOfType([p.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.PropTypes.string]),component:p.PropTypes.elementType,fontSize:p.PropTypes.oneOfType([p.PropTypes.oneOf(["inherit","large","medium","small"]),p.PropTypes.string]),htmlColor:p.PropTypes.string,inheritViewBox:p.PropTypes.bool,shapeRendering:p.PropTypes.string,sx:p.PropTypes.oneOfType([p.PropTypes.arrayOf(p.PropTypes.oneOfType([p.PropTypes.func,p.PropTypes.object,p.PropTypes.bool])),p.PropTypes.func,p.PropTypes.object]),titleAccess:p.PropTypes.string,viewBox:p.PropTypes.string});Tt.muiName="SvgIcon";function Po(e,t){function n(r,o){return l.jsx(Tt,p._extends({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Tt.muiName,N.memo(N.forwardRef(n))}const g0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
106
- `)),Zr.configure(e)}},y0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ke,createChainedFunction:ws,createSvgIcon:Po,debounce:_s,deprecatedPropType:Es,isMuiElement:Cs,ownerDocument:Yr,ownerWindow:Ts,requirePropFactory:Is,setRef:qr,unstable_ClassNameGenerator:g0,unstable_useEnhancedEffect:Xr,unstable_useId:Ms,unsupportedProp:js,useControlled:Os,useEventCallback:Ps,useForkRef:As,useIsFocusVisible:Bs},Symbol.toStringTag,{value:"Module"})),x0=Po(l.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");function gn(e){const{colors:t}=p.useTheme();return l.jsx($.Stack,{sx:{cursor:"pointer"},onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,e.option)},...e.stackProps,children:l.jsx($.Stack,{sx:{p:1,transition:"0.2s",borderRadius:"5px",cursor:"pointer",...p.activeStyles({backgroundColor:t.primary200},e.select),":hover":{backgroundColor:"#eeeeee80",borderColor:"transparent"}},children:e.renderOption(e.option)})})}const It=37,b0=(e,t)=>{const s=document.createElement("p");s.innerText=t,s.style.width=`${e-16-16-4}px`,document.body.appendChild(s);const c=s.offsetHeight;return document.body.removeChild(s),c>21?It+21:It};function v0(e){const[t,n]=S.useState(!1),[r,o]=S.useState(""),[i,s]=S.useState(""),[c,u]=S.useState(!1),{isRequired:f=!1}=e,d=S.useCallback(p._.debounce(_=>{var C;(C=e.handleChangeSearch)==null||C.call(e,_)},300),[e.handleChangeSearch]),h=()=>{n(!t)},m=()=>{n(!1),s(""),d("")};S.useEffect(()=>{o(e.value?e.getOptionLabel(e.value):"")},[e.value]),S.useEffect(()=>{t||o(e.value?e.getOptionLabel(e.value):"")},[t]),S.useEffect(()=>{u(e.searchLoading)},[e.paging.rows,e.searchLoading]);const b=e.paging.rows,{hasNextPage:y}=e,a=y?b.length+1:b.length,g=()=>e.isNextPageLoading?void 0:e.loadNextPage(i),v=_=>!y||_<b.length,E=_=>{o(_.target.value),t&&(s(_.target.value),d(_.target.value),u(!0))},w=S.useRef(null),T=S.useRef(null),x=S.useRef(null);return S.useEffect(()=>{var _,C,j,M;t?((_=T.current)==null||_.classList.add("Mui-focused"),(C=x.current)==null||C.classList.add("Mui-focused")):((j=T.current)==null||j.classList.remove("Mui-focused"),(M=x.current)==null||M.classList.remove("Mui-focused"))},[t]),l.jsx($.ClickAwayListener,{onClickAway:m,mouseEvent:"onMouseDown",touchEvent:"onTouchEnd",children:l.jsx("div",{ref:w,style:{width:e.wrapperWidth??"auto"},children:l.jsxs($.Stack,{sx:{position:"relative"},children:[l.jsx($.TextField,{required:f,label:e.label,value:r,disabled:e.loading||e.disabled||e.readOnly,fullWidth:!0,error:e.error,helperText:e.helperText,onFocus:_=>{e.loading||e.disabled||e.readOnly||(_.preventDefault(),_.stopPropagation(),n(!0))},autoComplete:"off",onChange:E,placeholder:e.placeholder||"All options",sx:{"& input:not(:focus)":{"&::placeholder":{color:e.placeHolderColor||"#C5C5C5",opacity:1}}},InputLabelProps:{ref:T,shrink:!0},InputProps:{readOnly:e.readOnly,ref:x,endAdornment:l.jsx($.IconButton,{size:"small",sx:{padding:"1px"},onClick:_=>{var C;_.preventDefault(),_.stopPropagation(),h(),(C=w.current)==null||C.focus()},disabled:e.loading||e.disabled||e.readOnly,children:e.loading?l.jsx($.CircularProgress,{size:"16px"}):l.jsx(x0,{fontSize:"small",style:{transition:"0.3s"},className:t?"rotate":""})})}}),l.jsx($.Fade,{in:t,timeout:0,unmountOnExit:!1,children:l.jsxs($.Paper,{sx:{position:"absolute",top:"calc(100% + 2px)",zIndex:2,left:0,right:0,p:1},children:[!e.disabledAllOption&&l.jsx($.Stack,{sx:{...p.activeStyles({display:"none"},!!c)},children:l.jsx($.Stack,{children:l.jsx(gn,{option:void 0,select:!e.value,renderOption:()=>l.jsx($.Typography,{children:e.placeholder||"All options"}),onClick:()=>{var _,C;m(),(_=e.onChange)==null||_.call(e,void 0),(C=e.handleChangeSearch)==null||C.call(e,"")}})})}),!c&&l.jsx(p.InfiniteLoader,{isItemLoaded:v,itemCount:a,loadMoreItems:g,threshold:5,children:({onItemsRendered:_,ref:C})=>l.jsx(Or,{ref:C,onItemsRendered:_,height:It*Math.min(e.itemsNumber||6,a),itemCount:a,itemSize:j=>{var M;return b0((M=w.current)==null?void 0:M.offsetWidth,b[j]?e.getOptionLabel(b[j]):"")},width:"100%",className:"styled-scroll",children:({index:j,style:M})=>{var k;const z=b[j];return v(j)?l.jsx(gn,{stackProps:{style:M},option:z,renderOption:R=>{var G;return l.jsxs($.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[l.jsx($.Typography,{children:e.getOptionLabel(R)}),(G=e.renderOptionTooltip)==null?void 0:G.call(e,R)]})},onClick:R=>{var G;m(),(G=e.onChange)==null||G.call(e,R)},select:((k=e.isEqual)==null?void 0:k.call(e,z,e.value))??p._.isEqual(z,e.value)}):l.jsx($.Stack,{style:M,sx:{height:It,pl:1},justifyContent:"center",children:l.jsx($.Typography,{children:"Loading..."})})}})}),l.jsx($.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...p.activeStyles({display:"none"},!c)},children:l.jsx($.Typography,{color:"grayText",children:"Searching..."})}),l.jsx($.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...p.activeStyles({display:"none"},!!(b.length||e.loading||c))},children:l.jsx($.Typography,{color:"grayText",children:"No options"})})]})})]})})})}function S0(e){var d;const{listProps:t}=e,[n,r]=S.useState({initLoading:!e.disabled,searchLoading:!1,hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:((d=e.listProps)==null?void 0:d.pageSize)||20,rows:[],total:0,totalPages:1}}),o=async(h,m)=>{var b,y;if(e.list)r(()=>{var v;const a=((v=h==null?void 0:h.search)==null?void 0:v.content)||"";return{hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:1e5,rows:e.list.options.filter(E=>e.list.searchOption?e.list.searchOption(E,a):p.search(E,a,e.list.searchFields)),total:e.list.options.length,totalPages:1},searchLoading:!1,initLoading:!1}});else{r(a=>({...a,isNextPageLoading:!0}));try{const a={page:1,pageSize:20,filter:{...t==null?void 0:t.filter,...h==null?void 0:h.filter},...p.lodashExports.omit(t,"filter"),...p.lodashExports.omit(h,"filter"),search:{fields:((b=t==null?void 0:t.search)==null?void 0:b.fields)??[],content:((y=h==null?void 0:h.search)==null?void 0:y.content)??""}};m&&(a.filter={},a.search&&(a.search.content=""),a.page=1);const g=await e.getList(a);r(v=>({initLoading:!1,searchLoading:!1,isNextPageLoading:!1,paging:{...g,rows:(h==null?void 0:h.page)===1?g.rows:v.paging.rows.concat(g.rows)},hasNextPage:g.page<g.totalPages}))}catch{}}},i=()=>(r(h=>({...h,initLoading:!0})),o(void 0,!0)),s=h=>(r(m=>({...m,initLoading:!0})),o(h)),c=h=>{o({page:n.paging.page+1,search:{content:h}})},u=h=>{r(m=>({...m,searchLoading:!0})),o({page:1,search:{content:h}})};S.useEffect(()=>{e.disabled||(r(h=>({...h,initLoading:!0})),o({page:1}))},[...e.dependencyList||[]]);const f=()=>{r(h=>({...h,initLoading:!h.initLoading}))};return{...e,loadNextPage:c,handleChangeSearch:u,paging:n.paging,hasNextPage:n.hasNextPage,isNextPageLoading:n.isNextPageLoading,searchLoading:n.searchLoading,loading:e.loading||n.initLoading,getList:s,reset:i,toggleLoading:f}}function w0(e){return l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsx("path",{d:"M12 3.16663H3.99998C2.80336 3.16663 1.83331 4.13668 1.83331 5.33329V12C1.83331 13.1966 2.80336 14.1666 3.99998 14.1666H12C13.1966 14.1666 14.1666 13.1966 14.1666 12V5.33329C14.1666 4.13668 13.1966 3.16663 12 3.16663Z",stroke:"#85858A"}),l.jsx("path",{d:"M4.5 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M2.5 6.16663H13.5",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M11.8333 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M5.5 9.33337C5.77614 9.33337 6 9.10952 6 8.83337C6 8.55723 5.77614 8.33337 5.5 8.33337C5.22386 8.33337 5 8.55723 5 8.83337C5 9.10952 5.22386 9.33337 5.5 9.33337Z",fill:"#85858A"}),l.jsx("path",{d:"M8.16669 9.33337C8.44283 9.33337 8.66669 9.10952 8.66669 8.83337C8.66669 8.55723 8.44283 8.33337 8.16669 8.33337C7.89054 8.33337 7.66669 8.55723 7.66669 8.83337C7.66669 9.10952 7.89054 9.33337 8.16669 9.33337Z",fill:"#85858A"}),l.jsx("path",{d:"M10.8333 9.33337C11.1095 9.33337 11.3333 9.10952 11.3333 8.83337C11.3333 8.55723 11.1095 8.33337 10.8333 8.33337C10.5572 8.33337 10.3333 8.55723 10.3333 8.83337C10.3333 9.10952 10.5572 9.33337 10.8333 9.33337Z",fill:"#85858A"}),l.jsx("path",{d:"M5.5 12C5.77614 12 6 11.7761 6 11.5C6 11.2239 5.77614 11 5.5 11C5.22386 11 5 11.2239 5 11.5C5 11.7761 5.22386 12 5.5 12Z",fill:"#85858A"}),l.jsx("path",{d:"M8.16669 12C8.44283 12 8.66669 11.7761 8.66669 11.5C8.66669 11.2239 8.44283 11 8.16669 11C7.89054 11 7.66669 11.2239 7.66669 11.5C7.66669 11.7761 7.89054 12 8.16669 12Z",fill:"#85858A"}),l.jsx("path",{d:"M10.8333 12C11.1095 12 11.3333 11.7761 11.3333 11.5C11.3333 11.2239 11.1095 11 10.8333 11C10.5572 11 10.3333 11.2239 10.3333 11.5C10.3333 11.7761 10.5572 12 10.8333 12Z",fill:"#85858A"})]})}const _0="Reset date";function E0(e){var c,u;const[t,n]=S.useState(e.value),r=!(t!=null&&t.startDate)||!(t!=null&&t.endDate)?"":ce(t==null?void 0:t.startDate).format("DD/MM/YYYY")+" ~ "+ce(t==null?void 0:t.endDate).format("DD/MM/YYYY");S.useEffect(()=>{n(e.value)},[e.value]);const o=S.useRef(null),i=S.useRef(null),s=S.useRef(null);return console.log("inputRef",o),console.log("labelRef",i),l.jsx(p.DateRangePicker,{initialSettings:{autoApply:!0,ranges:{Today:[ce(),ce()],Yesterday:[ce().subtract(1,"days"),ce().subtract(1,"days")],"Last 7 days":[ce().subtract(6,"days"),ce()],"Last 30 days":[ce().subtract(29,"days"),ce()],"This month":[ce().startOf("month"),ce().endOf("month")],"Last month":[ce().subtract(1,"month").startOf("month"),ce().subtract(1,"month").endOf("month")],"Reset date":[((c=e.dateReset)==null?void 0:c.startDate)??void 0,((u=e.dateReset)==null?void 0:u.endDate)??void 0]},alwaysShowCalendars:!0,startDate:(t==null?void 0:t.startDate)??void 0,endDate:(t==null?void 0:t.endDate)??void 0,opens:"left",maxDate:ce(),...e.initialSettings},onApply:(f,d)=>{var g,v,E;const h=d.chosenLabel===_0,{startDate:m,endDate:b}=d,y=h?((g=e.dateReset)==null?void 0:g.startDate)??void 0:m.toDate(),a=h?((v=e.dateReset)==null?void 0:v.endDate)??void 0:b.toDate();n({startDate:y,endDate:a}),(E=e.onChange)==null||E.call(e,{startDate:y,endDate:a})},children:l.jsx($.TextField,{inputRef:o,label:e.label??"Permit date",placeholder:"Select date range",value:r,InputLabelProps:{ref:i,shrink:!0},InputProps:{readOnly:!0,ref:s,endAdornment:l.jsx(w0,{onClick:()=>{var f;return(f=o.current)==null?void 0:f.focus()},width:24,height:24,color:"gray"})},fullWidth:!0,sx:{"& *":{cursor:"pointer"},display:"flex",justifyContent:"center",minWidth:"250px"}})})}function Ao(e){return l.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"#85858A",strokeWidth:"1.5"})})}function No(e){return l.jsxs("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M9 12L11 14L15 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function C0(e){return l.jsx($.Checkbox,{sx:{"& input:disabled ~ svg":{fill:"#ddd"}},color:"primary",icon:l.jsx(Ao,{fontSize:"small"}),checkedIcon:l.jsx(No,{fontSize:"small"}),style:{padding:0},...e})}const Tr=e=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(e.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",e);const n=p.getMessagingInWindow(p.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));p.getToken(n,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async r=>{if(r){console.log("current token for client: ",r);try{const i=e.baseUrl+"/notification-management/api/v1/notifications/registrations";await p.axiosInstance.post(i,{deviceToken:r})}catch(o){console.log(o)}}else console.log("No registration token available. Request permission to generate one.")}).catch(r=>{console.log("An error occurred while retrieving token. ",r)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},T0=e=>{const t=new BroadcastChannel("my-channel");t.onmessage=n=>{console.log("Broadcast chanel message",n),n&&e(r=>({...r,unread:{...r.unread,total:r.unread.total+1}}))}},I0=e=>new Promise(t=>{const n=p.getMessagingInWindow(p.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));p.onMessage(n,r=>{console.log("payload",r),t(r)})}),$o=e=>{const[t,n]=S.useState({actorName:"",message:"",context:"",contextUrl:""});console.log(t);const{setNotiData:r}=S.useContext(p.CustomOpenList);function o(){const s=l.jsxs("div",{className:"notification-massage_content",children:[l.jsx("h6",{className:"notification-name",children:t==null?void 0:t.actorName}),l.jsxs("div",{className:"notification-message_service",children:[l.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),l.jsx("span",{children:t==null?void 0:t.context})]})]});return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:Pr}),t!=null&&t.contextUrl?l.jsx("a",{className:"notification-massage_container",href:t.contextUrl,style:{display:"block"},children:s}):l.jsx("div",{className:"notification-massage_container",style:{width:"100%",display:"block"},children:s})]})}S.useEffect(()=>{t&&typeof window<"u"&&"Notification"in window&&Notification.permission==="granted"&&(t.actorName||t.message||t.context||t.contextUrl)&&p.notify(l.jsx(o,{}))},[t]),S.useEffect(()=>{typeof window<"u"&&"Notification"in window?(console.log("notification permission",Notification.permission),Notification.permission==="default"?Notification.requestPermission(function(s){s==="granted"&&Tr(e)}):Notification.permission==="granted"&&Tr(e)):console.log("Web Notifications API is not supported on this device")},[]),S.useEffect(()=>{T0(r)},[]);const i=(s,c)=>{var u;if((s==null?void 0:s.actionKey)!=null){if((u=s==null?void 0:s.data)!=null&&u.brandName)return p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}`,{defaultValue:`${s==null?void 0:s.message}`,brandName:s.data.brandName});switch(s==null?void 0:s.notificationType){case"deleteMultiple":return s!=null&&s.data&&c>1?p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}_multiple`,{defaultValue:`${s==null?void 0:s.actionKey}`,count:c}):p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}_single`,{defaultValue:`${s==null?void 0:s.actionKey}`});default:return p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}`,{defaultValue:`${s==null?void 0:s.message}`})}}return s.message};return I0(e).then(s=>{console.log("aaa",s);const c=s==null?void 0:s.data;let u=[];try{u=JSON.parse(c.data)}catch(d){console.error("Parse msg.data failed:",d),u=[]}const f=Array.isArray(u)?u.length:0;n({actorName:c==null?void 0:c.actorName,message:i(c,f||0),context:c==null?void 0:c.context,contextUrl:c==null?void 0:c.contextUrl}),r(d=>{var h;return{...d,unread:{...d.unread,total:((h=d.unread)==null?void 0:h.total)+1}}})}).catch(s=>console.log("failed: ",s)),l.jsx(l.Fragment,{})},k0=(e,t)=>S.cloneElement(t,{},e),M0=({children:e,providers:t})=>l.jsx(l.Fragment,{children:t.reduceRight(k0,e)}),j0=".pnf-button-primary{font-size:14px;background-color:var(--primary300);color:var(--buttonText);padding:8px 24px;border-radius:4px;border:none;cursor:pointer;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pnf-button-primary:hover{background-color:var(--buttonHover)}.pnf-container{padding-top:16px;padding-bottom:16px;gap:16px;display:flex;flex-direction:column;align-items:center;font-family:inherit}.pnf-content-wrapper{display:flex;flex-direction:column;gap:8px;align-items:center}.pnf-title{text-align:center;font-size:1.25rem;font-weight:500;margin:0}.pnf-description{text-align:center;color:#85858a;font-size:.875rem;font-weight:400;margin:0}",O0=()=>{const e=()=>{window.top&&(window.top.location.href="/app/home")},{colors:t}=p.useTheme();return l.jsx(p.StyleWrapper,{styles:[j0],children:l.jsxs("div",{className:"pnf-container",children:[l.jsx("img",{width:120,height:120,src:"https://ukpcsaprod.blob.core.windows.net/lib/images/page-not-found.png",alt:"Page not found"}),l.jsxs("div",{className:"pnf-content-wrapper",children:[l.jsx("h4",{className:"pnf-title",children:"Page Not Found"}),l.jsxs("p",{className:"pnf-description",children:["We’re sorry. The page you requested could not be found. ",l.jsx("br",{}),"Please go back to the home page"]}),l.jsx("button",{className:"pnf-button-primary",style:{backgroundColor:`${t.primary300}`},onClick:e,children:"Go to homepage"})]})]})})};var An={},Zt={};const P0=p.getAugmentedNamespace(y0);var Ir;function A0(){return Ir||(Ir=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=P0}(Zt)),Zt}var N0=vn;Object.defineProperty(An,"__esModule",{value:!0});var Ro=An.default=void 0,$0=N0(A0()),R0=l;Ro=An.default=(0,$0.default)((0,R0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function L0({index:e,href:t,title:n,ssr:r}){return r?l.jsx("a",{style:{color:p.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},href:t,children:n},e):l.jsx(St.Link,{style:{color:p.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},to:t,children:n},e)}function z0(e){return console.log("BaseBreadcrumbs",e),e.isLoading?l.jsx(Nr,{width:300}):l.jsx(l.Fragment,{children:l.jsx($.Breadcrumbs,{sx:{fontSize:"12px",fontFamily:"inherit"},separator:l.jsx(Ro,{sx:{color:p.color.linkPrimary,fontSize:"inherit"}}),"aria-label":"breadcrumb",color:p.color.linkPrimary,children:e.data.map((t,n)=>t.onClick?l.jsx($.Typography,{style:{color:p.color.linkPrimary,textDecoration:"none",cursor:"pointer",fontSize:"inherit",fontFamily:"inherit"},onClick:t.onClick,children:t.title||""},n):t.href?l.jsx(L0,{index:n,href:t.href,title:t.title,ssr:e.ssr}):l.jsx($.Typography,{style:{color:t.highlight?p.color.linkPrimary:p.color.textPrimary,textDecoration:"none",fontSize:"inherit",fontFamily:"inherit"},children:t.title},n))})})}function F0({children:e,accessKeys:t,requireAll:n}){const{permissions:r}=p.useAuth();return n?t.every(o=>r==null?void 0:r.includes(o))?e:null:t.some(o=>r==null?void 0:r.includes(o))?e:null}exports.FavoriteMenu=p.FavoriteMenu;exports.GlobalMenu=p.GlobalMenu;exports.GlobalMenuLanguageDropdown=p.LanguageDropdown;exports.IconComponent=p.IconComponent;exports.UnauthorizedPage=p.UnauthorizedPage;exports.notify=p.notify;exports.pushError=p.pushError;exports.pushSuccess=p.pushSuccess;exports.pushWarning=p.pushWarning;exports.updateFavoriteItems=p.updateFavoriteItems;exports.AutocompleteOption=gn;exports.BaseBreadcrumbs=z0;exports.BaseCheckbox=C0;exports.CheckedIcon=No;exports.HomePage=hs;exports.LanguageDropdown=Ur;exports.MultiProvider=M0;exports.NoData=is;exports.NotFoundPage=fs;exports.NotificationBase=$o;exports.PageNotFound=O0;exports.PopUpBase=us;exports.StyledAutocomplete=v0;exports.StyledDateRangePicker=E0;exports.ToastConfig=Qi;exports.ToastConfigNotification=es;exports.TopBar=os;exports.UncheckedIcon=Ao;exports.WrapPermission=F0;exports.usePopUp=ds;exports.useStyledAutocomplete=S0;
103
+ } });`:Qe(12,g?` (${g})`:"",JSON.stringify(a.main)));return wr(a,"light",E,r),wr(a,"dark",_,r),a.contrastText||(a.contrastText=h(a.main)),a},v={dark:Xt,light:Sr};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),we(p._extends({common:p._extends({},rt),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:f,name:"success"}),grey:Ll,contrastThreshold:n,getContrastText:h,augmentColor:m,tonalOffset:r},v[t]),o)}const Gl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Kl(e){return Math.round(e*1e5)/1e5}const _r={textTransform:"uppercase"},Er='"Roboto", "Helvetica", "Arial", sans-serif';function Yl(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Er,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:d,pxToRem:h}=n,m=p._objectWithoutPropertiesLoose(n,Gl);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,y=h||(b=>`${b/f*v}rem`),a=(b,E,_,T,x)=>p._extends({fontFamily:r,fontWeight:b,fontSize:y(E),lineHeight:_},r===Er?{letterSpacing:`${Kl(T/E)}em`}:{},x,d),g={h1:a(i,96,1.167,-1.5),h2:a(i,60,1.2,-.5),h3:a(s,48,1.167,0),h4:a(s,34,1.235,.25),h5:a(s,24,1.334,0),h6:a(c,20,1.6,.15),subtitle1:a(s,16,1.75,.15),subtitle2:a(c,14,1.57,.1),body1:a(s,16,1.5,.15),body2:a(s,14,1.43,.15),button:a(c,14,1.75,.4,_r),caption:a(s,12,1.66,.4),overline:a(s,12,2.66,1,_r),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return we(p._extends({htmlFontSize:f,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},g),m,{clone:!1})}const ql=.2,Xl=.14,Zl=.12;function X(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ql})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Xl})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zl})`].join(",")}const Jl=["none",X(0,2,1,-1,0,1,1,0,0,1,3,0),X(0,3,1,-2,0,2,2,0,0,1,5,0),X(0,3,3,-2,0,3,4,0,0,1,8,0),X(0,2,4,-1,0,4,5,0,0,1,10,0),X(0,3,5,-1,0,5,8,0,0,1,14,0),X(0,3,5,-1,0,6,10,0,0,1,18,0),X(0,4,5,-2,0,7,10,1,0,2,16,1),X(0,5,5,-3,0,8,10,1,0,3,14,2),X(0,5,6,-3,0,9,12,1,0,3,16,2),X(0,6,6,-3,0,10,14,1,0,4,18,3),X(0,6,7,-4,0,11,15,1,0,4,20,3),X(0,7,8,-4,0,12,17,2,0,5,22,4),X(0,7,8,-4,0,13,19,2,0,5,24,4),X(0,7,9,-4,0,14,21,2,0,5,26,4),X(0,8,9,-5,0,15,22,2,0,6,28,5),X(0,8,10,-5,0,16,24,2,0,6,30,5),X(0,8,11,-5,0,17,26,2,0,6,32,5),X(0,9,11,-5,0,18,28,2,0,7,34,6),X(0,9,12,-6,0,19,29,2,0,7,36,6),X(0,10,13,-6,0,20,31,3,0,8,38,7),X(0,10,13,-6,0,21,33,3,0,8,40,7),X(0,10,14,-6,0,22,35,3,0,8,42,7),X(0,11,14,-7,0,23,36,3,0,9,44,8),X(0,11,15,-7,0,24,38,3,0,9,46,8)],Ql=["duration","easing","delay"],e0={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},t0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cr(e){return`${Math.round(e)}ms`}function n0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function r0(e){const t=p._extends({},e0,e.easing),n=p._extends({},t0,e.duration),r=(o=["all"],i={})=>{const{duration:s=n.standard,easing:c=t.easeInOut,delay:u=0}=i,f=p._objectWithoutPropertiesLoose(i,Ql);if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",h=m=>!isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!d(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
104
+ `)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:Cr(s)} ${c} ${typeof u=="string"?u:Cr(u)}`).join(",")};return p._extends({getAutoHeightDuration:n0,create:r},e,{easing:t,duration:n})}const o0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},i0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function s0(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=p._objectWithoutPropertiesLoose(e,i0);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Qe(18));const c=Vl(r),u=Eo(e);let f=we(u,{mixins:wl(u.breakpoints,n),palette:c,shadows:Jl.slice(),typography:Yl(c,i),transitions:r0(o),zIndex:p._extends({},o0)});if(f=we(f,s),f=t.reduce((d,h)=>we(d,h),f),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(m,v)=>{let y;for(y in m){const a=m[y];if(d.indexOf(y)!==-1&&Object.keys(a).length>0){if(process.env.NODE_ENV!=="production"){const g=bn("",y);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:a}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
105
+ `))}m[y]={}}}};Object.keys(f.components).forEach(m=>{const v=f.components[m].styleOverrides;v&&m.indexOf("Mui")===0&&h(v,m)})}return f.unstable_sxConfig=p._extends({},ct,s==null?void 0:s.unstable_sxConfig),f.unstable_sx=function(h){return Ht({sx:h,theme:this})},f}const a0=s0(),c0="$$material";function l0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const u0=e=>l0(e)&&e!=="classes",d0=al({themeId:c0,defaultTheme:a0,rootShouldForwardProp:u0});function f0(e){return bn("MuiSvgIcon",e)}Vs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const h0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],p0=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ke(t)}`,`fontSize${ke(n)}`]};return Hs(o,f0,r)},m0=d0("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ke(n.color)}`],t[`fontSize${ke(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,s,c,u,f,d,h,m,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem",large:((f=e.typography)==null||(d=f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}[t.fontSize],color:(h=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?h:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Tt=N.forwardRef(function(t,n){const r=Zs({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:c="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:h,viewBox:m="0 0 24 24"}=r,v=p._objectWithoutPropertiesLoose(r,h0),y=N.isValidElement(o)&&o.type==="svg",a=p._extends({},r,{color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:y}),g={};d||(g.viewBox=m);const b=p0(a);return l.jsxs(m0,p._extends({as:c,className:p.clsx(b.root,i),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},g,v,y&&o.props,{ownerState:a,children:[y?o.props.children:o,h?l.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Tt.propTypes={children:p.PropTypes.node,classes:p.PropTypes.object,className:p.PropTypes.string,color:p.PropTypes.oneOfType([p.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.PropTypes.string]),component:p.PropTypes.elementType,fontSize:p.PropTypes.oneOfType([p.PropTypes.oneOf(["inherit","large","medium","small"]),p.PropTypes.string]),htmlColor:p.PropTypes.string,inheritViewBox:p.PropTypes.bool,shapeRendering:p.PropTypes.string,sx:p.PropTypes.oneOfType([p.PropTypes.arrayOf(p.PropTypes.oneOfType([p.PropTypes.func,p.PropTypes.object,p.PropTypes.bool])),p.PropTypes.func,p.PropTypes.object]),titleAccess:p.PropTypes.string,viewBox:p.PropTypes.string});Tt.muiName="SvgIcon";function Po(e,t){function n(r,o){return l.jsx(Tt,p._extends({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Tt.muiName,N.memo(N.forwardRef(n))}const g0={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
106
+ `)),Zr.configure(e)}},y0=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ke,createChainedFunction:ws,createSvgIcon:Po,debounce:_s,deprecatedPropType:Es,isMuiElement:Cs,ownerDocument:Yr,ownerWindow:Ts,requirePropFactory:Is,setRef:qr,unstable_ClassNameGenerator:g0,unstable_useEnhancedEffect:Xr,unstable_useId:Ms,unsupportedProp:js,useControlled:Os,useEventCallback:Ps,useForkRef:As,useIsFocusVisible:Bs},Symbol.toStringTag,{value:"Module"})),x0=Po(l.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");function gn(e){const{colors:t}=p.useTheme();return l.jsx($.Stack,{sx:{cursor:"pointer"},onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=e.onClick)==null||r.call(e,e.option)},...e.stackProps,children:l.jsx($.Stack,{sx:{p:1,transition:"0.2s",borderRadius:"5px",cursor:"pointer",...p.activeStyles({backgroundColor:t.primary200},e.select),":hover":{backgroundColor:"#eeeeee80",borderColor:"transparent"}},children:e.renderOption(e.option)})})}const It=37,b0=(e,t)=>{const s=document.createElement("p");s.innerText=t,s.style.width=`${e-16-16-4}px`,document.body.appendChild(s);const c=s.offsetHeight;return document.body.removeChild(s),c>21?It+21:It};function v0(e){const[t,n]=S.useState(!1),[r,o]=S.useState(""),[i,s]=S.useState(""),[c,u]=S.useState(!1),{isRequired:f=!1}=e,d=S.useCallback(p._.debounce(w=>{var C;(C=e.handleChangeSearch)==null||C.call(e,w)},300),[e.handleChangeSearch]),h=()=>{n(!t)},m=()=>{n(!1),s(""),d("")};S.useEffect(()=>{o(e.value?e.getOptionLabel(e.value):"")},[e.value]),S.useEffect(()=>{t||o(e.value?e.getOptionLabel(e.value):"")},[t]),S.useEffect(()=>{u(e.searchLoading)},[e.paging.rows,e.searchLoading]);const v=e.paging.rows,{hasNextPage:y}=e,a=y?v.length+1:v.length,g=()=>e.isNextPageLoading?void 0:e.loadNextPage(i),b=w=>!y||w<v.length,E=w=>{o(w.target.value),t&&(s(w.target.value),d(w.target.value),u(!0))},_=S.useRef(null),T=S.useRef(null),x=S.useRef(null);return S.useEffect(()=>{var w,C,j,M;t?((w=T.current)==null||w.classList.add("Mui-focused"),(C=x.current)==null||C.classList.add("Mui-focused")):((j=T.current)==null||j.classList.remove("Mui-focused"),(M=x.current)==null||M.classList.remove("Mui-focused"))},[t]),l.jsx($.ClickAwayListener,{onClickAway:m,mouseEvent:"onMouseDown",touchEvent:"onTouchEnd",children:l.jsx("div",{ref:_,style:{width:e.wrapperWidth??"auto"},children:l.jsxs($.Stack,{sx:{position:"relative"},children:[l.jsx($.TextField,{required:f,label:e.label,value:r,disabled:e.loading||e.disabled||e.readOnly,fullWidth:!0,error:e.error,helperText:e.helperText,onFocus:w=>{e.loading||e.disabled||e.readOnly||(w.preventDefault(),w.stopPropagation(),n(!0))},autoComplete:"off",onChange:E,placeholder:e.placeholder||"All options",sx:{"& input:not(:focus)":{"&::placeholder":{color:e.placeHolderColor||"#C5C5C5",opacity:1}}},InputLabelProps:{ref:T,shrink:!0},InputProps:{readOnly:e.readOnly,ref:x,endAdornment:l.jsx($.IconButton,{size:"small",sx:{padding:"1px"},onClick:w=>{var C;w.preventDefault(),w.stopPropagation(),h(),(C=_.current)==null||C.focus()},disabled:e.loading||e.disabled||e.readOnly,children:e.loading?l.jsx($.CircularProgress,{size:"16px"}):l.jsx(x0,{fontSize:"small",style:{transition:"0.3s"},className:t?"rotate":""})})}}),l.jsx($.Fade,{in:t,timeout:0,unmountOnExit:!1,children:l.jsxs($.Paper,{sx:{position:"absolute",top:"calc(100% + 2px)",zIndex:2,left:0,right:0,p:1},children:[!e.disabledAllOption&&l.jsx($.Stack,{sx:{...p.activeStyles({display:"none"},!!c)},children:l.jsx($.Stack,{children:l.jsx(gn,{option:void 0,select:!e.value,renderOption:()=>l.jsx($.Typography,{children:e.placeholder||"All options"}),onClick:()=>{var w,C;m(),(w=e.onChange)==null||w.call(e,void 0),(C=e.handleChangeSearch)==null||C.call(e,"")}})})}),!c&&l.jsx(p.InfiniteLoader,{isItemLoaded:b,itemCount:a,loadMoreItems:g,threshold:5,children:({onItemsRendered:w,ref:C})=>l.jsx(Or,{ref:C,onItemsRendered:w,height:It*Math.min(e.itemsNumber||6,a),itemCount:a,itemSize:j=>{var M;return b0((M=_.current)==null?void 0:M.offsetWidth,v[j]?e.getOptionLabel(v[j]):"")},width:"100%",className:"styled-scroll",children:({index:j,style:M})=>{var k;const z=v[j];return b(j)?l.jsx(gn,{stackProps:{style:M},option:z,renderOption:R=>{var G;return l.jsxs($.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[l.jsx($.Typography,{children:e.getOptionLabel(R)}),(G=e.renderOptionTooltip)==null?void 0:G.call(e,R)]})},onClick:R=>{var G;m(),(G=e.onChange)==null||G.call(e,R)},select:((k=e.isEqual)==null?void 0:k.call(e,z,e.value))??p._.isEqual(z,e.value)}):l.jsx($.Stack,{style:M,sx:{height:It,pl:1},justifyContent:"center",children:l.jsx($.Typography,{children:"Loading..."})})}})}),l.jsx($.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...p.activeStyles({display:"none"},!c)},children:l.jsx($.Typography,{color:"grayText",children:"Searching..."})}),l.jsx($.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...p.activeStyles({display:"none"},!!(v.length||e.loading||c))},children:l.jsx($.Typography,{color:"grayText",children:"No options"})})]})})]})})})}function S0(e){var d;const{listProps:t}=e,[n,r]=S.useState({initLoading:!e.disabled,searchLoading:!1,hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:((d=e.listProps)==null?void 0:d.pageSize)||20,rows:[],total:0,totalPages:1}}),o=async(h,m)=>{var v,y;if(e.list)r(()=>{var b;const a=((b=h==null?void 0:h.search)==null?void 0:b.content)||"";return{hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:1e5,rows:e.list.options.filter(E=>e.list.searchOption?e.list.searchOption(E,a):p.search(E,a,e.list.searchFields)),total:e.list.options.length,totalPages:1},searchLoading:!1,initLoading:!1}});else{r(a=>({...a,isNextPageLoading:!0}));try{const a={page:1,pageSize:20,filter:{...t==null?void 0:t.filter,...h==null?void 0:h.filter},...p.lodashExports.omit(t,"filter"),...p.lodashExports.omit(h,"filter"),search:{fields:((v=t==null?void 0:t.search)==null?void 0:v.fields)??[],content:((y=h==null?void 0:h.search)==null?void 0:y.content)??""}};m&&(a.filter={},a.search&&(a.search.content=""),a.page=1);const g=await e.getList(a);r(b=>({initLoading:!1,searchLoading:!1,isNextPageLoading:!1,paging:{...g,rows:(h==null?void 0:h.page)===1?g.rows:b.paging.rows.concat(g.rows)},hasNextPage:g.page<g.totalPages}))}catch{}}},i=()=>(r(h=>({...h,initLoading:!0})),o(void 0,!0)),s=h=>(r(m=>({...m,initLoading:!0})),o(h)),c=h=>{o({page:n.paging.page+1,search:{content:h}})},u=h=>{r(m=>({...m,searchLoading:!0})),o({page:1,search:{content:h}})};S.useEffect(()=>{e.disabled||(r(h=>({...h,initLoading:!0})),o({page:1}))},[...e.dependencyList||[]]);const f=()=>{r(h=>({...h,initLoading:!h.initLoading}))};return{...e,loadNextPage:c,handleChangeSearch:u,paging:n.paging,hasNextPage:n.hasNextPage,isNextPageLoading:n.isNextPageLoading,searchLoading:n.searchLoading,loading:e.loading||n.initLoading,getList:s,reset:i,toggleLoading:f}}function w0(e){return l.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsx("path",{d:"M12 3.16663H3.99998C2.80336 3.16663 1.83331 4.13668 1.83331 5.33329V12C1.83331 13.1966 2.80336 14.1666 3.99998 14.1666H12C13.1966 14.1666 14.1666 13.1966 14.1666 12V5.33329C14.1666 4.13668 13.1966 3.16663 12 3.16663Z",stroke:"#85858A"}),l.jsx("path",{d:"M4.5 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M2.5 6.16663H13.5",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M11.8333 1.83337V4.16671",stroke:"#85858A",strokeLinecap:"round"}),l.jsx("path",{d:"M5.5 9.33337C5.77614 9.33337 6 9.10952 6 8.83337C6 8.55723 5.77614 8.33337 5.5 8.33337C5.22386 8.33337 5 8.55723 5 8.83337C5 9.10952 5.22386 9.33337 5.5 9.33337Z",fill:"#85858A"}),l.jsx("path",{d:"M8.16669 9.33337C8.44283 9.33337 8.66669 9.10952 8.66669 8.83337C8.66669 8.55723 8.44283 8.33337 8.16669 8.33337C7.89054 8.33337 7.66669 8.55723 7.66669 8.83337C7.66669 9.10952 7.89054 9.33337 8.16669 9.33337Z",fill:"#85858A"}),l.jsx("path",{d:"M10.8333 9.33337C11.1095 9.33337 11.3333 9.10952 11.3333 8.83337C11.3333 8.55723 11.1095 8.33337 10.8333 8.33337C10.5572 8.33337 10.3333 8.55723 10.3333 8.83337C10.3333 9.10952 10.5572 9.33337 10.8333 9.33337Z",fill:"#85858A"}),l.jsx("path",{d:"M5.5 12C5.77614 12 6 11.7761 6 11.5C6 11.2239 5.77614 11 5.5 11C5.22386 11 5 11.2239 5 11.5C5 11.7761 5.22386 12 5.5 12Z",fill:"#85858A"}),l.jsx("path",{d:"M8.16669 12C8.44283 12 8.66669 11.7761 8.66669 11.5C8.66669 11.2239 8.44283 11 8.16669 11C7.89054 11 7.66669 11.2239 7.66669 11.5C7.66669 11.7761 7.89054 12 8.16669 12Z",fill:"#85858A"}),l.jsx("path",{d:"M10.8333 12C11.1095 12 11.3333 11.7761 11.3333 11.5C11.3333 11.2239 11.1095 11 10.8333 11C10.5572 11 10.3333 11.2239 10.3333 11.5C10.3333 11.7761 10.5572 12 10.8333 12Z",fill:"#85858A"})]})}const _0="Reset date";function E0(e){var c,u;const[t,n]=S.useState(e.value),r=!(t!=null&&t.startDate)||!(t!=null&&t.endDate)?"":ce(t==null?void 0:t.startDate).format("DD/MM/YYYY")+" ~ "+ce(t==null?void 0:t.endDate).format("DD/MM/YYYY");S.useEffect(()=>{n(e.value)},[e.value]);const o=S.useRef(null),i=S.useRef(null),s=S.useRef(null);return console.log("inputRef",o),console.log("labelRef",i),l.jsx(p.DateRangePicker,{initialSettings:{autoApply:!0,ranges:{Today:[ce(),ce()],Yesterday:[ce().subtract(1,"days"),ce().subtract(1,"days")],"Last 7 days":[ce().subtract(6,"days"),ce()],"Last 30 days":[ce().subtract(29,"days"),ce()],"This month":[ce().startOf("month"),ce().endOf("month")],"Last month":[ce().subtract(1,"month").startOf("month"),ce().subtract(1,"month").endOf("month")],"Reset date":[((c=e.dateReset)==null?void 0:c.startDate)??void 0,((u=e.dateReset)==null?void 0:u.endDate)??void 0]},alwaysShowCalendars:!0,startDate:(t==null?void 0:t.startDate)??void 0,endDate:(t==null?void 0:t.endDate)??void 0,opens:"left",maxDate:ce(),...e.initialSettings},onApply:(f,d)=>{var g,b,E;const h=d.chosenLabel===_0,{startDate:m,endDate:v}=d,y=h?((g=e.dateReset)==null?void 0:g.startDate)??void 0:m.toDate(),a=h?((b=e.dateReset)==null?void 0:b.endDate)??void 0:v.toDate();n({startDate:y,endDate:a}),(E=e.onChange)==null||E.call(e,{startDate:y,endDate:a})},children:l.jsx($.TextField,{inputRef:o,label:e.label??"Permit date",placeholder:"Select date range",value:r,InputLabelProps:{ref:i,shrink:!0},InputProps:{readOnly:!0,ref:s,endAdornment:l.jsx(w0,{onClick:()=>{var f;return(f=o.current)==null?void 0:f.focus()},width:24,height:24,color:"gray"})},fullWidth:!0,sx:{"& *":{cursor:"pointer"},display:"flex",justifyContent:"center",minWidth:"250px"}})})}function Ao(e){return l.jsx("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"#85858A",strokeWidth:"1.5"})})}function No(e){return l.jsxs("svg",{...e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M16 2.75H8C5.10051 2.75 2.75 5.10051 2.75 8V16C2.75 18.8995 5.10051 21.25 8 21.25H16C18.8995 21.25 21.25 18.8995 21.25 16V8C21.25 5.10051 18.8995 2.75 16 2.75Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M9 12L11 14L15 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function C0(e){return l.jsx($.Checkbox,{sx:{"& input:disabled ~ svg":{fill:"#ddd"}},color:"primary",icon:l.jsx(Ao,{fontSize:"small"}),checkedIcon:l.jsx(No,{fontSize:"small"}),style:{padding:0},...e})}const Tr=e=>{"serviceWorker"in navigator&&navigator.serviceWorker.register(e.path).then(function(t){console.log("Registration successful, scope is:",t.scope),console.log("initialize service worker props ",e);const n=p.getMessagingInWindow(p.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));p.getToken(n,{serviceWorkerRegistration:t,vapidKey:e.vapidKey}).then(async r=>{if(r){console.log("current token for client: ",r);try{const i=e.baseUrl+"/notification-management/api/v1/notifications/registrations";await p.axiosInstance.post(i,{deviceToken:r})}catch(o){console.log(o)}}else console.log("No registration token available. Request permission to generate one.")}).catch(r=>{console.log("An error occurred while retrieving token. ",r)})}).catch(function(t){console.log("Service worker registration failed, error:",t)})},T0=e=>{const t=new BroadcastChannel("my-channel");t.onmessage=n=>{console.log("Broadcast chanel message",n),n&&e(r=>({...r,unread:{...r.unread,total:r.unread.total+1}}))}},I0=e=>new Promise(t=>{const n=p.getMessagingInWindow(p.initializeApp({apiKey:e.apiKey,authDomain:e.authDomain,projectId:e.projectId,storageBucket:e.storageBucket,messagingSenderId:e.messagingSenderId,appId:e.appId,measurementId:e.measurementId}));p.onMessage(n,r=>{console.log("payload",r),t(r)})}),$o=e=>{const[t,n]=S.useState({actorName:"",message:"",context:"",contextUrl:""});console.log(t);const{setNotiData:r}=S.useContext(p.CustomOpenList);function o(){const s=l.jsxs("div",{className:"notification-massage_content",children:[l.jsx("h6",{className:"notification-name",children:t==null?void 0:t.actorName}),l.jsxs("div",{className:"notification-message_service",children:[l.jsxs("span",{children:[`${t==null?void 0:t.message} `," "]}),l.jsx("span",{children:t==null?void 0:t.context})]})]});return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:Pr}),t!=null&&t.contextUrl?l.jsx("a",{className:"notification-massage_container",href:t.contextUrl,style:{display:"block"},children:s}):l.jsx("div",{className:"notification-massage_container",style:{width:"100%",display:"block"},children:s})]})}S.useEffect(()=>{t&&typeof window<"u"&&"Notification"in window&&Notification.permission==="granted"&&(t.actorName||t.message||t.context||t.contextUrl)&&p.notify(l.jsx(o,{}))},[t]),S.useEffect(()=>{typeof window<"u"&&"Notification"in window?(console.log("notification permission",Notification.permission),Notification.permission==="default"?Notification.requestPermission(function(s){s==="granted"&&Tr(e)}):Notification.permission==="granted"&&Tr(e)):console.log("Web Notifications API is not supported on this device")},[]),S.useEffect(()=>{T0(r)},[]);const i=(s,c)=>{var u;if((s==null?void 0:s.actionKey)!=null){if((u=s==null?void 0:s.data)!=null&&u.brandName)return p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}`,{defaultValue:`${s==null?void 0:s.message}`,brandName:s.data.brandName});switch(s==null?void 0:s.notificationType){case"deleteMultiple":return s!=null&&s.data&&c>1?p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}_multiple`,{defaultValue:`${s==null?void 0:s.actionKey}`,count:c}):p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}_single`,{defaultValue:`${s==null?void 0:s.actionKey}`});default:return p.translate(`notificationAdmin.notify.actionKey.${s==null?void 0:s.actionKey}`,{defaultValue:`${s==null?void 0:s.message}`})}}return s.message};return I0(e).then(s=>{console.log("aaa",s);const c=s==null?void 0:s.data;let u=[];try{u=JSON.parse(c.data)}catch(d){console.error("Parse msg.data failed:",d),u=[]}const f=Array.isArray(u)?u.length:0;n({actorName:c==null?void 0:c.actorName,message:i(c,f||0),context:c==null?void 0:c.context,contextUrl:c==null?void 0:c.contextUrl}),r(d=>{var h;return{...d,unread:{...d.unread,total:((h=d.unread)==null?void 0:h.total)+1}}})}).catch(s=>console.log("failed: ",s)),l.jsx(l.Fragment,{})},k0=(e,t)=>S.cloneElement(t,{},e),M0=({children:e,providers:t})=>l.jsx(l.Fragment,{children:t.reduceRight(k0,e)}),j0=".pnf-button-primary{font-size:14px;background-color:var(--primary300);color:var(--buttonText);padding:8px 24px;border-radius:4px;border:none;cursor:pointer;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-color .25s cubic-bezier(.4,0,.2,1),color .25s cubic-bezier(.4,0,.2,1)}.pnf-button-primary:hover{background-color:var(--buttonHover)}.pnf-container{padding-top:16px;padding-bottom:16px;gap:16px;display:flex;flex-direction:column;align-items:center;font-family:inherit}.pnf-content-wrapper{display:flex;flex-direction:column;gap:8px;align-items:center}.pnf-title{text-align:center;font-size:1.25rem;font-weight:500;margin:0}.pnf-description{text-align:center;color:#85858a;font-size:.875rem;font-weight:400;margin:0}",O0=()=>{const e=()=>{window.top&&(window.top.location.href="/app/home")},{colors:t}=p.useTheme();return l.jsx(p.StyleWrapper,{styles:[j0],children:l.jsxs("div",{className:"pnf-container",children:[l.jsx("img",{width:120,height:120,src:"https://ukpcsaprod.blob.core.windows.net/lib/images/page-not-found.png",alt:"Page not found"}),l.jsxs("div",{className:"pnf-content-wrapper",children:[l.jsx("h4",{className:"pnf-title",children:"Page Not Found"}),l.jsxs("p",{className:"pnf-description",children:["We’re sorry. The page you requested could not be found. ",l.jsx("br",{}),"Please go back to the home page"]}),l.jsx("button",{className:"pnf-button-primary",style:{backgroundColor:`${t.primary300}`},onClick:e,children:"Go to homepage"})]})]})})};var An={},Zt={};const P0=p.getAugmentedNamespace(y0);var Ir;function A0(){return Ir||(Ir=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=P0}(Zt)),Zt}var N0=vn;Object.defineProperty(An,"__esModule",{value:!0});var Ro=An.default=void 0,$0=N0(A0()),R0=l;Ro=An.default=(0,$0.default)((0,R0.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function L0({index:e,href:t,title:n,ssr:r}){return r?l.jsx("a",{style:{color:p.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},href:t,children:n},e):l.jsx(St.Link,{style:{color:p.color.linkPrimary,textDecoration:"none",fontSize:"inherit"},to:t,children:n},e)}function z0(e){return console.log("BaseBreadcrumbs",e),e.isLoading?l.jsx(Nr,{width:300}):l.jsx(l.Fragment,{children:l.jsx($.Breadcrumbs,{sx:{fontSize:"12px",fontFamily:"inherit"},separator:l.jsx(Ro,{sx:{color:p.color.linkPrimary,fontSize:"inherit"}}),"aria-label":"breadcrumb",color:p.color.linkPrimary,children:e.data.map((t,n)=>t.onClick?l.jsx($.Typography,{style:{color:p.color.linkPrimary,textDecoration:"none",cursor:"pointer",fontSize:"inherit",fontFamily:"inherit"},onClick:t.onClick,children:t.title||""},n):t.href?l.jsx(L0,{index:n,href:t.href,title:t.title,ssr:e.ssr}):l.jsx($.Typography,{style:{color:t.highlight?p.color.linkPrimary:p.color.textPrimary,textDecoration:"none",fontSize:"inherit",fontFamily:"inherit"},children:t.title},n))})})}function F0({children:e,accessKeys:t,requireAll:n}){const{permissions:r}=p.useAuth();return n?t.every(o=>r==null?void 0:r.includes(o))?e:null:t.some(o=>r==null?void 0:r.includes(o))?e:null}exports.FavoriteMenu=p.FavoriteMenu;exports.GlobalMenu=p.GlobalMenu;exports.GlobalMenuLanguageDropdown=p.LanguageDropdown;exports.IconComponent=p.IconComponent;exports.UnauthorizedPage=p.UnauthorizedPage;exports.notify=p.notify;exports.pushError=p.pushError;exports.pushSuccess=p.pushSuccess;exports.pushWarning=p.pushWarning;exports.updateFavoriteItems=p.updateFavoriteItems;exports.AutocompleteOption=gn;exports.BaseBreadcrumbs=z0;exports.BaseCheckbox=C0;exports.CheckedIcon=No;exports.HomePage=hs;exports.LanguageDropdown=Ur;exports.MultiProvider=M0;exports.NoData=is;exports.NotFoundPage=fs;exports.NotificationBase=$o;exports.PageNotFound=O0;exports.PopUpBase=us;exports.StyledAutocomplete=v0;exports.StyledDateRangePicker=E0;exports.ToastConfig=Qi;exports.ToastConfigNotification=es;exports.TopBar=os;exports.UncheckedIcon=Ao;exports.WrapPermission=F0;exports.usePopUp=ds;exports.useStyledAutocomplete=S0;