@attabot/product-app 1.0.13 → 1.0.15

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,39 +1,39 @@
1
- (function($,a){typeof exports=="object"&&typeof module<"u"?module.exports=a(require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react/jsx-runtime","react-dom"],a):($=typeof globalThis<"u"?globalThis:$||self,$.ProductApp=a($.React,$["react/jsx-runtime"],$.ReactDOM))})(this,(function($,a,Kn){"use strict";var Pa=typeof document<"u"?document.currentScript:null;function Ed(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const T=Ed($),xy=Ed(Kn);function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}var $r;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($r||($r={}));const Td="popstate";function Sy(e){e===void 0&&(e={});function t(n,o){let{pathname:s,search:l,hash:c}=n.location;return Ia("",{pathname:s,search:l,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Jn(o)}return Cy(t,r,null,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wy(){return Math.random().toString(36).substr(2,8)}function Od(e,t){return{usr:e.state,key:e.key,idx:t}}function Ia(e,t,r,n){return r===void 0&&(r=null),Xn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xn(t):t,{state:r,key:t&&t.key||n||wy()})}function Jn(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function xn(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Cy(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:s=!1}=n,l=o.history,c=$r.Pop,d=null,p=u();p==null&&(p=0,l.replaceState(Xn({},l.state,{idx:p}),""));function u(){return(l.state||{idx:null}).idx}function h(){c=$r.Pop;let m=u(),x=m==null?null:m-p;p=m,d&&d({action:c,location:f.location,delta:x})}function v(m,x){c=$r.Push;let b=Ia(f.location,m,x);p=u()+1;let w=Od(b,p),S=f.createHref(b);try{l.pushState(w,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}s&&d&&d({action:c,location:f.location,delta:1})}function g(m,x){c=$r.Replace;let b=Ia(f.location,m,x);p=u();let w=Od(b,p),S=f.createHref(b);l.replaceState(w,"",S),s&&d&&d({action:c,location:f.location,delta:0})}function y(m){let x=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof m=="string"?m:Jn(m);return b=b.replace(/ $/,"%20"),ve(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let f={get action(){return c},get location(){return e(o,l)},listen(m){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Td,h),d=m,()=>{o.removeEventListener(Td,h),d=null}},createHref(m){return t(o,m)},createURL:y,encodeLocation(m){let x=y(m);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:v,replace:g,go(m){return l.go(m)}};return f}var kd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kd||(kd={}));function Ey(e,t,r){return r===void 0&&(r="/"),Ty(e,t,r)}function Ty(e,t,r,n){let o=typeof t=="string"?xn(t):t,s=Dr(o.pathname||"/",r);if(s==null)return null;let l=Pd(e);Oy(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let p=zy(s);c=Dy(l[d],p)}return c}function Pd(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(s,l,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(ve(d.relativePath.startsWith(n),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(n.length));let p=mr([n,d.relativePath]),u=r.concat(d);s.children&&s.children.length>0&&(ve(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),Pd(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:My(p,s.index),routesMeta:u})};return e.forEach((s,l)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))o(s,l);else for(let d of Id(s.path))o(s,l,d)}),t}function Id(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return o?[s,""]:[s];let l=Id(n.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),o&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function Oy(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:$y(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const ky=/^:[\w-]+$/,Py=3,Iy=2,Ny=1,_y=10,Ay=-2,Nd=e=>e==="*";function My(e,t){let r=e.split("/"),n=r.length;return r.some(Nd)&&(n+=Ay),t&&(n+=Iy),r.filter(o=>!Nd(o)).reduce((o,s)=>o+(ky.test(s)?Py:s===""?Ny:_y),n)}function $y(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Dy(e,t,r){let{routesMeta:n}=e,o={},s="/",l=[];for(let c=0;c<n.length;++c){let d=n[c],p=c===n.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=Na({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),v=d.route;if(!h)return null;Object.assign(o,h.params),l.push({params:o,pathname:mr([s,h.pathname]),pathnameBase:Vy(mr([s,h.pathnameBase])),route:v}),h.pathnameBase!=="/"&&(s=mr([s,h.pathnameBase]))}return l}function Na(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Fy(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let s=o[0],l=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:n.reduce((p,u,h)=>{let{paramName:v,isOptional:g}=u;if(v==="*"){let f=c[h]||"";l=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const y=c[h];return g&&!y?p[v]=void 0:p[v]=(y||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:l,pattern:e}}function Fy(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(n.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function zy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Dr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,By=e=>jy.test(e);function Ly(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?xn(e):e,s;if(r)if(By(r))s=r;else{if(r.includes("//")){let l=r;r=r.replace(/\/\/+/g,"/"),Dt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+r))}r.startsWith("/")?s=_d(r.substring(1),"/"):s=_d(r,t)}else s=t;return{pathname:s,search:Uy(n),hash:Hy(o)}}function _d(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function _a(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Wy(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Ad(e,t){let r=Wy(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function Md(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=xn(e):(o=Xn({},e),ve(!o.pathname||!o.pathname.includes("?"),_a("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),_a("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),_a("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,c;if(l==null)c=r;else{let h=t.length-1;if(!n&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),h-=1;o.pathname=v.join("/")}c=h>=0?t[h]:"/"}let d=Ly(o,c),p=l&&l!=="/"&&l.endsWith("/"),u=(s||l===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const mr=e=>e.join("/").replace(/\/\/+/g,"/"),Vy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Uy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ry(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $d=["post","put","patch","delete"];new Set($d);const qy=["get",...$d];new Set(qy);function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qn.apply(this,arguments)}const Zn=T.createContext(null);process.env.NODE_ENV!=="production"&&(Zn.displayName="DataRouter");const Aa=T.createContext(null);process.env.NODE_ENV!=="production"&&(Aa.displayName="DataRouterState");const Yy=T.createContext(null);process.env.NODE_ENV!=="production"&&(Yy.displayName="Await");const qt=T.createContext(null);process.env.NODE_ENV!=="production"&&(qt.displayName="Navigation");const eo=T.createContext(null);process.env.NODE_ENV!=="production"&&(eo.displayName="Location");const br=T.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(br.displayName="Route");const Ma=T.createContext(null);process.env.NODE_ENV!=="production"&&(Ma.displayName="RouteError");function Gy(e,t){let{relative:r}=t===void 0?{}:t;to()||(process.env.NODE_ENV!=="production"?ve(!1,"useHref() may be used only in the context of a <Router> component."):ve(!1));let{basename:n,navigator:o}=T.useContext(qt),{hash:s,pathname:l,search:c}=ro(e,{relative:r}),d=l;return n!=="/"&&(d=l==="/"?n:mr([n,l])),o.createHref({pathname:d,search:c,hash:s})}function to(){return T.useContext(eo)!=null}function yt(){return to()||(process.env.NODE_ENV!=="production"?ve(!1,"useLocation() may be used only in the context of a <Router> component."):ve(!1)),T.useContext(eo).location}const Dd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fd(e){T.useContext(qt).static||T.useLayoutEffect(e)}function et(){let{isDataRoute:e}=T.useContext(br);return e?lm():Ky()}function Ky(){to()||(process.env.NODE_ENV!=="production"?ve(!1,"useNavigate() may be used only in the context of a <Router> component."):ve(!1));let e=T.useContext(Zn),{basename:t,future:r,navigator:n}=T.useContext(qt),{matches:o}=T.useContext(br),{pathname:s}=yt(),l=JSON.stringify(Ad(o,r.v7_relativeSplatPath)),c=T.useRef(!1);return Fd(()=>{c.current=!0}),T.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&Dt(c.current,Dd),!c.current)return;if(typeof p=="number"){n.go(p);return}let h=Md(p,JSON.parse(l),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:mr([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,l,s,e])}function ro(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=T.useContext(qt),{matches:o}=T.useContext(br),{pathname:s}=yt(),l=JSON.stringify(Ad(o,n.v7_relativeSplatPath));return T.useMemo(()=>Md(e,JSON.parse(l),s,r==="path"),[e,l,s,r])}function Xy(e,t){return Jy(e,t)}function Jy(e,t,r,n){to()||(process.env.NODE_ENV!=="production"?ve(!1,"useRoutes() may be used only in the context of a <Router> component."):ve(!1));let{navigator:o}=T.useContext(qt),{matches:s}=T.useContext(br),l=s[s.length-1],c=l?l.params:{},d=l?l.pathname:"/",p=l?l.pathnameBase:"/",u=l&&l.route;if(process.env.NODE_ENV!=="production"){let b=u&&u.path||"";Bd(d,!u||b.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+b+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
1
+ (function(R,d){typeof exports=="object"&&typeof module<"u"?module.exports=d(require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react/jsx-runtime","react-dom"],d):(R=typeof globalThis<"u"?globalThis:R||self,R.ProductApp=d(R.React,R["react/jsx-runtime"],R.ReactDOM))})(this,(function(R,d,Lr){"use strict";var da=typeof document<"u"?document.currentScript:null;function tu(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 C=tu(R),Zg=tu(Lr);function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(this,arguments)}var In;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(In||(In={}));const nu="popstate";function ey(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return pa("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:zr(o)}return ny(t,n,null,e)}function Se(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function At(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ty(){return Math.random().toString(36).substr(2,8)}function ru(e,t){return{usr:e.state,key:e.key,idx:t}}function pa(e,t,n,r){return n===void 0&&(n=null),Br({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ur(t):t,{state:n,key:t&&t.key||r||ty()})}function zr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ur(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ny(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=In.Pop,c=null,p=u();p==null&&(p=0,a.replaceState(Br({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=In.Pop;let m=u(),v=m==null?null:m-p;p=m,c&&c({action:l,location:f.location,delta:v})}function b(m,v){l=In.Push;let w=pa(f.location,m,v);p=u()+1;let S=ru(w,p),x=f.createHref(w);try{a.pushState(S,"",x)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(x)}i&&c&&c({action:l,location:f.location,delta:1})}function y(m,v){l=In.Replace;let w=pa(f.location,m,v);p=u();let S=ru(w,p),x=f.createHref(w);a.replaceState(S,"",x),i&&c&&c({action:l,location:f.location,delta:0})}function g(m){let v=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof m=="string"?m:zr(m);return w=w.replace(/ $/,"%20"),Se(v,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,v)}let f={get action(){return l},get location(){return e(o,a)},listen(m){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(nu,h),c=m,()=>{o.removeEventListener(nu,h),c=null}},createHref(m){return t(o,m)},createURL:g,encodeLocation(m){let v=g(m);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:b,replace:y,go(m){return a.go(m)}};return f}var ou;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ou||(ou={}));function ry(e,t,n){return n===void 0&&(n="/"),oy(e,t,n)}function oy(e,t,n,r){let o=typeof t=="string"?ur(t):t,i=_n(o.pathname||"/",n);if(i==null)return null;let a=su(e);sy(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let p=yy(i);l=hy(a[c],p)}return l}function su(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(Se(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let p=hn([r,c.relativePath]),u=n.concat(c);i.children&&i.children.length>0&&(Se(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),su(i.children,t,u,p)),!(i.path==null&&!i.index)&&t.push({path:p,score:py(p,i.index),routesMeta:u})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let c of iu(i.path))o(i,a,c)}),t}function iu(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=iu(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function sy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const iy=/^:[\w-]+$/,ay=3,ly=2,cy=1,uy=10,dy=-2,au=e=>e==="*";function py(e,t){let n=e.split("/"),r=n.length;return n.some(au)&&(r+=dy),t&&(r+=ly),n.filter(o=>!au(o)).reduce((o,i)=>o+(iy.test(i)?ay:i===""?cy:uy),r)}function fy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function hy(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],p=l===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",h=fa({path:c.relativePath,caseSensitive:c.caseSensitive,end:p},u),b=c.route;if(!h)return null;Object.assign(o,h.params),a.push({params:o,pathname:hn([i,h.pathname]),pathnameBase:Sy(hn([i,h.pathnameBase])),route:b}),h.pathnameBase!=="/"&&(i=hn([i,h.pathnameBase]))}return a}function fa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gy(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((p,u,h)=>{let{paramName:b,isOptional:y}=u;if(b==="*"){let f=l[h]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const g=l[h];return y&&!g?p[b]=void 0:p[b]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:i,pathnameBase:a,pattern:e}}function gy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),At(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function yy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return At(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _n(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const my=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,by=e=>my.test(e);function vy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ur(e):e,i;if(n)if(by(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),At(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=lu(n.substring(1),"/"):i=lu(n,t)}else i=t;return{pathname:i,search:wy(r),hash:Cy(o)}}function lu(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ha(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xy(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cu(e,t){let n=xy(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function uu(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ur(e):(o=Br({},e),Se(!o.pathname||!o.pathname.includes("?"),ha("?","pathname","search",o)),Se(!o.pathname||!o.pathname.includes("#"),ha("#","pathname","hash",o)),Se(!o.search||!o.search.includes("#"),ha("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let b=a.split("/");for(;b[0]==="..";)b.shift(),h-=1;o.pathname=b.join("/")}l=h>=0?t[h]:"/"}let c=vy(o,l),p=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(p||u)&&(c.pathname+="/"),c}const hn=e=>e.join("/").replace(/\/\/+/g,"/"),Sy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Cy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ey(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const du=["post","put","patch","delete"];new Set(du);const Ty=["get",...du];new Set(Ty);function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(this,arguments)}const Vr=C.createContext(null);process.env.NODE_ENV!=="production"&&(Vr.displayName="DataRouter");const ga=C.createContext(null);process.env.NODE_ENV!=="production"&&(ga.displayName="DataRouterState");const Oy=C.createContext(null);process.env.NODE_ENV!=="production"&&(Oy.displayName="Await");const zt=C.createContext(null);process.env.NODE_ENV!=="production"&&(zt.displayName="Navigation");const Ur=C.createContext(null);process.env.NODE_ENV!=="production"&&(Ur.displayName="Location");const gn=C.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(gn.displayName="Route");const ya=C.createContext(null);process.env.NODE_ENV!=="production"&&(ya.displayName="RouteError");function Py(e,t){let{relative:n}=t===void 0?{}:t;qr()||(process.env.NODE_ENV!=="production"?Se(!1,"useHref() may be used only in the context of a <Router> component."):Se(!1));let{basename:r,navigator:o}=C.useContext(zt),{hash:i,pathname:a,search:l}=Hr(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:hn([r,a])),o.createHref({pathname:c,search:l,hash:i})}function qr(){return C.useContext(Ur)!=null}function bt(){return qr()||(process.env.NODE_ENV!=="production"?Se(!1,"useLocation() may be used only in the context of a <Router> component."):Se(!1)),C.useContext(Ur).location}const pu="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fu(e){C.useContext(zt).static||C.useLayoutEffect(e)}function at(){let{isDataRoute:e}=C.useContext(gn);return e?zy():ky()}function ky(){qr()||(process.env.NODE_ENV!=="production"?Se(!1,"useNavigate() may be used only in the context of a <Router> component."):Se(!1));let e=C.useContext(Vr),{basename:t,future:n,navigator:r}=C.useContext(zt),{matches:o}=C.useContext(gn),{pathname:i}=bt(),a=JSON.stringify(cu(o,n.v7_relativeSplatPath)),l=C.useRef(!1);return fu(()=>{l.current=!0}),C.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&At(l.current,pu),!l.current)return;if(typeof p=="number"){r.go(p);return}let h=uu(p,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:hn([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,i,e])}function Hr(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(zt),{matches:o}=C.useContext(gn),{pathname:i}=bt(),a=JSON.stringify(cu(o,r.v7_relativeSplatPath));return C.useMemo(()=>uu(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Ny(e,t){return Iy(e,t)}function Iy(e,t,n,r){qr()||(process.env.NODE_ENV!=="production"?Se(!1,"useRoutes() may be used only in the context of a <Router> component."):Se(!1));let{navigator:o}=C.useContext(zt),{matches:i}=C.useContext(gn),a=i[i.length-1],l=a?a.params:{},c=a?a.pathname:"/",p=a?a.pathnameBase:"/",u=a&&a.route;if(process.env.NODE_ENV!=="production"){let w=u&&u.path||"";yu(c,!u||w.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+c+'" (under <Route path="'+w+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
2
 
3
- `+('Please change the parent <Route path="'+b+'"> to <Route ')+('path="'+(b==="/"?"*":b+"/*")+'">.'))}let h=yt(),v;if(t){var g;let b=typeof t=="string"?xn(t):t;p==="/"||(g=b.pathname)!=null&&g.startsWith(p)||(process.env.NODE_ENV!=="production"?ve(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+b.pathname+'" was given in the `location` prop.')):ve(!1)),v=b}else v=h;let y=v.pathname||"/",f=y;if(p!=="/"){let b=p.replace(/^\//,"").split("/");f="/"+y.replace(/^\//,"").split("/").slice(b.length).join("/")}let m=Ey(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Dt(u||m!=null,'No routes matched location "'+v.pathname+v.search+v.hash+'" '),process.env.NODE_ENV!=="production"&&Dt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+v.pathname+v.search+v.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let x=rm(m&&m.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:mr([p,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?p:mr([p,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,r,n);return t&&x?T.createElement(eo.Provider,{value:{location:Qn({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:$r.Pop}},x):x}function Qy(){let e=am(),t=Ry(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},s={padding:"2px 4px",backgroundColor:n},l=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),l=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:s},"ErrorBoundary")," or"," ",T.createElement("code",{style:s},"errorElement")," prop on your route."))),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),r?T.createElement("pre",{style:o},r):null,l)}const Zy=T.createElement(Qy,null);class em extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?T.createElement(br.Provider,{value:this.props.routeContext},T.createElement(Ma.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tm(e){let{routeContext:t,match:r,children:n}=e,o=T.useContext(Zn);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),T.createElement(br.Provider,{value:t},n)}function rm(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,c=(o=r)==null?void 0:o.errors;if(c!=null){let u=l.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?ve(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):ve(!1)),l=l.slice(0,Math.min(l.length,u+1))}let d=!1,p=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<l.length;u++){let h=l[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:v,errors:g}=r,y=h.route.loader&&v[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||y){d=!0,p>=0?l=l.slice(0,p+1):l=[l[0]];break}}}return l.reduceRight((u,h,v)=>{let g,y=!1,f=null,m=null;r&&(g=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||Zy,d&&(p<0&&v===0?(Bd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,m=null):p===v&&(y=!0,m=h.route.hydrateFallbackElement||null)));let x=t.concat(l.slice(0,v+1)),b=()=>{let w;return g?w=f:y?w=m:h.route.Component?w=T.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=u,T.createElement(tm,{match:h,routeContext:{outlet:u,matches:x,isDataRoute:r!=null},children:w})};return r&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?T.createElement(em,{location:r.location,revalidation:r.revalidation,component:f,error:g,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var zd=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(zd||{}),no=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(no||{});function $a(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function nm(e){let t=T.useContext(Zn);return t||(process.env.NODE_ENV!=="production"?ve(!1,$a(e)):ve(!1)),t}function om(e){let t=T.useContext(Aa);return t||(process.env.NODE_ENV!=="production"?ve(!1,$a(e)):ve(!1)),t}function im(e){let t=T.useContext(br);return t||(process.env.NODE_ENV!=="production"?ve(!1,$a(e)):ve(!1)),t}function Da(e){let t=im(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?ve(!1,e+' can only be used on routes that contain a unique "id"'):ve(!1)),r.route.id}function sm(){return Da(no.UseRouteId)}function am(){var e;let t=T.useContext(Ma),r=om(no.UseRouteError),n=Da(no.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function lm(){let{router:e}=nm(zd.UseNavigateStable),t=Da(no.UseNavigateStable),r=T.useRef(!1);return Fd(()=>{r.current=!0}),T.useCallback(function(o,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Dt(r.current,Dd),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Qn({fromRouteId:t},s)))},[e,t])}const jd={};function Bd(e,t,r){!t&&!jd[e]&&(jd[e]=!0,process.env.NODE_ENV!=="production"&&Dt(!1,r))}const Ld={};function cm(e,t){process.env.NODE_ENV!=="production"&&!Ld[t]&&(Ld[t]=!0,console.warn(t))}const Wd=(e,t,r)=>cm(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function dm(e,t){e?.v7_startTransition===void 0&&Wd("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&Wd("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function nr(e){process.env.NODE_ENV!=="production"?ve(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):ve(!1)}function pm(e){let{basename:t="/",children:r=null,location:n,navigationType:o=$r.Pop,navigator:s,static:l=!1,future:c}=e;to()&&(process.env.NODE_ENV!=="production"?ve(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):ve(!1));let d=t.replace(/^\/*/,"/"),p=T.useMemo(()=>({basename:d,navigator:s,static:l,future:Qn({v7_relativeSplatPath:!1},c)}),[d,c,s,l]);typeof n=="string"&&(n=xn(n));let{pathname:u="/",search:h="",hash:v="",state:g=null,key:y="default"}=n,f=T.useMemo(()=>{let m=Dr(u,d);return m==null?null:{location:{pathname:m,search:h,hash:v,state:g,key:y},navigationType:o}},[d,u,h,v,g,y,o]);return process.env.NODE_ENV!=="production"&&Dt(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+h+v+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:T.createElement(qt.Provider,{value:p},T.createElement(eo.Provider,{children:r,value:f}))}function um(e){let{children:t,location:r}=e;return Xy(Fa(t),r)}new Promise(()=>{});function Fa(e,t){t===void 0&&(t=[]);let r=[];return T.Children.forEach(e,(n,o)=>{if(!T.isValidElement(n))return;let s=[...t,o];if(n.type===T.Fragment){r.push.apply(r,Fa(n.props.children,s));return}n.type!==nr&&(process.env.NODE_ENV!=="production"?ve(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):ve(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?ve(!1,"An index route cannot have child routes."):ve(!1));let l={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Fa(n.props.children,s)),r.push(l)}),r}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(this,arguments)}function za(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Pi="get",Ii="application/x-www-form-urlencoded";function Ni(e){return e!=null&&typeof e.tagName=="string"}function fm(e){return Ni(e)&&e.tagName.toLowerCase()==="button"}function hm(e){return Ni(e)&&e.tagName.toLowerCase()==="form"}function gm(e){return Ni(e)&&e.tagName.toLowerCase()==="input"}function ym(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function mm(e,t){return e.button===0&&(!t||t==="_self")&&!ym(e)}function ja(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function bm(e,t){let r=ja(e);return t&&t.forEach((n,o)=>{r.has(o)||t.getAll(o).forEach(s=>{r.append(o,s)})}),r}let _i=null;function vm(){if(_i===null)try{new FormData(document.createElement("form"),0),_i=!1}catch{_i=!0}return _i}const xm=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ba(e){return e!=null&&!xm.has(e)?(process.env.NODE_ENV!=="production"&&Dt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Ii+'"')),null):e}function Sm(e,t){let r,n,o,s,l;if(hm(e)){let c=e.getAttribute("action");n=c?Dr(c,t):null,r=e.getAttribute("method")||Pi,o=Ba(e.getAttribute("enctype"))||Ii,s=new FormData(e)}else if(fm(e)||gm(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(n=d?Dr(d,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||Pi,o=Ba(e.getAttribute("formenctype"))||Ba(c.getAttribute("enctype"))||Ii,s=new FormData(c,e),!vm()){let{name:p,type:u,value:h}=e;if(u==="image"){let v=p?p+".":"";s.append(v+"x","0"),s.append(v+"y","0")}else p&&s.append(p,h)}}else{if(Ni(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pi,n=null,o=Ii,l=e}return s&&o==="text/plain"&&(l=s,s=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:s,body:l}}const wm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Cm=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Em=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Tm="6";try{window.__reactRouterVersion=Tm}catch{}const Vd=T.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Vd.displayName="ViewTransition");const Om=T.createContext(new Map);process.env.NODE_ENV!=="production"&&(Om.displayName="Fetchers");const Ud=T["startTransition"];function km(e){let{basename:t,children:r,future:n,window:o}=e,s=T.useRef();s.current==null&&(s.current=Sy({window:o,v5Compat:!0}));let l=s.current,[c,d]=T.useState({action:l.action,location:l.location}),{v7_startTransition:p}=n||{},u=T.useCallback(h=>{p&&Ud?Ud(()=>d(h)):d(h)},[d,p]);return T.useLayoutEffect(()=>l.listen(u),[l,u]),T.useEffect(()=>dm(n),[n]),T.createElement(pm,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:l,future:n})}process.env.NODE_ENV;const Pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Im=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oo=T.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:s,replace:l,state:c,target:d,to:p,preventScrollReset:u,viewTransition:h}=t,v=za(t,wm),{basename:g}=T.useContext(qt),y,f=!1;if(typeof p=="string"&&Im.test(p)&&(y=p,Pm))try{let w=new URL(window.location.href),S=p.startsWith("//")?new URL(w.protocol+p):new URL(p),C=Dr(S.pathname,g);S.origin===w.origin&&C!=null?p=C+S.search+S.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Dt(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=Gy(p,{relative:o}),x=Mm(p,{replace:l,state:c,target:d,preventScrollReset:u,relative:o,viewTransition:h});function b(w){n&&n(w),w.defaultPrevented||x(w)}return T.createElement("a",Sn({},v,{href:y||m,onClick:f||s?n:b,ref:r,target:d}))});process.env.NODE_ENV!=="production"&&(oo.displayName="Link");const Nm=T.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:o=!1,className:s="",end:l=!1,style:c,to:d,viewTransition:p,children:u}=t,h=za(t,Cm),v=ro(d,{relative:h.relative}),g=yt(),y=T.useContext(Aa),{navigator:f,basename:m}=T.useContext(qt),x=y!=null&&Lm(v)&&p===!0,b=f.encodeLocation?f.encodeLocation(v).pathname:v.pathname,w=g.pathname,S=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;o||(w=w.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&m&&(S=Dr(S,m)||S);const C=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let O=w===b||!l&&w.startsWith(b)&&w.charAt(C)==="/",I=S!=null&&(S===b||!l&&S.startsWith(b)&&S.charAt(b.length)==="/"),F={isActive:O,isPending:I,isTransitioning:x},D=O?n:void 0,L;typeof s=="function"?L=s(F):L=[s,O?"active":null,I?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let z=typeof c=="function"?c(F):c;return T.createElement(oo,Sn({},h,{"aria-current":D,className:L,ref:r,style:z,to:d,viewTransition:p}),typeof u=="function"?u(F):u)});process.env.NODE_ENV!=="production"&&(Nm.displayName="NavLink");const _m=T.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:s,state:l,method:c=Pi,action:d,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:v}=e,g=za(e,Em),y=jm(),f=Bm(d,{relative:u}),m=c.toLowerCase()==="get"?"get":"post",x=b=>{if(p&&p(b),b.defaultPrevented)return;b.preventDefault();let w=b.nativeEvent.submitter,S=w?.getAttribute("formmethod")||c;y(w||b.currentTarget,{fetcherKey:r,method:S,navigate:n,replace:s,state:l,relative:u,preventScrollReset:h,viewTransition:v})};return T.createElement("form",Sn({ref:t,method:m,action:f,onSubmit:o?p:x},g))});process.env.NODE_ENV!=="production"&&(_m.displayName="Form"),process.env.NODE_ENV;var Ai;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ai||(Ai={}));var Hd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hd||(Hd={}));function Am(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Rd(e){let t=T.useContext(Zn);return t||(process.env.NODE_ENV!=="production"?ve(!1,Am(e)):ve(!1)),t}function Mm(e,t){let{target:r,replace:n,state:o,preventScrollReset:s,relative:l,viewTransition:c}=t===void 0?{}:t,d=et(),p=yt(),u=ro(e,{relative:l});return T.useCallback(h=>{if(mm(h,r)){h.preventDefault();let v=n!==void 0?n:Jn(p)===Jn(u);d(e,{replace:v,state:o,preventScrollReset:s,relative:l,viewTransition:c})}},[p,d,u,n,o,r,e,s,l,c])}function $m(e){process.env.NODE_ENV!=="production"&&Dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=T.useRef(ja(e)),r=T.useRef(!1),n=yt(),o=T.useMemo(()=>bm(n.search,r.current?null:t.current),[n.search]),s=et(),l=T.useCallback((c,d)=>{const p=ja(typeof c=="function"?c(o):c);r.current=!0,s("?"+p,d)},[s,o]);return[o,l]}function Dm(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Fm=0,zm=()=>"__"+String(++Fm)+"__";function jm(){let{router:e}=Rd(Ai.UseSubmit),{basename:t}=T.useContext(qt),r=sm();return T.useCallback(function(n,o){o===void 0&&(o={}),Dm();let{action:s,method:l,encType:c,formData:d,body:p}=Sm(n,t);if(o.navigate===!1){let u=o.fetcherKey||zm();e.fetch(u,r,o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:p,formMethod:o.method||l,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:d,body:p,formMethod:o.method||l,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}function Bm(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=T.useContext(qt),o=T.useContext(br);o||(process.env.NODE_ENV!=="production"?ve(!1,"useFormAction must be used inside a RouteContext"):ve(!1));let[s]=o.matches.slice(-1),l=Sn({},ro(e||".",{relative:r})),c=yt();if(e==null){l.search=c.search;let d=new URLSearchParams(l.search),p=d.getAll("index");if(p.some(h=>h==="")){d.delete("index"),p.filter(v=>v).forEach(v=>d.append("index",v));let h=d.toString();l.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:mr([n,l.pathname])),Jn(l)}function Lm(e,t){t===void 0&&(t={});let r=T.useContext(Vd);r==null&&(process.env.NODE_ENV!=="production"?ve(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):ve(!1));let{basename:n}=Rd(Ai.useViewTransitionState),o=ro(e,{relative:t.relative});if(!r.isTransitioning)return!1;let s=Dr(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=Dr(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Na(o.pathname,l)!=null||Na(o.pathname,s)!=null}function qd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mi={exports:{}},La={};var Yd;function Wm(){if(Yd)return La;Yd=1;var e=$;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return La.useSyncExternalStoreWithSelector=function(d,p,u,h,v){var g=o(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=l(function(){function m(C){if(!x){if(x=!0,b=C,C=h(C),v!==void 0&&y.hasValue){var O=y.value;if(v(O,C))return w=O}return w=C}if(O=w,r(b,C))return O;var I=h(C);return v!==void 0&&v(O,I)?(b=C,O):(b=C,w=I)}var x=!1,b,w,S=u===void 0?null:u;return[function(){return m(p())},S===null?void 0:function(){return m(S())}]},[p,u,h,v]);var f=n(d,g[0],g[1]);return s(function(){y.hasValue=!0,y.value=f},[f]),c(f),f},La}var Wa={};var Gd;function Vm(){return Gd||(Gd=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=$,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,l=t.useMemo,c=t.useDebugValue;Wa.useSyncExternalStoreWithSelector=function(d,p,u,h,v){var g=o(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=l(function(){function m(C){if(!x){if(x=!0,b=C,C=h(C),v!==void 0&&y.hasValue){var O=y.value;if(v(O,C))return w=O}return w=C}if(O=w,r(b,C))return O;var I=h(C);return v!==void 0&&v(O,I)?(b=C,O):(b=C,w=I)}var x=!1,b,w,S=u===void 0?null:u;return[function(){return m(p())},S===null?void 0:function(){return m(S())}]},[p,u,h,v]);var f=n(d,g[0],g[1]);return s(function(){y.hasValue=!0,y.value=f},[f]),c(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Wa}var Kd;function Um(){return Kd||(Kd=1,process.env.NODE_ENV==="production"?Mi.exports=Wm():Mi.exports=Vm()),Mi.exports}var Hm=Um();function Rm(e){e()}function qm(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Rm(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Xd={notify(){},get:()=>[]};function Ym(e,t){let r,n=Xd,o=0,s=!1;function l(f){u();const m=n.subscribe(f);let x=!1;return()=>{x||(x=!0,m(),h())}}function c(){n.notify()}function d(){y.onStateChange&&y.onStateChange()}function p(){return s}function u(){o++,r||(r=e.subscribe(d),n=qm())}function h(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Xd)}function v(){s||(s=!0,u())}function g(){s&&(s=!1,h())}const y={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:p,trySubscribe:v,tryUnsubscribe:g,getListeners:()=>n};return y}var Gm=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Km=Gm(),Xm=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Jm=Xm(),Qm=()=>Km||Jm?T.useLayoutEffect:T.useEffect,Zm=Qm(),eb=Symbol.for("react-redux-context"),tb=typeof globalThis<"u"?globalThis:{};function rb(){if(!T.createContext)return{};const e=tb[eb]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(T.createContext,t)),t}var Fr=rb();function nb(e){const{children:t,context:r,serverState:n,store:o}=e,s=T.useMemo(()=>{const d=Ym(o),p={store:o,subscription:d,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[o,n]),l=T.useMemo(()=>o.getState(),[o]);Zm(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),l!==o.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,l]);const c=r||Fr;return T.createElement(c.Provider,{value:s},t)}var ob=nb;function Va(e=Fr){return function(){const r=T.useContext(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var Jd=Va();function Qd(e=Fr){const t=e===Fr?Jd:Va(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var ib=Qd();function sb(e=Fr){const t=e===Fr?ib:Qd(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Ft=sb(),ab=(e,t)=>e===t;function lb(e=Fr){const t=e===Fr?Jd:Va(e),r=(n,o={})=>{const{equalityFn:s=ab}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!n)throw new Error("You must pass a selector to useSelector");if(typeof n!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const l=t(),{store:c,subscription:d,getServerState:p}=l,u=T.useRef(!0),h=T.useCallback({[n.name](g){const y=n(g);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof o=="function"?{}:o,{identityFunctionCheck:m,stabilityCheck:x}=l,{identityFunctionCheck:b,stabilityCheck:w}={stabilityCheck:x,identityFunctionCheck:m,...f};if(w==="always"||w==="once"&&u.current){const S=n(g);if(!s(y,S)){let C;try{throw new Error}catch(O){({stack:C}=O)}console.warn("Selector "+(n.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
4
- Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:g,selected:y,selected2:S,stack:C})}}if((b==="always"||b==="once"&&u.current)&&y===g){let S;try{throw new Error}catch(C){({stack:S}=C)}console.warn("Selector "+(n.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
5
- Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:S})}u.current&&(u.current=!1)}return y}}[n.name],[n]),v=Hm.useSyncExternalStoreWithSelector(d.addNestedSub,c.getState,p||c.getState,h,s);return T.useDebugValue(v),v};return Object.assign(r,{withTypes:()=>r}),r}var Ae=lb(),io={},Zd;function cb(){if(Zd)return io;Zd=1,io.__esModule=!0,io.PersistGate=void 0;var e=t($);function t(g){if(g&&g.__esModule)return g;var y={};if(g!=null){for(var f in g)if(Object.prototype.hasOwnProperty.call(g,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(g,f):{};m.get||m.set?Object.defineProperty(y,f,m):y[f]=g[f]}}return y.default=g,y}function r(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(f){return typeof f}:r=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(g)}function n(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function o(g,y){for(var f=0;f<y.length;f++){var m=y[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}function s(g,y,f){return y&&o(g.prototype,y),g}function l(g,y){return y&&(r(y)==="object"||typeof y=="function")?y:d(g)}function c(g){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},c(g)}function d(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function p(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(y&&y.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),y&&u(g,y)}function u(g,y){return u=Object.setPrototypeOf||function(m,x){return m.__proto__=x,m},u(g,y)}function h(g,y,f){return y in g?Object.defineProperty(g,y,{value:f,enumerable:!0,configurable:!0,writable:!0}):g[y]=f,g}var v=(function(g){p(y,g);function y(){var f,m;n(this,y);for(var x=arguments.length,b=new Array(x),w=0;w<x;w++)b[w]=arguments[w];return m=l(this,(f=c(y)).call.apply(f,[this].concat(b))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(d(m),"handlePersistorState",function(){var S=m.props.persistor,C=S.getState(),O=C.bootstrapped;O&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return s(y,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),y})(e.PureComponent);return io.PersistGate=v,h(v,"defaultProps",{children:null,loading:null}),io}var db=cb();function it(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var pb=typeof Symbol=="function"&&Symbol.observable||"@@observable",ep=pb,Ua=()=>Math.random().toString(36).substring(7).split("").join("."),ub={INIT:`@@redux/INIT${Ua()}`,REPLACE:`@@redux/REPLACE${Ua()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ua()}`},Jr=ub;function so(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function fb(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(yb(e))return"date";if(gb(e))return"error";const r=hb(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function hb(e){return typeof e.constructor=="function"?e.constructor.name:null}function gb(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function yb(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function zr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=fb(e)),t}function Ha(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?it(2):`Expected the root reducer to be a function. Instead, received: '${zr(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?it(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?it(1):`Expected the enhancer to be a function. Instead, received: '${zr(r)}'`);return r(Ha)(e,t)}let n=e,o=t,s=new Map,l=s,c=0,d=!1;function p(){l===s&&(l=new Map,s.forEach((m,x)=>{l.set(x,m)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?it(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?it(4):`Expected the listener to be a function. Instead, received: '${zr(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?it(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let x=!0;p();const b=c++;return l.set(b,m),function(){if(x){if(d)throw new Error(process.env.NODE_ENV==="production"?it(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");x=!1,p(),l.delete(b),s=null}}}function v(m){if(!so(m))throw new Error(process.env.NODE_ENV==="production"?it(7):`Actions must be plain objects. Instead, the actual type was: '${zr(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?it(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?it(17):`Action "type" property must be a string. Instead, the actual type was: '${zr(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?it(9):"Reducers may not dispatch actions.");try{d=!0,o=n(o,m)}finally{d=!1}return(s=l).forEach(b=>{b()}),m}function g(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?it(10):`Expected the nextReducer to be a function. Instead, received: '${zr(m)}`);n=m,v({type:Jr.REPLACE})}function y(){const m=h;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?it(11):`Expected the observer to be an object. Instead, received: '${zr(x)}'`);function b(){const S=x;S.next&&S.next(u())}return b(),{unsubscribe:m(b)}},[ep](){return this}}}return v({type:Jr.INIT}),{dispatch:v,subscribe:h,getState:u,replaceReducer:g,[ep]:y}}function tp(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function mb(e,t,r,n){const o=Object.keys(t),s=r&&r.type===Jr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!so(e))return`The ${s} has unexpected type of "${zr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const l=Object.keys(e).filter(c=>!t.hasOwnProperty(c)&&!n[c]);if(l.forEach(c=>{n[c]=!0}),!(r&&r.type===Jr.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function bb(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Jr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?it(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Jr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?it(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Jr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function rp(e){const t=Object.keys(e),r={};for(let l=0;l<t.length;l++){const c=t[l];process.env.NODE_ENV!=="production"&&typeof e[c]>"u"&&tp(`No reducer provided for key "${c}"`),typeof e[c]=="function"&&(r[c]=e[c])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let s;try{bb(r)}catch(l){s=l}return function(c={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=mb(c,r,d,o);h&&tp(h)}let p=!1;const u={};for(let h=0;h<n.length;h++){const v=n[h],g=r[v],y=c[v],f=g(y,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?it(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${v}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[v]=f,p=p||f!==y}return p=p||n.length!==Object.keys(c).length,p?u:c}}function $i(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function vb(...e){return t=>(r,n)=>{const o=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?it(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const l={getState:o.getState,dispatch:(d,...p)=>s(d,...p)},c=e.map(d=>d(l));return s=$i(...c)(o.dispatch),{...o,dispatch:s}}}function np(e){return so(e)&&"type"in e&&typeof e.type=="string"}var op=Symbol.for("immer-nothing"),ip=Symbol.for("immer-draftable"),mt=Symbol.for("immer-state"),xb=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function It(e,...t){if(process.env.NODE_ENV!=="production"){const r=xb[e],n=Qr(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Nt=Object,wn=Nt.getPrototypeOf,Di="constructor",Fi="prototype",Ra="configurable",zi="enumerable",ji="writable",ao="value",vr=e=>!!e&&!!e[mt];function Yt(e){return e?ap(e)||Li(e)||!!e[ip]||!!e[Di]?.[ip]||Wi(e)||Vi(e):!1}var Sb=Nt[Fi][Di].toString(),sp=new WeakMap;function ap(e){if(!e||!Ya(e))return!1;const t=wn(e);if(t===null||t===Nt[Fi])return!0;const r=Nt.hasOwnProperty.call(t,Di)&&t[Di];if(r===Object)return!0;if(!Qr(r))return!1;let n=sp.get(r);return n===void 0&&(n=Function.toString.call(r),sp.set(r,n)),n===Sb}function lo(e,t,r=!0){co(e)===0?(r?Reflect.ownKeys(e):Nt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function co(e){const t=e[mt];return t?t.type_:Li(e)?1:Wi(e)?2:Vi(e)?3:0}var lp=(e,t,r=co(e))=>r===2?e.has(t):Nt[Fi].hasOwnProperty.call(e,t),qa=(e,t,r=co(e))=>r===2?e.get(t):e[t],Bi=(e,t,r,n=co(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function wb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Li=Array.isArray,Wi=e=>e instanceof Map,Vi=e=>e instanceof Set,Ya=e=>typeof e=="object",Qr=e=>typeof e=="function",Ga=e=>typeof e=="boolean",xr=e=>e.copy_||e.base_,Ka=e=>e.modified_?e.copy_:e.base_;function Xa(e,t){if(Wi(e))return new Map(e);if(Vi(e))return new Set(e);if(Li(e))return Array[Fi].slice.call(e);const r=ap(e);if(t===!0||t==="class_only"&&!r){const n=Nt.getOwnPropertyDescriptors(e);delete n[mt];let o=Reflect.ownKeys(n);for(let s=0;s<o.length;s++){const l=o[s],c=n[l];c[ji]===!1&&(c[ji]=!0,c[Ra]=!0),(c.get||c.set)&&(n[l]={[Ra]:!0,[ji]:!0,[zi]:c[zi],[ao]:e[l]})}return Nt.create(wn(e),n)}else{const n=wn(e);if(n!==null&&r)return{...e};const o=Nt.create(n);return Nt.assign(o,e)}}function Ja(e,t=!1){return Hi(e)||vr(e)||!Yt(e)||(co(e)>1&&Nt.defineProperties(e,{set:Ui,add:Ui,clear:Ui,delete:Ui}),Nt.freeze(e),t&&lo(e,(r,n)=>{Ja(n,!0)},!1)),e}function Cb(){It(2)}var Ui={[ao]:Cb};function Hi(e){return e===null||!Ya(e)?!0:Nt.isFrozen(e)}var Ri="MapSet",Qa="Patches",cp={};function Cn(e){const t=cp[e];return t||It(0,e),t}var Eb=e=>!!cp[e],po,dp=()=>po,Tb=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Eb(Ri)?Cn(Ri):void 0});function pp(e,t){t&&(e.patchPlugin_=Cn(Qa),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Za(e){el(e),e.drafts_.forEach(Ob),e.drafts_=null}function el(e){e===po&&(po=e.parent_)}var up=e=>po=Tb(po,e);function Ob(e){const t=e[mt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[mt].modified_&&(Za(t),It(4)),Yt(e)&&(e=hp(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[mt].base_,e,t)}else e=hp(t,r);return kb(t,e,!0),Za(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==op?e:void 0}function hp(e,t){if(Hi(t))return t;const r=t[mt];if(!r)return tl(t,e.handledSet_,e);if(!qi(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);mp(r,e)}return r.copy_}function kb(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ja(t,r)}function gp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var qi=(e,t)=>e.scope_===t,Pb=[];function yp(e,t,r,n){const o=xr(e),s=e.type_;if(n!==void 0&&qa(o,n,s)===t){Bi(o,n,r,s);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;lo(o,(d,p)=>{if(vr(p)){const u=c.get(p)||[];u.push(d),c.set(p,u)}})}const l=e.draftLocations_.get(t)??Pb;for(const c of l)Bi(o,c,r,s)}function Ib(e,t,r){e.callbacks_.push(function(o){const s=t;if(!s||!qi(s,o))return;o.mapSetPlugin_?.fixSetContents(s);const l=Ka(s);yp(e,s.draft_??s,l,r),mp(s,o)})}function mp(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}gp(e)}}function Nb(e,t,r){const{scope_:n}=e;if(vr(r)){const o=r[mt];qi(o,n)&&o.callbacks_.push(function(){Yi(e);const l=Ka(o);yp(e,r,l,t)})}else Yt(r)&&e.callbacks_.push(function(){const s=xr(e);qa(s,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&tl(qa(e.copy_,t,e.type_),n.handledSet_,n)})}function tl(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||vr(e)||t.has(e)||!Yt(e)||Hi(e)||(t.add(e),lo(e,(n,o)=>{if(vr(o)){const s=o[mt];if(qi(s,r)){const l=Ka(s);Bi(e,n,l,e.type_),gp(s)}}else Yt(o)&&tl(o,t,r)})),e}function _b(e,t){const r=Li(e),n={type_:r?1:0,scope_:t?t.scope_:dp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,s=rl;r&&(o=[n],s=uo);const{revoke:l,proxy:c}=Proxy.revocable(o,s);return n.draft_=c,n.revoke_=l,[c,n]}var rl={get(e,t){if(t===mt)return e;const r=xr(e);if(!lp(r,t,e.type_))return Ab(e,r,t);const n=r[t];if(e.finalized_||!Yt(n))return n;if(n===nl(e.base_,t)){Yi(e);const o=e.type_===1?+t:t,s=il(e.scope_,n,e,o);return e.copy_[o]=s}return n},has(e,t){return t in xr(e)},ownKeys(e){return Reflect.ownKeys(xr(e))},set(e,t,r){const n=bp(xr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=nl(xr(e),t),s=o?.[mt];if(s&&s.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(wb(r,o)&&(r!==void 0||lp(e.base_,t,e.type_)))return!0;Yi(e),ol(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Nb(e,t,r)),!0},deleteProperty(e,t){return Yi(e),nl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),ol(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=xr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[ji]:!0,[Ra]:e.type_!==1||t!=="length",[zi]:n[zi],[ao]:r[t]}},defineProperty(){It(11)},getPrototypeOf(e){return wn(e.base_)},setPrototypeOf(){It(12)}},uo={};lo(rl,(e,t)=>{uo[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}),uo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&It(13),uo.set.call(this,e,t,void 0)},uo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&It(14),rl.set.call(this,e[0],t,r,e[0])};function nl(e,t){const r=e[mt];return(r?xr(r):e)[t]}function Ab(e,t,r){const n=bp(t,r);return n?ao in n?n[ao]:n.get?.call(e.draft_):void 0}function bp(e,t){if(!(t in e))return;let r=wn(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=wn(r)}}function ol(e){e.modified_||(e.modified_=!0,e.parent_&&ol(e.parent_))}function Yi(e){e.copy_||(e.assigned_=new Map,e.copy_=Xa(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Mb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Qr(t)&&!Qr(r)){const s=r;r=t;const l=this;return function(d=s,...p){return l.produce(d,u=>r.call(this,u,...p))}}Qr(r)||It(6),n!==void 0&&!Qr(n)&&It(7);let o;if(Yt(t)){const s=up(this),l=il(s,t,void 0);let c=!0;try{o=r(l),c=!1}finally{c?Za(s):el(s)}return pp(s,n),fp(o,s)}else if(!t||!Ya(t)){if(o=r(t),o===void 0&&(o=t),o===op&&(o=void 0),this.autoFreeze_&&Ja(o,!0),n){const s=[],l=[];Cn(Qa).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:l}),n(s,l)}return o}else It(1,t)},this.produceWithPatches=(t,r)=>{if(Qr(t))return(l,...c)=>this.produceWithPatches(l,d=>t(d,...c));let n,o;return[this.produce(t,r,(l,c)=>{n=l,o=c}),n,o]},Ga(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ga(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ga(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Yt(e)||It(8),vr(e)&&(e=$b(e));const t=up(this),r=il(t,e,void 0);return r[mt].isManual_=!0,el(t),r}finishDraft(e,t){const r=e&&e[mt];(!r||!r.isManual_)&&It(9);const{scope_:n}=r;return pp(n,t),fp(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=Cn(Qa).applyPatches_;return vr(e)?n(e,t):this.produce(e,o=>n(o,t))}};function il(e,t,r,n){const[o,s]=Wi(t)?Cn(Ri).proxyMap_(t,r):Vi(t)?Cn(Ri).proxySet_(t,r):_b(t,r);return(r?.scope_??dp()).drafts_.push(o),s.callbacks_=r?.callbacks_??[],s.key_=n,r&&n!==void 0?Ib(r,s,n):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),o}function $b(e){return vr(e)||It(10,e),vp(e)}function vp(e){if(!Yt(e)||Hi(e))return e;const t=e[mt];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Xa(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Xa(e,!0);return lo(r,(o,s)=>{Bi(r,o,vp(s))},n),t&&(t.finalized_=!1),r}var Db=new Mb,xp=Db.produce,Fb=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
3
+ `+('Please change the parent <Route path="'+w+'"> to <Route ')+('path="'+(w==="/"?"*":w+"/*")+'">.'))}let h=bt(),b;if(t){var y;let w=typeof t=="string"?ur(t):t;p==="/"||(y=w.pathname)!=null&&y.startsWith(p)||(process.env.NODE_ENV!=="production"?Se(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+w.pathname+'" was given in the `location` prop.')):Se(!1)),b=w}else b=h;let g=b.pathname||"/",f=g;if(p!=="/"){let w=p.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=ry(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&At(u||m!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&At(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+b.pathname+b.search+b.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let v=Dy(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:hn([p,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:hn([p,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&v?C.createElement(Ur.Provider,{value:{location:Wr({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:In.Pop}},v):v}function _y(){let e=By(),t=Ey(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:i},"ErrorBoundary")," or"," ",C.createElement("code",{style:i},"errorElement")," prop on your route."))),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:o},n):null,a)}const Ay=C.createElement(_y,null);class My extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(gn.Provider,{value:this.props.routeContext},C.createElement(ya.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $y(e){let{routeContext:t,match:n,children:r}=e,o=C.useContext(Vr);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(gn.Provider,{value:t},r)}function Dy(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?Se(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):Se(!1)),a=a.slice(0,Math.min(a.length,u+1))}let c=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:b,errors:y}=n,g=h.route.loader&&b[h.route.id]===void 0&&(!y||y[h.route.id]===void 0);if(h.route.lazy||g){c=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,h,b)=>{let y,g=!1,f=null,m=null;n&&(y=l&&h.route.id?l[h.route.id]:void 0,f=h.route.errorElement||Ay,c&&(p<0&&b===0?(yu("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):p===b&&(g=!0,m=h.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,b+1)),w=()=>{let S;return y?S=f:g?S=m:h.route.Component?S=C.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=u,C.createElement($y,{match:h,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||b===0)?C.createElement(My,{location:n.location,revalidation:n.revalidation,component:f,error:y,children:w(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):w()},null)}var hu=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(hu||{}),Yr=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Yr||{});function ma(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Fy(e){let t=C.useContext(Vr);return t||(process.env.NODE_ENV!=="production"?Se(!1,ma(e)):Se(!1)),t}function jy(e){let t=C.useContext(ga);return t||(process.env.NODE_ENV!=="production"?Se(!1,ma(e)):Se(!1)),t}function Ry(e){let t=C.useContext(gn);return t||(process.env.NODE_ENV!=="production"?Se(!1,ma(e)):Se(!1)),t}function ba(e){let t=Ry(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Se(!1,e+' can only be used on routes that contain a unique "id"'):Se(!1)),n.route.id}function Ly(){return ba(Yr.UseRouteId)}function By(){var e;let t=C.useContext(ya),n=jy(Yr.UseRouteError),r=ba(Yr.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function zy(){let{router:e}=Fy(hu.UseNavigateStable),t=ba(Yr.UseNavigateStable),n=C.useRef(!1);return fu(()=>{n.current=!0}),C.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&At(n.current,pu),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Wr({fromRouteId:t},i)))},[e,t])}const gu={};function yu(e,t,n){!t&&!gu[e]&&(gu[e]=!0,process.env.NODE_ENV!=="production"&&At(!1,n))}const mu={};function Wy(e,t){process.env.NODE_ENV!=="production"&&!mu[t]&&(mu[t]=!0,console.warn(t))}const bu=(e,t,n)=>Wy(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Vy(e,t){e?.v7_startTransition===void 0&&bu("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&bu("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function yn(e){process.env.NODE_ENV!=="production"?Se(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Se(!1)}function Uy(e){let{basename:t="/",children:n=null,location:r,navigationType:o=In.Pop,navigator:i,static:a=!1,future:l}=e;qr()&&(process.env.NODE_ENV!=="production"?Se(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Se(!1));let c=t.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:c,navigator:i,static:a,future:Wr({v7_relativeSplatPath:!1},l)}),[c,l,i,a]);typeof r=="string"&&(r=ur(r));let{pathname:u="/",search:h="",hash:b="",state:y=null,key:g="default"}=r,f=C.useMemo(()=>{let m=_n(u,c);return m==null?null:{location:{pathname:m,search:h,hash:b,state:y,key:g},navigationType:o}},[c,u,h,b,y,g,o]);return process.env.NODE_ENV!=="production"&&At(f!=null,'<Router basename="'+c+'"> is not able to match the URL '+('"'+u+h+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:C.createElement(zt.Provider,{value:p},C.createElement(Ur.Provider,{children:n,value:f}))}function qy(e){let{children:t,location:n}=e;return Ny(va(t),n)}new Promise(()=>{});function va(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,o)=>{if(!C.isValidElement(r))return;let i=[...t,o];if(r.type===C.Fragment){n.push.apply(n,va(r.props.children,i));return}r.type!==yn&&(process.env.NODE_ENV!=="production"?Se(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Se(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Se(!1,"An index route cannot have child routes."):Se(!1));let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=va(r.props.children,i)),n.push(a)}),n}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}function xa(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const ps="get",fs="application/x-www-form-urlencoded";function hs(e){return e!=null&&typeof e.tagName=="string"}function Hy(e){return hs(e)&&e.tagName.toLowerCase()==="button"}function Yy(e){return hs(e)&&e.tagName.toLowerCase()==="form"}function Ky(e){return hs(e)&&e.tagName.toLowerCase()==="input"}function Gy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jy(e,t){return e.button===0&&(!t||t==="_self")&&!Gy(e)}function Sa(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Xy(e,t){let n=Sa(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let gs=null;function Qy(){if(gs===null)try{new FormData(document.createElement("form"),0),gs=!1}catch{gs=!0}return gs}const Zy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wa(e){return e!=null&&!Zy.has(e)?(process.env.NODE_ENV!=="production"&&At(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+fs+'"')),null):e}function em(e,t){let n,r,o,i,a;if(Yy(e)){let l=e.getAttribute("action");r=l?_n(l,t):null,n=e.getAttribute("method")||ps,o=wa(e.getAttribute("enctype"))||fs,i=new FormData(e)}else if(Hy(e)||Ky(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?_n(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||ps,o=wa(e.getAttribute("formenctype"))||wa(l.getAttribute("enctype"))||fs,i=new FormData(l,e),!Qy()){let{name:p,type:u,value:h}=e;if(u==="image"){let b=p?p+".":"";i.append(b+"x","0"),i.append(b+"y","0")}else p&&i.append(p,h)}}else{if(hs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ps,r=null,o=fs,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const tm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],nm=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],rm=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],om="6";try{window.__reactRouterVersion=om}catch{}const vu=C.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(vu.displayName="ViewTransition");const sm=C.createContext(new Map);process.env.NODE_ENV!=="production"&&(sm.displayName="Fetchers");const xu=C["startTransition"];function im(e){let{basename:t,children:n,future:r,window:o}=e,i=C.useRef();i.current==null&&(i.current=ey({window:o,v5Compat:!0}));let a=i.current,[l,c]=C.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=C.useCallback(h=>{p&&xu?xu(()=>c(h)):c(h)},[c,p]);return C.useLayoutEffect(()=>a.listen(u),[a,u]),C.useEffect(()=>Vy(r),[r]),C.createElement(Uy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const am=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Su=C.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:c,to:p,preventScrollReset:u,viewTransition:h}=t,b=xa(t,tm),{basename:y}=C.useContext(zt),g,f=!1;if(typeof p=="string"&&lm.test(p)&&(g=p,am))try{let S=new URL(window.location.href),x=p.startsWith("//")?new URL(S.protocol+p):new URL(p),E=_n(x.pathname,y);x.origin===S.origin&&E!=null?p=E+x.search+x.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&At(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=Py(p,{relative:o}),v=pm(p,{replace:a,state:l,target:c,preventScrollReset:u,relative:o,viewTransition:h});function w(S){r&&r(S),S.defaultPrevented||v(S)}return C.createElement("a",dr({},b,{href:g||m,onClick:f||i?r:w,ref:n,target:c}))});process.env.NODE_ENV!=="production"&&(Su.displayName="Link");const cm=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:c,viewTransition:p,children:u}=t,h=xa(t,nm),b=Hr(c,{relative:h.relative}),y=bt(),g=C.useContext(ga),{navigator:f,basename:m}=C.useContext(zt),v=g!=null&&vm(b)&&p===!0,w=f.encodeLocation?f.encodeLocation(b).pathname:b.pathname,S=y.pathname,x=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),x=x?x.toLowerCase():null,w=w.toLowerCase()),x&&m&&(x=_n(x,m)||x);const E=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let O=S===w||!a&&S.startsWith(w)&&S.charAt(E)==="/",N=x!=null&&(x===w||!a&&x.startsWith(w)&&x.charAt(w.length)==="/"),D={isActive:O,isPending:N,isTransitioning:v},A=O?r:void 0,L;typeof i=="function"?L=i(D):L=[i,O?"active":null,N?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let _=typeof l=="function"?l(D):l;return C.createElement(Su,dr({},h,{"aria-current":A,className:L,ref:n,style:_,to:c,viewTransition:p}),typeof u=="function"?u(D):u)});process.env.NODE_ENV!=="production"&&(cm.displayName="NavLink");const um=C.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:a,method:l=ps,action:c,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:b}=e,y=xa(e,rm),g=mm(),f=bm(c,{relative:u}),m=l.toLowerCase()==="get"?"get":"post",v=w=>{if(p&&p(w),w.defaultPrevented)return;w.preventDefault();let S=w.nativeEvent.submitter,x=S?.getAttribute("formmethod")||l;g(S||w.currentTarget,{fetcherKey:n,method:x,navigate:r,replace:i,state:a,relative:u,preventScrollReset:h,viewTransition:b})};return C.createElement("form",dr({ref:t,method:m,action:f,onSubmit:o?p:v},y))});process.env.NODE_ENV!=="production"&&(um.displayName="Form"),process.env.NODE_ENV;var ys;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ys||(ys={}));var wu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wu||(wu={}));function dm(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Cu(e){let t=C.useContext(Vr);return t||(process.env.NODE_ENV!=="production"?Se(!1,dm(e)):Se(!1)),t}function pm(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:l}=t===void 0?{}:t,c=at(),p=bt(),u=Hr(e,{relative:a});return C.useCallback(h=>{if(Jy(h,n)){h.preventDefault();let b=r!==void 0?r:zr(p)===zr(u);c(e,{replace:b,state:o,preventScrollReset:i,relative:a,viewTransition:l})}},[p,c,u,r,o,n,e,i,a,l])}function fm(e){process.env.NODE_ENV!=="production"&&At(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(Sa(e)),n=C.useRef(!1),r=bt(),o=C.useMemo(()=>Xy(r.search,n.current?null:t.current),[r.search]),i=at(),a=C.useCallback((l,c)=>{const p=Sa(typeof l=="function"?l(o):l);n.current=!0,i("?"+p,c)},[i,o]);return[o,a]}function hm(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let gm=0,ym=()=>"__"+String(++gm)+"__";function mm(){let{router:e}=Cu(ys.UseSubmit),{basename:t}=C.useContext(zt),n=Ly();return C.useCallback(function(r,o){o===void 0&&(o={}),hm();let{action:i,method:a,encType:l,formData:c,body:p}=em(r,t);if(o.navigate===!1){let u=o.fetcherKey||ym();e.fetch(u,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:p,formMethod:o.method||a,formEncType:o.encType||l,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:p,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function bm(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=C.useContext(zt),o=C.useContext(gn);o||(process.env.NODE_ENV!=="production"?Se(!1,"useFormAction must be used inside a RouteContext"):Se(!1));let[i]=o.matches.slice(-1),a=dr({},Hr(e||".",{relative:n})),l=bt();if(e==null){a.search=l.search;let c=new URLSearchParams(a.search),p=c.getAll("index");if(p.some(h=>h==="")){c.delete("index"),p.filter(b=>b).forEach(b=>c.append("index",b));let h=c.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:hn([r,a.pathname])),zr(a)}function vm(e,t){t===void 0&&(t={});let n=C.useContext(vu);n==null&&(process.env.NODE_ENV!=="production"?Se(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Se(!1));let{basename:r}=Cu(ys.useViewTransitionState),o=Hr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=_n(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=_n(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fa(o.pathname,a)!=null||fa(o.pathname,i)!=null}function Eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ms={exports:{}},Ca={};var Tu;function xm(){if(Tu)return Ca;Tu=1;var e=R;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Ca.useSyncExternalStoreWithSelector=function(c,p,u,h,b){var y=o(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function m(E){if(!v){if(v=!0,w=E,E=h(E),b!==void 0&&g.hasValue){var O=g.value;if(b(O,E))return S=O}return S=E}if(O=S,n(w,E))return O;var N=h(E);return b!==void 0&&b(O,N)?(w=E,O):(w=E,S=N)}var v=!1,w,S,x=u===void 0?null:u;return[function(){return m(p())},x===null?void 0:function(){return m(x())}]},[p,u,h,b]);var f=r(c,y[0],y[1]);return i(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},Ca}var Ea={};var Ou;function Sm(){return Ou||(Ou=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=R,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,l=t.useDebugValue;Ea.useSyncExternalStoreWithSelector=function(c,p,u,h,b){var y=o(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=a(function(){function m(E){if(!v){if(v=!0,w=E,E=h(E),b!==void 0&&g.hasValue){var O=g.value;if(b(O,E))return S=O}return S=E}if(O=S,n(w,E))return O;var N=h(E);return b!==void 0&&b(O,N)?(w=E,O):(w=E,S=N)}var v=!1,w,S,x=u===void 0?null:u;return[function(){return m(p())},x===null?void 0:function(){return m(x())}]},[p,u,h,b]);var f=r(c,y[0],y[1]);return i(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ea}var Pu;function wm(){return Pu||(Pu=1,process.env.NODE_ENV==="production"?ms.exports=xm():ms.exports=Sm()),ms.exports}var Cm=wm();function Em(e){e()}function Tm(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Em(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var ku={notify(){},get:()=>[]};function Om(e,t){let n,r=ku,o=0,i=!1;function a(f){u();const m=r.subscribe(f);let v=!1;return()=>{v||(v=!0,m(),h())}}function l(){r.notify()}function c(){g.onStateChange&&g.onStateChange()}function p(){return i}function u(){o++,n||(n=e.subscribe(c),r=Tm())}function h(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=ku)}function b(){i||(i=!0,u())}function y(){i&&(i=!1,h())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:p,trySubscribe:b,tryUnsubscribe:y,getListeners:()=>r};return g}var Pm=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",km=Pm(),Nm=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Im=Nm(),_m=()=>km||Im?C.useLayoutEffect:C.useEffect,Am=_m(),Mm=Symbol.for("react-redux-context"),$m=typeof globalThis<"u"?globalThis:{};function Dm(){if(!C.createContext)return{};const e=$m[Mm]??=new Map;let t=e.get(C.createContext);return t||(t=C.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(C.createContext,t)),t}var An=Dm();function Fm(e){const{children:t,context:n,serverState:r,store:o}=e,i=C.useMemo(()=>{const c=Om(o),p={store:o,subscription:c,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[o,r]),a=C.useMemo(()=>o.getState(),[o]);Am(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==o.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,a]);const l=n||An;return C.createElement(l.Provider,{value:i},t)}var jm=Fm;function Ta(e=An){return function(){const n=C.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Nu=Ta();function Iu(e=An){const t=e===An?Nu:Ta(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Rm=Iu();function Lm(e=An){const t=e===An?Rm:Iu(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Mt=Lm(),Bm=(e,t)=>e===t;function zm(e=An){const t=e===An?Nu:Ta(e),n=(r,o={})=>{const{equalityFn:i=Bm}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:l,subscription:c,getServerState:p}=a,u=C.useRef(!0),h=C.useCallback({[r.name](y){const g=r(y);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof o=="function"?{}:o,{identityFunctionCheck:m,stabilityCheck:v}=a,{identityFunctionCheck:w,stabilityCheck:S}={stabilityCheck:v,identityFunctionCheck:m,...f};if(S==="always"||S==="once"&&u.current){const x=r(y);if(!i(g,x)){let E;try{throw new Error}catch(O){({stack:E}=O)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
4
+ Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:y,selected:g,selected2:x,stack:E})}}if((w==="always"||w==="once"&&u.current)&&g===y){let x;try{throw new Error}catch(E){({stack:x}=E)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
5
+ Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:x})}u.current&&(u.current=!1)}return g}}[r.name],[r]),b=Cm.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,p||l.getState,h,i);return C.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Me=zm(),Kr={},_u;function Wm(){if(_u)return Kr;_u=1,Kr.__esModule=!0,Kr.PersistGate=void 0;var e=t(R);function t(y){if(y&&y.__esModule)return y;var g={};if(y!=null){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(y,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=y[f]}}return g.default=y,g}function n(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(y)}function r(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function o(y,g){for(var f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(y,m.key,m)}}function i(y,g,f){return g&&o(y.prototype,g),y}function a(y,g){return g&&(n(g)==="object"||typeof g=="function")?g:c(y)}function l(y){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(y)}function c(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),g&&u(y,g)}function u(y,g){return u=Object.setPrototypeOf||function(m,v){return m.__proto__=v,m},u(y,g)}function h(y,g,f){return g in y?Object.defineProperty(y,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[g]=f,y}var b=(function(y){p(g,y);function g(){var f,m;r(this,g);for(var v=arguments.length,w=new Array(v),S=0;S<v;S++)w[S]=arguments[S];return m=a(this,(f=l(g)).call.apply(f,[this].concat(w))),h(c(m),"state",{bootstrapped:!1}),h(c(m),"_unsubscribe",void 0),h(c(m),"handlePersistorState",function(){var x=m.props.persistor,E=x.getState(),O=E.bootstrapped;O&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return i(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return Kr.PersistGate=b,h(b,"defaultProps",{children:null,loading:null}),Kr}var Vm=Wm();function nt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Um=typeof Symbol=="function"&&Symbol.observable||"@@observable",Au=Um,Oa=()=>Math.random().toString(36).substring(7).split("").join("."),qm={INIT:`@@redux/INIT${Oa()}`,REPLACE:`@@redux/REPLACE${Oa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Oa()}`},Un=qm;function Gr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Hm(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Gm(e))return"date";if(Km(e))return"error";const n=Ym(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Ym(e){return typeof e.constructor=="function"?e.constructor.name:null}function Km(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Gm(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Mn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Hm(e)),t}function Pa(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?nt(2):`Expected the root reducer to be a function. Instead, received: '${Mn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?nt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?nt(1):`Expected the enhancer to be a function. Instead, received: '${Mn(n)}'`);return n(Pa)(e,t)}let r=e,o=t,i=new Map,a=i,l=0,c=!1;function p(){a===i&&(a=new Map,i.forEach((m,v)=>{a.set(v,m)}))}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?nt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?nt(4):`Expected the listener to be a function. Instead, received: '${Mn(m)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?nt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let v=!0;p();const w=l++;return a.set(w,m),function(){if(v){if(c)throw new Error(process.env.NODE_ENV==="production"?nt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");v=!1,p(),a.delete(w),i=null}}}function b(m){if(!Gr(m))throw new Error(process.env.NODE_ENV==="production"?nt(7):`Actions must be plain objects. Instead, the actual type was: '${Mn(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?nt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?nt(17):`Action "type" property must be a string. Instead, the actual type was: '${Mn(m.type)}'. Value was: '${m.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?nt(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,m)}finally{c=!1}return(i=a).forEach(w=>{w()}),m}function y(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?nt(10):`Expected the nextReducer to be a function. Instead, received: '${Mn(m)}`);r=m,b({type:Un.REPLACE})}function g(){const m=h;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?nt(11):`Expected the observer to be an object. Instead, received: '${Mn(v)}'`);function w(){const x=v;x.next&&x.next(u())}return w(),{unsubscribe:m(w)}},[Au](){return this}}}return b({type:Un.INIT}),{dispatch:b,subscribe:h,getState:u,replaceReducer:y,[Au]:g}}function Mu(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Jm(e,t,n,r){const o=Object.keys(t),i=n&&n.type===Un.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Gr(e))return`The ${i} has unexpected type of "${Mn(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===Un.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function Xm(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Un.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?nt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Un.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?nt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Un.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function $u(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Mu(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{Xm(n)}catch(a){i=a}return function(l={},c){if(i)throw i;if(process.env.NODE_ENV!=="production"){const h=Jm(l,n,c,o);h&&Mu(h)}let p=!1;const u={};for(let h=0;h<r.length;h++){const b=r[h],y=n[b],g=l[b],f=y(g,c);if(typeof f>"u"){const m=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?nt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${b}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[b]=f,p=p||f!==g}return p=p||r.length!==Object.keys(l).length,p?u:l}}function bs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Qm(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?nt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(c,...p)=>i(c,...p)},l=e.map(c=>c(a));return i=bs(...l)(o.dispatch),{...o,dispatch:i}}}function Du(e){return Gr(e)&&"type"in e&&typeof e.type=="string"}var Fu=Symbol.for("immer-nothing"),ju=Symbol.for("immer-draftable"),ft=Symbol.for("immer-state"),Zm=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Tt(e,...t){if(process.env.NODE_ENV!=="production"){const n=Zm[e],r=qn(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ot=Object,pr=Ot.getPrototypeOf,vs="constructor",xs="prototype",ka="configurable",Ss="enumerable",ws="writable",Jr="value",mn=e=>!!e&&!!e[ft];function Wt(e){return e?Lu(e)||Es(e)||!!e[ju]||!!e[vs]?.[ju]||Ts(e)||Os(e):!1}var eb=Ot[xs][vs].toString(),Ru=new WeakMap;function Lu(e){if(!e||!Ia(e))return!1;const t=pr(e);if(t===null||t===Ot[xs])return!0;const n=Ot.hasOwnProperty.call(t,vs)&&t[vs];if(n===Object)return!0;if(!qn(n))return!1;let r=Ru.get(n);return r===void 0&&(r=Function.toString.call(n),Ru.set(n,r)),r===eb}function Xr(e,t,n=!0){Qr(e)===0?(n?Reflect.ownKeys(e):Ot.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((r,o)=>t(o,r,e))}function Qr(e){const t=e[ft];return t?t.type_:Es(e)?1:Ts(e)?2:Os(e)?3:0}var Bu=(e,t,n=Qr(e))=>n===2?e.has(t):Ot[xs].hasOwnProperty.call(e,t),Na=(e,t,n=Qr(e))=>n===2?e.get(t):e[t],Cs=(e,t,n,r=Qr(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function tb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Es=Array.isArray,Ts=e=>e instanceof Map,Os=e=>e instanceof Set,Ia=e=>typeof e=="object",qn=e=>typeof e=="function",_a=e=>typeof e=="boolean",bn=e=>e.copy_||e.base_,Aa=e=>e.modified_?e.copy_:e.base_;function Ma(e,t){if(Ts(e))return new Map(e);if(Os(e))return new Set(e);if(Es(e))return Array[xs].slice.call(e);const n=Lu(e);if(t===!0||t==="class_only"&&!n){const r=Ot.getOwnPropertyDescriptors(e);delete r[ft];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],l=r[a];l[ws]===!1&&(l[ws]=!0,l[ka]=!0),(l.get||l.set)&&(r[a]={[ka]:!0,[ws]:!0,[Ss]:l[Ss],[Jr]:e[a]})}return Ot.create(pr(e),r)}else{const r=pr(e);if(r!==null&&n)return{...e};const o=Ot.create(r);return Ot.assign(o,e)}}function $a(e,t=!1){return ks(e)||mn(e)||!Wt(e)||(Qr(e)>1&&Ot.defineProperties(e,{set:Ps,add:Ps,clear:Ps,delete:Ps}),Ot.freeze(e),t&&Xr(e,(n,r)=>{$a(r,!0)},!1)),e}function nb(){Tt(2)}var Ps={[Jr]:nb};function ks(e){return e===null||!Ia(e)?!0:Ot.isFrozen(e)}var Ns="MapSet",Da="Patches",zu={};function fr(e){const t=zu[e];return t||Tt(0,e),t}var rb=e=>!!zu[e],Zr,Wu=()=>Zr,ob=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:rb(Ns)?fr(Ns):void 0});function Vu(e,t){t&&(e.patchPlugin_=fr(Da),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fa(e){ja(e),e.drafts_.forEach(sb),e.drafts_=null}function ja(e){e===Zr&&(Zr=e.parent_)}var Uu=e=>Zr=ob(Zr,e);function sb(e){const t=e[ft];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function qu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[ft].modified_&&(Fa(t),Tt(4)),Wt(e)&&(e=Hu(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[ft].base_,e,t)}else e=Hu(t,n);return ib(t,e,!0),Fa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Fu?e:void 0}function Hu(e,t){if(ks(t))return t;const n=t[ft];if(!n)return Ra(t,e.handledSet_,e);if(!Is(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Gu(n,e)}return n.copy_}function ib(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$a(t,n)}function Yu(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Is=(e,t)=>e.scope_===t,ab=[];function Ku(e,t,n,r){const o=bn(e),i=e.type_;if(r!==void 0&&Na(o,r,i)===t){Cs(o,r,n,i);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Xr(o,(c,p)=>{if(mn(p)){const u=l.get(p)||[];u.push(c),l.set(p,u)}})}const a=e.draftLocations_.get(t)??ab;for(const l of a)Cs(o,l,n,i)}function lb(e,t,n){e.callbacks_.push(function(o){const i=t;if(!i||!Is(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=Aa(i);Ku(e,i.draft_??i,a,n),Gu(i,o)})}function Gu(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const o=r.getPath(e);o&&r.generatePatches_(e,o,t)}Yu(e)}}function cb(e,t,n){const{scope_:r}=e;if(mn(n)){const o=n[ft];Is(o,r)&&o.callbacks_.push(function(){_s(e);const a=Aa(o);Ku(e,n,a,t)})}else Wt(n)&&e.callbacks_.push(function(){const i=bn(e);Na(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ra(Na(e.copy_,t,e.type_),r.handledSet_,r)})}function Ra(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||mn(e)||t.has(e)||!Wt(e)||ks(e)||(t.add(e),Xr(e,(r,o)=>{if(mn(o)){const i=o[ft];if(Is(i,n)){const a=Aa(i);Cs(e,r,a,e.type_),Yu(i)}}else Wt(o)&&Ra(o,t,n)})),e}function ub(e,t){const n=Es(e),r={type_:n?1:0,scope_:t?t.scope_:Wu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,i=La;n&&(o=[r],i=eo);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,[l,r]}var La={get(e,t){if(t===ft)return e;const n=bn(e);if(!Bu(n,t,e.type_))return db(e,n,t);const r=n[t];if(e.finalized_||!Wt(r))return r;if(r===Ba(e.base_,t)){_s(e);const o=e.type_===1?+t:t,i=Wa(e.scope_,r,e,o);return e.copy_[o]=i}return r},has(e,t){return t in bn(e)},ownKeys(e){return Reflect.ownKeys(bn(e))},set(e,t,n){const r=Ju(bn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Ba(bn(e),t),i=o?.[ft];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(tb(n,o)&&(n!==void 0||Bu(e.base_,t,e.type_)))return!0;_s(e),za(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),cb(e,t,n)),!0},deleteProperty(e,t){return _s(e),Ba(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),za(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=bn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ws]:!0,[ka]:e.type_!==1||t!=="length",[Ss]:r[Ss],[Jr]:n[t]}},defineProperty(){Tt(11)},getPrototypeOf(e){return pr(e.base_)},setPrototypeOf(){Tt(12)}},eo={};Xr(La,(e,t)=>{eo[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),eo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Tt(13),eo.set.call(this,e,t,void 0)},eo.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Tt(14),La.set.call(this,e[0],t,n,e[0])};function Ba(e,t){const n=e[ft];return(n?bn(n):e)[t]}function db(e,t,n){const r=Ju(t,n);return r?Jr in r?r[Jr]:r.get?.call(e.draft_):void 0}function Ju(e,t){if(!(t in e))return;let n=pr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=pr(n)}}function za(e){e.modified_||(e.modified_=!0,e.parent_&&za(e.parent_))}function _s(e){e.copy_||(e.assigned_=new Map,e.copy_=Ma(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var pb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(qn(t)&&!qn(n)){const i=n;n=t;const a=this;return function(c=i,...p){return a.produce(c,u=>n.call(this,u,...p))}}qn(n)||Tt(6),r!==void 0&&!qn(r)&&Tt(7);let o;if(Wt(t)){const i=Uu(this),a=Wa(i,t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?Fa(i):ja(i)}return Vu(i,r),qu(o,i)}else if(!t||!Ia(t)){if(o=n(t),o===void 0&&(o=t),o===Fu&&(o=void 0),this.autoFreeze_&&$a(o,!0),r){const i=[],a=[];fr(Da).generateReplacementPatches_(t,o,{patches_:i,inversePatches_:a}),r(i,a)}return o}else Tt(1,t)},this.produceWithPatches=(t,n)=>{if(qn(t))return(a,...l)=>this.produceWithPatches(a,c=>t(c,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},_a(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),_a(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),_a(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Wt(e)||Tt(8),mn(e)&&(e=fb(e));const t=Uu(this),n=Wa(t,e,void 0);return n[ft].isManual_=!0,ja(t),n}finishDraft(e,t){const n=e&&e[ft];(!n||!n.isManual_)&&Tt(9);const{scope_:r}=n;return Vu(r,t),qu(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=fr(Da).applyPatches_;return mn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Wa(e,t,n,r){const[o,i]=Ts(t)?fr(Ns).proxyMap_(t,n):Os(t)?fr(Ns).proxySet_(t,n):ub(t,n);return(n?.scope_??Wu()).drafts_.push(o),i.callbacks_=n?.callbacks_??[],i.key_=r,n&&r!==void 0?lb(n,i,r):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:p}=c;i.modified_&&p&&p.generatePatches_(i,[],c)}),o}function fb(e){return mn(e)||Tt(10,e),Xu(e)}function Xu(e){if(!Wt(e)||ks(e))return e;const t=e[ft];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ma(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ma(e,!0);return Xr(n,(o,i)=>{Cs(n,o,Xu(i))},r),t&&(t.finalized_=!1),n}var hb=new pb,Qu=hb.produce,gb=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
6
6
  \`createSelector([state => state.todos], todos => todos)\`
7
7
  This could lead to inefficient memoization and unnecessary re-renders.
8
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},zb=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:l}=e,c=n(()=>({}),...o);if(!(c.apply(null,s)===c.apply(null,l))){let p;try{throw new Error}catch(u){({stack:p}=u)}console.warn(`An input selector returned a different result when passed same arguments.
8
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},yb=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,l=r(()=>({}),...o);if(!(l.apply(null,i)===l.apply(null,a))){let p;try{throw new Error}catch(u){({stack:p}=u)}console.warn(`An input selector returned a different result when passed same arguments.
9
9
  This means your output selector will likely run more frequently than intended.
10
10
  Avoid returning a new reference inside your input selector, e.g.
11
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:l,stack:p})}},jb={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Bb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Lb(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Wb(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Sp=e=>Array.isArray(e)?e:[e];function Vb(e){const t=Array.isArray(e[0])?e[0]:e;return Wb(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function wp(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var Ub=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...jb,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:Fb},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:zb}}},Hb=class{constructor(e){this.value=e}deref(){return this.value}},Rb=typeof WeakRef<"u"?WeakRef:Hb,qb=0,Cp=1;function Gi(){return{s:qb,v:void 0,o:null,p:null}}function Ep(e,t={}){let r=Gi();const{resultEqualityCheck:n}=t;let o,s=0;function l(){let c=r;const{length:d}=arguments;for(let h=0,v=d;h<v;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=c.o;y===null&&(c.o=y=new WeakMap);const f=y.get(g);f===void 0?(c=Gi(),y.set(g,c)):c=f}else{let y=c.p;y===null&&(c.p=y=new Map);const f=y.get(g);f===void 0?(c=Gi(),y.set(g,c)):c=f}}const p=c;let u;if(c.s===Cp)u=c.v;else if(u=e.apply(null,arguments),s++,n){const h=o?.deref?.()??o;h!=null&&n(h,u)&&(u=h,s!==0&&s--),o=typeof u=="object"&&u!==null||typeof u=="function"?new Rb(u):u}return p.s=Cp,p.v=u,u}return l.clearCache=()=>{r=Gi(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function Yb(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let s=0,l=0,c,d={},p=o.pop();typeof p=="object"&&(d=p,p=o.pop()),Bb(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...r,...d},{memoize:h,memoizeOptions:v=[],argsMemoize:g=Ep,argsMemoizeOptions:y=[],devModeChecks:f={}}=u,m=Sp(v),x=Sp(y),b=Vb(o),w=h(function(){return s++,p.apply(null,arguments)},...m);let S=!0;const C=g(function(){l++;const I=wp(b,arguments);if(c=w.apply(null,I),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:F,inputStabilityCheck:D}=Ub(S,f);if(F.shouldRun&&F.run(p,I,c),D.shouldRun){const L=wp(b,arguments);D.run({inputSelectorResults:I,inputSelectorResultsCopy:L},{memoize:h,memoizeOptions:m},arguments)}S&&(S=!1)}return c},...x);return Object.assign(C,{resultFunc:p,memoizedResultFunc:w,dependencies:b,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var Gb=Yb(Ep),Kb=Object.assign((e,t=Gb)=>{Lb(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(s=>e[s]);return t(n,(...s)=>s.reduce((l,c,d)=>(l[r[d]]=c,l),{}))},{withTypes:()=>Kb});function Tp(e){return({dispatch:r,getState:n})=>o=>s=>typeof s=="function"?s(r,n,e):o(s)}var Xb=Tp(),Jb=Tp,Qb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$i:$i.apply(null,arguments)},Op=e=>e&&typeof e.match=="function";function fo(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?Be(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>np(n)&&n.type===e,r}function Zb(e){return typeof e=="function"&&"type"in e&&Op(e)}function e0(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
12
- Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function t0(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=Zb}=e;return()=>r=>n=>(t(n)&&console.warn(e0(n.type)),r(n))}function kp(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const s=Date.now();r+=s-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
11
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:p})}},mb={inputStabilityCheck:"once",identityFunctionCheck:"once"};function bb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function vb(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function xb(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Zu=e=>Array.isArray(e)?e:[e];function Sb(e){const t=Array.isArray(e[0])?e[0]:e;return xb(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ed(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var wb=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...mb,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:gb},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:yb}}},Cb=class{constructor(e){this.value=e}deref(){return this.value}},Eb=typeof WeakRef<"u"?WeakRef:Cb,Tb=0,td=1;function As(){return{s:Tb,v:void 0,o:null,p:null}}function nd(e,t={}){let n=As();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let l=n;const{length:c}=arguments;for(let h=0,b=c;h<b;h++){const y=arguments[h];if(typeof y=="function"||typeof y=="object"&&y!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(y);f===void 0?(l=As(),g.set(y,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(y);f===void 0?(l=As(),g.set(y,l)):l=f}}const p=l;let u;if(l.s===td)u=l.v;else if(u=e.apply(null,arguments),i++,r){const h=o?.deref?.()??o;h!=null&&r(h,u)&&(u=h,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new Eb(u):u}return p.s=td,p.v=u,u}return a.clearCache=()=>{n=As(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Ob(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,l,c={},p=o.pop();typeof p=="object"&&(c=p,p=o.pop()),bb(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...n,...c},{memoize:h,memoizeOptions:b=[],argsMemoize:y=nd,argsMemoizeOptions:g=[],devModeChecks:f={}}=u,m=Zu(b),v=Zu(g),w=Sb(o),S=h(function(){return i++,p.apply(null,arguments)},...m);let x=!0;const E=y(function(){a++;const N=ed(w,arguments);if(l=S.apply(null,N),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:D,inputStabilityCheck:A}=wb(x,f);if(D.shouldRun&&D.run(p,N,l),A.shouldRun){const L=ed(w,arguments);A.run({inputSelectorResults:N,inputSelectorResultsCopy:L},{memoize:h,memoizeOptions:m},arguments)}x&&(x=!1)}return l},...v);return Object.assign(E,{resultFunc:p,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:h,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var Pb=Ob(nd),kb=Object.assign((e,t=Pb)=>{vb(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,l,c)=>(a[n[c]]=l,a),{}))},{withTypes:()=>kb});function rd(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var Nb=rd(),Ib=rd,_b=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bs:bs.apply(null,arguments)},od=e=>e&&typeof e.match=="function";function to(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(process.env.NODE_ENV==="production"?Le(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Du(r)&&r.type===e,n}function Ab(e){return typeof e=="function"&&"type"in e&&od(e)}function Mb(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
12
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function $b(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=Ab}=e;return()=>n=>r=>(t(r)&&console.warn(Mb(r.type)),n(r))}function sd(e,t){let n=0;return{measureTime(r){const o=Date.now();try{return r()}finally{const i=Date.now();n+=i-o}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
13
13
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
14
- It is disabled in production builds, so you don't need to worry about that.`)}}}var Pp=class ki extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ki.prototype)}static get[Symbol.species](){return ki}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ki(...t[0].concat(this)):new ki(...t.concat(this))}};function Ip(e){return Yt(e)?xp(e,()=>{}):e}function Ki(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function r0(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function n0(e,t,r){const n=Np(e,t,r);return{detectMutations(){return _p(e,t,n,r)}}}function Np(e,t=[],r,n="",o=new Set){const s={value:r};if(!e(r)&&!o.has(r)){o.add(r),s.children={};const l=t.length>0;for(const c in r){const d=n?n+"."+c:c;l&&t.some(u=>u instanceof RegExp?u.test(d):d===u)||(s.children[c]=Np(e,t,r[c],d))}}return s}function _p(e,t=[],r,n,o=!1,s=""){const l=r?r.value:void 0,c=l===n;if(o&&!c&&!Number.isNaN(n))return{wasMutated:!0,path:s};if(e(l)||e(n))return{wasMutated:!1};const d={};for(let u in r.children)d[u]=!0;for(let u in n)d[u]=!0;const p=t.length>0;for(let u in d){const h=s?s+"."+u:u;if(p&&t.some(y=>y instanceof RegExp?y.test(h):h===y))continue;const v=_p(e,t,r.children[u],n[u],c,h);if(v.wasMutated)return v}return{wasMutated:!1}}function o0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(c,d,p,u){return JSON.stringify(c,r(d,u),p)},r=function(c,d){let p=[],u=[];return d||(d=function(h,v){return p[0]===v?"[Circular ~]":"[Circular ~."+u.slice(0,p.indexOf(v)).join(".")+"]"}),function(h,v){if(p.length>0){var g=p.indexOf(this);~g?p.splice(g+1):p.push(this),~g?u.splice(g,1/0,h):u.push(h),~p.indexOf(v)&&(v=d.call(this,h,v))}else p.push(v);return c==null?v:c.call(this,h,v)}},{isImmutable:n=r0,ignoredPaths:o,warnAfter:s=32}=e;const l=n0.bind(null,n,o);return({getState:c})=>{let d=c(),p=l(d),u;return h=>v=>{const g=kp(s,"ImmutableStateInvariantMiddleware");g.measureTime(()=>{if(d=c(),u=p.detectMutations(),p=l(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Be(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const y=h(v);return g.measureTime(()=>{if(d=c(),u=p.detectMutations(),p=l(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Be(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(v)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),g.warnIfExceeded(),y}}}}function Ap(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||so(e)}function sl(e,t="",r=Ap,n,o=[],s){let l;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const c=n!=null?n(e):Object.entries(e),d=o.length>0;for(const[p,u]of c){const h=t?t+"."+p:p;if(!(d&&o.some(g=>g instanceof RegExp?g.test(h):h===g))){if(!r(u))return{keyPath:h,value:u};if(typeof u=="object"&&(l=sl(u,h,r,n,o,s),l))return l}}return s&&Mp(e)&&s.add(e),!1}function Mp(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Mp(t))return!1;return!0}function i0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=Ap,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:l=32,ignoreState:c=!1,ignoreActions:d=!1,disableCache:p=!1}=e,u=!p&&WeakSet?new WeakSet:void 0;return h=>v=>g=>{if(!np(g))return v(g);const y=v(g),f=kp(l,"SerializableStateInvariantMiddleware");return!d&&!(n.length&&n.indexOf(g.type)!==-1)&&f.measureTime(()=>{const m=sl(g,"",t,r,o,u);if(m){const{keyPath:x,value:b}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${x}\`. Value:`,b,`
15
- Take a look at the logic that dispatched this action: `,g,`
14
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var id=class ds extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ds.prototype)}static get[Symbol.species](){return ds}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ds(...t[0].concat(this)):new ds(...t.concat(this))}};function ad(e){return Wt(e)?Qu(e,()=>{}):e}function Ms(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Db(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Fb(e,t,n){const r=ld(e,t,n);return{detectMutations(){return cd(e,t,r,n)}}}function ld(e,t=[],n,r="",o=new Set){const i={value:n};if(!e(n)&&!o.has(n)){o.add(n),i.children={};const a=t.length>0;for(const l in n){const c=r?r+"."+l:l;a&&t.some(u=>u instanceof RegExp?u.test(c):c===u)||(i.children[l]=ld(e,t,n[l],c))}}return i}function cd(e,t=[],n,r,o=!1,i=""){const a=n?n.value:void 0,l=a===r;if(o&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:i};if(e(a)||e(r))return{wasMutated:!1};const c={};for(let u in n.children)c[u]=!0;for(let u in r)c[u]=!0;const p=t.length>0;for(let u in c){const h=i?i+"."+u:u;if(p&&t.some(g=>g instanceof RegExp?g.test(h):h===g))continue;const b=cd(e,t,n.children[u],r[u],l,h);if(b.wasMutated)return b}return{wasMutated:!1}}function jb(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(l,c,p,u){return JSON.stringify(l,n(c,u),p)},n=function(l,c){let p=[],u=[];return c||(c=function(h,b){return p[0]===b?"[Circular ~]":"[Circular ~."+u.slice(0,p.indexOf(b)).join(".")+"]"}),function(h,b){if(p.length>0){var y=p.indexOf(this);~y?p.splice(y+1):p.push(this),~y?u.splice(y,1/0,h):u.push(h),~p.indexOf(b)&&(b=c.call(this,h,b))}else p.push(b);return l==null?b:l.call(this,h,b)}},{isImmutable:r=Db,ignoredPaths:o,warnAfter:i=32}=e;const a=Fb.bind(null,r,o);return({getState:l})=>{let c=l(),p=a(c),u;return h=>b=>{const y=sd(i,"ImmutableStateInvariantMiddleware");y.measureTime(()=>{if(c=l(),u=p.detectMutations(),p=a(c),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Le(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=h(b);return y.measureTime(()=>{if(c=l(),u=p.detectMutations(),p=a(c),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Le(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(b)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),y.warnIfExceeded(),g}}}}function ud(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Gr(e)}function Va(e,t="",n=ud,r,o=[],i){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i?.has(e))return!1;const l=r!=null?r(e):Object.entries(e),c=o.length>0;for(const[p,u]of l){const h=t?t+"."+p:p;if(!(c&&o.some(y=>y instanceof RegExp?y.test(h):h===y))){if(!n(u))return{keyPath:h,value:u};if(typeof u=="object"&&(a=Va(u,h,n,r,o,i),a))return a}}return i&&dd(e)&&i.add(e),!1}function dd(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!dd(t))return!1;return!0}function Rb(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=ud,getEntries:n,ignoredActions:r=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:a=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:p=!1}=e,u=!p&&WeakSet?new WeakSet:void 0;return h=>b=>y=>{if(!Du(y))return b(y);const g=b(y),f=sd(a,"SerializableStateInvariantMiddleware");return!c&&!(r.length&&r.indexOf(y.type)!==-1)&&f.measureTime(()=>{const m=Va(y,"",t,n,o,u);if(m){const{keyPath:v,value:w}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${v}\`. Value:`,w,`
15
+ Take a look at the logic that dispatched this action: `,y,`
16
16
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
17
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),c||(f.measureTime(()=>{const m=h.getState(),x=sl(m,"",t,r,s,u);if(x){const{keyPath:b,value:w}=x;console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`,w,`
18
- Take a look at the reducer(s) handling this action type: ${g.type}.
19
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),y}}}function Xi(e){return typeof e=="boolean"}var s0=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let l=new Pp;if(r&&(Xi(r)?l.push(Xb):l.push(Jb(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let c={};Xi(n)||(c=n),l.unshift(o0(c))}if(o){let c={};Xi(o)||(c=o),l.push(i0(c))}if(s){let c={};Xi(s)||(c=s),l.unshift(t0(c))}}return l},a0="RTK_autoBatch",$p=e=>t=>{setTimeout(t,e)},l0=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,s=!1,l=!1;const c=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$p(10):e.type==="callback"?e.queueNotification:$p(e.timeout),p=()=>{l=!1,s&&(s=!1,c.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const h=()=>o&&u(),v=n.subscribe(h);return c.add(u),()=>{v(),c.delete(u)}},dispatch(u){try{return o=!u?.meta?.[a0],s=!o,s&&(l||(l=!0,d(p))),n.dispatch(u)}finally{o=!0}}})},c0=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new Pp(e);return n&&o.push(l0(typeof n=="object"?n:void 0)),o};function d0(e){const t=s0(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:l=void 0,enhancers:c=void 0}=e||{};let d;if(typeof r=="function")d=r;else if(so(r))d=rp(r);else throw new Error(process.env.NODE_ENV==="production"?Be(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Be(2):"`middleware` field must be a callback");let p;if(typeof n=="function"){if(p=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?Be(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Be(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Be(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let u=$i;o&&(u=Qb({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const h=vb(...p),v=c0(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?Be(5):"`enhancers` field must be a callback");let g=typeof c=="function"?c(v):v();if(process.env.NODE_ENV!=="production"&&!Array.isArray(g))throw new Error(process.env.NODE_ENV==="production"?Be(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&g.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Be(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!g.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const y=u(...g);return Ha(d,l,y)}function Dp(e){const t={},r=[];let n;const o={addCase(s,l){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Be(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Be(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?Be(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?Be(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=l,o},addAsyncThunk(s,l){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Be(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return l.pending&&(t[s.pending.type]=l.pending),l.rejected&&(t[s.rejected.type]=l.rejected),l.fulfilled&&(t[s.fulfilled.type]=l.fulfilled),l.settled&&r.push({matcher:s.settled,reducer:l.settled}),o},addMatcher(s,l){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Be(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:s,reducer:l}),o},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Be(31):"`builder.addDefaultCase` can only be called once");return n=s,o}};return e(o),[t,r,n]}function p0(e){return typeof e=="function"}function u0(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Be(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=Dp(t),s;if(p0(e))s=()=>Ip(e());else{const c=Ip(e);s=()=>c}function l(c=s(),d){let p=[r[d.type],...n.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[o]),p.reduce((u,h)=>{if(h)if(vr(u)){const g=h(u,d);return g===void 0?u:g}else{if(Yt(u))return xp(u,v=>h(v,d));{const v=h(u,d);if(v===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return u},c)}return l.getInitialState=s,l}var f0=(e,t)=>Op(e)?e.match(t):e(t);function h0(...e){return t=>e.some(r=>f0(r,t))}var g0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",y0=(e=21)=>{let t="",r=e;for(;r--;)t+=g0[Math.random()*64|0];return t},m0=["name","message","stack","code"],al=class{constructor(e,t){this.payload=e,this.meta=t}_type},Fp=class{constructor(e,t){this.payload=e,this.meta=t}_type},b0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of m0)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},zp="External signal was aborted",Gt=(()=>{function e(t,r,n){const o=fo(t+"/fulfilled",(d,p,u,h)=>({payload:d,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=fo(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),l=fo(t+"/rejected",(d,p,u,h,v)=>({payload:h,error:(n&&n.serializeError||b0)(d||"Rejected"),meta:{...v||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:p}={}){return(u,h,v)=>{const g=n?.idGenerator?n.idGenerator(d):y0(),y=new AbortController;let f,m;function x(w){m=w,y.abort()}p&&(p.aborted?x(zp):p.addEventListener("abort",()=>x(zp),{once:!0}));const b=(async function(){let w;try{let C=n?.condition?.(d,{getState:h,extra:v});if(x0(C)&&(C=await C),C===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((I,F)=>{f=()=>{F({name:"AbortError",message:m||"Aborted"})},y.signal.addEventListener("abort",f,{once:!0})});u(s(g,d,n?.getPendingMeta?.({requestId:g,arg:d},{getState:h,extra:v}))),w=await Promise.race([O,Promise.resolve(r(d,{dispatch:u,getState:h,extra:v,requestId:g,signal:y.signal,abort:x,rejectWithValue:(I,F)=>new al(I,F),fulfillWithValue:(I,F)=>new Fp(I,F)})).then(I=>{if(I instanceof al)throw I;return I instanceof Fp?o(I.payload,g,d,I.meta):o(I,g,d)})])}catch(C){w=C instanceof al?l(null,g,d,C.payload,C.meta):l(C,g,d)}finally{f&&y.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&l.match(w)&&w.meta.condition||u(w),w})();return Object.assign(b,{abort:x,requestId:g,arg:d,unwrap(){return b.then(v0)}})}}return Object.assign(c,{pending:s,rejected:l,fulfilled:o,settled:h0(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function v0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function x0(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var S0=Symbol.for("rtk-slice-createasyncthunk");function w0(e,t){return`${e}/${t}`}function C0({creators:e}={}){const t=e?.asyncThunk?.[S0];return function(n){const{name:o,reducerPath:s=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?Be(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof n.reducers=="function"?n.reducers(T0()):n.reducers)||{},c=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(w,S){const C=typeof w=="string"?w:w.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Be(12):"`context.addCase` cannot be called with an empty action type");if(C in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Be(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return d.sliceCaseReducersByType[C]=S,p},addMatcher(w,S){return d.sliceMatchers.push({matcher:w,reducer:S}),p},exposeAction(w,S){return d.actionCreators[w]=S,p},exposeCaseReducer(w,S){return d.sliceCaseReducersByName[w]=S,p}};c.forEach(w=>{const S=l[w],C={reducerName:w,type:w0(o,w),createNotation:typeof n.reducers=="function"};k0(S)?I0(C,S,p,t):O0(C,S,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Be(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},S=[],C=void 0]=typeof n.extraReducers=="function"?Dp(n.extraReducers):[n.extraReducers],O={...w,...d.sliceCaseReducersByType};return u0(n.initialState,I=>{for(let F in O)I.addCase(F,O[F]);for(let F of d.sliceMatchers)I.addMatcher(F.matcher,F.reducer);for(let F of S)I.addMatcher(F.matcher,F.reducer);C&&I.addDefaultCase(C)})}const h=w=>w,v=new Map,g=new WeakMap;let y;function f(w,S){return y||(y=u()),y(w,S)}function m(){return y||(y=u()),y.getInitialState()}function x(w,S=!1){function C(I){let F=I[w];if(typeof F>"u"){if(S)F=Ki(g,C,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Be(15):"selectSlice returned undefined for an uninjected slice reducer")}return F}function O(I=h){const F=Ki(v,S,()=>new WeakMap);return Ki(F,I,()=>{const D={};for(const[L,z]of Object.entries(n.selectors??{}))D[L]=E0(z,I,()=>Ki(g,I,m),S);return D})}return{reducerPath:w,getSelectors:O,get selectors(){return O(C)},selectSlice:C}}const b={name:o,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...x(s),injectInto(w,{reducerPath:S,...C}={}){const O=S??s;return w.inject({reducerPath:O,reducer:f},C),{...b,...x(O,!0)}}};return b}}function E0(e,t,r,n){function o(s,...l){let c=t(s);if(typeof c>"u"){if(n)c=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Be(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...l)}return o.unwrapped=e,o}var Ji=C0();function T0(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function O0({type:e,reducerName:t,createNotation:r},n,o){let s,l;if("reducer"in n){if(r&&!P0(n))throw new Error(process.env.NODE_ENV==="production"?Be(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=n.reducer,l=n.prepare}else s=n;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,l?fo(e,l):fo(e))}function k0(e){return e._reducerDefinitionType==="asyncThunk"}function P0(e){return e._reducerDefinitionType==="reducerWithPrepare"}function I0({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Be(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:l,pending:c,rejected:d,settled:p,options:u}=r,h=o(e,s,u);n.exposeAction(t,h),l&&n.addCase(h.fulfilled,l),c&&n.addCase(h.pending,c),d&&n.addCase(h.rejected,d),p&&n.addMatcher(h.settled,p),n.exposeCaseReducer(t,{fulfilled:l||Qi,pending:c||Qi,rejected:d||Qi,settled:p||Qi})}function Qi(){}function Be(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ll="persist:",jp="persist/FLUSH",cl="persist/REHYDRATE",Bp="persist/PAUSE",Lp="persist/PERSIST",Wp="persist/PURGE",Vp="persist/REGISTER",N0=-1;function ho(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ho=function(r){return typeof r}:ho=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ho(e)}function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Up(r,!0).forEach(function(n){A0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M0(e,t,r,n){var o=n.debug,s=_0({},r);return e&&ho(e)==="object"&&Object.keys(e).forEach(function(l){if(l!=="_persist"){if(t[l]!==r[l]){process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",l);return}s[l]=e[l]}}),process.env.NODE_ENV!=="production"&&o&&e&&ho(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function $0(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:ll).concat(e.key),l=e.storage,c;e.serialize===!1?c=function(C){return C}:typeof e.serialize=="function"?c=e.serialize:c=D0;var d=e.writeFailHandler||null,p={},u={},h=[],v=null,g=null,y=function(C){Object.keys(C).forEach(function(O){x(O)&&p[O]!==C[O]&&h.indexOf(O)===-1&&h.push(O)}),Object.keys(p).forEach(function(O){C[O]===void 0&&x(O)&&h.indexOf(O)===-1&&p[O]!==void 0&&h.push(O)}),v===null&&(v=setInterval(f,o)),p=C};function f(){if(h.length===0){v&&clearInterval(v),v=null;return}var S=h.shift(),C=n.reduce(function(O,I){return I.in(O,S,p)},p[S]);if(C!==void 0)try{u[S]=c(C)}catch(O){console.error("redux-persist/createPersistoid: error serializing state",O)}else delete u[S];h.length===0&&m()}function m(){Object.keys(u).forEach(function(S){p[S]===void 0&&delete u[S]}),g=l.setItem(s,c(u)).catch(b)}function x(S){return!(r&&r.indexOf(S)===-1&&S!=="_persist"||t&&t.indexOf(S)!==-1)}function b(S){d&&d(S),S&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",S)}var w=function(){for(;h.length!==0;)f();return g||Promise.resolve()};return{update:y,flush:w}}function D0(e){return JSON.stringify(e)}function F0(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:ll).concat(e.key),n=e.storage,o=e.debug,s;return e.deserialize===!1?s=function(c){return c}:typeof e.deserialize=="function"?s=e.deserialize:s=z0,n.getItem(r).then(function(l){if(l)try{var c={},d=s(l);return Object.keys(d).forEach(function(p){c[p]=t.reduceRight(function(u,h){return h.out(u,p,d)},s(d[p]))}),c}catch(p){throw process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(l),p),p}else return})}function z0(e){return JSON.parse(e)}function j0(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:ll).concat(e.key);return t.removeItem(r,B0)}function B0(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function Hp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hp(r,!0).forEach(function(n){L0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hp(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W0(e,t){if(e==null)return{};var r=V0(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V0(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var U0=5e3;function H0(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var r=e.version!==void 0?e.version:N0;e.debug;var n=e.stateReconciler===void 0?M0:e.stateReconciler,o=e.getStoredState||F0,s=e.timeout!==void 0?e.timeout:U0,l=null,c=!1,d=!0,p=function(h){return h._persist.rehydrated&&l&&!d&&l.update(h),h};return function(u,h){var v=u||{},g=v._persist,y=W0(v,["_persist"]),f=y;if(h.type===Lp){var m=!1,x=function(F,D){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),F,D),m||(h.rehydrate(e.key,F,D),m=!0)};if(s&&setTimeout(function(){!m&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,l||(l=$0(e)),g)return Sr({},t(f,h),{_persist:g});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(I){var F=e.migrate||function(D,L){return Promise.resolve(D)};F(I,r).then(function(D){x(D)},function(D){process.env.NODE_ENV!=="production"&&D&&console.error("redux-persist: migration error",D),x(void 0,D)})},function(I){x(void 0,I)}),Sr({},t(f,h),{_persist:{version:r,rehydrated:!1}})}else{if(h.type===Wp)return c=!0,h.result(j0(e)),Sr({},t(f,h),{_persist:g});if(h.type===jp)return h.result(l&&l.flush()),Sr({},t(f,h),{_persist:g});if(h.type===Bp)d=!0;else if(h.type===cl){if(c)return Sr({},f,{_persist:Sr({},g,{rehydrated:!0})});if(h.key===e.key){var b=t(f,h),w=h.payload,S=n!==!1&&w!==void 0?n(w,u,b,e):b,C=Sr({},S,{_persist:Sr({},g,{rehydrated:!0})});return p(C)}}}if(!g)return t(u,h);var O=t(f,h);return O===f?u:p(Sr({},O,{_persist:g}))}}function Rp(e){return Y0(e)||q0(e)||R0()}function R0(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function q0(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Y0(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function qp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function dl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qp(r,!0).forEach(function(n){G0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Yp={registry:[],bootstrapped:!1},K0=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yp,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case Vp:return dl({},t,{registry:[].concat(Rp(t.registry),[r.key])});case cl:var n=t.registry.indexOf(r.key),o=Rp(t.registry);return o.splice(n,1),dl({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function X0(e,t,r){if(process.env.NODE_ENV!=="production"){var n={},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(p){n[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Ha(K0,Yp,void 0),l=function(u){s.dispatch({type:Vp,key:u})},c=function(u,h,v){var g={type:cl,payload:h,err:v,key:u};e.dispatch(g),s.dispatch(g)},d=dl({},s,{purge:function(){var u=[];return e.dispatch({type:Wp,result:function(v){u.push(v)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:jp,result:function(v){u.push(v)}}),Promise.all(u)},pause:function(){e.dispatch({type:Bp})},persist:function(){e.dispatch({type:Lp,register:l,rehydrate:c})}});return d.persist(),d}const Gp=Ji({name:"product",initialState:{loading:!1,error:null},reducers:{},extraReducers:e=>{}}),{selectProduct:XI,clearSelectedProducts:JI}=Gp.actions,J0=Gp.reducer;function Kp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Q0}=Object.prototype,{getPrototypeOf:pl}=Object,{iterator:Zi,toStringTag:Xp}=Symbol,es=(e=>t=>{const r=Q0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>es(t)===e),ts=e=>t=>typeof t===e,{isArray:En}=Array,Tn=ts("undefined");function go(e){return e!==null&&!Tn(e)&&e.constructor!==null&&!Tn(e.constructor)&&wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jp=Kt("ArrayBuffer");function Z0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jp(e.buffer),t}const ev=ts("string"),wt=ts("function"),Qp=ts("number"),yo=e=>e!==null&&typeof e=="object",tv=e=>e===!0||e===!1,rs=e=>{if(es(e)!=="object")return!1;const t=pl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Xp in e)&&!(Zi in e)},rv=e=>{if(!yo(e)||go(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nv=Kt("Date"),ov=Kt("File"),iv=Kt("Blob"),sv=Kt("FileList"),av=e=>yo(e)&&wt(e.pipe),lv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wt(e.append)&&((t=es(e))==="formdata"||t==="object"&&wt(e.toString)&&e.toString()==="[object FormData]"))},cv=Kt("URLSearchParams"),[dv,pv,uv,fv]=["ReadableStream","Request","Response","Headers"].map(Kt),hv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),En(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(go(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let c;for(n=0;n<l;n++)c=s[n],t.call(null,e[c],c,e)}}function Zp(e,t){if(go(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eu=e=>!Tn(e)&&e!==Zr;function ul(){const{caseless:e,skipUndefined:t}=eu(this)&&this||{},r={},n=(o,s)=>{const l=e&&Zp(r,s)||s;rs(r[l])&&rs(o)?r[l]=ul(r[l],o):rs(o)?r[l]=ul({},o):En(o)?r[l]=o.slice():(!t||!Tn(o))&&(r[l]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&mo(arguments[o],n);return r}const gv=(e,t,r,{allOwnKeys:n}={})=>(mo(t,(o,s)=>{r&&wt(o)?e[s]=Kp(o,r):e[s]=o},{allOwnKeys:n}),e),yv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mv=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},bv=(e,t,r,n)=>{let o,s,l;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!n||n(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=r!==!1&&pl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},vv=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},xv=e=>{if(!e)return null;if(En(e))return e;let t=e.length;if(!Qp(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Sv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pl(Uint8Array)),wv=(e,t)=>{const n=(e&&e[Zi]).call(e);let o;for(;(o=n.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Cv=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ev=Kt("HTMLFormElement"),Tv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),tu=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ov=Kt("RegExp"),ru=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};mo(r,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(n[s]=l||o)}),Object.defineProperties(e,n)},kv=e=>{ru(e,(t,r)=>{if(wt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(wt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Pv=(e,t)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return En(e)?n(e):n(String(e).split(t)),r},Iv=()=>{},Nv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _v(e){return!!(e&&wt(e.append)&&e[Xp]==="FormData"&&e[Zi])}const Av=e=>{const t=new Array(10),r=(n,o)=>{if(yo(n)){if(t.indexOf(n)>=0)return;if(go(n))return n;if(!("toJSON"in n)){t[o]=n;const s=En(n)?[]:{};return mo(n,(l,c)=>{const d=r(l,o+1);!Tn(d)&&(s[c]=d)}),t[o]=void 0,s}}return n};return r(e,0)},Mv=Kt("AsyncFunction"),$v=e=>e&&(yo(e)||wt(e))&&wt(e.then)&&wt(e.catch),nu=((e,t)=>e?setImmediate:t?((r,n)=>(Zr.addEventListener("message",({source:o,data:s})=>{o===Zr&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Zr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",wt(Zr.postMessage)),Dv=typeof queueMicrotask<"u"?queueMicrotask.bind(Zr):typeof process<"u"&&process.nextTick||nu,V={isArray:En,isArrayBuffer:Jp,isBuffer:go,isFormData:lv,isArrayBufferView:Z0,isString:ev,isNumber:Qp,isBoolean:tv,isObject:yo,isPlainObject:rs,isEmptyObject:rv,isReadableStream:dv,isRequest:pv,isResponse:uv,isHeaders:fv,isUndefined:Tn,isDate:nv,isFile:ov,isBlob:iv,isRegExp:Ov,isFunction:wt,isStream:av,isURLSearchParams:cv,isTypedArray:Sv,isFileList:sv,forEach:mo,merge:ul,extend:gv,trim:hv,stripBOM:yv,inherits:mv,toFlatObject:bv,kindOf:es,kindOfTest:Kt,endsWith:vv,toArray:xv,forEachEntry:wv,matchAll:Cv,isHTMLForm:Ev,hasOwnProperty:tu,hasOwnProp:tu,reduceDescriptors:ru,freezeMethods:kv,toObjectSet:Pv,toCamelCase:Tv,noop:Iv,toFiniteNumber:Nv,findKey:Zp,global:Zr,isContextDefined:eu,isSpecCompliantForm:_v,toJSONObject:Av,isAsyncFn:Mv,isThenable:$v,setImmediate:nu,asap:Dv,isIterable:e=>e!=null&&wt(e[Zi])};function me(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const ou=me.prototype,iu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{iu[e]={value:e}}),Object.defineProperties(me,iu),Object.defineProperty(ou,"isAxiosError",{value:!0}),me.from=(e,t,r,n,o,s)=>{const l=Object.create(ou);V.toFlatObject(e,l,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return me.call(l,c,d,r,n,o),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",s&&Object.assign(l,s),l};const Fv=null;function fl(e){return V.isPlainObject(e)||V.isArray(e)}function su(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function au(e,t,r){return e?e.concat(t).map(function(o,s){return o=su(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function zv(e){return V.isArray(e)&&!e.some(fl)}const jv=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function ns(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!V.isUndefined(m[f])});const n=r.metaTokens,o=r.visitor||u,s=r.dots,l=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function p(y){if(y===null)return"";if(V.isDate(y))return y.toISOString();if(V.isBoolean(y))return y.toString();if(!d&&V.isBlob(y))throw new me("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(y)||V.isTypedArray(y)?d&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,f,m){let x=y;if(y&&!m&&typeof y=="object"){if(V.endsWith(f,"{}"))f=n?f:f.slice(0,-2),y=JSON.stringify(y);else if(V.isArray(y)&&zv(y)||(V.isFileList(y)||V.endsWith(f,"[]"))&&(x=V.toArray(y)))return f=su(f),x.forEach(function(w,S){!(V.isUndefined(w)||w===null)&&t.append(l===!0?au([f],S,s):l===null?f:f+"[]",p(w))}),!1}return fl(y)?!0:(t.append(au(m,f,s),p(y)),!1)}const h=[],v=Object.assign(jv,{defaultVisitor:u,convertValue:p,isVisitable:fl});function g(y,f){if(!V.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(y),V.forEach(y,function(x,b){(!(V.isUndefined(x)||x===null)&&o.call(t,x,V.isString(b)?b.trim():b,f,v))===!0&&g(x,f?f.concat(b):[b])}),h.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return g(e),t}function lu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hl(e,t){this._pairs=[],e&&ns(e,this,t)}const cu=hl.prototype;cu.append=function(t,r){this._pairs.push([t,r])},cu.toString=function(t){const r=t?function(n){return t.call(this,n,lu)}:lu;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Bv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function du(e,t,r){if(!t)return e;const n=r&&r.encode||Bv;V.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let s;if(o?s=o(t,r):s=V.isURLSearchParams(t)?t.toString():new hl(t,r).toString(n),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class pu{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(n){n!==null&&t(n)})}}const uu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:hl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},gl=typeof window<"u"&&typeof document<"u",yl=typeof navigator=="object"&&navigator||void 0,Wv=gl&&(!yl||["ReactNative","NativeScript","NS"].indexOf(yl.product)<0),Vv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Uv=gl&&window.location.href||"http://localhost",dt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gl,hasStandardBrowserEnv:Wv,hasStandardBrowserWebWorkerEnv:Vv,navigator:yl,origin:Uv},Symbol.toStringTag,{value:"Module"})),...Lv};function Hv(e,t){return ns(e,new dt.classes.URLSearchParams,{visitor:function(r,n,o,s){return dt.isNode&&V.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Rv(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qv(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}function fu(e){function t(r,n,o,s){let l=r[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=s>=r.length;return l=!l&&V.isArray(o)?o.length:l,d?(V.hasOwnProp(o,l)?o[l]=[o[l],n]:o[l]=n,!c):((!o[l]||!V.isObject(o[l]))&&(o[l]=[]),t(r,n,o[l],s)&&V.isArray(o[l])&&(o[l]=qv(o[l])),!c)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,(n,o)=>{t(Rv(n),o,r,0)}),r}return null}function Yv(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const bo={transitional:uu,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=V.isObject(t);if(s&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return o?JSON.stringify(fu(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Hv(t,this.formSerializer).toString();if((c=V.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ns(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Yv(t)):t}],transformResponse:[function(t){const r=this.transitional||bo.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(n&&!this.responseType||o)){const l=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?me.from(c,me.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{bo.headers[e]={}});const Gv=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kv=e=>{const t={};let r,n,o;return e&&e.split(`
20
- `).forEach(function(l){o=l.indexOf(":"),r=l.substring(0,o).trim().toLowerCase(),n=l.substring(o+1).trim(),!(!r||t[r]&&Gv[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},hu=Symbol("internals");function vo(e){return e&&String(e).trim().toLowerCase()}function os(e){return e===!1||e==null?e:V.isArray(e)?e.map(os):String(e)}function Xv(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Jv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,r,n,o){if(V.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!V.isString(t)){if(V.isString(n))return t.indexOf(n)!==-1;if(V.isRegExp(n))return n.test(t)}}function Qv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Zv(e,t){const r=V.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,s,l){return this[n].call(this,t,o,s,l)},configurable:!0})})}let Ct=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function s(c,d,p){const u=vo(d);if(!u)throw new Error("header name must be a non-empty string");const h=V.findKey(o,u);(!h||o[h]===void 0||p===!0||p===void 0&&o[h]!==!1)&&(o[h||d]=os(c))}const l=(c,d)=>V.forEach(c,(p,u)=>s(p,u,d));if(V.isPlainObject(t)||t instanceof this.constructor)l(t,r);else if(V.isString(t)&&(t=t.trim())&&!Jv(t))l(Kv(t),r);else if(V.isObject(t)&&V.isIterable(t)){let c={},d,p;for(const u of t){if(!V.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[p=u[0]]=(d=c[p])?V.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}l(c,r)}else t!=null&&s(r,t,n);return this}get(t,r){if(t=vo(t),t){const n=V.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Xv(o);if(V.isFunction(r))return r.call(this,o,n);if(V.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=vo(t),t){const n=V.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ml(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function s(l){if(l=vo(l),l){const c=V.findKey(n,l);c&&(!r||ml(n,n[c],c,r))&&(delete n[c],o=!0)}}return V.isArray(t)?t.forEach(s):s(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!t||ml(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const r=this,n={};return V.forEach(this,(o,s)=>{const l=V.findKey(n,s);if(l){r[l]=os(o),delete r[s];return}const c=t?Qv(s):String(s).trim();c!==s&&delete r[s],r[c]=os(o),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return V.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&V.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
21
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[hu]=this[hu]={accessors:{}}).accessors,o=this.prototype;function s(l){const c=vo(l);n[c]||(Zv(o,l),n[c]=!0)}return V.isArray(t)?t.forEach(s):s(t),this}};Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Ct.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),V.freezeMethods(Ct);function bl(e,t){const r=this||bo,n=t||r,o=Ct.from(n.headers);let s=n.data;return V.forEach(e,function(c){s=c.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function gu(e){return!!(e&&e.__CANCEL__)}function On(e,t,r){me.call(this,e??"canceled",me.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(On,me,{__CANCEL__:!0});function yu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new me("Request failed with status code "+r.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ex(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tx(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),u=n[s];l||(l=p),r[o]=d,n[o]=p;let h=s,v=0;for(;h!==o;)v+=r[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),p-l<t)return;const g=u&&p-u;return g?Math.round(v*1e3/g):void 0}}function rx(e,t){let r=0,n=1e3/t,o,s;const l=(p,u=Date.now())=>{r=u,o=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-r;h>=n?l(p,u):(o=p,s||(s=setTimeout(()=>{s=null,l(o)},n-h)))},()=>o&&l(o)]}const is=(e,t,r=3)=>{let n=0;const o=tx(50,250);return rx(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,d=l-n,p=o(d),u=l<=c;n=l;const h={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:p||void 0,estimated:p&&c&&u?(c-l)/p:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},r)},mu=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},bu=e=>(...t)=>V.asap(()=>e(...t)),nx=dt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,dt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,ox=dt.hasStandardBrowserEnv?{write(e,t,r,n,o,s,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];V.isNumber(r)&&c.push(`expires=${new Date(r).toUTCString()}`),V.isString(n)&&c.push(`path=${n}`),V.isString(o)&&c.push(`domain=${o}`),s===!0&&c.push("secure"),V.isString(l)&&c.push(`SameSite=${l}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ix(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vu(e,t,r){let n=!ix(t);return e&&(n||r==!1)?sx(e,t):t}const xu=e=>e instanceof Ct?{...e}:e;function en(e,t){t=t||{};const r={};function n(p,u,h,v){return V.isPlainObject(p)&&V.isPlainObject(u)?V.merge.call({caseless:v},p,u):V.isPlainObject(u)?V.merge({},u):V.isArray(u)?u.slice():u}function o(p,u,h,v){if(V.isUndefined(u)){if(!V.isUndefined(p))return n(void 0,p,h,v)}else return n(p,u,h,v)}function s(p,u){if(!V.isUndefined(u))return n(void 0,u)}function l(p,u){if(V.isUndefined(u)){if(!V.isUndefined(p))return n(void 0,p)}else return n(void 0,u)}function c(p,u,h){if(h in t)return n(p,u);if(h in e)return n(void 0,p)}const d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(p,u,h)=>o(xu(p),xu(u),h,!0)};return V.forEach(Object.keys({...e,...t}),function(u){const h=d[u]||o,v=h(e[u],t[u],u);V.isUndefined(v)&&h!==c||(r[u]=v)}),r}const Su=e=>{const t=en({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:c}=t;if(t.headers=l=Ct.from(l),t.url=du(vu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),V.isFormData(r)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(V.isFunction(r.getHeaders)){const d=r.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{p.includes(u.toLowerCase())&&l.set(u,h)})}}if(dt.hasStandardBrowserEnv&&(n&&V.isFunction(n)&&(n=n(t)),n||n!==!1&&nx(t.url))){const d=o&&s&&ox.read(s);d&&l.set(o,d)}return t},ax=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Su(e);let s=o.data;const l=Ct.from(o.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:p}=o,u,h,v,g,y;function f(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function x(){if(!m)return;const w=Ct.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};yu(function(I){r(I),f()},function(I){n(I),f()},C),m=null}"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(x)},m.onabort=function(){m&&(n(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(S){const C=S&&S.message?S.message:"Network Error",O=new me(C,me.ERR_NETWORK,e,m);O.event=S||null,n(O),m=null},m.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||uu;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),n(new me(S,C.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},s===void 0&&l.setContentType(null),"setRequestHeader"in m&&V.forEach(l.toJSON(),function(S,C){m.setRequestHeader(C,S)}),V.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),c&&c!=="json"&&(m.responseType=o.responseType),p&&([v,y]=is(p,!0),m.addEventListener("progress",v)),d&&m.upload&&([h,g]=is(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(u=w=>{m&&(n(!w||w.type?new On(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=ex(o.url);if(b&&dt.protocols.indexOf(b)===-1){n(new me("Unsupported protocol "+b+":",me.ERR_BAD_REQUEST,e));return}m.send(s||null)})},lx=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const s=function(p){if(!o){o=!0,c();const u=p instanceof Error?p:this.reason;n.abort(u instanceof me?u:new On(u instanceof Error?u.message:u))}};let l=t&&setTimeout(()=>{l=null,s(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:d}=n;return d.unsubscribe=()=>V.asap(c),d}},cx=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},dx=async function*(e,t){for await(const r of px(e))yield*cx(r,t)},px=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},wu=(e,t,r,n)=>{const o=dx(e,t);let s=0,l,c=d=>{l||(l=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:p,value:u}=await o.next();if(p){c(),d.close();return}let h=u.byteLength;if(r){let v=s+=h;r(v)}d.enqueue(new Uint8Array(u))}catch(p){throw c(p),p}},cancel(d){return c(d),o.return()}},{highWaterMark:2})},Cu=64*1024,{isFunction:ss}=V,ux=(({Request:e,Response:t})=>({Request:e,Response:t}))(V.global),{ReadableStream:Eu,TextEncoder:Tu}=V.global,Ou=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fx=e=>{e=V.merge.call({skipUndefined:!0},ux,e);const{fetch:t,Request:r,Response:n}=e,o=t?ss(t):typeof fetch=="function",s=ss(r),l=ss(n);if(!o)return!1;const c=o&&ss(Eu),d=o&&(typeof Tu=="function"?(y=>f=>y.encode(f))(new Tu):async y=>new Uint8Array(await new r(y).arrayBuffer())),p=s&&c&&Ou(()=>{let y=!1;const f=new r(dt.origin,{body:new Eu,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!f}),u=l&&c&&Ou(()=>V.isReadableStream(new n("").body)),h={stream:u&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(f,m)=>{let x=f&&f[y];if(x)return x.call(f);throw new me(`Response type '${y}' is not supported`,me.ERR_NOT_SUPPORT,m)})});const v=async y=>{if(y==null)return 0;if(V.isBlob(y))return y.size;if(V.isSpecCompliantForm(y))return(await new r(dt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(V.isArrayBufferView(y)||V.isArrayBuffer(y))return y.byteLength;if(V.isURLSearchParams(y)&&(y=y+""),V.isString(y))return(await d(y)).byteLength},g=async(y,f)=>{const m=V.toFiniteNumber(y.getContentLength());return m??v(f)};return async y=>{let{url:f,method:m,data:x,signal:b,cancelToken:w,timeout:S,onDownloadProgress:C,onUploadProgress:O,responseType:I,headers:F,withCredentials:D="same-origin",fetchOptions:L}=Su(y),z=t||fetch;I=I?(I+"").toLowerCase():"text";let k=lx([b,w&&w.toAbortSignal()],S),j=null;const A=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let M;try{if(O&&p&&m!=="get"&&m!=="head"&&(M=await g(F,x))!==0){let H=new r(f,{method:"POST",body:x,duplex:"half"}),X;if(V.isFormData(x)&&(X=H.headers.get("content-type"))&&F.setContentType(X),H.body){const[J,Q]=mu(M,is(bu(O)));x=wu(H.body,Cu,J,Q)}}V.isString(D)||(D=D?"include":"omit");const _=s&&"credentials"in r.prototype,N={...L,signal:k,method:m.toUpperCase(),headers:F.normalize().toJSON(),body:x,duplex:"half",credentials:_?D:void 0};j=s&&new r(f,N);let W=await(s?z(j,L):z(f,N));const U=u&&(I==="stream"||I==="response");if(u&&(C||U&&A)){const H={};["status","statusText","headers"].forEach(Y=>{H[Y]=W[Y]});const X=V.toFiniteNumber(W.headers.get("content-length")),[J,Q]=C&&mu(X,is(bu(C),!0))||[];W=new n(wu(W.body,Cu,J,()=>{Q&&Q(),A&&A()}),H)}I=I||"text";let B=await h[V.findKey(h,I)||"text"](W,y);return!U&&A&&A(),await new Promise((H,X)=>{yu(H,X,{data:B,headers:Ct.from(W.headers),status:W.status,statusText:W.statusText,config:y,request:j})})}catch(_){throw A&&A(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,y,j),{cause:_.cause||_}):me.from(_,_&&_.code,y,j)}}},hx=new Map,ku=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,s=[n,o,r];let l=s.length,c=l,d,p,u=hx;for(;c--;)d=s[c],p=u.get(d),p===void 0&&u.set(d,p=c?new Map:fx(t)),u=p;return p};ku();const vl={http:Fv,xhr:ax,fetch:{get:ku}};V.forEach(vl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Pu=e=>`- ${e}`,gx=e=>V.isFunction(e)||e===null||e===!1;function yx(e,t){e=V.isArray(e)?e:[e];const{length:r}=e;let n,o;const s={};for(let l=0;l<r;l++){n=e[l];let c;if(o=n,!gx(n)&&(o=vl[(c=String(n)).toLowerCase()],o===void 0))throw new me(`Unknown adapter '${c}'`);if(o&&(V.isFunction(o)||(o=o.get(t))))break;s[c||"#"+l]=o}if(!o){const l=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=r?l.length>1?`since :
22
- `+l.map(Pu).join(`
23
- `):" "+Pu(l[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o}const Iu={getAdapter:yx,adapters:vl};function xl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new On(null,e)}function Nu(e){return xl(e),e.headers=Ct.from(e.headers),e.data=bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Iu.getAdapter(e.adapter||bo.adapter,e)(e).then(function(n){return xl(e),n.data=bl.call(e,e.transformResponse,n),n.headers=Ct.from(n.headers),n},function(n){return gu(n)||(xl(e),n&&n.response&&(n.response.data=bl.call(e,e.transformResponse,n.response),n.response.headers=Ct.from(n.response.headers))),Promise.reject(n)})}const _u="1.13.2",as={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{as[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Au={};as.transitional=function(t,r,n){function o(s,l){return"[Axios v"+_u+"] Transitional option '"+s+"'"+l+(n?". "+n:"")}return(s,l,c)=>{if(t===!1)throw new me(o(l," has been removed"+(r?" in "+r:"")),me.ERR_DEPRECATED);return r&&!Au[l]&&(Au[l]=!0,console.warn(o(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,l,c):!0}},as.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function mx(e,t,r){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],l=t[s];if(l){const c=e[s],d=c===void 0||l(c,s,e);if(d!==!0)throw new me("option "+s+" must be "+d,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+s,me.ERR_BAD_OPTION)}}const ls={assertOptions:mx,validators:as},or=ls.validators;let tn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new pu,response:new pu}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
24
- `+s):n.stack=s}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=en(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&ls.assertOptions(n,{silentJSONParsing:or.transitional(or.boolean),forcedJSONParsing:or.transitional(or.boolean),clarifyTimeoutError:or.transitional(or.boolean)},!1),o!=null&&(V.isFunction(o)?r.paramsSerializer={serialize:o}:ls.assertOptions(o,{encode:or.function,serialize:or.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ls.assertOptions(r,{baseUrl:or.spelling("baseURL"),withXsrfToken:or.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=s&&V.merge(s.common,s[r.method]);s&&V.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Ct.concat(l,s);const c=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(d=d&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,v;if(!d){const y=[Nu.bind(this),void 0];for(y.unshift(...c),y.push(...p),v=y.length,u=Promise.resolve(r);h<v;)u=u.then(y[h++],y[h++]);return u}v=c.length;let g=r;for(;h<v;){const y=c[h++],f=c[h++];try{g=y(g)}catch(m){f.call(this,m);break}}try{u=Nu.call(this,g)}catch(y){return Promise.reject(y)}for(h=0,v=p.length;h<v;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=en(this.defaults,t);const r=vu(t.baseURL,t.url,t.allowAbsoluteUrls);return du(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){tn.prototype[t]=function(r,n){return this.request(en(n||{},{method:t,url:r,data:(n||{}).data}))}}),V.forEach(["post","put","patch"],function(t){function r(n){return function(s,l,c){return this.request(en(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}tn.prototype[t]=r(),tn.prototype[t+"Form"]=r(!0)});let bx=class vy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(c=>{n.subscribe(c),s=c}).then(o);return l.cancel=function(){n.unsubscribe(s)},l},t(function(s,l,c){n.reason||(n.reason=new On(s,l,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new vy(function(o){t=o}),cancel:t}}};function vx(e){return function(r){return e.apply(null,r)}}function xx(e){return V.isObject(e)&&e.isAxiosError===!0}const Sl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Sl).forEach(([e,t])=>{Sl[t]=e});function Mu(e){const t=new tn(e),r=Kp(tn.prototype.request,t);return V.extend(r,tn.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Mu(en(e,o))},r}const Ue=Mu(bo);Ue.Axios=tn,Ue.CanceledError=On,Ue.CancelToken=bx,Ue.isCancel=gu,Ue.VERSION=_u,Ue.toFormData=ns,Ue.AxiosError=me,Ue.Cancel=Ue.CanceledError,Ue.all=function(t){return Promise.all(t)},Ue.spread=vx,Ue.isAxiosError=xx,Ue.mergeConfig=en,Ue.AxiosHeaders=Ct,Ue.formToJSON=e=>fu(V.isHTMLForm(e)?new FormData(e):e),Ue.getAdapter=Iu.getAdapter,Ue.HttpStatusCode=Sl,Ue.default=Ue;const{Axios:oN,AxiosError:iN,CanceledError:sN,isCancel:aN,CancelToken:lN,VERSION:cN,all:dN,Cancel:pN,isAxiosError:uN,spread:fN,toFormData:hN,AxiosHeaders:gN,HttpStatusCode:yN,formToJSON:mN,getAdapter:bN,mergeConfig:vN}=Ue;function cs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Sx={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function wl(e,t){function r(o,s,l){if(!(typeof document>"u")){l=cs({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var d in l)l[d]&&(c+="; "+d,l[d]!==!0&&(c+="="+l[d].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+c}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],l={},c=0;c<s.length;c++){var d=s[c].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(l[u]=e.read(p,u),o===u)break}catch{}}return o?l[o]:l}}return Object.create({set:r,get:n,remove:function(o,s){r(o,"",cs({},s,{expires:-1}))},withAttributes:function(o){return wl(this.converter,cs({},this.attributes,o))},withConverter:function(o){return wl(cs({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var jr=wl(Sx,{path:"/"});const wx={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let rn="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Pa&&Pa.tagName.toUpperCase()==="SCRIPT"&&Pa.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&wx?.VITE_API_URL)rn=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(rn=process.env.VITE_API_URL)}}catch{}const Cx=e=>{rn=e,bt.defaults.baseURL=rn},$u=()=>rn,Ex=e=>{e?jr.set("token",e,{secure:!0,sameSite:"Strict"}):jr.remove("token")},Tx=()=>"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDE3NSwibmFtZSI6IlN1YmhhbSAiLCJjb21wYW55SWQiOiIxYzQzYzhjMi1jNzg0LTQ0MmUtOTU3NC03YTM4ZTgyODJkMWEiLCJyZWdpb25zIjpbXSwiY2x1c3RlcnMiOltdLCJmb3JtYXRzIjpbXSwic3RvcmVzIjpbeyJpZCI6IjA5NDYwODY4LTgzODgtNGNkNi04Y2QwLTc0OWFhZmEzY2NiMSIsIm5hbWUiOiJIUjA0In1dLCJyb2xlcyI6W3siaWQiOjc2NywibmFtZSI6IlNUT1JFTUFOQUdFUiJ9XSwic2Vzc2lvbklkIjo3MTExLCJpYXQiOjE3NzA0Mzk3ODIsImV4cCI6MTc3MDUyNjE4Mn0.3GLd_cbf9qPhkJSvwNzloBR4E3x_Oi13ApBMAtI9iuo",bt=Ue.create({baseURL:rn,transformRequest:[function(e,t){const r=Tx();return r?t.Authorization=`Bearer ${r}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Cl=!1,El=null;bt.interceptors.response.use(e=>e,async e=>{const t=e.config,r=e.response;if(r&&(r.status===401||r.status===402)){const n=jr.get("refreshToken");if(n)try{Cl||(Cl=!0,El=Ue.post(`${rn}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${n}`}}));const o=await El,{token:s,refreshToken:l}=o.data;return jr.set("token",s,{secure:!0,sameSite:"Strict"}),jr.set("refreshToken",l),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,bt(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(jr.remove("token"),jr.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{Cl=!1,El=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(jr.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const Tl=async e=>{const t=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await bt.get(t)).data},Ol=Gt("ftpSync/testConnection",async({serverAddress:e,username:t,password:r,companyId:n,tenantId:o},{rejectWithValue:s})=>{try{const l=n||o;if(!l)throw new Error("Company ID is required");const c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format");let[,d,p,u,h]=c;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const v={tenantId:l,type:d,configs:{host:p,port:Number(u),username:t,password:r,path:h.replace(/^\//,"")},entity_type:""},g=await bt.post("/ftp/sync/test-connection",v);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",g.data),console.log("existing_mapping:",g.data?.existing_mapping),console.log("================================================"),g.data}catch(l){return s(l.response?.data||l.message)}}),Du=Ji({name:"ftpSync",initialState:{loading:!1,error:null,ftpColumns:[],preview:[],configs:{},integration_type:"",tenantId:"",entity_type:"",existingMapping:null},reducers:{clearFtpSyncState(e){e.loading=!1,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.tenantId="",e.entity_type="",e.existingMapping=null}},extraReducers:e=>{e.addCase(Ol.pending,t=>{t.loading=!0,t.error=null}),e.addCase(Ol.fulfilled,(t,r)=>{t.loading=!1,t.error=null,console.log("testFtpConnection.fulfilled payload:",r.payload),console.log("existing_mapping in payload:",r.payload.existing_mapping),t.ftpColumns=r.payload.ftp_columns||[],t.preview=r.payload.preview||[],t.configs=r.payload.configs||{},t.integration_type=r.payload.integration_type||"",t.tenantId=r.payload.tenantId||"";let n=r.payload.entity_type;t.entity_type=n||"",console.log("📦 Final entity_type stored in Redux:",t.entity_type),t.existingMapping=r.payload.existing_mapping||null}),e.addCase(Ol.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||r.error.message})}}),{clearFtpSyncState:SN}=Du.actions,Ox=Du.reducer;console.log("[FTP SYNC] actions.js loaded");const kx="SET_FTP_SYNC_DATA",Px="SAVE_FTP_SYNC_REQUEST",Ix="SAVE_FTP_SYNC_SUCCESS",Nx="SAVE_FTP_SYNC_FAILURE",_x={syncData:{tenantId:"",type:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},loading:!1,error:null,result:null,success:!1};function Ax(e=_x,t){switch(t.type){case kx:return{...e,syncData:{...e.syncData,...t.payload}};case Px:return{...e,loading:!0,error:null,success:!1};case Ix:return{...e,loading:!1,result:t.payload,success:!0};case Nx:return{...e,loading:!1,error:t.error,success:!1};case"CLEAR_FTP_SYNC_SUCCESS":return{...e,success:!1};default:return e}}const ds=Gt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const o=(await bt.get("/dashboard/metrics",{params:e})).data||{};return o.data||o}catch(r){const n=r.response?.data?.message||r.message||"Failed to fetch dashboard metrics";return t(n)}}),xo=Gt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{console.log("Calling /auth/verify API...");const r=await bt.get("/auth/verify");console.log("/auth/verify response:",r.data);const n=r.data?.companyId||r.data?.data?.companyId;if(n)return n;throw new Error("companyId not found in /auth/verify response")}catch(r){const n=r.response?.data?.message||r.message||"Failed to verify auth";return t(n)}}),Br=Gt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const r=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await bt.get(r)).data}catch(r){const n=r.response?.data?.message||r.message||"Failed to fetch dashboard metrics";return t(n)}}),Lr=Gt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await bt.get("/store-inventory",{params:e})).data||{}}catch(r){return console.log("Error fetching products:",r),t(r.response?.data||r.message)}}),Fu=Ji({name:"dashboard",initialState:{loading:!1,companyId:"",error:null,metrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:""},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1}},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},updateMetric:(e,t)=>{const{key:r,value:n}=t.payload;e.metrics&&(e.metrics[r]=n)}},extraReducers:e=>{e.addCase(ds.pending,t=>{t.loading=!0,t.error=null}).addCase(ds.fulfilled,(t,r)=>{t.loading=!1,t.metrics=r.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(ds.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to fetch dashboard metrics"}),e.addCase(Br.pending,t=>{t.loading=!0}).addCase(Br.fulfilled,(t,r)=>{t.loading=!1,r.payload&&Array.isArray(r.payload.data)&&r.payload.data.length>0?t.integrationData=r.payload.data[0]:t.integrationData={}}).addCase(Br.rejected,t=>{t.loading=!1}),e.addCase(xo.pending,t=>{t.loading=!0,t.error=null}),e.addCase(xo.fulfilled,(t,r)=>{t.loading=!1,t.companyId=r.payload,t.error=null}),e.addCase(xo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to verify auth"}),e.addCase(Lr.pending,t=>{t.loading=!0,t.loadingMessage="Fetching Schedules"}).addCase(Lr.fulfilled,(t,r)=>{t.loading=!1,t.loadingMessage="",t.error=null;const n=r.payload||{},o=Array.isArray(n.data)?n.data:Array.isArray(n.products)?n.products:Array.isArray(n)?n:[];t.products=o;const s=(g,y=0)=>{if(g==null||g==="")return y;const f=Number(g);return Number.isFinite(f)?f:y},l={};o.forEach(g=>{if(!g)return;const y=g.categoryName||"Uncategorized";l[y]||(l[y]=[]),l[y].push({...g,stock:s(g.stock),inventory:s(g.inventory),inShelf:s(g.inShelf)})}),t.categorySummary=Object.entries(l).map(([g,y])=>{let f=0,m=0,x=null,b=[];y.forEach(S=>{f+=Number(S.stock)||0,m+=Number(S.inventory)||0,(!x||S.updated&&new Date(S.updated)>new Date(x.updated))&&(x=S),S.productImage&&b.length<5&&b.push(S.productImage)});const w=m>0?Math.round(f/m*100):0;return{name:g,products:y.length,stock:`${f}/${m}`,osa:`${w}% on shelf`,updated:x?.updated?new Date(x.updated).toLocaleString():"",images:b}});const c=Object.values(l).flat(),d=Object.keys(l).length,p=c.length;let u="";if(c.length>0){const g=c.reduce((y,f)=>y?f?new Date(y.updated)>new Date(f.updated)?y:f:y:f);u=g?.updated?new Date(g.updated).toLocaleString():""}t.homePageCardSummary={totalCategories:d,totalProducts:p,lastSync:u},t.productsByCategory=l;const h=n.pagination||{},v=typeof h.totalCount=="number"?h.totalCount:Object.values(l).reduce((g,y)=>g+y.length,0);t.pagination={currentPage:typeof h.currentPage=="number"?h.currentPage:1,limit:typeof h.limit=="number"?h.limit:20,totalCount:v,totalPages:typeof h.totalPages=="number"?h.totalPages:1,hasNextPage:typeof h.hasNextPage=="boolean"?h.hasNextPage:!1}}).addCase(Lr.rejected,(t,r)=>{t.loading=!1,t.error=r.error?.message||r.payload||"Failed to fetch products",t.loadingMessage=""})}}),{clearMetrics:CN,clearError:EN,updateMetric:TN}=Fu.actions,Mx=Fu.reducer,So=Gt("productSettings/testConnection",async({serverAddress:e,username:t,password:r,companyId:n,tenantId:o},{rejectWithValue:s})=>{try{const l=n||o;if(!l)throw new Error("Company ID is required");const c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,p,u,h]=c;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const v={tenantId:l,type:d,configs:{host:p,port:Number(u),username:t,password:r,path:h.replace(/^\//,"")},entity_type:""},g=await bt.post("/ftp/sync/test-connection",v);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",g.data),console.log("existing_mapping:",g.data?.existing_mapping),console.log("================================================"),g.data}catch(l){const c=l.response?.data?.message||l.message||"Failed to test FTP connection";return s(c)}}),wo=Gt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const r={...e,tenantId:e.tenantId||e.companyId};return console.log("[FTP Sync] Calling POST /ftp/sync/save with payload:",JSON.stringify(r,null,2)),(await bt.post("/ftp/sync/save",r)).data}catch(r){const n=r.response?.data?.message||r.message||"Failed to save FTP sync configuration";return t(n)}}),Co=Gt("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const r={...e,tenantId:e.tenantId||e.companyId};r.companyId&&!r.tenantId&&delete r.companyId,console.log("[FTP SYNC] API payload (mapped):",r);const n=await bt.put("/ftp/sync/update-details",r);if(n.status>=200&&n.status<300)return n.data;{const o=n.data?.message||"Failed to update FTP sync details";return t(o)}}catch(r){const n=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,data:r.response?.data,message:n}),t(n)}}),ps=Gt("productSettings/updateProductSetting",async({companyId:e,tenantId:t,data:r},{rejectWithValue:n})=>{try{const o=e||t;if(!o)throw new Error("Company ID or Tenant ID is required");if(!r||typeof r!="object")throw new Error("Update data is required");const s=await Tl(o),l=s.data&&s.data[0];if(!l||!l.id)return n("No integration found for this tenant/company");const c=await bt.patch(`/integrations/${l.id}`,r);if(c.status>=200&&c.status<300)return c.data;{const d=c.data?.message||"Failed to update product setting";return n(d)}}catch(o){const s=o.response?.data?.message||o.response?.data?.error||o.message||"Failed to update product setting";return n(s)}}),Eo=Gt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const r=await bt.post(`/ftp/sync/${e}/sync-now`);if(r.status>=200&&r.status<300)return r.data;{const n=r.data?.message||"Failed to start sync";return t(n)}}catch(r){const n=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to start sync";return t(n)}}),To=Gt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const r=e?{entity_type:e}:{},n=await bt.get("/store-inventory/mapping-columns",{params:r});if(n.status>=200&&n.status<300)return n.data&&typeof n.data=="object"&&"status"in n.data&&n.data.status?n.data.data||[]:n.data||[];{const o=n.data?.message||"Failed to fetch mapping columns";return t(o)}}catch(r){const n=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to fetch mapping columns";return t(n)}}),kl={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,updateProductSettingResult:null,syncNowResult:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null},zu=Ji({name:"productSettings",initialState:kl,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearUpdateProductSettingResult:e=>{e.updateProductSettingResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=kl.syncData}},extraReducers:e=>{e.addCase(So.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(So.fulfilled,(t,r)=>{t.loading=!1,t.testConnectionResult=r.payload,t.error=null;const n=r.payload;t.ftpColumns=n.ftp_columns||[],t.preview=n.preview||[],t.configs=n.configs||{},t.integration_type=n.integration_type||"",t.companyId=n.companyId||n.tenantId||"";let o=n.entity_type||"";if(!o&&n.existing_mapping?.mappings?.length>0){const s=n.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(o="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=o,t.existingMapping=n.existing_mapping||null,n.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(So.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to test FTP connection"}),e.addCase(To.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(To.fulfilled,(t,r)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(r.payload)?r.payload:[],t.mappingColumnsError=null}).addCase(To.rejected,(t,r)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=r.payload||"Failed to fetch mapping columns"}),e.addCase(wo.pending,t=>{t.loading=!0,t.error=null}).addCase(wo.fulfilled,(t,r)=>{t.loading=!1,t.saveResult=r.payload,t.error=null,t.syncData=kl.syncData}).addCase(wo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to save FTP sync configuration"}),e.addCase(Co.pending,t=>{t.loading=!0,t.error=null}).addCase(Co.fulfilled,(t,r)=>{t.loading=!1,t.updateDetailsResult=r.payload,t.error=null}).addCase(Co.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to update FTP sync details"}),e.addCase(ps.pending,t=>{t.loading=!0,t.error=null}).addCase(ps.fulfilled,(t,r)=>{t.loading=!1,t.updateProductSettingResult=r.payload,t.error=null}).addCase(ps.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to update product setting"}),e.addCase(Eo.pending,t=>{t.loading=!0,t.error=null}).addCase(Eo.fulfilled,(t,r)=>{t.loading=!1,t.syncNowResult=r.payload,t.error=null}).addCase(Eo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload||"Failed to start sync"})}}),{clearError:ON,clearTestConnectionResult:kN,clearSaveResult:$x,clearAll:PN,clearTestConnectionData:IN,clearUpdateDetailsResult:NN,clearUpdateProductSettingResult:_N,clearSyncNowResult:AN,setFtpSyncData:us,clearFtpSyncData:MN,clearMappingColumnsError:$N,clearMappingColumns:DN}=zu.actions,Dx=zu.reducer;var fs={},hs={},ju;function Fx(){if(ju)return hs;ju=1,hs.__esModule=!0,hs.default=o;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(c){return typeof c}:e=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(s)}function t(){}var r={getItem:t,setItem:t,removeItem:t};function n(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var l=self[s],c="redux-persist ".concat(s," test");l.setItem(c,"test"),l.getItem(c),l.removeItem(c)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function o(s){var l="".concat(s,"Storage");return n(l)?self[l]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),r)}return hs}var Bu;function zx(){if(Bu)return fs;Bu=1,fs.__esModule=!0,fs.default=r;var e=t(Fx());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){var o=(0,e.default)(n);return{getItem:function(l){return new Promise(function(c,d){c(o.getItem(l))})},setItem:function(l,c){return new Promise(function(d,p){d(o.setItem(l,c))})},removeItem:function(l){return new Promise(function(c,d){c(o.removeItem(l))})}}}return fs}var jx=zx();const Bx={key:"auth",storage:typeof window<"u"?qd(jx)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},Lx=rp({products:J0,ftpSync:Ox,ftpSyncSave:Ax,dashboard:Mx,productSettings:Dx}),Wx=H0(Bx,Lx),Lu=d0({reducer:Wx,middleware:e=>e({serializableCheck:!1})}),Vx=X0(Lu),Ux=$.createContext(null),Hx=({children:e,apiUrl:t,authToken:r})=>($.useEffect(()=>{t&&Cx(t)},[t]),$.useEffect(()=>{Ex(r||null)},[r]),a.jsx(Ux.Provider,{value:{apiUrl:t},children:e})),Oo={black:"#000",white:"#fff"},kn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},In={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Nn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},_n={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ko={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Rx={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"};function ir(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Po="$$material";function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gs.apply(null,arguments)}function qx(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 Yx(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 Gx=(function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=qx(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),pt="-ms-",ys="-moz-",Ee="-webkit-",Wu="comm",Pl="rule",Il="decl",Kx="@import",Vu="@keyframes",Xx="@layer",Jx=Math.abs,ms=String.fromCharCode,Qx=Object.assign;function Zx(e,t){return st(e,0)^45?(((t<<2^st(e,0))<<2^st(e,1))<<2^st(e,2))<<2^st(e,3):0}function Uu(e){return e.trim()}function e1(e,t){return(e=t.exec(e))?e[0]:e}function Te(e,t,r){return e.replace(t,r)}function Nl(e,t){return e.indexOf(t)}function st(e,t){return e.charCodeAt(t)|0}function Io(e,t,r){return e.slice(t,r)}function sr(e){return e.length}function _l(e){return e.length}function bs(e,t){return t.push(e),e}function t1(e,t){return e.map(t).join("")}var vs=1,An=1,Hu=0,Et=0,Xe=0,Mn="";function xs(e,t,r,n,o,s,l){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:vs,column:An,length:l,return:""}}function No(e,t){return Qx(xs("",null,null,"",null,null,0),e,{length:-e.length},t)}function r1(){return Xe}function n1(){return Xe=Et>0?st(Mn,--Et):0,An--,Xe===10&&(An=1,vs--),Xe}function _t(){return Xe=Et<Hu?st(Mn,Et++):0,An++,Xe===10&&(An=1,vs++),Xe}function ar(){return st(Mn,Et)}function Ss(){return Et}function _o(e,t){return Io(Mn,e,t)}function Ao(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 Ru(e){return vs=An=1,Hu=sr(Mn=e),Et=0,[]}function qu(e){return Mn="",e}function ws(e){return Uu(_o(Et-1,Al(e===91?e+2:e===40?e+1:e)))}function o1(e){for(;(Xe=ar())&&Xe<33;)_t();return Ao(e)>2||Ao(Xe)>3?"":" "}function i1(e,t){for(;--t&&_t()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return _o(e,Ss()+(t<6&&ar()==32&&_t()==32))}function Al(e){for(;_t();)switch(Xe){case e:return Et;case 34:case 39:e!==34&&e!==39&&Al(Xe);break;case 40:e===41&&Al(e);break;case 92:_t();break}return Et}function s1(e,t){for(;_t()&&e+Xe!==57;)if(e+Xe===84&&ar()===47)break;return"/*"+_o(t,Et-1)+"*"+ms(e===47?e:_t())}function a1(e){for(;!Ao(ar());)_t();return _o(e,Et)}function l1(e){return qu(Cs("",null,null,null,[""],e=Ru(e),0,[0],e))}function Cs(e,t,r,n,o,s,l,c,d){for(var p=0,u=0,h=l,v=0,g=0,y=0,f=1,m=1,x=1,b=0,w="",S=o,C=s,O=n,I=w;m;)switch(y=b,b=_t()){case 40:if(y!=108&&st(I,h-1)==58){Nl(I+=Te(ws(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=ws(b);break;case 9:case 10:case 13:case 32:I+=o1(y);break;case 92:I+=i1(Ss()-1,7);continue;case 47:switch(ar()){case 42:case 47:bs(c1(s1(_t(),Ss()),t,r),d);break;default:I+="/"}break;case 123*f:c[p++]=sr(I)*x;case 125*f:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:x==-1&&(I=Te(I,/\f/g,"")),g>0&&sr(I)-h&&bs(g>32?Gu(I+";",n,r,h-1):Gu(Te(I," ","")+";",n,r,h-2),d);break;case 59:I+=";";default:if(bs(O=Yu(I,t,r,p,u,o,c,w,S=[],C=[],h),s),b===123)if(u===0)Cs(I,t,O,O,S,s,h,c,C);else switch(v===99&&st(I,3)===110?100:v){case 100:case 108:case 109:case 115:Cs(e,O,O,n&&bs(Yu(e,O,O,0,0,o,c,w,o,S=[],h),C),o,C,h,c,n?S:C);break;default:Cs(I,O,O,O,[""],C,0,c,C)}}p=u=g=0,f=x=1,w=I="",h=l;break;case 58:h=1+sr(I),g=y;default:if(f<1){if(b==123)--f;else if(b==125&&f++==0&&n1()==125)continue}switch(I+=ms(b),b*f){case 38:x=u>0?1:(I+="\f",-1);break;case 44:c[p++]=(sr(I)-1)*x,x=1;break;case 64:ar()===45&&(I+=ws(_t())),v=ar(),u=h=sr(w=I+=a1(Ss())),b++;break;case 45:y===45&&sr(I)==2&&(f=0)}}return s}function Yu(e,t,r,n,o,s,l,c,d,p,u){for(var h=o-1,v=o===0?s:[""],g=_l(v),y=0,f=0,m=0;y<n;++y)for(var x=0,b=Io(e,h+1,h=Jx(f=l[y])),w=e;x<g;++x)(w=Uu(f>0?v[x]+" "+b:Te(b,/&\f/g,v[x])))&&(d[m++]=w);return xs(e,t,r,o===0?Pl:c,d,p,u)}function c1(e,t,r){return xs(e,t,r,Wu,ms(r1()),Io(e,2,-2),0)}function Gu(e,t,r,n){return xs(e,t,r,Il,Io(e,0,n),Io(e,n+1,-1),n)}function $n(e,t){for(var r="",n=_l(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function d1(e,t,r,n){switch(e.type){case Xx:if(e.children.length)break;case Kx:case Il:return e.return=e.return||e.value;case Wu:return"";case Vu:return e.return=e.value+"{"+$n(e.children,n)+"}";case Pl:e.value=e.props.join(",")}return sr(r=$n(e.children,n))?e.return=e.value+"{"+r+"}":""}function p1(e){var t=_l(e);return function(r,n,o,s){for(var l="",c=0;c<t;c++)l+=e[c](r,n,o,s)||"";return l}}function u1(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ku(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var f1=function(t,r,n){for(var o=0,s=0;o=s,s=ar(),o===38&&s===12&&(r[n]=1),!Ao(s);)_t();return _o(t,Et)},h1=function(t,r){var n=-1,o=44;do switch(Ao(o)){case 0:o===38&&ar()===12&&(r[n]=1),t[n]+=f1(Et-1,r,n);break;case 2:t[n]+=ws(o);break;case 4:if(o===44){t[++n]=ar()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ms(o)}while(o=_t());return t},g1=function(t,r){return qu(h1(Ru(t),r))},Xu=new WeakMap,y1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Xu.get(n))&&!o){Xu.set(t,!0);for(var s=[],l=g1(r,s),c=n.props,d=0,p=0;d<l.length;d++)for(var u=0;u<c.length;u++,p++)t.props[p]=s[d]?l[d].replace(/&\f/g,c[u]):c[u]+" "+l[d]}}},m1=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ju(e,t){switch(Zx(e,t)){case 5103:return Ee+"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 Ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+e+ys+e+pt+e+e;case 6828:case 4268:return Ee+e+pt+e+e;case 6165:return Ee+e+pt+"flex-"+e+e;case 5187:return Ee+e+Te(e,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return Ee+e+pt+"flex-item-"+Te(e,/flex-|-self/,"")+e;case 4675:return Ee+e+pt+"flex-line-pack"+Te(e,/align-content|flex-|-self/,"")+e;case 5548:return Ee+e+pt+Te(e,"shrink","negative")+e;case 5292:return Ee+e+pt+Te(e,"basis","preferred-size")+e;case 6060:return Ee+"box-"+Te(e,"-grow","")+Ee+e+pt+Te(e,"grow","positive")+e;case 4554:return Ee+Te(e,/([^-])(transform)/g,"$1"+Ee+"$2")+e;case 6187:return Te(Te(Te(e,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),e,"")+e;case 5495:case 3959:return Te(e,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return Te(Te(e,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+e+e;case 4095:case 3583:case 4068:case 2532:return Te(e,/(.+)-inline(.+)/,Ee+"$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(sr(e)-1-t>6)switch(st(e,t+1)){case 109:if(st(e,t+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+ys+(st(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Nl(e,"stretch")?Ju(Te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(st(e,t+1)!==115)break;case 6444:switch(st(e,sr(e)-3-(~Nl(e,"!important")&&10))){case 107:return Te(e,":",":"+Ee)+e;case 101:return Te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(st(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+pt+"$2box$3")+e}break;case 5936:switch(st(e,t+11)){case 114:return Ee+e+pt+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+pt+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+pt+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+pt+e+e}return e}var b1=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Il:t.return=Ju(t.value,t.length);break;case Vu:return $n([No(t,{value:Te(t.value,"@","@"+Ee)})],o);case Pl:if(t.length)return t1(t.props,function(s){switch(e1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $n([No(t,{props:[Te(s,/:(read-\w+)/,":"+ys+"$1")]})],o);case"::placeholder":return $n([No(t,{props:[Te(s,/:(plac\w+)/,":"+Ee+"input-$1")]}),No(t,{props:[Te(s,/:(plac\w+)/,":"+ys+"$1")]}),No(t,{props:[Te(s,/:(plac\w+)/,pt+"input-$1")]})],o)}return""})}},v1=[b1],x1=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||v1,s={},l,c=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)s[m[x]]=!0;c.push(f)});var d,p=[y1,m1];{var u,h=[d1,u1(function(f){u.insert(f)})],v=p1(p.concat(o,h)),g=function(m){return $n(l1(m),v)};d=function(m,x,b,w){u=b,g(m?m+"{"+x.styles+"}":x.styles),w&&(y.inserted[x.name]=!0)}}var y={key:r,sheet:new Gx({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return y.sheet.hydrate(c),y},Es={exports:{}},Pe={};var Qu;function S1(){if(Qu)return Pe;Qu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case d:case p:case n:case s:case o:case h:return C;default:switch(C=C&&C.$$typeof,C){case c:case u:case y:case g:case l:return C;default:return O}}case r:return O}}}function S(C){return w(C)===p}return Pe.AsyncMode=d,Pe.ConcurrentMode=p,Pe.ContextConsumer=c,Pe.ContextProvider=l,Pe.Element=t,Pe.ForwardRef=u,Pe.Fragment=n,Pe.Lazy=y,Pe.Memo=g,Pe.Portal=r,Pe.Profiler=s,Pe.StrictMode=o,Pe.Suspense=h,Pe.isAsyncMode=function(C){return S(C)||w(C)===d},Pe.isConcurrentMode=S,Pe.isContextConsumer=function(C){return w(C)===c},Pe.isContextProvider=function(C){return w(C)===l},Pe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Pe.isForwardRef=function(C){return w(C)===u},Pe.isFragment=function(C){return w(C)===n},Pe.isLazy=function(C){return w(C)===y},Pe.isMemo=function(C){return w(C)===g},Pe.isPortal=function(C){return w(C)===r},Pe.isProfiler=function(C){return w(C)===s},Pe.isStrictMode=function(C){return w(C)===o},Pe.isSuspense=function(C){return w(C)===h},Pe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===p||C===s||C===o||C===h||C===v||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===g||C.$$typeof===l||C.$$typeof===c||C.$$typeof===u||C.$$typeof===m||C.$$typeof===x||C.$$typeof===b||C.$$typeof===f)},Pe.typeOf=w,Pe}var Ie={};var Zu;function w1(){return Zu||(Zu=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(q){return typeof q=="string"||typeof q=="function"||q===n||q===p||q===s||q===o||q===h||q===v||typeof q=="object"&&q!==null&&(q.$$typeof===y||q.$$typeof===g||q.$$typeof===l||q.$$typeof===c||q.$$typeof===u||q.$$typeof===m||q.$$typeof===x||q.$$typeof===b||q.$$typeof===f)}function S(q){if(typeof q=="object"&&q!==null){var ce=q.$$typeof;switch(ce){case t:var ie=q.type;switch(ie){case d:case p:case n:case s:case o:case h:return ie;default:var ye=ie&&ie.$$typeof;switch(ye){case c:case u:case y:case g:case l:return ye;default:return ce}}case r:return ce}}}var C=d,O=p,I=c,F=l,D=t,L=u,z=n,k=y,j=g,A=r,M=s,_=o,N=h,W=!1;function U(q){return W||(W=!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.")),B(q)||S(q)===d}function B(q){return S(q)===p}function H(q){return S(q)===c}function X(q){return S(q)===l}function J(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function Q(q){return S(q)===u}function Y(q){return S(q)===n}function K(q){return S(q)===y}function ee(q){return S(q)===g}function oe(q){return S(q)===r}function ae(q){return S(q)===s}function Z(q){return S(q)===o}function re(q){return S(q)===h}Ie.AsyncMode=C,Ie.ConcurrentMode=O,Ie.ContextConsumer=I,Ie.ContextProvider=F,Ie.Element=D,Ie.ForwardRef=L,Ie.Fragment=z,Ie.Lazy=k,Ie.Memo=j,Ie.Portal=A,Ie.Profiler=M,Ie.StrictMode=_,Ie.Suspense=N,Ie.isAsyncMode=U,Ie.isConcurrentMode=B,Ie.isContextConsumer=H,Ie.isContextProvider=X,Ie.isElement=J,Ie.isForwardRef=Q,Ie.isFragment=Y,Ie.isLazy=K,Ie.isMemo=ee,Ie.isPortal=oe,Ie.isProfiler=ae,Ie.isStrictMode=Z,Ie.isSuspense=re,Ie.isValidElementType=w,Ie.typeOf=S})()),Ie}var ef;function Ml(){return ef||(ef=1,process.env.NODE_ENV==="production"?Es.exports=S1():Es.exports=w1()),Es.exports}var $l,tf;function C1(){if(tf)return $l;tf=1;var e=Ml(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=n,s[e.Memo]=o;function l(y){return e.isMemo(y)?o:s[y.$$typeof]||t}var c=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,v=Object.prototype;function g(y,f,m){if(typeof f!="string"){if(v){var x=h(f);x&&x!==v&&g(y,x,m)}var b=d(f);p&&(b=b.concat(p(f)));for(var w=l(y),S=l(f),C=0;C<b.length;++C){var O=b[C];if(!r[O]&&!(m&&m[O])&&!(S&&S[O])&&!(w&&w[O])){var I=u(f,O);try{c(y,O,I)}catch{}}}}return y}return $l=g,$l}C1();var E1=!0;function rf(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Dl=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||E1===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Fl=function(t,r,n){Dl(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function T1(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 O1={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},k1=/[A-Z]|^ms/g,P1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nf=function(t){return t.charCodeAt(1)===45},of=function(t){return t!=null&&typeof t!="boolean"},zl=Ku(function(e){return nf(e)?e:e.replace(k1,"-$&").toLowerCase()}),sf=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(P1,function(n,o,s){return lr={name:o,styles:s,next:lr},o})}return O1[t]!==1&&!nf(t)&&typeof r=="number"&&r!==0?r+"px":r};function Mo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return lr={name:o.name,styles:o.styles,next:lr},o.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)lr={name:l.name,styles:l.styles,next:lr},l=l.next;var c=s.styles+";";return c}return I1(e,t,r)}case"function":{if(e!==void 0){var d=lr,p=r(e);return lr=d,Mo(e,t,p)}break}}var u=r;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function I1(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Mo(e,t,r[o])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":of(c)&&(n+=zl(s)+":"+sf(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)of(l[d])&&(n+=zl(s)+":"+sf(s,l[d])+";");else{var p=Mo(e,t,l);switch(s){case"animation":case"animationName":{n+=zl(s)+":"+p+";";break}default:n+=s+"{"+p+"}"}}}return n}var af=/label:\s*([^\s;{]+)\s*(;|$)/g,lr;function $o(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";lr=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,o+=Mo(r,t,s);else{var l=s;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=Mo(r,t,e[c]),n){var d=s;o+=d[c]}af.lastIndex=0;for(var p="",u;(u=af.exec(o))!==null;)p+="-"+u[1];var h=T1(o)+p;return{name:h,styles:o,next:lr}}var N1=function(t){return t()},lf=T.useInsertionEffect?T.useInsertionEffect:!1,cf=lf||N1,df=lf||T.useLayoutEffect,pf=T.createContext(typeof HTMLElement<"u"?x1({key:"css"}):null);pf.Provider;var jl=function(t){return $.forwardRef(function(r,n){var o=$.useContext(pf);return t(r,o,n)})},Ts=T.createContext({}),Bl={}.hasOwnProperty,Ll="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_1=function(t,r){var n={};for(var o in r)Bl.call(r,o)&&(n[o]=r[o]);return n[Ll]=t,n},A1=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Dl(r,n,o),cf(function(){return Fl(r,n,o)}),null},M1=jl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ll],s=[n],l="";typeof e.className=="string"?l=rf(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var c=$o(s,void 0,T.useContext(Ts));l+=t.key+"-"+c.name;var d={};for(var p in e)Bl.call(e,p)&&p!=="css"&&p!==Ll&&(d[p]=e[p]);return d.className=l,r&&(d.ref=r),T.createElement(T.Fragment,null,T.createElement(A1,{cache:t,serialized:c,isStringTag:typeof o=="string"}),T.createElement(o,d))}),$1=M1,uf=function(t,r){var n=arguments;if(r==null||!Bl.call(r,"css"))return T.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=$1,s[1]=_1(t,r);for(var l=2;l<o;l++)s[l]=n[l];return T.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(uf||(uf={}));var D1=jl(function(e,t){var r=e.styles,n=$o([r],void 0,T.useContext(Ts)),o=T.useRef();return df(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,d=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",s),l.hydrate([d])),o.current=[l,c],function(){l.flush()}},[t]),df(function(){var s=o.current,l=s[0],c=s[1];if(c){s[1]=!1;return}if(n.next!==void 0&&Fl(t,n.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",n,l,!1)},[t,n.name]),null});function Wl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return $o(t)}function Do(){var e=Wl.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 F1=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,z1=Ku(function(e){return F1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),j1=z1,B1=function(t){return t!=="theme"},ff=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?j1:B1},hf=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},L1=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Dl(r,n,o),cf(function(){return Fl(r,n,o)}),null},W1=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=hf(t,r,n),d=c||ff(o),p=!d("as");return function(){var u=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var v=u[0];h.push(v[0]);for(var g=u.length,y=1;y<g;y++)h.push(u[y],v[y])}var f=jl(function(m,x,b){var w=p&&m.as||o,S="",C=[],O=m;if(m.theme==null){O={};for(var I in m)O[I]=m[I];O.theme=T.useContext(Ts)}typeof m.className=="string"?S=rf(x.registered,C,m.className):m.className!=null&&(S=m.className+" ");var F=$o(h.concat(C),x.registered,O);S+=x.key+"-"+F.name,l!==void 0&&(S+=" "+l);var D=p&&c===void 0?ff(w):d,L={};for(var z in m)p&&z==="as"||D(z)&&(L[z]=m[z]);return L.className=S,b&&(L.ref=b),T.createElement(T.Fragment,null,T.createElement(L1,{cache:x,serialized:F,isStringTag:typeof w=="string"}),T.createElement(w,L))});return f.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(m,x){var b=e(m,gs({},r,x,{shouldForwardProp:hf(f,x,!0)}));return b.apply(void 0,h)},f}},V1=["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"],Vl=W1.bind(null);V1.forEach(function(e){Vl[e]=Vl(e)});var Os={exports:{}};var Ul,gf;function U1(){if(gf)return Ul;gf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(u){return l[u]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ul=o()?Object.assign:function(s,l){for(var c,d=n(s),p,u=1;u<arguments.length;u++){c=Object(arguments[u]);for(var h in c)t.call(c,h)&&(d[h]=c[h]);if(e){p=e(c);for(var v=0;v<p.length;v++)r.call(c,p[v])&&(d[p[v]]=c[p[v]])}}return d},Ul}var Hl,yf;function Rl(){if(yf)return Hl;yf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hl=e,Hl}var ql,mf;function bf(){return mf||(mf=1,ql=Function.call.bind(Object.prototype.hasOwnProperty)),ql}var Yl,vf;function H1(){if(vf)return Yl;vf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rl(),r={},n=bf();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(s,l,c,d,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(n(s,u)){var h;try{if(typeof s[u]!="function"){var v=Error((d||"React class")+": "+c+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}h=s[u](l,u,d,c,null,t)}catch(y){h=y}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var g=p?p():"";e("Failed "+c+" type: "+h.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Yl=o,Yl}var Gl,xf;function R1(){if(xf)return Gl;xf=1;var e=Ml(),t=U1(),r=Rl(),n=bf(),o=H1(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Gl=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(B){var H=B&&(p&&B[p]||B[u]);if(typeof H=="function")return H}var v="<<anonymous>>",g={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:b(),arrayOf:w,element:S(),elementType:C(),instanceOf:O,node:L(),objectOf:F,oneOf:I,oneOfType:D,shape:k,exact:j};function y(B,H){return B===H?B!==0||1/B===1/H:B!==B&&H!==H}function f(B,H){this.message=B,this.data=H&&typeof H=="object"?H:{},this.stack=""}f.prototype=Error.prototype;function m(B){if(process.env.NODE_ENV!=="production")var H={},X=0;function J(Y,K,ee,oe,ae,Z,re){if(oe=oe||v,Z=Z||ee,re!==r){if(d){var q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=oe+":"+ee;!H[ce]&&X<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Z+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[ce]=!0,X++)}}return K[ee]==null?Y?K[ee]===null?new f("The "+ae+" `"+Z+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new f("The "+ae+" `"+Z+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:B(K,ee,oe,ae,Z)}var Q=J.bind(null,!1);return Q.isRequired=J.bind(null,!0),Q}function x(B){function H(X,J,Q,Y,K,ee){var oe=X[J],ae=_(oe);if(ae!==B){var Z=N(oe);return new f("Invalid "+Y+" `"+K+"` of type "+("`"+Z+"` supplied to `"+Q+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return m(H)}function b(){return m(l)}function w(B){function H(X,J,Q,Y,K){if(typeof B!="function")return new f("Property `"+K+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ee=X[J];if(!Array.isArray(ee)){var oe=_(ee);return new f("Invalid "+Y+" `"+K+"` of type "+("`"+oe+"` supplied to `"+Q+"`, expected an array."))}for(var ae=0;ae<ee.length;ae++){var Z=B(ee,ae,Q,Y,K+"["+ae+"]",r);if(Z instanceof Error)return Z}return null}return m(H)}function S(){function B(H,X,J,Q,Y){var K=H[X];if(!c(K)){var ee=_(K);return new f("Invalid "+Q+" `"+Y+"` of type "+("`"+ee+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return m(B)}function C(){function B(H,X,J,Q,Y){var K=H[X];if(!e.isValidElementType(K)){var ee=_(K);return new f("Invalid "+Q+" `"+Y+"` of type "+("`"+ee+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return m(B)}function O(B){function H(X,J,Q,Y,K){if(!(X[J]instanceof B)){var ee=B.name||v,oe=U(X[J]);return new f("Invalid "+Y+" `"+K+"` of type "+("`"+oe+"` supplied to `"+Q+"`, expected ")+("instance of `"+ee+"`."))}return null}return m(H)}function I(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function H(X,J,Q,Y,K){for(var ee=X[J],oe=0;oe<B.length;oe++)if(y(ee,B[oe]))return null;var ae=JSON.stringify(B,function(re,q){var ce=N(q);return ce==="symbol"?String(q):q});return new f("Invalid "+Y+" `"+K+"` of value `"+String(ee)+"` "+("supplied to `"+Q+"`, expected one of "+ae+"."))}return m(H)}function F(B){function H(X,J,Q,Y,K){if(typeof B!="function")return new f("Property `"+K+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ee=X[J],oe=_(ee);if(oe!=="object")return new f("Invalid "+Y+" `"+K+"` of type "+("`"+oe+"` supplied to `"+Q+"`, expected an object."));for(var ae in ee)if(n(ee,ae)){var Z=B(ee,ae,Q,Y,K+"."+ae,r);if(Z instanceof Error)return Z}return null}return m(H)}function D(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<B.length;H++){var X=B[H];if(typeof X!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(X)+" at index "+H+"."),l}function J(Q,Y,K,ee,oe){for(var ae=[],Z=0;Z<B.length;Z++){var re=B[Z],q=re(Q,Y,K,ee,oe,r);if(q==null)return null;q.data&&n(q.data,"expectedType")&&ae.push(q.data.expectedType)}var ce=ae.length>0?", expected one of type ["+ae.join(", ")+"]":"";return new f("Invalid "+ee+" `"+oe+"` supplied to "+("`"+K+"`"+ce+"."))}return m(J)}function L(){function B(H,X,J,Q,Y){return A(H[X])?null:new f("Invalid "+Q+" `"+Y+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return m(B)}function z(B,H,X,J,Q){return new f((B||"React class")+": "+H+" type `"+X+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function k(B){function H(X,J,Q,Y,K){var ee=X[J],oe=_(ee);if(oe!=="object")return new f("Invalid "+Y+" `"+K+"` of type `"+oe+"` "+("supplied to `"+Q+"`, expected `object`."));for(var ae in B){var Z=B[ae];if(typeof Z!="function")return z(Q,Y,K,ae,N(Z));var re=Z(ee,ae,Q,Y,K+"."+ae,r);if(re)return re}return null}return m(H)}function j(B){function H(X,J,Q,Y,K){var ee=X[J],oe=_(ee);if(oe!=="object")return new f("Invalid "+Y+" `"+K+"` of type `"+oe+"` "+("supplied to `"+Q+"`, expected `object`."));var ae=t({},X[J],B);for(var Z in ae){var re=B[Z];if(n(B,Z)&&typeof re!="function")return z(Q,Y,K,Z,N(re));if(!re)return new f("Invalid "+Y+" `"+K+"` key `"+Z+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(X[J],null," ")+`
25
- Valid keys: `+JSON.stringify(Object.keys(B),null," "));var q=re(ee,Z,Q,Y,K+"."+Z,r);if(q)return q}return null}return m(H)}function A(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(A);if(B===null||c(B))return!0;var H=h(B);if(H){var X=H.call(B),J;if(H!==B.entries){for(;!(J=X.next()).done;)if(!A(J.value))return!1}else for(;!(J=X.next()).done;){var Q=J.value;if(Q&&!A(Q[1]))return!1}}else return!1;return!0;default:return!1}}function M(B,H){return B==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function _(B){var H=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":M(H,B)?"symbol":H}function N(B){if(typeof B>"u"||B===null)return""+B;var H=_(B);if(H==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return H}function W(B){var H=N(B);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function U(B){return!B.constructor||!B.constructor.name?v:B.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Gl}var Kl,Sf;function q1(){if(Sf)return Kl;Sf=1;var e=Rl();function t(){}function r(){}return r.resetWarningCache=t,Kl=function(){function n(l,c,d,p,u,h){if(h!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Kl}var wf;function Y1(){if(wf)return Os.exports;if(wf=1,process.env.NODE_ENV!=="production"){var e=Ml(),t=!0;Os.exports=R1()(e.isElement,t)}else Os.exports=q1()();return Os.exports}var G1=Y1();const i=qd(G1);function K1(e){return e==null||Object.keys(e).length===0}function Cf(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(K1(o)?r:o):t;return a.jsx(D1,{styles:n})}process.env.NODE_ENV!=="production"&&(Cf.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.string,i.object,i.func])});function Ef(e,t){const r=Vl(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.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(`
26
- `)):n.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function X1(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Tf=[];function Wr(e){return Tf[0]=e,$o(Tf)}var ks={exports:{}},De={};var Of;function J1(){if(Of)return De;Of=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case r:case o:case n:case d:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return De.ContextConsumer=s,De.ContextProvider=l,De.Element=e,De.ForwardRef=c,De.Fragment=r,De.Lazy=h,De.Memo=u,De.Portal=t,De.Profiler=o,De.StrictMode=n,De.Suspense=d,De.SuspenseList=p,De.isContextConsumer=function(f){return y(f)===s},De.isContextProvider=function(f){return y(f)===l},De.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},De.isForwardRef=function(f){return y(f)===c},De.isFragment=function(f){return y(f)===r},De.isLazy=function(f){return y(f)===h},De.isMemo=function(f){return y(f)===u},De.isPortal=function(f){return y(f)===t},De.isProfiler=function(f){return y(f)===o},De.isStrictMode=function(f){return y(f)===n},De.isSuspense=function(f){return y(f)===d},De.isSuspenseList=function(f){return y(f)===p},De.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},De.typeOf=y,De}var Fe={};var kf;function Q1(){return kf||(kf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case n:case s:case o:case p:case u:case g:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case v:case h:return f;case l:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Fe.ContextConsumer=l,Fe.ContextProvider=c,Fe.Element=t,Fe.ForwardRef=d,Fe.Fragment=n,Fe.Lazy=v,Fe.Memo=h,Fe.Portal=r,Fe.Profiler=s,Fe.StrictMode=o,Fe.Suspense=p,Fe.SuspenseList=u,Fe.isContextConsumer=function(f){return e(f)===l},Fe.isContextProvider=function(f){return e(f)===c},Fe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Fe.isForwardRef=function(f){return e(f)===d},Fe.isFragment=function(f){return e(f)===n},Fe.isLazy=function(f){return e(f)===v},Fe.isMemo=function(f){return e(f)===h},Fe.isPortal=function(f){return e(f)===r},Fe.isProfiler=function(f){return e(f)===s},Fe.isStrictMode=function(f){return e(f)===o},Fe.isSuspense=function(f){return e(f)===p},Fe.isSuspenseList=function(f){return e(f)===u},Fe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===d||f.$$typeof===y||f.getModuleId!==void 0)},Fe.typeOf=e})()),Fe}var Pf;function Z1(){return Pf||(Pf=1,process.env.NODE_ENV==="production"?ks.exports=J1():ks.exports=Q1()),ks.exports}var Ps=Z1();function cr(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 If(e){if(T.isValidElement(e)||Ps.isValidElementType(e)||!cr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=If(e[r])}),t}function ut(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return cr(e)&&cr(t)&&Object.keys(t).forEach(o=>{T.isValidElement(t[o])||Ps.isValidElementType(t[o])?n[o]=t[o]:cr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&cr(e[o])?n[o]=ut(e[o],t[o],r):r.clone?n[o]=cr(t[o])?If(t[o]):t[o]:n[o]=t[o]}),n}const eS=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function tS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,s=eS(t),l=Object.keys(s);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-n/100}${r})`}function p(v,g){const y=l.indexOf(g);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(y!==-1&&typeof t[l[y]]=="number"?t[l[y]]:g)-n/100}${r})`}function u(v){return l.indexOf(v)+1<l.length?p(v,l[l.indexOf(v)+1]):c(v)}function h(v){const g=l.indexOf(v);return g===0?c(l[1]):g===l.length-1?d(l[g]):p(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:c,down:d,between:p,only:u,not:h,unit:r,...o}}function Nf(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(n.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return r.length?r.reduce((n,o)=>{const s=t[o];return delete n[o],n[o]=s,n},{...t}):t}function rS(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function nS(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
27
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ir(18,`(${t})`));return null}const[,n,o]=r,s=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(s)}function oS(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function r(s,l){s.up=(...c)=>t(e.breakpoints.up(...c),l),s.down=(...c)=>t(e.breakpoints.down(...c),l),s.between=(...c)=>t(e.breakpoints.between(...c),l),s.only=(...c)=>t(e.breakpoints.only(...c),l),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=s=>(r(n,s),n);return r(o),{...e,containerQueries:o}}const iS={borderRadius:4},Vr=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.string,i.object,i.array]):{};function Fo(e,t){return t?ut(e,t,{clone:!1}):e}const Is={xs:0,sm:600,md:900,lg:1200,xl:1536},_f={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Is[e]}px)`},sS={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Is[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function wr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||_f;return t.reduce((l,c,d)=>(l[s.up(s.keys[d])]=r(t[d]),l),{})}if(typeof t=="object"){const s=n.breakpoints||_f;return Object.keys(t).reduce((l,c)=>{if(rS(s.keys,c)){const d=nS(n.containerQueries?n:sS,c);d&&(l[d]=r(t[c],c))}else if(Object.keys(s.values||Is).includes(c)){const d=s.up(c);l[d]=r(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return r(t)}function aS(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function Af(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function te(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ir(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ns(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function _s(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ns(e,r)||n,t&&(o=t(o,n,e)),o}function Ye(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,p=Ns(d,n)||{};return wr(l,c,h=>{let v=_s(p,o,h);return h===v&&typeof h=="string"&&(v=_s(p,o,`${t}${h==="default"?"":te(h)}`,h)),r===!1?v:{[r]:v}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Vr}:{},s.filterProps=[t],s}function lS(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const cS={m:"margin",p:"padding"},dS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pS=lS(e=>{if(e.length>2)if(Mf[e])e=Mf[e];else return[e];const[t,r]=e.split(""),n=cS[t],o=dS[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),As=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ms=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],uS=[...As,...Ms];function zo(e,t,r,n){const o=Ns(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const l=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>o.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${l} > ${o.length-1}, you need to add the missing values.`].join(`
17
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(f.measureTime(()=>{const m=h.getState(),v=Va(m,"",t,n,i,u);if(v){const{keyPath:w,value:S}=v;console.error(`A non-serializable value was detected in the state, in the path: \`${w}\`. Value:`,S,`
18
+ Take a look at the reducer(s) handling this action type: ${y.type}.
19
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function $s(e){return typeof e=="boolean"}var Lb=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new id;if(n&&($s(n)?a.push(Nb):a.push(Ib(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};$s(r)||(l=r),a.unshift(jb(l))}if(o){let l={};$s(o)||(l=o),a.push(Rb(l))}if(i){let l={};$s(i)||(l=i),a.unshift($b(l))}}return a},Bb="RTK_autoBatch",pd=e=>t=>{setTimeout(t,e)},zb=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:pd(10):e.type==="callback"?e.queueNotification:pd(e.timeout),p=()=>{a=!1,i&&(i=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>o&&u(),b=r.subscribe(h);return l.add(u),()=>{b(),l.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Bb],i=!o,i&&(a||(a=!0,c(p))),r.dispatch(u)}finally{o=!0}}})},Wb=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new id(e);return r&&o.push(zb(typeof r=="object"?r:void 0)),o};function Vb(e){const t=Lb(),{reducer:n=void 0,middleware:r,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:l=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(Gr(n))c=$u(n);else throw new Error(process.env.NODE_ENV==="production"?Le(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Le(2):"`middleware` field must be a callback");let p;if(typeof r=="function"){if(p=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?Le(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Le(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let f=new Set;p.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Le(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let u=bs;o&&(u=_b({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const h=Qm(...p),b=Wb(h);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Le(5):"`enhancers` field must be a callback");let y=typeof l=="function"?l(b):b();if(process.env.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(process.env.NODE_ENV==="production"?Le(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&y.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Le(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!y.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...y);return Pa(c,a,g)}function fd(e){const t={},n=[];let r;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Le(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Le(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof i=="string"?i:i.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Le(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Le(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=a,o},addAsyncThunk(i,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Le(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Le(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Le(31):"`builder.addDefaultCase` can only be called once");return r=i,o}};return e(o),[t,n,r]}function Ub(e){return typeof e=="function"}function qb(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Le(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,o]=fd(t),i;if(Ub(e))i=()=>ad(e());else{const l=ad(e);i=()=>l}function a(l=i(),c){let p=[n[c.type],...r.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[o]),p.reduce((u,h)=>{if(h)if(mn(u)){const y=h(u,c);return y===void 0?u:y}else{if(Wt(u))return Qu(u,b=>h(b,c));{const b=h(u,c);if(b===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return u},l)}return a.getInitialState=i,a}var Hb=(e,t)=>od(e)?e.match(t):e(t);function Yb(...e){return t=>e.some(n=>Hb(n,t))}var Kb="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gb=(e=21)=>{let t="",n=e;for(;n--;)t+=Kb[Math.random()*64|0];return t},Jb=["name","message","stack","code"],Ua=class{constructor(e,t){this.payload=e,this.meta=t}_type},hd=class{constructor(e,t){this.payload=e,this.meta=t}_type},Xb=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Jb)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},gd="External signal was aborted",Vt=(()=>{function e(t,n,r){const o=to(t+"/fulfilled",(c,p,u,h)=>({payload:c,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),i=to(t+"/pending",(c,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:c,requestStatus:"pending"}})),a=to(t+"/rejected",(c,p,u,h,b)=>({payload:h,error:(r&&r.serializeError||Xb)(c||"Rejected"),meta:{...b||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function l(c,{signal:p}={}){return(u,h,b)=>{const y=r?.idGenerator?r.idGenerator(c):Gb(),g=new AbortController;let f,m;function v(S){m=S,g.abort()}p&&(p.aborted?v(gd):p.addEventListener("abort",()=>v(gd),{once:!0}));const w=(async function(){let S;try{let E=r?.condition?.(c,{getState:h,extra:b});if(Zb(E)&&(E=await E),E===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((N,D)=>{f=()=>{D({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});u(i(y,c,r?.getPendingMeta?.({requestId:y,arg:c},{getState:h,extra:b}))),S=await Promise.race([O,Promise.resolve(n(c,{dispatch:u,getState:h,extra:b,requestId:y,signal:g.signal,abort:v,rejectWithValue:(N,D)=>new Ua(N,D),fulfillWithValue:(N,D)=>new hd(N,D)})).then(N=>{if(N instanceof Ua)throw N;return N instanceof hd?o(N.payload,y,c,N.meta):o(N,y,c)})])}catch(E){S=E instanceof Ua?a(null,y,c,E.payload,E.meta):a(E,y,c)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(S)&&S.meta.condition||u(S),S})();return Object.assign(w,{abort:v,requestId:y,arg:c,unwrap(){return w.then(Qb)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,settled:Yb(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Qb(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Zb(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ev=Symbol.for("rtk-slice-createasyncthunk");function tv(e,t){return`${e}/${t}`}function nv({creators:e}={}){const t=e?.asyncThunk?.[ev];return function(r){const{name:o,reducerPath:i=o}=r;if(!o)throw new Error(process.env.NODE_ENV==="production"?Le(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(ov()):r.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,x){const E=typeof S=="string"?S:S.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?Le(12):"`context.addCase` cannot be called with an empty action type");if(E in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Le(13):"`context.addCase` cannot be called with two reducers for the same action type: "+E);return c.sliceCaseReducersByType[E]=x,p},addMatcher(S,x){return c.sliceMatchers.push({matcher:S,reducer:x}),p},exposeAction(S,x){return c.actionCreators[S]=x,p},exposeCaseReducer(S,x){return c.sliceCaseReducersByName[S]=x,p}};l.forEach(S=>{const x=a[S],E={reducerName:S,type:tv(o,S),createNotation:typeof r.reducers=="function"};iv(x)?lv(E,x,p,t):sv(E,x,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Le(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[S={},x=[],E=void 0]=typeof r.extraReducers=="function"?fd(r.extraReducers):[r.extraReducers],O={...S,...c.sliceCaseReducersByType};return qb(r.initialState,N=>{for(let D in O)N.addCase(D,O[D]);for(let D of c.sliceMatchers)N.addMatcher(D.matcher,D.reducer);for(let D of x)N.addMatcher(D.matcher,D.reducer);E&&N.addDefaultCase(E)})}const h=S=>S,b=new Map,y=new WeakMap;let g;function f(S,x){return g||(g=u()),g(S,x)}function m(){return g||(g=u()),g.getInitialState()}function v(S,x=!1){function E(N){let D=N[S];if(typeof D>"u"){if(x)D=Ms(y,E,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Le(15):"selectSlice returned undefined for an uninjected slice reducer")}return D}function O(N=h){const D=Ms(b,x,()=>new WeakMap);return Ms(D,N,()=>{const A={};for(const[L,_]of Object.entries(r.selectors??{}))A[L]=rv(_,N,()=>Ms(y,N,m),x);return A})}return{reducerPath:S,getSelectors:O,get selectors(){return O(E)},selectSlice:E}}const w={name:o,reducer:f,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:m,...v(i),injectInto(S,{reducerPath:x,...E}={}){const O=x??i;return S.inject({reducerPath:O,reducer:f},E),{...w,...v(O,!0)}}};return w}}function rv(e,t,n,r){function o(i,...a){let l=t(i);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Le(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return o.unwrapped=e,o}var qa=nv();function ov(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function sv({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!av(r))throw new Error(process.env.NODE_ENV==="production"?Le(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?to(e,a):to(e))}function iv(e){return e._reducerDefinitionType==="asyncThunk"}function av(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lv({type:e,reducerName:t},n,r,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Le(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:l,rejected:c,settled:p,options:u}=n,h=o(e,i,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),l&&r.addCase(h.pending,l),c&&r.addCase(h.rejected,c),p&&r.addMatcher(h.settled,p),r.exposeCaseReducer(t,{fulfilled:a||Ds,pending:l||Ds,rejected:c||Ds,settled:p||Ds})}function Ds(){}function Le(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ha="persist:",yd="persist/FLUSH",Ya="persist/REHYDRATE",md="persist/PAUSE",bd="persist/PERSIST",vd="persist/PURGE",xd="persist/REGISTER",cv=-1;function no(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?no=function(n){return typeof n}:no=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},no(e)}function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sd(n,!0).forEach(function(r){dv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sd(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pv(e,t,n,r){var o=r.debug,i=uv({},n);return e&&no(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}i[a]=e[a]}}),process.env.NODE_ENV!=="production"&&o&&e&&no(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),i}function fv(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:Ha).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(E){return E}:typeof e.serialize=="function"?l=e.serialize:l=hv;var c=e.writeFailHandler||null,p={},u={},h=[],b=null,y=null,g=function(E){Object.keys(E).forEach(function(O){v(O)&&p[O]!==E[O]&&h.indexOf(O)===-1&&h.push(O)}),Object.keys(p).forEach(function(O){E[O]===void 0&&v(O)&&h.indexOf(O)===-1&&p[O]!==void 0&&h.push(O)}),b===null&&(b=setInterval(f,o)),p=E};function f(){if(h.length===0){b&&clearInterval(b),b=null;return}var x=h.shift(),E=r.reduce(function(O,N){return N.in(O,x,p)},p[x]);if(E!==void 0)try{u[x]=l(E)}catch(O){console.error("redux-persist/createPersistoid: error serializing state",O)}else delete u[x];h.length===0&&m()}function m(){Object.keys(u).forEach(function(x){p[x]===void 0&&delete u[x]}),y=a.setItem(i,l(u)).catch(w)}function v(x){return!(n&&n.indexOf(x)===-1&&x!=="_persist"||t&&t.indexOf(x)!==-1)}function w(x){c&&c(x),x&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",x)}var S=function(){for(;h.length!==0;)f();return y||Promise.resolve()};return{update:g,flush:S}}function hv(e){return JSON.stringify(e)}function gv(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Ha).concat(e.key),r=e.storage,o=e.debug,i;return e.deserialize===!1?i=function(l){return l}:typeof e.deserialize=="function"?i=e.deserialize:i=yv,r.getItem(n).then(function(a){if(a)try{var l={},c=i(a);return Object.keys(c).forEach(function(p){l[p]=t.reduceRight(function(u,h){return h.out(u,p,c)},i(c[p]))}),l}catch(p){throw process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),p),p}else return})}function yv(e){return JSON.parse(e)}function mv(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Ha).concat(e.key);return t.removeItem(n,bv)}function bv(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wd(n,!0).forEach(function(r){vv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wd(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xv(e,t){if(e==null)return{};var n=Sv(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var wv=5e3;function Cv(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:cv;e.debug;var r=e.stateReconciler===void 0?pv:e.stateReconciler,o=e.getStoredState||gv,i=e.timeout!==void 0?e.timeout:wv,a=null,l=!1,c=!0,p=function(h){return h._persist.rehydrated&&a&&!c&&a.update(h),h};return function(u,h){var b=u||{},y=b._persist,g=xv(b,["_persist"]),f=g;if(h.type===bd){var m=!1,v=function(D,A){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),D,A),m||(h.rehydrate(e.key,D,A),m=!0)};if(i&&setTimeout(function(){!m&&v(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,a||(a=fv(e)),y)return vn({},t(f,h),{_persist:y});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(N){var D=e.migrate||function(A,L){return Promise.resolve(A)};D(N,n).then(function(A){v(A)},function(A){process.env.NODE_ENV!=="production"&&A&&console.error("redux-persist: migration error",A),v(void 0,A)})},function(N){v(void 0,N)}),vn({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===vd)return l=!0,h.result(mv(e)),vn({},t(f,h),{_persist:y});if(h.type===yd)return h.result(a&&a.flush()),vn({},t(f,h),{_persist:y});if(h.type===md)c=!0;else if(h.type===Ya){if(l)return vn({},f,{_persist:vn({},y,{rehydrated:!0})});if(h.key===e.key){var w=t(f,h),S=h.payload,x=r!==!1&&S!==void 0?r(S,u,w,e):w,E=vn({},x,{_persist:vn({},y,{rehydrated:!0})});return p(E)}}}if(!y)return t(u,h);var O=t(f,h);return O===f?u:p(vn({},O,{_persist:y}))}}function Cd(e){return Ov(e)||Tv(e)||Ev()}function Ev(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Tv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Ov(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ed(n,!0).forEach(function(r){Pv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Td={registry:[],bootstrapped:!1},kv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Td,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case xd:return Ka({},t,{registry:[].concat(Cd(t.registry),[n.key])});case Ya:var r=t.registry.indexOf(n.key),o=Cd(t.registry);return o.splice(r,1),Ka({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Nv(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var i=Pa(kv,Td,void 0),a=function(u){i.dispatch({type:xd,key:u})},l=function(u,h,b){var y={type:Ya,payload:h,err:b,key:u};e.dispatch(y),i.dispatch(y)},c=Ka({},i,{purge:function(){var u=[];return e.dispatch({type:vd,result:function(b){u.push(b)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:yd,result:function(b){u.push(b)}}),Promise.all(u)},pause:function(){e.dispatch({type:md})},persist:function(){e.dispatch({type:bd,register:a,rehydrate:l})}});return c.persist(),c}const Od=qa({name:"product",initialState:{loading:!1,error:null},reducers:{},extraReducers:e=>{}}),{selectProduct:ON,clearSelectedProducts:PN}=Od.actions,Iv=Od.reducer;function Pd(e,t){return function(){return e.apply(t,arguments)}}const{toString:_v}=Object.prototype,{getPrototypeOf:Ga}=Object,{iterator:Fs,toStringTag:kd}=Symbol,js=(e=>t=>{const n=_v.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>js(t)===e),Rs=e=>t=>typeof t===e,{isArray:hr}=Array,gr=Rs("undefined");function ro(e){return e!==null&&!gr(e)&&e.constructor!==null&&!gr(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nd=Ut("ArrayBuffer");function Av(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nd(e.buffer),t}const Mv=Rs("string"),vt=Rs("function"),Id=Rs("number"),oo=e=>e!==null&&typeof e=="object",$v=e=>e===!0||e===!1,Ls=e=>{if(js(e)!=="object")return!1;const t=Ga(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(kd in e)&&!(Fs in e)},Dv=e=>{if(!oo(e)||ro(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Fv=Ut("Date"),jv=Ut("File"),Rv=Ut("Blob"),Lv=Ut("FileList"),Bv=e=>oo(e)&&vt(e.pipe),zv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=js(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},Wv=Ut("URLSearchParams"),[Vv,Uv,qv,Hv]=["ReadableStream","Request","Response","Headers"].map(Ut),Yv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function so(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),hr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ro(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(r=0;r<a;r++)l=i[r],t.call(null,e[l],l,e)}}function _d(e,t){if(ro(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Hn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ad=e=>!gr(e)&&e!==Hn;function Ja(){const{caseless:e,skipUndefined:t}=Ad(this)&&this||{},n={},r=(o,i)=>{const a=e&&_d(n,i)||i;Ls(n[a])&&Ls(o)?n[a]=Ja(n[a],o):Ls(o)?n[a]=Ja({},o):hr(o)?n[a]=o.slice():(!t||!gr(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&so(arguments[o],r);return n}const Kv=(e,t,n,{allOwnKeys:r}={})=>(so(t,(o,i)=>{n&&vt(o)?e[i]=Pd(o,n):e[i]=o},{allOwnKeys:r}),e),Gv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xv=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Ga(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zv=e=>{if(!e)return null;if(hr(e))return e;let t=e.length;if(!Id(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},e0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ga(Uint8Array)),t0=(e,t)=>{const r=(e&&e[Fs]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},n0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},r0=Ut("HTMLFormElement"),o0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Md=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),s0=Ut("RegExp"),$d=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};so(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},i0=e=>{$d(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},a0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return hr(e)?r(e):r(String(e).split(t)),n},l0=()=>{},c0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function u0(e){return!!(e&&vt(e.append)&&e[kd]==="FormData"&&e[Fs])}const d0=e=>{const t=new Array(10),n=(r,o)=>{if(oo(r)){if(t.indexOf(r)>=0)return;if(ro(r))return r;if(!("toJSON"in r)){t[o]=r;const i=hr(r)?[]:{};return so(r,(a,l)=>{const c=n(a,o+1);!gr(c)&&(i[l]=c)}),t[o]=void 0,i}}return r};return n(e,0)},p0=Ut("AsyncFunction"),f0=e=>e&&(oo(e)||vt(e))&&vt(e.then)&&vt(e.catch),Dd=((e,t)=>e?setImmediate:t?((n,r)=>(Hn.addEventListener("message",({source:o,data:i})=>{o===Hn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Hn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(Hn.postMessage)),h0=typeof queueMicrotask<"u"?queueMicrotask.bind(Hn):typeof process<"u"&&process.nextTick||Dd,W={isArray:hr,isArrayBuffer:Nd,isBuffer:ro,isFormData:zv,isArrayBufferView:Av,isString:Mv,isNumber:Id,isBoolean:$v,isObject:oo,isPlainObject:Ls,isEmptyObject:Dv,isReadableStream:Vv,isRequest:Uv,isResponse:qv,isHeaders:Hv,isUndefined:gr,isDate:Fv,isFile:jv,isBlob:Rv,isRegExp:s0,isFunction:vt,isStream:Bv,isURLSearchParams:Wv,isTypedArray:e0,isFileList:Lv,forEach:so,merge:Ja,extend:Kv,trim:Yv,stripBOM:Gv,inherits:Jv,toFlatObject:Xv,kindOf:js,kindOfTest:Ut,endsWith:Qv,toArray:Zv,forEachEntry:t0,matchAll:n0,isHTMLForm:r0,hasOwnProperty:Md,hasOwnProp:Md,reduceDescriptors:$d,freezeMethods:i0,toObjectSet:a0,toCamelCase:o0,noop:l0,toFiniteNumber:c0,findKey:_d,global:Hn,isContextDefined:Ad,isSpecCompliantForm:u0,toJSONObject:d0,isAsyncFn:p0,isThenable:f0,setImmediate:Dd,asap:h0,isIterable:e=>e!=null&&vt(e[Fs])};function ve(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits(ve,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const Fd=ve.prototype,jd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{jd[e]={value:e}}),Object.defineProperties(ve,jd),Object.defineProperty(Fd,"isAxiosError",{value:!0}),ve.from=(e,t,n,r,o,i)=>{const a=Object.create(Fd);W.toFlatObject(e,a,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ve.call(a,l,c,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const g0=null;function Xa(e){return W.isPlainObject(e)||W.isArray(e)}function Rd(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Ld(e,t,n){return e?e.concat(t).map(function(o,i){return o=Rd(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function y0(e){return W.isArray(e)&&!e.some(Xa)}const m0=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function Bs(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!W.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(W.isDate(g))return g.toISOString();if(W.isBoolean(g))return g.toString();if(!c&&W.isBlob(g))throw new ve("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(g)||W.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,m){let v=g;if(g&&!m&&typeof g=="object"){if(W.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(W.isArray(g)&&y0(g)||(W.isFileList(g)||W.endsWith(f,"[]"))&&(v=W.toArray(g)))return f=Rd(f),v.forEach(function(S,x){!(W.isUndefined(S)||S===null)&&t.append(a===!0?Ld([f],x,i):a===null?f:f+"[]",p(S))}),!1}return Xa(g)?!0:(t.append(Ld(m,f,i),p(g)),!1)}const h=[],b=Object.assign(m0,{defaultVisitor:u,convertValue:p,isVisitable:Xa});function y(g,f){if(!W.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),W.forEach(g,function(v,w){(!(W.isUndefined(v)||v===null)&&o.call(t,v,W.isString(w)?w.trim():w,f,b))===!0&&y(v,f?f.concat(w):[w])}),h.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Bd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qa(e,t){this._pairs=[],e&&Bs(e,this,t)}const zd=Qa.prototype;zd.append=function(t,n){this._pairs.push([t,n])},zd.toString=function(t){const n=t?function(r){return t.call(this,r,Bd)}:Bd;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function b0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wd(e,t,n){if(!t)return e;const r=n&&n.encode||b0;W.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=W.isURLSearchParams(t)?t.toString():new Qa(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Vd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ud={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},v0={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qa,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Za=typeof window<"u"&&typeof document<"u",el=typeof navigator=="object"&&navigator||void 0,x0=Za&&(!el||["ReactNative","NativeScript","NS"].indexOf(el.product)<0),S0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",w0=Za&&window.location.href||"http://localhost",lt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Za,hasStandardBrowserEnv:x0,hasStandardBrowserWebWorkerEnv:S0,navigator:el,origin:w0},Symbol.toStringTag,{value:"Module"})),...v0};function C0(e,t){return Bs(e,new lt.classes.URLSearchParams,{visitor:function(n,r,o,i){return lt.isNode&&W.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function E0(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T0(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function qd(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=i>=n.length;return a=!a&&W.isArray(o)?o.length:a,c?(W.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!W.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&W.isArray(o[a])&&(o[a]=T0(o[a])),!l)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(r,o)=>{t(E0(r),o,n,0)}),n}return null}function O0(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const io={transitional:Ud,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=W.isObject(t);if(i&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return o?JSON.stringify(qd(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return C0(t,this.formSerializer).toString();if((l=W.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Bs(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),O0(t)):t}],transformResponse:[function(t){const n=this.transitional||io.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?ve.from(l,ve.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{io.headers[e]={}});const P0=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),k0=e=>{const t={};let n,r,o;return e&&e.split(`
20
+ `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&P0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Hd=Symbol("internals");function ao(e){return e&&String(e).trim().toLowerCase()}function zs(e){return e===!1||e==null?e:W.isArray(e)?e.map(zs):String(e)}function N0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const I0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tl(e,t,n,r,o){if(W.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!W.isString(t)){if(W.isString(r))return t.indexOf(r)!==-1;if(W.isRegExp(r))return r.test(t)}}function _0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A0(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let xt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,c,p){const u=ao(c);if(!u)throw new Error("header name must be a non-empty string");const h=W.findKey(o,u);(!h||o[h]===void 0||p===!0||p===void 0&&o[h]!==!1)&&(o[h||c]=zs(l))}const a=(l,c)=>W.forEach(l,(p,u)=>i(p,u,c));if(W.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(W.isString(t)&&(t=t.trim())&&!I0(t))a(k0(t),n);else if(W.isObject(t)&&W.isIterable(t)){let l={},c,p;for(const u of t){if(!W.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[p=u[0]]=(c=l[p])?W.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=ao(t),t){const r=W.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return N0(o);if(W.isFunction(n))return n.call(this,o,r);if(W.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ao(t),t){const r=W.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||tl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=ao(a),a){const l=W.findKey(r,a);l&&(!n||tl(r,r[l],l,n))&&(delete r[l],o=!0)}}return W.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||tl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return W.forEach(this,(o,i)=>{const a=W.findKey(r,i);if(a){n[a]=zs(o),delete n[i];return}const l=t?_0(i):String(i).trim();l!==i&&delete n[i],n[l]=zs(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&W.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
21
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Hd]=this[Hd]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=ao(a);r[l]||(A0(o,a),r[l]=!0)}return W.isArray(t)?t.forEach(i):i(t),this}};xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),W.freezeMethods(xt);function nl(e,t){const n=this||io,r=t||n,o=xt.from(r.headers);let i=r.data;return W.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Yd(e){return!!(e&&e.__CANCEL__)}function yr(e,t,n){ve.call(this,e??"canceled",ve.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(yr,ve,{__CANCEL__:!0});function Kd(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function M0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const p=Date.now(),u=r[i];a||(a=p),n[o]=c,r[o]=p;let h=i,b=0;for(;h!==o;)b+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),p-a<t)return;const y=u&&p-u;return y?Math.round(b*1e3/y):void 0}}function D0(e,t){let n=0,r=1e3/t,o,i;const a=(p,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-n;h>=r?a(p,u):(o=p,i||(i=setTimeout(()=>{i=null,a(o)},r-h)))},()=>o&&a(o)]}const Ws=(e,t,n=3)=>{let r=0;const o=$0(50,250);return D0(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,c=a-r,p=o(c),u=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:p||void 0,estimated:p&&l&&u?(l-a)/p:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},Gd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Jd=e=>(...t)=>W.asap(()=>e(...t)),F0=lt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,lt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0,j0=lt.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];W.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),W.isString(r)&&l.push(`path=${r}`),W.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),W.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function R0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function L0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xd(e,t,n){let r=!R0(t);return e&&(r||n==!1)?L0(e,t):t}const Qd=e=>e instanceof xt?{...e}:e;function Yn(e,t){t=t||{};const n={};function r(p,u,h,b){return W.isPlainObject(p)&&W.isPlainObject(u)?W.merge.call({caseless:b},p,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function o(p,u,h,b){if(W.isUndefined(u)){if(!W.isUndefined(p))return r(void 0,p,h,b)}else return r(p,u,h,b)}function i(p,u){if(!W.isUndefined(u))return r(void 0,u)}function a(p,u){if(W.isUndefined(u)){if(!W.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function l(p,u,h){if(h in t)return r(p,u);if(h in e)return r(void 0,p)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(p,u,h)=>o(Qd(p),Qd(u),h,!0)};return W.forEach(Object.keys({...e,...t}),function(u){const h=c[u]||o,b=h(e[u],t[u],u);W.isUndefined(b)&&h!==l||(n[u]=b)}),n}const Zd=e=>{const t=Yn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=xt.from(a),t.url=Wd(Xd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),W.isFormData(n)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(W.isFunction(n.getHeaders)){const c=n.getHeaders(),p=["content-type","content-length"];Object.entries(c).forEach(([u,h])=>{p.includes(u.toLowerCase())&&a.set(u,h)})}}if(lt.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(t)),r||r!==!1&&F0(t.url))){const c=o&&i&&j0.read(i);c&&a.set(o,c)}return t},B0=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Zd(e);let i=o.data;const a=xt.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:p}=o,u,h,b,y,g;function f(){y&&y(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function v(){if(!m)return;const S=xt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};Kd(function(N){n(N),f()},function(N){r(N),f()},E),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(r(new ve("Request aborted",ve.ECONNABORTED,e,m)),m=null)},m.onerror=function(x){const E=x&&x.message?x.message:"Network Error",O=new ve(E,ve.ERR_NETWORK,e,m);O.event=x||null,r(O),m=null},m.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||Ud;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),r(new ve(x,E.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,m)),m=null},i===void 0&&a.setContentType(null),"setRequestHeader"in m&&W.forEach(a.toJSON(),function(x,E){m.setRequestHeader(E,x)}),W.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),l&&l!=="json"&&(m.responseType=o.responseType),p&&([b,g]=Ws(p,!0),m.addEventListener("progress",b)),c&&m.upload&&([h,y]=Ws(c),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(u=S=>{m&&(r(!S||S.type?new yr(null,e,m):S),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=M0(o.url);if(w&&lt.protocols.indexOf(w)===-1){r(new ve("Unsupported protocol "+w+":",ve.ERR_BAD_REQUEST,e));return}m.send(i||null)})},z0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(p){if(!o){o=!0,l();const u=p instanceof Error?p:this.reason;r.abort(u instanceof ve?u:new yr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new ve(`timeout ${t} of ms exceeded`,ve.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(i):p.removeEventListener("abort",i)}),e=null)};e.forEach(p=>p.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>W.asap(l),c}},W0=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},V0=async function*(e,t){for await(const n of U0(e))yield*W0(n,t)},U0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ep=(e,t,n,r)=>{const o=V0(e,t);let i=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:p,value:u}=await o.next();if(p){l(),c.close();return}let h=u.byteLength;if(n){let b=i+=h;n(b)}c.enqueue(new Uint8Array(u))}catch(p){throw l(p),p}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},tp=64*1024,{isFunction:Vs}=W,q0=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:np,TextEncoder:rp}=W.global,op=(e,...t)=>{try{return!!e(...t)}catch{return!1}},H0=e=>{e=W.merge.call({skipUndefined:!0},q0,e);const{fetch:t,Request:n,Response:r}=e,o=t?Vs(t):typeof fetch=="function",i=Vs(n),a=Vs(r);if(!o)return!1;const l=o&&Vs(np),c=o&&(typeof rp=="function"?(g=>f=>g.encode(f))(new rp):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=i&&l&&op(()=>{let g=!1;const f=new n(lt.origin,{body:new np,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),u=a&&l&&op(()=>W.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let v=f&&f[g];if(v)return v.call(f);throw new ve(`Response type '${g}' is not supported`,ve.ERR_NOT_SUPPORT,m)})});const b=async g=>{if(g==null)return 0;if(W.isBlob(g))return g.size;if(W.isSpecCompliantForm(g))return(await new n(lt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(W.isArrayBufferView(g)||W.isArrayBuffer(g))return g.byteLength;if(W.isURLSearchParams(g)&&(g=g+""),W.isString(g))return(await c(g)).byteLength},y=async(g,f)=>{const m=W.toFiniteNumber(g.getContentLength());return m??b(f)};return async g=>{let{url:f,method:m,data:v,signal:w,cancelToken:S,timeout:x,onDownloadProgress:E,onUploadProgress:O,responseType:N,headers:D,withCredentials:A="same-origin",fetchOptions:L}=Zd(g),_=t||fetch;N=N?(N+"").toLowerCase():"text";let T=z0([w,S&&S.toAbortSignal()],x),$=null;const I=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let j;try{if(O&&p&&m!=="get"&&m!=="head"&&(j=await y(D,v))!==0){let V=new n(f,{method:"POST",body:v,duplex:"half"}),G;if(W.isFormData(v)&&(G=V.headers.get("content-type"))&&D.setContentType(G),V.body){const[X,ee]=Gd(j,Ws(Jd(O)));v=ep(V.body,tp,X,ee)}}W.isString(A)||(A=A?"include":"omit");const P=i&&"credentials"in n.prototype,k={...L,signal:T,method:m.toUpperCase(),headers:D.normalize().toJSON(),body:v,duplex:"half",credentials:P?A:void 0};$=i&&new n(f,k);let B=await(i?_($,L):_(f,k));const z=u&&(N==="stream"||N==="response");if(u&&(E||z&&I)){const V={};["status","statusText","headers"].forEach(K=>{V[K]=B[K]});const G=W.toFiniteNumber(B.headers.get("content-length")),[X,ee]=E&&Gd(G,Ws(Jd(E),!0))||[];B=new r(ep(B.body,tp,X,()=>{ee&&ee(),I&&I()}),V)}N=N||"text";let M=await h[W.findKey(h,N)||"text"](B,g);return!z&&I&&I(),await new Promise((V,G)=>{Kd(V,G,{data:M,headers:xt.from(B.headers),status:B.status,statusText:B.statusText,config:g,request:$})})}catch(P){throw I&&I(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new ve("Network Error",ve.ERR_NETWORK,g,$),{cause:P.cause||P}):ve.from(P,P&&P.code,g,$)}}},Y0=new Map,sp=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,l=a,c,p,u=Y0;for(;l--;)c=i[l],p=u.get(c),p===void 0&&u.set(c,p=l?new Map:H0(t)),u=p;return p};sp();const rl={http:g0,xhr:B0,fetch:{get:sp}};W.forEach(rl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ip=e=>`- ${e}`,K0=e=>W.isFunction(e)||e===null||e===!1;function G0(e,t){e=W.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){r=e[a];let l;if(o=r,!K0(r)&&(o=rl[(l=String(r)).toLowerCase()],o===void 0))throw new ve(`Unknown adapter '${l}'`);if(o&&(W.isFunction(o)||(o=o.get(t))))break;i[l||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
22
+ `+a.map(ip).join(`
23
+ `):" "+ip(a[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const ap={getAdapter:G0,adapters:rl};function ol(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yr(null,e)}function lp(e){return ol(e),e.headers=xt.from(e.headers),e.data=nl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ap.getAdapter(e.adapter||io.adapter,e)(e).then(function(r){return ol(e),r.data=nl.call(e,e.transformResponse,r),r.headers=xt.from(r.headers),r},function(r){return Yd(r)||(ol(e),r&&r.response&&(r.response.data=nl.call(e,e.transformResponse,r.response),r.response.headers=xt.from(r.response.headers))),Promise.reject(r)})}const cp="1.13.2",Us={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Us[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const up={};Us.transitional=function(t,n,r){function o(i,a){return"[Axios v"+cp+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new ve(o(a," has been removed"+(n?" in "+n:"")),ve.ERR_DEPRECATED);return n&&!up[a]&&(up[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}},Us.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function J0(e,t,n){if(typeof e!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],c=l===void 0||a(l,i,e);if(c!==!0)throw new ve("option "+i+" must be "+c,ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ve("Unknown option "+i,ve.ERR_BAD_OPTION)}}const qs={assertOptions:J0,validators:Us},Xt=qs.validators;let Kn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Vd,response:new Vd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
24
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Yn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&qs.assertOptions(r,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean)},!1),o!=null&&(W.isFunction(o)?n.paramsSerializer={serialize:o}:qs.assertOptions(o,{encode:Xt.function,serialize:Xt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),qs.assertOptions(n,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&W.merge(i.common,i[n.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=xt.concat(a,i);const l=[];let c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(c=c&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,b;if(!c){const g=[lp.bind(this),void 0];for(g.unshift(...l),g.push(...p),b=g.length,u=Promise.resolve(n);h<b;)u=u.then(g[h++],g[h++]);return u}b=l.length;let y=n;for(;h<b;){const g=l[h++],f=l[h++];try{y=g(y)}catch(m){f.call(this,m);break}}try{u=lp.call(this,y)}catch(g){return Promise.reject(g)}for(h=0,b=p.length;h<b;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=Yn(this.defaults,t);const n=Xd(t.baseURL,t.url,t.allowAbsoluteUrls);return Wd(n,t.params,t.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(t){Kn.prototype[t]=function(n,r){return this.request(Yn(r||{},{method:t,url:n,data:(r||{}).data}))}}),W.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(Yn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Kn.prototype[t]=n(),Kn.prototype[t+"Form"]=n(!0)});let X0=class Qg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new yr(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qg(function(o){t=o}),cancel:t}}};function Q0(e){return function(n){return e.apply(null,n)}}function Z0(e){return W.isObject(e)&&e.isAxiosError===!0}const sl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(sl).forEach(([e,t])=>{sl[t]=e});function dp(e){const t=new Kn(e),n=Pd(Kn.prototype.request,t);return W.extend(n,Kn.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return dp(Yn(e,o))},n}const He=dp(io);He.Axios=Kn,He.CanceledError=yr,He.CancelToken=X0,He.isCancel=Yd,He.VERSION=cp,He.toFormData=Bs,He.AxiosError=ve,He.Cancel=He.CanceledError,He.all=function(t){return Promise.all(t)},He.spread=Q0,He.isAxiosError=Z0,He.mergeConfig=Yn,He.AxiosHeaders=xt,He.formToJSON=e=>qd(W.isHTMLForm(e)?new FormData(e):e),He.getAdapter=ap.getAdapter,He.HttpStatusCode=sl,He.default=He;const{Axios:$N,AxiosError:DN,CanceledError:FN,isCancel:jN,CancelToken:RN,VERSION:LN,all:BN,Cancel:zN,isAxiosError:WN,spread:VN,toFormData:UN,AxiosHeaders:qN,HttpStatusCode:HN,formToJSON:YN,getAdapter:KN,mergeConfig:GN}=He;function Hs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var ex={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function il(e,t){function n(o,i,a){if(!(typeof document>"u")){a=Hs({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l<i.length;l++){var c=i[l].split("="),p=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(p,u),o===u)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",Hs({},i,{expires:-1}))},withAttributes:function(o){return il(this.converter,Hs({},this.attributes,o))},withConverter:function(o){return il(Hs({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var xn=il(ex,{path:"/"});const tx={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let mr="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:da&&da.tagName.toUpperCase()==="SCRIPT"&&da.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&tx?.VITE_API_URL)mr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(mr=process.env.VITE_API_URL)}}catch{}const nx=e=>{mr=e,ht.defaults.baseURL=mr},rx=e=>{e?xn.set("token",e,{secure:!0,sameSite:"Strict"}):xn.remove("token")},ox=()=>xn.get("token")||null,ht=He.create({baseURL:mr,transformRequest:[function(e,t){const n=ox();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let al=!1,ll=null;ht.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=xn.get("refreshToken");if(r)try{al||(al=!0,ll=He.post(`${mr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const o=await ll,{token:i,refreshToken:a}=o.data;return xn.set("token",i,{secure:!0,sameSite:"Strict"}),xn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${i}`,ht(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(xn.remove("token"),xn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{al=!1,ll=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(xn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const pp=async e=>{const t=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await ht.get(t)).data},Ys=Vt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const o=(await ht.get("/dashboard/metrics",{params:e})).data||{};return o.data||o}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),lo=Vt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{console.log("Calling /auth/verify API...");const n=await ht.get("/auth/verify");console.log("/auth/verify response:",n.data);const r=n.data?.companyId||n.data?.data?.companyId;if(r)return r;throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}}),Qt=Vt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await ht.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),$n=Vt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await ht.get("/store-inventory",{params:e})).data||{}}catch(n){return console.log("Error fetching products:",n),t(n.response?.data||n.message)}}),fp=qa({name:"dashboard",initialState:{loading:!1,companyId:"",error:null,metrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:""},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1}},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(Ys.pending,t=>{t.loading=!0,t.error=null}).addCase(Ys.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(Ys.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Qt.pending,t=>{t.loading=!0}).addCase(Qt.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(Qt.rejected,t=>{t.loading=!1}),e.addCase(lo.pending,t=>{t.loading=!0,t.error=null}),e.addCase(lo.fulfilled,(t,n)=>{t.loading=!1,t.companyId=n.payload,t.error=null}),e.addCase(lo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase($n.pending,t=>{t.loading=!0,t.loadingMessage="Fetching Schedules"}).addCase($n.fulfilled,(t,n)=>{t.loading=!1,t.loadingMessage="",t.error=null;const r=n.payload||{},o=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[];t.products=o;const i=(y,g=0)=>{if(y==null||y==="")return g;const f=Number(y);return Number.isFinite(f)?f:g},a={};o.forEach(y=>{if(!y)return;const g=y.categoryName||"Uncategorized";a[g]||(a[g]=[]),a[g].push({...y,stock:i(y.stock),inventory:i(y.inventory),inShelf:i(y.inShelf)})}),t.categorySummary=Object.entries(a).map(([y,g])=>{let f=0,m=0,v=null,w=[];g.forEach(x=>{f+=Number(x.stock)||0,m+=Number(x.inventory)||0,(!v||x.updated&&new Date(x.updated)>new Date(v.updated))&&(v=x),x.productImage&&w.length<5&&w.push(x.productImage)});const S=m>0?Math.round(f/m*100):0;return{name:y,products:g.length,stock:`${f}/${m}`,osa:`${S}% on shelf`,updated:v?.updated?new Date(v.updated).toLocaleString():"",images:w}});const l=Object.values(a).flat(),c=Object.keys(a).length,p=l.length;let u="";if(l.length>0){const y=l.reduce((g,f)=>g?f?new Date(g.updated)>new Date(f.updated)?g:f:g:f);u=y?.updated?new Date(y.updated).toLocaleString():""}t.homePageCardSummary={totalCategories:c,totalProducts:p,lastSync:u},t.productsByCategory=a;const h=r.pagination||{},b=typeof h.totalCount=="number"?h.totalCount:Object.values(a).reduce((y,g)=>y+g.length,0);t.pagination={currentPage:typeof h.currentPage=="number"?h.currentPage:1,limit:typeof h.limit=="number"?h.limit:20,totalCount:b,totalPages:typeof h.totalPages=="number"?h.totalPages:1,hasNextPage:typeof h.hasNextPage=="boolean"?h.hasNextPage:!1}}).addCase($n.rejected,(t,n)=>{t.loading=!1,t.error=n.error?.message||n.payload||"Failed to fetch products",t.loadingMessage=""})}}),{clearMetrics:XN,clearError:QN,updateMetric:ZN}=fp.actions,sx=fp.reducer,co=Vt("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:o},{rejectWithValue:i})=>{try{const a=r||o;if(!a)throw new Error("Company ID is required");const l=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!l)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,c,p,u,h]=l;if(c=c.toLowerCase(),c!=="ftp"&&c!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const b={tenantId:a,type:c,configs:{host:p,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""},y=await ht.post("/ftp/sync/test-connection",b);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",y.data),console.log("existing_mapping:",y.data?.existing_mapping),console.log("================================================"),y.data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return i(l)}}),uo=Vt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return console.log("[FTP Sync] Calling POST /ftp/sync/save with payload:",JSON.stringify(n,null,2)),(await ht.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),br=Vt("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API..."),console.log("[FTP SYNC] API payload (mapped):",JSON.stringify(n,null,2));try{const r=await ht.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return console.log("[FTP SYNC] API call successful:",r.data),r.data;{const o=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(o)}}catch(r){const o=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:o,payload:n,fullError:r}),t(o)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),po=Vt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await ht.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),fo=Vt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await ht.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const o=r.data?.message||"Failed to fetch mapping columns";return t(o)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),ho=Vt("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");console.log(`[Integration] Calling PATCH /integrations/${e} API...`),console.log("[Integration] PATCH payload:",JSON.stringify(t,null,2));const r=`/integrations/${e}`,o=await ht.patch(r,t);if(o.status>=200&&o.status<300)return console.log(`[Integration] PATCH API call successful for channelId ${e}:`,o.data),o.data;{const i=o.data?.message||o.data?.error||`Server returned status ${o.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:o.status,data:o.data}),n(i)}}catch(r){const o=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:o}),n(o)}}),Ks=Vt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await ht.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const i=r.data;return i&&typeof i=="object"&&Array.isArray(i.data)&&typeof i.total=="number"?{total:i.total,page:i.page,limit:i.limit,data:i.data}:{total:0,page:1,limit:10,data:Array.isArray(i)?i:[]}}const o=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(o)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),cl={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null},hp=qa({name:"productSettings",initialState:cl,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=cl.syncData}},extraReducers:e=>{e.addCase(co.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(co.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let o=r.entity_type||"";if(!o&&r.existing_mapping?.mappings?.length>0){const i=r.existing_mapping.mappings[0]?.target_table;(i==="products"||i==="storeInventory")&&(o="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=o,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(co.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(fo.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(fo.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(fo.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(Ks.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(Ks.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;r&&typeof r=="object"&&Array.isArray(r.data)?(t.sharedCatalogues=r.data,t.sharedCataloguesTotal=typeof r.total=="number"?r.total:0,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10):t.sharedCatalogues=[],t.sharedCataloguesError=null}).addCase(Ks.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(uo.pending,t=>{t.loading=!0,t.error=null}).addCase(uo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=cl.syncData}).addCase(uo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(br.pending,t=>{t.loading=!0,t.error=null}).addCase(br.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(br.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(po.pending,t=>{t.loading=!0,t.error=null}).addCase(po.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(po.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(ho.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(ho.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(ho.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:eI,clearTestConnectionResult:tI,clearSaveResult:ix,clearAll:nI,clearTestConnectionData:rI,clearUpdateDetailsResult:oI,clearSyncNowResult:sI,setFtpSyncData:Gs,clearFtpSyncData:iI,clearMappingColumnsError:aI,clearMappingColumns:lI,clearSharedCataloguesError:cI,clearSharedCatalogues:uI,clearUpdateIntegrationByChannelIdResult:dI}=hp.actions,ax=hp.reducer;var Js={},Xs={},gp;function lx(){if(gp)return Xs;gp=1,Xs.__esModule=!0,Xs.default=o;function e(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(l){return typeof l}:e=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(i)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(i){if((typeof self>"u"?"undefined":e(self))!=="object"||!(i in self))return!1;try{var a=self[i],l="redux-persist ".concat(i," test");a.setItem(l,"test"),a.getItem(l),a.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(i," test failed, persistence will be disabled.")),!1}return!0}function o(i){var a="".concat(i,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return Xs}var yp;function cx(){if(yp)return Js;yp=1,Js.__esModule=!0,Js.default=n;var e=t(lx());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var o=(0,e.default)(r);return{getItem:function(a){return new Promise(function(l,c){l(o.getItem(a))})},setItem:function(a,l){return new Promise(function(c,p){c(o.setItem(a,l))})},removeItem:function(a){return new Promise(function(l,c){l(o.removeItem(a))})}}}return Js}var ux=cx();const dx={key:"auth",storage:typeof window<"u"?Eu(ux)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},px=$u({products:Iv,dashboard:sx,productSettings:ax}),fx=Cv(dx,px),mp=Vb({reducer:fx,middleware:e=>e({serializableCheck:!1})}),hx=Nv(mp),gx=R.createContext(null),yx=({children:e,apiUrl:t,authToken:n})=>(R.useEffect(()=>{t&&nx(t)},[t]),R.useEffect(()=>{rx(n||null)},[n]),d.jsx(gx.Provider,{value:{apiUrl:t},children:e})),go={black:"#000",white:"#fff"},vr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},xr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Sr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Cr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},yo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},mx={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"};function Zt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const mo="$$material";function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qs.apply(null,arguments)}function bx(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 vx(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 xx=(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(vx(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=bx(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})(),ct="-ms-",Zs="-moz-",Oe="-webkit-",bp="comm",ul="rule",dl="decl",Sx="@import",vp="@keyframes",wx="@layer",Cx=Math.abs,ei=String.fromCharCode,Ex=Object.assign;function Tx(e,t){return rt(e,0)^45?(((t<<2^rt(e,0))<<2^rt(e,1))<<2^rt(e,2))<<2^rt(e,3):0}function xp(e){return e.trim()}function Ox(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,n){return e.replace(t,n)}function pl(e,t){return e.indexOf(t)}function rt(e,t){return e.charCodeAt(t)|0}function bo(e,t,n){return e.slice(t,n)}function en(e){return e.length}function fl(e){return e.length}function ti(e,t){return t.push(e),e}function Px(e,t){return e.map(t).join("")}var ni=1,Er=1,Sp=0,St=0,Qe=0,Tr="";function ri(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ni,column:Er,length:a,return:""}}function vo(e,t){return Ex(ri("",null,null,"",null,null,0),e,{length:-e.length},t)}function kx(){return Qe}function Nx(){return Qe=St>0?rt(Tr,--St):0,Er--,Qe===10&&(Er=1,ni--),Qe}function Pt(){return Qe=St<Sp?rt(Tr,St++):0,Er++,Qe===10&&(Er=1,ni++),Qe}function tn(){return rt(Tr,St)}function oi(){return St}function xo(e,t){return bo(Tr,e,t)}function So(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 wp(e){return ni=Er=1,Sp=en(Tr=e),St=0,[]}function Cp(e){return Tr="",e}function si(e){return xp(xo(St-1,hl(e===91?e+2:e===40?e+1:e)))}function Ix(e){for(;(Qe=tn())&&Qe<33;)Pt();return So(e)>2||So(Qe)>3?"":" "}function _x(e,t){for(;--t&&Pt()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return xo(e,oi()+(t<6&&tn()==32&&Pt()==32))}function hl(e){for(;Pt();)switch(Qe){case e:return St;case 34:case 39:e!==34&&e!==39&&hl(Qe);break;case 40:e===41&&hl(e);break;case 92:Pt();break}return St}function Ax(e,t){for(;Pt()&&e+Qe!==57;)if(e+Qe===84&&tn()===47)break;return"/*"+xo(t,St-1)+"*"+ei(e===47?e:Pt())}function Mx(e){for(;!So(tn());)Pt();return xo(e,St)}function $x(e){return Cp(ii("",null,null,null,[""],e=wp(e),0,[0],e))}function ii(e,t,n,r,o,i,a,l,c){for(var p=0,u=0,h=a,b=0,y=0,g=0,f=1,m=1,v=1,w=0,S="",x=o,E=i,O=r,N=S;m;)switch(g=w,w=Pt()){case 40:if(g!=108&&rt(N,h-1)==58){pl(N+=Pe(si(w),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:N+=si(w);break;case 9:case 10:case 13:case 32:N+=Ix(g);break;case 92:N+=_x(oi()-1,7);continue;case 47:switch(tn()){case 42:case 47:ti(Dx(Ax(Pt(),oi()),t,n),c);break;default:N+="/"}break;case 123*f:l[p++]=en(N)*v;case 125*f:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+u:v==-1&&(N=Pe(N,/\f/g,"")),y>0&&en(N)-h&&ti(y>32?Tp(N+";",r,n,h-1):Tp(Pe(N," ","")+";",r,n,h-2),c);break;case 59:N+=";";default:if(ti(O=Ep(N,t,n,p,u,o,l,S,x=[],E=[],h),i),w===123)if(u===0)ii(N,t,O,O,x,i,h,l,E);else switch(b===99&&rt(N,3)===110?100:b){case 100:case 108:case 109:case 115:ii(e,O,O,r&&ti(Ep(e,O,O,0,0,o,l,S,o,x=[],h),E),o,E,h,l,r?x:E);break;default:ii(N,O,O,O,[""],E,0,l,E)}}p=u=y=0,f=v=1,S=N="",h=a;break;case 58:h=1+en(N),y=g;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&Nx()==125)continue}switch(N+=ei(w),w*f){case 38:v=u>0?1:(N+="\f",-1);break;case 44:l[p++]=(en(N)-1)*v,v=1;break;case 64:tn()===45&&(N+=si(Pt())),b=tn(),u=h=en(S=N+=Mx(oi())),w++;break;case 45:g===45&&en(N)==2&&(f=0)}}return i}function Ep(e,t,n,r,o,i,a,l,c,p,u){for(var h=o-1,b=o===0?i:[""],y=fl(b),g=0,f=0,m=0;g<r;++g)for(var v=0,w=bo(e,h+1,h=Cx(f=a[g])),S=e;v<y;++v)(S=xp(f>0?b[v]+" "+w:Pe(w,/&\f/g,b[v])))&&(c[m++]=S);return ri(e,t,n,o===0?ul:l,c,p,u)}function Dx(e,t,n){return ri(e,t,n,bp,ei(kx()),bo(e,2,-2),0)}function Tp(e,t,n,r){return ri(e,t,n,dl,bo(e,0,r),bo(e,r+1,-1),r)}function Or(e,t){for(var n="",r=fl(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Fx(e,t,n,r){switch(e.type){case wx:if(e.children.length)break;case Sx:case dl:return e.return=e.return||e.value;case bp:return"";case vp:return e.return=e.value+"{"+Or(e.children,r)+"}";case ul:e.value=e.props.join(",")}return en(n=Or(e.children,r))?e.return=e.value+"{"+n+"}":""}function jx(e){var t=fl(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function Rx(e){return function(t){t.root||(t=t.return)&&e(t)}}function Op(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Lx=function(t,n,r){for(var o=0,i=0;o=i,i=tn(),o===38&&i===12&&(n[r]=1),!So(i);)Pt();return xo(t,St)},Bx=function(t,n){var r=-1,o=44;do switch(So(o)){case 0:o===38&&tn()===12&&(n[r]=1),t[r]+=Lx(St-1,n,r);break;case 2:t[r]+=si(o);break;case 4:if(o===44){t[++r]=tn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ei(o)}while(o=Pt());return t},zx=function(t,n){return Cp(Bx(wp(t),n))},Pp=new WeakMap,Wx=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&&!Pp.get(r))&&!o){Pp.set(t,!0);for(var i=[],a=zx(n,i),l=r.props,c=0,p=0;c<a.length;c++)for(var u=0;u<l.length;u++,p++)t.props[p]=i[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},Vx=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function kp(e,t){switch(Tx(e,t)){case 5103:return Oe+"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 Oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Oe+e+Zs+e+ct+e+e;case 6828:case 4268:return Oe+e+ct+e+e;case 6165:return Oe+e+ct+"flex-"+e+e;case 5187:return Oe+e+Pe(e,/(\w+).+(:[^]+)/,Oe+"box-$1$2"+ct+"flex-$1$2")+e;case 5443:return Oe+e+ct+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return Oe+e+ct+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return Oe+e+ct+Pe(e,"shrink","negative")+e;case 5292:return Oe+e+ct+Pe(e,"basis","preferred-size")+e;case 6060:return Oe+"box-"+Pe(e,"-grow","")+Oe+e+ct+Pe(e,"grow","positive")+e;case 4554:return Oe+Pe(e,/([^-])(transform)/g,"$1"+Oe+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,Oe+"$1"),/(image-set)/,Oe+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,Oe+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,Oe+"box-pack:$3"+ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Oe+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,Oe+"$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(en(e)-1-t>6)switch(rt(e,t+1)){case 109:if(rt(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+Zs+(rt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pl(e,"stretch")?kp(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rt(e,t+1)!==115)break;case 6444:switch(rt(e,en(e)-3-(~pl(e,"!important")&&10))){case 107:return Pe(e,":",":"+Oe)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oe+(rt(e,14)===45?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(rt(e,t+11)){case 114:return Oe+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+ct+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oe+e+ct+e+e}return e}var Ux=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case dl:t.return=kp(t.value,t.length);break;case vp:return Or([vo(t,{value:Pe(t.value,"@","@"+Oe)})],o);case ul:if(t.length)return Px(t.props,function(i){switch(Ox(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Or([vo(t,{props:[Pe(i,/:(read-\w+)/,":"+Zs+"$1")]})],o);case"::placeholder":return Or([vo(t,{props:[Pe(i,/:(plac\w+)/,":"+Oe+"input-$1")]}),vo(t,{props:[Pe(i,/:(plac\w+)/,":"+Zs+"$1")]}),vo(t,{props:[Pe(i,/:(plac\w+)/,ct+"input-$1")]})],o)}return""})}},qx=[Ux],Hx=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(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||qx,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),v=1;v<m.length;v++)i[m[v]]=!0;l.push(f)});var c,p=[Wx,Vx];{var u,h=[Fx,Rx(function(f){u.insert(f)})],b=jx(p.concat(o,h)),y=function(m){return Or($x(m),b)};c=function(m,v,w,S){u=w,y(m?m+"{"+v.styles+"}":v.styles),S&&(g.inserted[v.name]=!0)}}var g={key:n,sheet:new xx({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(l),g},ai={exports:{}},Ne={};var Np;function Yx(){if(Np)return Ne;Np=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,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(E){if(typeof E=="object"&&E!==null){var O=E.$$typeof;switch(O){case t:switch(E=E.type,E){case c:case p:case r:case i:case o:case h:return E;default:switch(E=E&&E.$$typeof,E){case l:case u:case g:case y:case a:return E;default:return O}}case n:return O}}}function x(E){return S(E)===p}return Ne.AsyncMode=c,Ne.ConcurrentMode=p,Ne.ContextConsumer=l,Ne.ContextProvider=a,Ne.Element=t,Ne.ForwardRef=u,Ne.Fragment=r,Ne.Lazy=g,Ne.Memo=y,Ne.Portal=n,Ne.Profiler=i,Ne.StrictMode=o,Ne.Suspense=h,Ne.isAsyncMode=function(E){return x(E)||S(E)===c},Ne.isConcurrentMode=x,Ne.isContextConsumer=function(E){return S(E)===l},Ne.isContextProvider=function(E){return S(E)===a},Ne.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ne.isForwardRef=function(E){return S(E)===u},Ne.isFragment=function(E){return S(E)===r},Ne.isLazy=function(E){return S(E)===g},Ne.isMemo=function(E){return S(E)===y},Ne.isPortal=function(E){return S(E)===n},Ne.isProfiler=function(E){return S(E)===i},Ne.isStrictMode=function(E){return S(E)===o},Ne.isSuspense=function(E){return S(E)===h},Ne.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===p||E===i||E===o||E===h||E===b||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===y||E.$$typeof===a||E.$$typeof===l||E.$$typeof===u||E.$$typeof===m||E.$$typeof===v||E.$$typeof===w||E.$$typeof===f)},Ne.typeOf=S,Ne}var Ie={};var Ip;function Kx(){return Ip||(Ip=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,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(q){return typeof q=="string"||typeof q=="function"||q===r||q===p||q===i||q===o||q===h||q===b||typeof q=="object"&&q!==null&&(q.$$typeof===g||q.$$typeof===y||q.$$typeof===a||q.$$typeof===l||q.$$typeof===u||q.$$typeof===m||q.$$typeof===v||q.$$typeof===w||q.$$typeof===f)}function x(q){if(typeof q=="object"&&q!==null){var le=q.$$typeof;switch(le){case t:var re=q.type;switch(re){case c:case p:case r:case i:case o:case h:return re;default:var he=re&&re.$$typeof;switch(he){case l:case u:case g:case y:case a:return he;default:return le}}case n:return le}}}var E=c,O=p,N=l,D=a,A=t,L=u,_=r,T=g,$=y,I=n,j=i,P=o,k=h,B=!1;function z(q){return B||(B=!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.")),M(q)||x(q)===c}function M(q){return x(q)===p}function V(q){return x(q)===l}function G(q){return x(q)===a}function X(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function ee(q){return x(q)===u}function K(q){return x(q)===r}function Q(q){return x(q)===g}function Z(q){return x(q)===y}function oe(q){return x(q)===n}function se(q){return x(q)===i}function J(q){return x(q)===o}function te(q){return x(q)===h}Ie.AsyncMode=E,Ie.ConcurrentMode=O,Ie.ContextConsumer=N,Ie.ContextProvider=D,Ie.Element=A,Ie.ForwardRef=L,Ie.Fragment=_,Ie.Lazy=T,Ie.Memo=$,Ie.Portal=I,Ie.Profiler=j,Ie.StrictMode=P,Ie.Suspense=k,Ie.isAsyncMode=z,Ie.isConcurrentMode=M,Ie.isContextConsumer=V,Ie.isContextProvider=G,Ie.isElement=X,Ie.isForwardRef=ee,Ie.isFragment=K,Ie.isLazy=Q,Ie.isMemo=Z,Ie.isPortal=oe,Ie.isProfiler=se,Ie.isStrictMode=J,Ie.isSuspense=te,Ie.isValidElementType=S,Ie.typeOf=x})()),Ie}var _p;function gl(){return _p||(_p=1,process.env.NODE_ENV==="production"?ai.exports=Yx():ai.exports=Kx()),ai.exports}var yl,Ap;function Gx(){if(Ap)return yl;Ap=1;var e=gl(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function a(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,b=Object.prototype;function y(g,f,m){if(typeof f!="string"){if(b){var v=h(f);v&&v!==b&&y(g,v,m)}var w=c(f);p&&(w=w.concat(p(f)));for(var S=a(g),x=a(f),E=0;E<w.length;++E){var O=w[E];if(!n[O]&&!(m&&m[O])&&!(x&&x[O])&&!(S&&S[O])){var N=u(f,O);try{l(g,O,N)}catch{}}}}return g}return yl=y,yl}Gx();var Jx=!0;function Mp(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ml=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Jx===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},bl=function(t,n,r){ml(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 Xx(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 Qx={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},Zx=/[A-Z]|^ms/g,eS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$p=function(t){return t.charCodeAt(1)===45},Dp=function(t){return t!=null&&typeof t!="boolean"},vl=Op(function(e){return $p(e)?e:e.replace(Zx,"-$&").toLowerCase()}),Fp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(eS,function(r,o,i){return nn={name:o,styles:i,next:nn},o})}return Qx[t]!==1&&!$p(t)&&typeof n=="number"&&n!==0?n+"px":n};function wo(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 nn={name:o.name,styles:o.styles,next:nn},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)nn={name:a.name,styles:a.styles,next:nn},a=a.next;var l=i.styles+";";return l}return tS(e,t,n)}case"function":{if(e!==void 0){var c=nn,p=n(e);return nn=c,wo(e,t,p)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function tS(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=wo(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":Dp(l)&&(r+=vl(i)+":"+Fp(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Dp(a[c])&&(r+=vl(i)+":"+Fp(i,a[c])+";");else{var p=wo(e,t,a);switch(i){case"animation":case"animationName":{r+=vl(i)+":"+p+";";break}default:r+=i+"{"+p+"}"}}}return r}var jp=/label:\s*([^\s;{]+)\s*(;|$)/g,nn;function Co(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="";nn=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=wo(n,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=wo(n,t,e[l]),r){var c=i;o+=c[l]}jp.lastIndex=0;for(var p="",u;(u=jp.exec(o))!==null;)p+="-"+u[1];var h=Xx(o)+p;return{name:h,styles:o,next:nn}}var nS=function(t){return t()},Rp=C.useInsertionEffect?C.useInsertionEffect:!1,Lp=Rp||nS,Bp=Rp||C.useLayoutEffect,zp=C.createContext(typeof HTMLElement<"u"?Hx({key:"css"}):null);zp.Provider;var xl=function(t){return R.forwardRef(function(n,r){var o=R.useContext(zp);return t(n,o,r)})},li=C.createContext({}),Sl={}.hasOwnProperty,wl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",rS=function(t,n){var r={};for(var o in n)Sl.call(n,o)&&(r[o]=n[o]);return r[wl]=t,r},oS=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ml(n,r,o),Lp(function(){return bl(n,r,o)}),null},sS=xl(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[wl],i=[r],a="";typeof e.className=="string"?a=Mp(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Co(i,void 0,C.useContext(li));a+=t.key+"-"+l.name;var c={};for(var p in e)Sl.call(e,p)&&p!=="css"&&p!==wl&&(c[p]=e[p]);return c.className=a,n&&(c.ref=n),C.createElement(C.Fragment,null,C.createElement(oS,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,c))}),iS=sS,Wp=function(t,n){var r=arguments;if(n==null||!Sl.call(n,"css"))return C.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=iS,i[1]=rS(t,n);for(var a=2;a<o;a++)i[a]=r[a];return C.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Wp||(Wp={}));var aS=xl(function(e,t){var n=e.styles,r=Co([n],void 0,C.useContext(li)),o=C.useRef();return Bp(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",i),a.hydrate([c])),o.current=[a,l],function(){a.flush()}},[t]),Bp(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&bl(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Cl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Co(t)}function Eo(){var e=Cl.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 lS=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,cS=Op(function(e){return lS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uS=cS,dS=function(t){return t!=="theme"},Vp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uS:dS},Up=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},pS=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ml(n,r,o),Lp(function(){return bl(n,r,o)}),null},fS=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=Up(t,n,r),c=l||Vp(o),p=!c("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var b=u[0];h.push(b[0]);for(var y=u.length,g=1;g<y;g++)h.push(u[g],b[g])}var f=xl(function(m,v,w){var S=p&&m.as||o,x="",E=[],O=m;if(m.theme==null){O={};for(var N in m)O[N]=m[N];O.theme=C.useContext(li)}typeof m.className=="string"?x=Mp(v.registered,E,m.className):m.className!=null&&(x=m.className+" ");var D=Co(h.concat(E),v.registered,O);x+=v.key+"-"+D.name,a!==void 0&&(x+=" "+a);var A=p&&l===void 0?Vp(S):c,L={};for(var _ in m)p&&_==="as"||A(_)&&(L[_]=m[_]);return L.className=x,w&&(L.ref=w),C.createElement(C.Fragment,null,C.createElement(pS,{cache:v,serialized:D,isStringTag:typeof S=="string"}),C.createElement(S,L))});return f.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=h,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(m,v){var w=e(m,Qs({},n,v,{shouldForwardProp:Up(f,v,!0)}));return w.apply(void 0,h)},f}},hS=["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"],El=fS.bind(null);hS.forEach(function(e){El[e]=El(e)});var ci={exports:{}};var Tl,qp;function gS(){if(qp)return Tl;qp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tl=o()?Object.assign:function(i,a){for(var l,c=r(i),p,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){p=e(l);for(var b=0;b<p.length;b++)n.call(l,p[b])&&(c[p[b]]=l[p[b]])}}return c},Tl}var Ol,Hp;function Pl(){if(Hp)return Ol;Hp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ol=e,Ol}var kl,Yp;function Kp(){return Yp||(Yp=1,kl=Function.call.bind(Object.prototype.hasOwnProperty)),kl}var Nl,Gp;function yS(){if(Gp)return Nl;Gp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pl(),n={},r=Kp();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,p){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var h;try{if(typeof i[u]!="function"){var b=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}h=i[u](a,u,c,l,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var y=p?p():"";e("Failed "+l+" type: "+h.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Nl=o,Nl}var Il,Jp;function mS(){if(Jp)return Il;Jp=1;var e=gl(),t=gS(),n=Pl(),r=Kp(),o=yS(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Il=function(l,c){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(M){var V=M&&(p&&M[p]||M[u]);if(typeof V=="function")return V}var b="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:w(),arrayOf:S,element:x(),elementType:E(),instanceOf:O,node:L(),objectOf:D,oneOf:N,oneOfType:A,shape:T,exact:$};function g(M,V){return M===V?M!==0||1/M===1/V:M!==M&&V!==V}function f(M,V){this.message=M,this.data=V&&typeof V=="object"?V:{},this.stack=""}f.prototype=Error.prototype;function m(M){if(process.env.NODE_ENV!=="production")var V={},G=0;function X(K,Q,Z,oe,se,J,te){if(oe=oe||b,J=J||Z,te!==n){if(c){var q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw q.name="Invariant Violation",q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=oe+":"+Z;!V[le]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[le]=!0,G++)}}return Q[Z]==null?K?Q[Z]===null?new f("The "+se+" `"+J+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new f("The "+se+" `"+J+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:M(Q,Z,oe,se,J)}var ee=X.bind(null,!1);return ee.isRequired=X.bind(null,!0),ee}function v(M){function V(G,X,ee,K,Q,Z){var oe=G[X],se=P(oe);if(se!==M){var J=k(oe);return new f("Invalid "+K+" `"+Q+"` of type "+("`"+J+"` supplied to `"+ee+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return m(V)}function w(){return m(a)}function S(M){function V(G,X,ee,K,Q){if(typeof M!="function")return new f("Property `"+Q+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var Z=G[X];if(!Array.isArray(Z)){var oe=P(Z);return new f("Invalid "+K+" `"+Q+"` of type "+("`"+oe+"` supplied to `"+ee+"`, expected an array."))}for(var se=0;se<Z.length;se++){var J=M(Z,se,ee,K,Q+"["+se+"]",n);if(J instanceof Error)return J}return null}return m(V)}function x(){function M(V,G,X,ee,K){var Q=V[G];if(!l(Q)){var Z=P(Q);return new f("Invalid "+ee+" `"+K+"` of type "+("`"+Z+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return m(M)}function E(){function M(V,G,X,ee,K){var Q=V[G];if(!e.isValidElementType(Q)){var Z=P(Q);return new f("Invalid "+ee+" `"+K+"` of type "+("`"+Z+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return m(M)}function O(M){function V(G,X,ee,K,Q){if(!(G[X]instanceof M)){var Z=M.name||b,oe=z(G[X]);return new f("Invalid "+K+" `"+Q+"` of type "+("`"+oe+"` supplied to `"+ee+"`, expected ")+("instance of `"+Z+"`."))}return null}return m(V)}function N(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function V(G,X,ee,K,Q){for(var Z=G[X],oe=0;oe<M.length;oe++)if(g(Z,M[oe]))return null;var se=JSON.stringify(M,function(te,q){var le=k(q);return le==="symbol"?String(q):q});return new f("Invalid "+K+" `"+Q+"` of value `"+String(Z)+"` "+("supplied to `"+ee+"`, expected one of "+se+"."))}return m(V)}function D(M){function V(G,X,ee,K,Q){if(typeof M!="function")return new f("Property `"+Q+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var Z=G[X],oe=P(Z);if(oe!=="object")return new f("Invalid "+K+" `"+Q+"` of type "+("`"+oe+"` supplied to `"+ee+"`, expected an object."));for(var se in Z)if(r(Z,se)){var J=M(Z,se,ee,K,Q+"."+se,n);if(J instanceof Error)return J}return null}return m(V)}function A(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<M.length;V++){var G=M[V];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(G)+" at index "+V+"."),a}function X(ee,K,Q,Z,oe){for(var se=[],J=0;J<M.length;J++){var te=M[J],q=te(ee,K,Q,Z,oe,n);if(q==null)return null;q.data&&r(q.data,"expectedType")&&se.push(q.data.expectedType)}var le=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new f("Invalid "+Z+" `"+oe+"` supplied to "+("`"+Q+"`"+le+"."))}return m(X)}function L(){function M(V,G,X,ee,K){return I(V[G])?null:new f("Invalid "+ee+" `"+K+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return m(M)}function _(M,V,G,X,ee){return new f((M||"React class")+": "+V+" type `"+G+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function T(M){function V(G,X,ee,K,Q){var Z=G[X],oe=P(Z);if(oe!=="object")return new f("Invalid "+K+" `"+Q+"` of type `"+oe+"` "+("supplied to `"+ee+"`, expected `object`."));for(var se in M){var J=M[se];if(typeof J!="function")return _(ee,K,Q,se,k(J));var te=J(Z,se,ee,K,Q+"."+se,n);if(te)return te}return null}return m(V)}function $(M){function V(G,X,ee,K,Q){var Z=G[X],oe=P(Z);if(oe!=="object")return new f("Invalid "+K+" `"+Q+"` of type `"+oe+"` "+("supplied to `"+ee+"`, expected `object`."));var se=t({},G[X],M);for(var J in se){var te=M[J];if(r(M,J)&&typeof te!="function")return _(ee,K,Q,J,k(te));if(!te)return new f("Invalid "+K+" `"+Q+"` key `"+J+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(G[X],null," ")+`
25
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var q=te(Z,J,ee,K,Q+"."+J,n);if(q)return q}return null}return m(V)}function I(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(I);if(M===null||l(M))return!0;var V=h(M);if(V){var G=V.call(M),X;if(V!==M.entries){for(;!(X=G.next()).done;)if(!I(X.value))return!1}else for(;!(X=G.next()).done;){var ee=X.value;if(ee&&!I(ee[1]))return!1}}else return!1;return!0;default:return!1}}function j(M,V){return M==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function P(M){var V=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":j(V,M)?"symbol":V}function k(M){if(typeof M>"u"||M===null)return""+M;var V=P(M);if(V==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return V}function B(M){var V=k(M);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function z(M){return!M.constructor||!M.constructor.name?b:M.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},Il}var _l,Xp;function bS(){if(Xp)return _l;Xp=1;var e=Pl();function t(){}function n(){}return n.resetWarningCache=t,_l=function(){function r(a,l,c,p,u,h){if(h!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},_l}var Qp;function vS(){if(Qp)return ci.exports;if(Qp=1,process.env.NODE_ENV!=="production"){var e=gl(),t=!0;ci.exports=mS()(e.isElement,t)}else ci.exports=bS()();return ci.exports}var xS=vS();const s=Eu(xS);function SS(e){return e==null||Object.keys(e).length===0}function Zp(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(SS(o)?n:o):t;return d.jsx(aS,{styles:r})}process.env.NODE_ENV!=="production"&&(Zp.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});function ef(e,t){const n=El(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(`
26
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function wS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const tf=[];function Dn(e){return tf[0]=e,Co(tf)}var ui={exports:{}},$e={};var nf;function CS(){if(nf)return $e;nf=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case o:case r:case c:case p:case b:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case i:return f;default:return m}}case t:return m}}}return $e.ContextConsumer=i,$e.ContextProvider=a,$e.Element=e,$e.ForwardRef=l,$e.Fragment=n,$e.Lazy=h,$e.Memo=u,$e.Portal=t,$e.Profiler=o,$e.StrictMode=r,$e.Suspense=c,$e.SuspenseList=p,$e.isContextConsumer=function(f){return g(f)===i},$e.isContextProvider=function(f){return g(f)===a},$e.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},$e.isForwardRef=function(f){return g(f)===l},$e.isFragment=function(f){return g(f)===n},$e.isLazy=function(f){return g(f)===h},$e.isMemo=function(f){return g(f)===u},$e.isPortal=function(f){return g(f)===t},$e.isProfiler=function(f){return g(f)===o},$e.isStrictMode=function(f){return g(f)===r},$e.isSuspense=function(f){return g(f)===c},$e.isSuspenseList=function(f){return g(f)===p},$e.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},$e.typeOf=g,$e}var De={};var rf;function ES(){return rf||(rf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case i:case o:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case b:case h:return f;case a:return f;default:return m}}case n:return m}}}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"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");De.ContextConsumer=a,De.ContextProvider=l,De.Element=t,De.ForwardRef=c,De.Fragment=r,De.Lazy=b,De.Memo=h,De.Portal=n,De.Profiler=i,De.StrictMode=o,De.Suspense=p,De.SuspenseList=u,De.isContextConsumer=function(f){return e(f)===a},De.isContextProvider=function(f){return e(f)===l},De.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},De.isForwardRef=function(f){return e(f)===c},De.isFragment=function(f){return e(f)===r},De.isLazy=function(f){return e(f)===b},De.isMemo=function(f){return e(f)===h},De.isPortal=function(f){return e(f)===n},De.isProfiler=function(f){return e(f)===i},De.isStrictMode=function(f){return e(f)===o},De.isSuspense=function(f){return e(f)===p},De.isSuspenseList=function(f){return e(f)===u},De.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===b||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},De.typeOf=e})()),De}var of;function TS(){return of||(of=1,process.env.NODE_ENV==="production"?ui.exports=CS():ui.exports=ES()),ui.exports}var di=TS();function rn(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 sf(e){if(C.isValidElement(e)||di.isValidElementType(e)||!rn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=sf(e[n])}),t}function ut(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return rn(e)&&rn(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||di.isValidElementType(t[o])?r[o]=t[o]:rn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rn(e[o])?r[o]=ut(e[o],t[o],n):n.clone?r[o]=rn(t[o])?sf(t[o]):t[o]:r[o]=t[o]}),r}const OS=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)=>({...n,[r.key]:r.val}),{})};function PS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=OS(t),a=Object.keys(i);function l(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function c(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-r/100}${n})`}function p(b,y){const g=a.indexOf(y);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:y)-r/100}${n})`}function u(b){return a.indexOf(b)+1<a.length?p(b,a[a.indexOf(b)+1]):l(b)}function h(b){const y=a.indexOf(b);return y===0?l(a[1]):y===a.length-1?c(a[y]):p(b,a[a.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:p,only:u,not:h,unit:n,...o}}function af(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(r.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function kS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function NS(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
27
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Zt(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function IS(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const _S={borderRadius:4},Fn=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function To(e,t){return t?ut(e,t,{clone:!1}):e}const pi={xs:0,sm:600,md:900,lg:1200,xl:1536},lf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pi[e]}px)`},AS={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:pi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Sn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||lf;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||lf;return Object.keys(t).reduce((a,l)=>{if(kS(i.keys,l)){const c=NS(r.containerQueries?r:AS,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||pi).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function MS(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function cf(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ne(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Zt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fi(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 hi(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=fi(e,n)||r,t&&(o=t(o,r,e)),o}function Xe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,p=fi(c,r)||{};return Sn(a,l,h=>{let b=hi(p,o,h);return h===b&&typeof h=="string"&&(b=hi(p,o,`${t}${h==="default"?"":ne(h)}`,h)),n===!1?b:{[n]:b}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Fn}:{},i.filterProps=[t],i}function $S(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const DS={m:"margin",p:"padding"},FS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jS=$S(e=>{if(e.length>2)if(uf[e])e=uf[e];else return[e];const[t,n]=e.split(""),r=DS[t],o=FS[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),gi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],yi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],RS=[...gi,...yi];function Oo(e,t,n,r){const o=fi(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
28
28
  `)):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(`
29
- `)));const c=o[l];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
30
- `)),()=>{})}function Xl(e){return zo(e,"spacing",8,"spacing")}function jo(e,t){return typeof t=="string"||t==null?t:e(t)}function fS(e,t){return r=>e.reduce((n,o)=>(n[o]=jo(t,r),n),{})}function hS(e,t,r,n){if(!t.includes(r))return null;const o=pS(r),s=fS(o,n),l=e[r];return wr(e,l,s)}function $f(e,t){const r=Xl(e.theme);return Object.keys(e).map(n=>hS(e,t,n,r)).reduce(Fo,{})}function He(e){return $f(e,As)}He.propTypes=process.env.NODE_ENV!=="production"?As.reduce((e,t)=>(e[t]=Vr,e),{}):{},He.filterProps=As;function Re(e){return $f(e,Ms)}Re.propTypes=process.env.NODE_ENV!=="production"?Ms.reduce((e,t)=>(e[t]=Vr,e),{}):{},Re.filterProps=Ms,process.env.NODE_ENV!=="production"&&uS.reduce((e,t)=>(e[t]=Vr,e),{});function Df(e=8,t=Xl({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function $s(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?Fo(o,t[s](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function zt(e){return typeof e!="number"?e:`${e}px solid`}function jt(e,t){return Ye({prop:e,themeKey:"borders",transform:t})}const gS=jt("border",zt),yS=jt("borderTop",zt),mS=jt("borderRight",zt),bS=jt("borderBottom",zt),vS=jt("borderLeft",zt),xS=jt("borderColor"),SS=jt("borderTopColor"),wS=jt("borderRightColor"),CS=jt("borderBottomColor"),ES=jt("borderLeftColor"),TS=jt("outline",zt),OS=jt("outlineColor"),Ds=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:jo(t,n)});return wr(e,e.borderRadius,r)}return null};Ds.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vr}:{},Ds.filterProps=["borderRadius"],$s(gS,yS,mS,bS,vS,xS,SS,wS,CS,ES,Ds,TS,OS);const Fs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zo(e.theme,"spacing",8,"gap"),r=n=>({gap:jo(t,n)});return wr(e,e.gap,r)}return null};Fs.propTypes=process.env.NODE_ENV!=="production"?{gap:Vr}:{},Fs.filterProps=["gap"];const zs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:jo(t,n)});return wr(e,e.columnGap,r)}return null};zs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Vr}:{},zs.filterProps=["columnGap"];const js=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:jo(t,n)});return wr(e,e.rowGap,r)}return null};js.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vr}:{},js.filterProps=["rowGap"];const kS=Ye({prop:"gridColumn"}),PS=Ye({prop:"gridRow"}),IS=Ye({prop:"gridAutoFlow"}),NS=Ye({prop:"gridAutoColumns"}),_S=Ye({prop:"gridAutoRows"}),AS=Ye({prop:"gridTemplateColumns"}),MS=Ye({prop:"gridTemplateRows"}),$S=Ye({prop:"gridTemplateAreas"}),DS=Ye({prop:"gridArea"});$s(Fs,zs,js,kS,PS,IS,NS,_S,AS,MS,$S,DS);function Dn(e,t){return t==="grey"?t:e}const FS=Ye({prop:"color",themeKey:"palette",transform:Dn}),zS=Ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dn}),jS=Ye({prop:"backgroundColor",themeKey:"palette",transform:Dn});$s(FS,zS,jS);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const BS=Ye({prop:"width",transform:At}),Jl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Is[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:At(r)}};return wr(e,e.maxWidth,t)}return null};Jl.filterProps=["maxWidth"];const LS=Ye({prop:"minWidth",transform:At}),WS=Ye({prop:"height",transform:At}),VS=Ye({prop:"maxHeight",transform:At}),US=Ye({prop:"minHeight",transform:At});Ye({prop:"size",cssProperty:"width",transform:At}),Ye({prop:"size",cssProperty:"height",transform:At});const HS=Ye({prop:"boxSizing"});$s(BS,Jl,LS,WS,VS,US,HS);const Bo={border:{themeKey:"borders",transform:zt},borderTop:{themeKey:"borders",transform:zt},borderRight:{themeKey:"borders",transform:zt},borderBottom:{themeKey:"borders",transform:zt},borderLeft:{themeKey:"borders",transform:zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ds},color:{themeKey:"palette",transform:Dn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dn},backgroundColor:{themeKey:"palette",transform:Dn},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:He},mt:{style:He},mr:{style:He},mb:{style:He},ml:{style:He},mx:{style:He},my:{style:He},margin:{style:He},marginTop:{style:He},marginRight:{style:He},marginBottom:{style:He},marginLeft:{style:He},marginX:{style:He},marginY:{style:He},marginInline:{style:He},marginInlineStart:{style:He},marginInlineEnd:{style:He},marginBlock:{style:He},marginBlockStart:{style:He},marginBlockEnd:{style:He},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:Fs},rowGap:{style:js},columnGap:{style:zs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:Jl},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function RS(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function qS(e,t){return typeof e=="function"?e(t):e}function YS(){function e(r,n,o,s){const l={[r]:n,theme:o},c=s[r];if(!c)return{[r]:n};const{cssProperty:d=r,themeKey:p,transform:u,style:h}=c;if(n==null)return null;if(p==="typography"&&n==="inherit")return{[r]:n};const v=Ns(o,p)||{};return h?h(l):wr(l,n,y=>{let f=_s(v,u,y);return y===f&&typeof y=="string"&&(f=_s(v,u,`${r}${y==="default"?"":te(y)}`,y)),d===!1?f:{[d]:f}})}function t(r){const{sx:n,theme:o={},nested:s}=r||{};if(!n)return null;const l=o.unstable_sxConfig??Bo;function c(d){let p=d;if(typeof d=="function")p=d(o);else if(typeof d!="object")return d;if(!p)return null;const u=aS(o.breakpoints),h=Object.keys(u);let v=u;return Object.keys(p).forEach(g=>{const y=qS(p[g],o);if(y!=null)if(typeof y=="object")if(l[g])v=Fo(v,e(g,y,o,l));else{const f=wr({theme:o},y,m=>({[g]:m}));RS(f,y)?v[g]=t({sx:y,theme:o,nested:!0}):v=Fo(v,f)}else v=Fo(v,e(g,y,o,l))}),!s&&o.modularCssLayers?{"@layer sx":Nf(o,Af(h,v))}:Nf(o,Af(h,v))}return Array.isArray(n)?n.map(c):c(n)}return t}const nn=YS();nn.filterProps=["sx"];function GS(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Ql(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={},...l}=e,c=tS(r),d=Df(o);let p=ut({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...iS,...s}},l);return p=oS(p),p.applyStyles=GS,p=t.reduce((u,h)=>ut(u,h),p),p.unstable_sxConfig={...Bo,...l?.unstable_sxConfig},p.unstable_sx=function(h){return nn({sx:h,theme:this})},p}function KS(e){return Object.keys(e).length===0}function Ff(e=null){const t=T.useContext(Ts);return!t||KS(t)?e:t}const XS=Ql();function Zl(e=XS){return Ff(e)}function ec(e){const t=Wr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function zf({styles:e,themeId:t,defaultTheme:r={}}){const n=Zl(r),o=t&&n[t]||n;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(l=>ec(typeof l=="function"?l(o):l)):s=ec(s)),a.jsx(Cf,{styles:s})}process.env.NODE_ENV!=="production"&&(zf.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const JS=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Bo;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function jf(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=JS(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...l)=>{const c=t(...l);return cr(c)?{...n,...c}:n}:s={...n,...t},{...o,sx:s}}const Bf=e=>e,Lf=(()=>{let e=Bf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bf}}})();function Wf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Wf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function se(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Wf(e))&&(n&&(n+=" "),n+=t);return n}function QS(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,s=Ef("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(nn);return T.forwardRef(function(d,p){const u=Zl(r),{className:h,component:v="div",...g}=jf(d);return a.jsx(s,{as:v,ref:p,className:se(h,o?o(n):n),theme:t&&u[t]||u,...g})})}const ZS={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 pe(e,t,r="Mui"){const n=ZS[t];return n?`${r}-${n}`:`${Lf.generate(e)}-${t}`}function de(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=pe(e,o,r)}),n}function Vf(e,t=""){return e.displayName||e.name||t}function Uf(e,t,r){const n=Vf(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function ew(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ps.ForwardRef:return Uf(e,e.render,"ForwardRef");case Ps.Memo:return Uf(e,e.type,"memo");default:return}}}function Hf(e){const{variants:t,...r}=e,n={variants:t,style:Wr(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Wr(o.style))}),n}const tw=Ql();function tc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function on(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function rw(e){return e?(t,r)=>r[e]:null}function nw(e,t,r){e.theme=aw(e.theme)?r:e.theme[t]||e.theme}function Bs(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Bs(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?on(n.style,r):n.style;else{const{variants:s,...l}=n;o=r?on(Wr(l),r):l}return Rf(e,n.variants,[o],r)}return n?.isProcessed?r?on(Wr(n.style),r):n.style:r?on(Wr(n),r):n}function Rf(e,t,r=[],n=void 0){let o;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(o))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?on(Wr(l.style(o)),n):l.style(o))):r.push(n?on(Wr(l.style),n):l.style)}return r}function ow(e={}){const{themeId:t,defaultTheme:r=tw,rootShouldForwardProp:n=tc,slotShouldForwardProp:o=tc}=e;function s(c){nw(c,t,r)}return(c,d={})=>{X1(c,O=>O.filter(I=>I!==nn));const{name:p,slot:u,skipVariantsResolver:h,skipSx:v,overridesResolver:g=rw(qf(u)),...y}=d,f=p&&p.startsWith("Mui")||u?"components":"custom",m=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,x=v||!1;let b=tc;u==="Root"||u==="root"?b=n:u?b=o:lw(c)&&(b=void 0);const w=Ef(c,{shouldForwardProp:b,label:sw(p,u),...y}),S=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(F){return Bs(F,O,F.theme.modularCssLayers?f:void 0)};if(cr(O)){const I=Hf(O);return function(D){return I.variants?Bs(D,I,D.theme.modularCssLayers?f:void 0):D.theme.modularCssLayers?on(I.style,f):I.style}}return O},C=(...O)=>{const I=[],F=O.map(S),D=[];if(I.push(s),p&&g&&D.push(function(j){const M=j.theme.components?.[p]?.styleOverrides;if(!M)return null;const _={};for(const N in M)_[N]=Bs(j,M[N],j.theme.modularCssLayers?"theme":void 0);return g(j,_)}),p&&!m&&D.push(function(j){const M=j.theme?.components?.[p]?.variants;return M?Rf(j,M,[],j.theme.modularCssLayers?"theme":void 0):null}),x||D.push(nn),Array.isArray(F[0])){const k=F.shift(),j=new Array(I.length).fill(""),A=new Array(D.length).fill("");let M;M=[...j,...k,...A],M.raw=[...j,...k.raw,...A],I.unshift(M)}const L=[...I,...F,...D],z=w(...L);return c.muiName&&(z.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(z.displayName=iw(p,u,c)),z};return w.withConfig&&(C.withConfig=w.withConfig),C}}function iw(e,t,r){return e?`${e}${te(t||"")}`:`Styled(${ew(r)})`}function sw(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${qf(t||"Root")}`),r}function aw(e){for(const t in e)return!1;return!0}function lw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function qf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Lo(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const l=e[s],c=t[s];if(!c)n[s]=l||{};else if(!l)n[s]=c;else{n[s]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const p=d;n[s][p]=Lo(l[p],c[p],r)}}}else s==="className"&&r&&t.className?n.className=se(e?.className,t?.className):s==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[s]===void 0&&(n[s]=e[s])}return n}function cw(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Lo(t.components[r].defaultProps,n)}const Xt=typeof window<"u"?T.useLayoutEffect:T.useEffect;function dw(e,t,r,n,o){const[s,l]=T.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Xt(()=>{if(!r)return;const c=r(e),d=()=>{l(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[e,r]),s}const Yf={...T}.useSyncExternalStore;function pw(e,t,r,n,o){const s=T.useCallback(()=>t,[t]),l=T.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:u}=n(e);return()=>u}return s},[s,e,n,o,r]),[c,d]=T.useMemo(()=>{if(r===null)return[s,()=>()=>{}];const u=r(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,r,e]);return Yf(d,c,l)}function Gf(e={}){const{themeId:t}=e;return function(n,o={}){let s=Ff();s&&t&&(s=s[t]||s);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=l?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=cw({name:"MuiUseMediaQuery",props:o,theme:s});process.env.NODE_ENV!=="production"&&typeof n=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
31
- `));let h=typeof n=="function"?n(s):n;h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
32
- `));const g=(Yf!==void 0?pw:dw)(h,c,d,p,u);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:h,match:g}),g}}Gf();function uw(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function rc(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),uw(e,t,r)}function fw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ur(e){if(e.type)return e;if(e.charAt(0)==="#")return Ur(fw(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
33
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ir(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
34
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ir(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const hw=e=>{const t=Ur(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Wo=(e,t)=>{try{return hw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ls(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Kf(e){e=Ur(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,s=n*Math.min(o,1-o),l=(p,u=(p+r/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Ls({type:c,values:d})}function nc(e){e=Ur(e);let t=e.type==="hsl"||e.type==="hsla"?Ur(Kf(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xf(e,t){const r=nc(e),n=nc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ws(e,t){return e=Ur(e),t=rc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ls(e)}function sn(e,t,r){try{return Ws(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Vs(e,t){if(e=Ur(e),t=rc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ls(e)}function Me(e,t,r){try{return Vs(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Us(e,t){if(e=Ur(e),t=rc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ls(e)}function $e(e,t,r){try{return Us(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function oc(e,t=.15){return nc(e)>.5?Vs(e,t):Us(e,t)}function Hs(e,t,r){try{return oc(e,t)}catch{return e}}const gw="exact-prop: ​";function ic(e){return process.env.NODE_ENV==="production"?e:{...e,[gw]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const yw=T.createContext();process.env.NODE_ENV!=="production"&&(i.node,i.bool);const sc=()=>T.useContext(yw)??!1,mw=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(i.node,i.object);function bw(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Lo(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Lo(o,n,t.components.mergeClassNameAndStyle):n}function vw({props:e,name:t}){const r=T.useContext(mw);return bw({props:e,name:t,theme:{components:r}})}let Jf=0;function xw(e){const[t,r]=T.useState(e),n=e||t;return T.useEffect(()=>{t==null&&(Jf+=1,r(`mui-${Jf}`))},[t]),n}const Qf={...T}.useId;function an(e){if(Qf!==void 0){const t=Qf();return e??t}return xw(e)}const Zf={theme:void 0};function Sw(e){let t,r;return function(o){let s=t;return(s===void 0||o.theme!==r)&&(Zf.theme=o.theme,s=Hf(e(Zf)),t=s,r=o.theme),s}}function ww(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const eh=(e,t,r,n=[])=>{let o=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=n.includes(s)?[]:{}),o=o[s])})},Cw=(e,t,r)=>{function n(o,s=[],l=[]){Object.entries(o).forEach(([c,d])=>{(!r||r&&!r([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...s,c],Array.isArray(d)?[...l,c]:l):t([...s,c],d,l))})}n(e)},Ew=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ac(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},s={},l={};return Cw(e,(c,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(c,d))){const u=`--${r?`${r}-`:""}${c.join("-")}`,h=Ew(c,d);Object.assign(o,{[u]:h}),eh(s,c,`var(${u})`,p),eh(l,c,`var(${u}, ${h})`,p)}},c=>c[0]==="vars"),{css:o,vars:s,varsWithDefaults:l}}function Tw(e,t={}){const{getSelector:r=x,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:l={},components:c,defaultColorScheme:d="light",...p}=e,{vars:u,css:h,varsWithDefaults:v}=ac(p,t);let g=v;const y={},{[d]:f,...m}=l;if(Object.entries(m||{}).forEach(([S,C])=>{const{vars:O,css:I,varsWithDefaults:F}=ac(C,t);g=ut(g,F),y[S]={css:I,vars:O}}),f){const{css:S,vars:C,varsWithDefaults:O}=ac(f,t);g=ut(g,O),y[d]={css:S,vars:C}}function x(S,C){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),S){if(O==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${l[S]?.palette?.mode||S})`]:{":root":C}};if(O)return e.defaultColorScheme===S?`:root, ${O.replace("%s",String(S))}`:O.replace("%s",String(S))}return":root"}return{vars:g,generateThemeVars:()=>{let S={...u};return Object.entries(y).forEach(([,{vars:C}])=>{S=ut(S,C)}),S},generateStyleSheets:()=>{const S=[],C=e.defaultColorScheme||"light";function O(D,L){Object.keys(L).length&&S.push(typeof D=="string"?{[D]:{...L}}:D)}O(r(void 0,{...h}),h);const{[C]:I,...F}=y;if(I){const{css:D}=I,L=l[C]?.palette?.mode,z=!n&&L?{colorScheme:L,...D}:{...D};O(r(C,{...z}),z)}return Object.entries(F).forEach(([D,{css:L}])=>{const z=l[D]?.palette?.mode,k=!n&&z?{colorScheme:z,...L}:{...L};O(r(D,{...k}),k)}),s&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function Ow(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function ue(e,t,r=void 0){const n={};for(const o in e){const s=e[o];let l="",c=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(l+=(c===!0?"":" ")+t(p),c=!1,r&&r[p]&&(l+=" "+r[p]))}n[o]=l}return n}function lc(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function th(){return{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:Oo.white,default:Oo.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}}}const rh=th();function nh(){return{text:{primary:Oo.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:Oo.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}}}const cc=nh();function oh(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Us(e.main,o):t==="dark"&&(e.dark=Vs(e.main,s)))}function ih(e,t,r,n,o){const s=o.light||o,l=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function kw(e="light"){return e==="dark"?{main:In[200],light:In[50],dark:In[400]}:{main:In[700],light:In[400],dark:In[800]}}function Pw(e="light"){return e==="dark"?{main:Pn[200],light:Pn[50],dark:Pn[400]}:{main:Pn[500],light:Pn[300],dark:Pn[700]}}function Iw(e="light"){return e==="dark"?{main:kn[500],light:kn[300],dark:kn[700]}:{main:kn[700],light:kn[400],dark:kn[800]}}function Nw(e="light"){return e==="dark"?{main:Nn[400],light:Nn[300],dark:Nn[700]}:{main:Nn[700],light:Nn[500],dark:Nn[900]}}function _w(e="light"){return e==="dark"?{main:_n[400],light:_n[300],dark:_n[700]}:{main:_n[800],light:_n[500],dark:_n[900]}}function Aw(e="light"){return e==="dark"?{main:ko[400],light:ko[300],dark:ko[700]}:{main:"#ed6c02",light:ko[500],dark:ko[900]}}function Mw(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function dc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...s}=e,l=e.primary||kw(t),c=e.secondary||Pw(t),d=e.error||Iw(t),p=e.info||Nw(t),u=e.success||_w(t),h=e.warning||Aw(t);function v(m){if(o)return Mw(m);const x=Xf(m,cc.text.primary)>=r?cc.text.primary:rh.text.primary;if(process.env.NODE_ENV!=="production"){const b=Xf(m,x);b<3&&console.error([`MUI: The contrast ratio of ${b}:1 for ${x} on ${m}`,"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(`
35
- `))}return x}const g=({color:m,name:x,mainShade:b=500,lightShade:w=300,darkShade:S=700})=>{if(m={...m},!m.main&&m[b]&&(m.main=m[b]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
36
- The color object needs to have a \`main\` property or a \`${b}\` property.`:ir(11,x?` (${x})`:"",b));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
29
+ `)));const l=o[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
30
+ `)),()=>{})}function Al(e){return Oo(e,"spacing",8,"spacing")}function Po(e,t){return typeof t=="string"||t==null?t:e(t)}function LS(e,t){return n=>e.reduce((r,o)=>(r[o]=Po(t,n),r),{})}function BS(e,t,n,r){if(!t.includes(n))return null;const o=jS(n),i=LS(o,r),a=e[n];return Sn(e,a,i)}function df(e,t){const n=Al(e.theme);return Object.keys(e).map(r=>BS(e,t,r,n)).reduce(To,{})}function Ye(e){return df(e,gi)}Ye.propTypes=process.env.NODE_ENV!=="production"?gi.reduce((e,t)=>(e[t]=Fn,e),{}):{},Ye.filterProps=gi;function Ke(e){return df(e,yi)}Ke.propTypes=process.env.NODE_ENV!=="production"?yi.reduce((e,t)=>(e[t]=Fn,e),{}):{},Ke.filterProps=yi,process.env.NODE_ENV!=="production"&&RS.reduce((e,t)=>(e[t]=Fn,e),{});function pf(e=8,t=Al({spacing:e})){if(e.mui)return e;const 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 a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function mi(...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]?To(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 $t(e){return typeof e!="number"?e:`${e}px solid`}function Dt(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const zS=Dt("border",$t),WS=Dt("borderTop",$t),VS=Dt("borderRight",$t),US=Dt("borderBottom",$t),qS=Dt("borderLeft",$t),HS=Dt("borderColor"),YS=Dt("borderTopColor"),KS=Dt("borderRightColor"),GS=Dt("borderBottomColor"),JS=Dt("borderLeftColor"),XS=Dt("outline",$t),QS=Dt("outlineColor"),bi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Oo(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Po(t,r)});return Sn(e,e.borderRadius,n)}return null};bi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Fn}:{},bi.filterProps=["borderRadius"],mi(zS,WS,VS,US,qS,HS,YS,KS,GS,JS,bi,XS,QS);const vi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Oo(e.theme,"spacing",8,"gap"),n=r=>({gap:Po(t,r)});return Sn(e,e.gap,n)}return null};vi.propTypes=process.env.NODE_ENV!=="production"?{gap:Fn}:{},vi.filterProps=["gap"];const xi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Oo(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Po(t,r)});return Sn(e,e.columnGap,n)}return null};xi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Fn}:{},xi.filterProps=["columnGap"];const Si=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Oo(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Po(t,r)});return Sn(e,e.rowGap,n)}return null};Si.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Fn}:{},Si.filterProps=["rowGap"];const ZS=Xe({prop:"gridColumn"}),ew=Xe({prop:"gridRow"}),tw=Xe({prop:"gridAutoFlow"}),nw=Xe({prop:"gridAutoColumns"}),rw=Xe({prop:"gridAutoRows"}),ow=Xe({prop:"gridTemplateColumns"}),sw=Xe({prop:"gridTemplateRows"}),iw=Xe({prop:"gridTemplateAreas"}),aw=Xe({prop:"gridArea"});mi(vi,xi,Si,ZS,ew,tw,nw,rw,ow,sw,iw,aw);function Pr(e,t){return t==="grey"?t:e}const lw=Xe({prop:"color",themeKey:"palette",transform:Pr}),cw=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pr}),uw=Xe({prop:"backgroundColor",themeKey:"palette",transform:Pr});mi(lw,cw,uw);function kt(e){return e<=1&&e!==0?`${e*100}%`:e}const dw=Xe({prop:"width",transform:kt}),Ml=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||pi[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:kt(n)}};return Sn(e,e.maxWidth,t)}return null};Ml.filterProps=["maxWidth"];const pw=Xe({prop:"minWidth",transform:kt}),fw=Xe({prop:"height",transform:kt}),hw=Xe({prop:"maxHeight",transform:kt}),gw=Xe({prop:"minHeight",transform:kt});Xe({prop:"size",cssProperty:"width",transform:kt}),Xe({prop:"size",cssProperty:"height",transform:kt});const yw=Xe({prop:"boxSizing"});mi(dw,Ml,pw,fw,hw,gw,yw);const ko={border:{themeKey:"borders",transform:$t},borderTop:{themeKey:"borders",transform:$t},borderRight:{themeKey:"borders",transform:$t},borderBottom:{themeKey:"borders",transform:$t},borderLeft:{themeKey:"borders",transform:$t},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$t},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bi},color:{themeKey:"palette",transform:Pr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pr},backgroundColor:{themeKey:"palette",transform:Pr},p:{style:Ke},pt:{style:Ke},pr:{style:Ke},pb:{style:Ke},pl:{style:Ke},px:{style:Ke},py:{style:Ke},padding:{style:Ke},paddingTop:{style:Ke},paddingRight:{style:Ke},paddingBottom:{style:Ke},paddingLeft:{style:Ke},paddingX:{style:Ke},paddingY:{style:Ke},paddingInline:{style:Ke},paddingInlineStart:{style:Ke},paddingInlineEnd:{style:Ke},paddingBlock:{style:Ke},paddingBlockStart:{style:Ke},paddingBlockEnd:{style:Ke},m:{style:Ye},mt:{style:Ye},mr:{style:Ye},mb:{style:Ye},ml:{style:Ye},mx:{style:Ye},my:{style:Ye},margin:{style:Ye},marginTop:{style:Ye},marginRight:{style:Ye},marginBottom:{style:Ye},marginLeft:{style:Ye},marginX:{style:Ye},marginY:{style:Ye},marginInline:{style:Ye},marginInlineStart:{style:Ye},marginInlineEnd:{style:Ye},marginBlock:{style:Ye},marginBlockStart:{style:Ye},marginBlockEnd:{style:Ye},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:vi},rowGap:{style:Si},columnGap:{style:xi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kt},maxWidth:{style:Ml},minWidth:{transform:kt},height:{transform:kt},maxHeight:{transform:kt},minHeight:{transform:kt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function mw(...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 bw(e,t){return typeof e=="function"?e(t):e}function vw(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:p,transform:u,style:h}=l;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const b=fi(o,p)||{};return h?h(a):Sn(a,r,g=>{let f=hi(b,u,g);return g===f&&typeof g=="string"&&(f=hi(b,u,`${n}${g==="default"?"":ne(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??ko;function l(c){let p=c;if(typeof c=="function")p=c(o);else if(typeof c!="object")return c;if(!p)return null;const u=MS(o.breakpoints),h=Object.keys(u);let b=u;return Object.keys(p).forEach(y=>{const g=bw(p[y],o);if(g!=null)if(typeof g=="object")if(a[y])b=To(b,e(y,g,o,a));else{const f=Sn({theme:o},g,m=>({[y]:m}));mw(f,g)?b[y]=t({sx:g,theme:o,nested:!0}):b=To(b,f)}else b=To(b,e(y,g,o,a))}),!i&&o.modularCssLayers?{"@layer sx":af(o,cf(h,b))}:af(o,cf(h,b))}return Array.isArray(r)?r.map(l):l(r)}return t}const Gn=vw();Gn.filterProps=["sx"];function xw(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function $l(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,l=PS(n),c=pf(o);let p=ut({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{..._S,...i}},a);return p=IS(p),p.applyStyles=xw,p=t.reduce((u,h)=>ut(u,h),p),p.unstable_sxConfig={...ko,...a?.unstable_sxConfig},p.unstable_sx=function(h){return Gn({sx:h,theme:this})},p}function Sw(e){return Object.keys(e).length===0}function ff(e=null){const t=C.useContext(li);return!t||Sw(t)?e:t}const ww=$l();function Dl(e=ww){return ff(e)}function Fl(e){const t=Dn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function hf({styles:e,themeId:t,defaultTheme:n={}}){const r=Dl(n),o=t&&r[t]||r;let i=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(a=>Fl(typeof a=="function"?a(o):a)):i=Fl(i)),d.jsx(Zp,{styles:i})}process.env.NODE_ENV!=="production"&&(hf.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const Cw=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ko;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function gf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Cw(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return rn(l)?{...r,...l}:r}:i={...r,...t},{...o,sx:i}}const yf=e=>e,mf=(()=>{let e=yf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yf}}})();function bf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ie(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bf(e))&&(r&&(r+=" "),r+=t);return r}function Ew(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ef("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Gn);return C.forwardRef(function(c,p){const u=Dl(n),{className:h,component:b="div",...y}=gf(c);return d.jsx(i,{as:b,ref:p,className:ie(h,o?o(r):r),theme:t&&u[t]||u,...y})})}const Tw={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 de(e,t,n="Mui"){const r=Tw[t];return r?`${n}-${r}`:`${mf.generate(e)}-${t}`}function ue(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=de(e,o,n)}),r}function vf(e,t=""){return e.displayName||e.name||t}function xf(e,t,n){const r=vf(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Ow(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case di.ForwardRef:return xf(e,e.render,"ForwardRef");case di.Memo:return xf(e,e.type,"memo");default:return}}}function Sf(e){const{variants:t,...n}=e,r={variants:t,style:Dn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Dn(o.style))}),r}const Pw=$l();function jl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Jn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function kw(e){return e?(t,n)=>n[e]:null}function Nw(e,t,n){e.theme=Mw(e.theme)?n:e.theme[t]||e.theme}function wi(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>wi(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?Jn(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?Jn(Dn(a),n):a}return wf(e,r.variants,[o],n)}return r?.isProcessed?n?Jn(Dn(r.style),n):r.style:n?Jn(Dn(r),n):r}function wf(e,t,n=[],r=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Jn(Dn(a.style(o)),r):a.style(o))):n.push(r?Jn(Dn(a.style),r):a.style)}return n}function Iw(e={}){const{themeId:t,defaultTheme:n=Pw,rootShouldForwardProp:r=jl,slotShouldForwardProp:o=jl}=e;function i(l){Nw(l,t,n)}return(l,c={})=>{wS(l,O=>O.filter(N=>N!==Gn));const{name:p,slot:u,skipVariantsResolver:h,skipSx:b,overridesResolver:y=kw(Cf(u)),...g}=c,f=p&&p.startsWith("Mui")||u?"components":"custom",m=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,v=b||!1;let w=jl;u==="Root"||u==="root"?w=r:u?w=o:$w(l)&&(w=void 0);const S=ef(l,{shouldForwardProp:w,label:Aw(p,u),...g}),x=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(D){return wi(D,O,D.theme.modularCssLayers?f:void 0)};if(rn(O)){const N=Sf(O);return function(A){return N.variants?wi(A,N,A.theme.modularCssLayers?f:void 0):A.theme.modularCssLayers?Jn(N.style,f):N.style}}return O},E=(...O)=>{const N=[],D=O.map(x),A=[];if(N.push(i),p&&y&&A.push(function($){const j=$.theme.components?.[p]?.styleOverrides;if(!j)return null;const P={};for(const k in j)P[k]=wi($,j[k],$.theme.modularCssLayers?"theme":void 0);return y($,P)}),p&&!m&&A.push(function($){const j=$.theme?.components?.[p]?.variants;return j?wf($,j,[],$.theme.modularCssLayers?"theme":void 0):null}),v||A.push(Gn),Array.isArray(D[0])){const T=D.shift(),$=new Array(N.length).fill(""),I=new Array(A.length).fill("");let j;j=[...$,...T,...I],j.raw=[...$,...T.raw,...I],N.unshift(j)}const L=[...N,...D,...A],_=S(...L);return l.muiName&&(_.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(_.displayName=_w(p,u,l)),_};return S.withConfig&&(E.withConfig=S.withConfig),E}}function _w(e,t,n){return e?`${e}${ne(t||"")}`:`Styled(${Ow(n)})`}function Aw(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Cf(t||"Root")}`),n}function Mw(e){for(const t in e)return!1;return!0}function $w(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function No(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)r[i]=a||{};else if(!a)r[i]=l;else{r[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const p=c;r[i][p]=No(a[p],l[p],n)}}}else i==="className"&&n&&t.className?r.className=ie(e?.className,t?.className):i==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Dw(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:No(t.components[n].defaultProps,r)}const qt=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Fw(e,t,n,r,o){const[i,a]=C.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return qt(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const Ef={...C}.useSyncExternalStore;function jw(e,t,n,r,o){const i=C.useCallback(()=>t,[t]),a=C.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return i},[i,e,r,o,n]),[l,c]=C.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[i,n,e]);return Ef(c,l,a)}function Tf(e={}){const{themeId:t}=e;return function(r,o={}){let i=ff();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=Dw({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
31
+ `));let h=typeof r=="function"?r(i):r;h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
32
+ `));const y=(Ef!==void 0?jw:Fw)(h,l,c,p,u);return process.env.NODE_ENV!=="production"&&C.useDebugValue({query:h,match:y}),y}}Tf();function Rw(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Rl(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}].`),Rw(e,t,n)}function Lw(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),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 jn(e){if(e.type)return e;if(e.charAt(0)==="#")return jn(Lw(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
33
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Zt(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"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
34
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Zt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Bw=e=>{const t=jn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Io=(e,t)=>{try{return Bw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ci(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Of(e){e=jn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(p,u=(p+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Ci({type:l,values:c})}function Ll(e){e=jn(e);let t=e.type==="hsl"||e.type==="hsla"?jn(Of(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 Pf(e,t){const n=Ll(e),r=Ll(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ei(e,t){return e=jn(e),t=Rl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ci(e)}function Xn(e,t,n){try{return Ei(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ti(e,t){if(e=jn(e),t=Rl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ci(e)}function _e(e,t,n){try{return Ti(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oi(e,t){if(e=jn(e),t=Rl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ci(e)}function Ae(e,t,n){try{return Oi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Bl(e,t=.15){return Ll(e)>.5?Ti(e,t):Oi(e,t)}function Pi(e,t,n){try{return Bl(e,t)}catch{return e}}const zw="exact-prop: ​";function zl(e){return process.env.NODE_ENV==="production"?e:{...e,[zw]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const Ww=C.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const Wl=()=>C.useContext(Ww)??!1,Vw=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Uw(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?No(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?No(o,r,t.components.mergeClassNameAndStyle):r}function qw({props:e,name:t}){const n=C.useContext(Vw);return Uw({props:e,name:t,theme:{components:n}})}let kf=0;function Hw(e){const[t,n]=C.useState(e),r=e||t;return C.useEffect(()=>{t==null&&(kf+=1,n(`mui-${kf}`))},[t]),r}const Nf={...C}.useId;function Qn(e){if(Nf!==void 0){const t=Nf();return e??t}return Hw(e)}const If={theme:void 0};function Yw(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(If.theme=o.theme,i=Sf(e(If)),t=i,n=o.theme),i}}function Kw(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const _f=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Gw=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}r(e)},Jw=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Vl(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return Gw(e,(l,c,p)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,h=Jw(l,c);Object.assign(o,{[u]:h}),_f(i,l,`var(${u})`,p),_f(a,l,`var(${u}, ${h})`,p)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function Xw(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...p}=e,{vars:u,css:h,varsWithDefaults:b}=Vl(p,t);let y=b;const g={},{[c]:f,...m}=a;if(Object.entries(m||{}).forEach(([x,E])=>{const{vars:O,css:N,varsWithDefaults:D}=Vl(E,t);y=ut(y,D),g[x]={css:N,vars:O}}),f){const{css:x,vars:E,varsWithDefaults:O}=Vl(f,t);y=ut(y,O),g[c]={css:x,vars:E}}function v(x,E){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),x){if(O==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${a[x]?.palette?.mode||x})`]:{":root":E}};if(O)return e.defaultColorScheme===x?`:root, ${O.replace("%s",String(x))}`:O.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...u};return Object.entries(g).forEach(([,{vars:E}])=>{x=ut(x,E)}),x},generateStyleSheets:()=>{const x=[],E=e.defaultColorScheme||"light";function O(A,L){Object.keys(L).length&&x.push(typeof A=="string"?{[A]:{...L}}:A)}O(n(void 0,{...h}),h);const{[E]:N,...D}=g;if(N){const{css:A}=N,L=a[E]?.palette?.mode,_=!r&&L?{colorScheme:L,...A}:{...A};O(n(E,{..._}),_)}return Object.entries(D).forEach(([A,{css:L}])=>{const _=a[A]?.palette?.mode,T=!r&&_?{colorScheme:_,...L}:{...L};O(n(A,{...T}),T)}),i&&x.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),x}}}function Qw(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function pe(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",l=!0;for(let c=0;c<i.length;c+=1){const p=i[c];p&&(a+=(l===!0?"":" ")+t(p),l=!1,n&&n[p]&&(a+=" "+n[p]))}r[o]=a}return r}function Ul(e,t){return C.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Af(){return{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:go.white,default:go.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}}}const Mf=Af();function $f(){return{text:{primary:go.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:go.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}}}const ql=$f();function Df(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=Oi(e.main,o):t==="dark"&&(e.dark=Ti(e.main,i)))}function Ff(e,t,n,r,o){const i=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Zw(e="light"){return e==="dark"?{main:Sr[200],light:Sr[50],dark:Sr[400]}:{main:Sr[700],light:Sr[400],dark:Sr[800]}}function e1(e="light"){return e==="dark"?{main:xr[200],light:xr[50],dark:xr[400]}:{main:xr[500],light:xr[300],dark:xr[700]}}function t1(e="light"){return e==="dark"?{main:vr[500],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[400],dark:vr[800]}}function n1(e="light"){return e==="dark"?{main:wr[400],light:wr[300],dark:wr[700]}:{main:wr[700],light:wr[500],dark:wr[900]}}function r1(e="light"){return e==="dark"?{main:Cr[400],light:Cr[300],dark:Cr[700]}:{main:Cr[800],light:Cr[500],dark:Cr[900]}}function o1(e="light"){return e==="dark"?{main:yo[400],light:yo[300],dark:yo[700]}:{main:"#ed6c02",light:yo[500],dark:yo[900]}}function s1(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Hl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||Zw(t),l=e.secondary||e1(t),c=e.error||t1(t),p=e.info||n1(t),u=e.success||r1(t),h=e.warning||o1(t);function b(m){if(o)return s1(m);const v=Pf(m,ql.text.primary)>=n?ql.text.primary:Mf.text.primary;if(process.env.NODE_ENV!=="production"){const w=Pf(m,v);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${v} on ${m}`,"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(`
35
+ `))}return v}const y=({color:m,name:v,mainShade:w=500,lightShade:S=300,darkShade:x=700})=>{if(m={...m},!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
36
+ The color object needs to have a \`main\` property or a \`${w}\` property.`:Zt(11,v?` (${v})`:"",w));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
37
37
  \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
38
38
 
39
39
  Did you intend to use one of the following approaches?
@@ -46,21 +46,21 @@ const theme1 = createTheme({ palette: {
46
46
 
47
47
  const theme2 = createTheme({ palette: {
48
48
  primary: { main: green[500] },
49
- } });`:ir(12,x?` (${x})`:"",JSON.stringify(m.main)));return o?(ih(o,m,"light",w,n),ih(o,m,"dark",S,n)):(oh(m,"light",w,n),oh(m,"dark",S,n)),m.contrastText||(m.contrastText=v(m.main)),m};let y;return t==="light"?y=th():t==="dark"&&(y=nh()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ut({common:{...Oo},mode:t,primary:g({color:l,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:d,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:p,name:"info"}),success:g({color:u,name:"success"}),grey:Rx,contrastThreshold:r,getContrastText:v,augmentColor:g,tonalOffset:n,...y},s)}function $w(e){const t={};return Object.entries(e).forEach(n=>{const[o,s]=n;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function Dw(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Fw(e){return Math.round(e*1e5)/1e5}const sh={textTransform:"uppercase"},ah='"Roboto", "Helvetica", "Arial", sans-serif';function zw(e,t){const{fontFamily:r=ah,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:p,pxToRem:u,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=n/14,g=u||(m=>`${m/d*v}rem`),y=(m,x,b,w,S)=>({fontFamily:r,fontWeight:m,fontSize:g(x),lineHeight:b,...r===ah?{letterSpacing:`${Fw(w/x)}em`}:{},...S,...p}),f={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(l,14,1.75,.4,sh),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,sh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ut({htmlFontSize:d,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c,...f},h,{clone:!1})}const jw=.2,Bw=.14,Lw=.12;function We(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${jw})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Lw})`].join(",")}const Ww=["none",We(0,2,1,-1,0,1,1,0,0,1,3,0),We(0,3,1,-2,0,2,2,0,0,1,5,0),We(0,3,3,-2,0,3,4,0,0,1,8,0),We(0,2,4,-1,0,4,5,0,0,1,10,0),We(0,3,5,-1,0,5,8,0,0,1,14,0),We(0,3,5,-1,0,6,10,0,0,1,18,0),We(0,4,5,-2,0,7,10,1,0,2,16,1),We(0,5,5,-3,0,8,10,1,0,3,14,2),We(0,5,6,-3,0,9,12,1,0,3,16,2),We(0,6,6,-3,0,10,14,1,0,4,18,3),We(0,6,7,-4,0,11,15,1,0,4,20,3),We(0,7,8,-4,0,12,17,2,0,5,22,4),We(0,7,8,-4,0,13,19,2,0,5,24,4),We(0,7,9,-4,0,14,21,2,0,5,26,4),We(0,8,9,-5,0,15,22,2,0,6,28,5),We(0,8,10,-5,0,16,24,2,0,6,30,5),We(0,8,11,-5,0,17,26,2,0,6,32,5),We(0,9,11,-5,0,18,28,2,0,7,34,6),We(0,9,12,-6,0,19,29,2,0,7,36,6),We(0,10,13,-6,0,20,31,3,0,8,38,7),We(0,10,13,-6,0,21,33,3,0,8,40,7),We(0,10,14,-6,0,22,35,3,0,8,42,7),We(0,11,14,-7,0,23,36,3,0,9,44,8),We(0,11,15,-7,0,24,38,3,0,9,46,8)],Vw={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)"},Uw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lh(e){return`${Math.round(e)}ms`}function Hw(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Rw(e){const t={...Vw,...e.easing},r={...Uw,...e.duration};return{getAutoHeightDuration:Hw,create:(o=["all"],s={})=>{const{duration:l=r.standard,easing:c=t.easeInOut,delay:d=0,...p}=s;if(process.env.NODE_ENV!=="production"){const u=v=>typeof v=="string",h=v=>!Number.isNaN(parseFloat(v));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(l)&&!u(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),u(c)||console.error('MUI: Argument "easing" must be a string.'),!h(d)&&!u(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(`
50
- `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof l=="string"?l:lh(l)} ${c} ${typeof d=="string"?d:lh(d)}`).join(",")},...e,easing:t,duration:r}}const qw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yw(e){return cr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ch(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let s=0;s<o.length;s++){const[l,c]=o[s];!Yw(c)||l.startsWith("unstable_")?delete n[l]:cr(c)&&(n[l]={...c},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
49
+ } });`:Zt(12,v?` (${v})`:"",JSON.stringify(m.main)));return o?(Ff(o,m,"light",S,r),Ff(o,m,"dark",x,r)):(Df(m,"light",S,r),Df(m,"dark",x,r)),m.contrastText||(m.contrastText=b(m.main)),m};let g;return t==="light"?g=Af():t==="dark"&&(g=$f()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ut({common:{...go},mode:t,primary:y({color:a,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:h,name:"warning"}),info:y({color:p,name:"info"}),success:y({color:u,name:"success"}),grey:mx,contrastThreshold:n,getContrastText:b,augmentColor:y,tonalOffset:r,...g},i)}function i1(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function a1(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function l1(e){return Math.round(e*1e5)/1e5}const jf={textTransform:"uppercase"},Rf='"Roboto", "Helvetica", "Arial", sans-serif';function c1(e,t){const{fontFamily:n=Rf,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:p,pxToRem:u,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=r/14,y=u||(m=>`${m/c*b}rem`),g=(m,v,w,S,x)=>({fontFamily:n,fontWeight:m,fontSize:y(v),lineHeight:w,...n===Rf?{letterSpacing:`${l1(S/v)}em`}:{},...x,...p}),f={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,jf),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,jf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ut({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...f},h,{clone:!1})}const u1=.2,d1=.14,p1=.12;function Ve(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${u1})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${d1})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${p1})`].join(",")}const f1=["none",Ve(0,2,1,-1,0,1,1,0,0,1,3,0),Ve(0,3,1,-2,0,2,2,0,0,1,5,0),Ve(0,3,3,-2,0,3,4,0,0,1,8,0),Ve(0,2,4,-1,0,4,5,0,0,1,10,0),Ve(0,3,5,-1,0,5,8,0,0,1,14,0),Ve(0,3,5,-1,0,6,10,0,0,1,18,0),Ve(0,4,5,-2,0,7,10,1,0,2,16,1),Ve(0,5,5,-3,0,8,10,1,0,3,14,2),Ve(0,5,6,-3,0,9,12,1,0,3,16,2),Ve(0,6,6,-3,0,10,14,1,0,4,18,3),Ve(0,6,7,-4,0,11,15,1,0,4,20,3),Ve(0,7,8,-4,0,12,17,2,0,5,22,4),Ve(0,7,8,-4,0,13,19,2,0,5,24,4),Ve(0,7,9,-4,0,14,21,2,0,5,26,4),Ve(0,8,9,-5,0,15,22,2,0,6,28,5),Ve(0,8,10,-5,0,16,24,2,0,6,30,5),Ve(0,8,11,-5,0,17,26,2,0,6,32,5),Ve(0,9,11,-5,0,18,28,2,0,7,34,6),Ve(0,9,12,-6,0,19,29,2,0,7,36,6),Ve(0,10,13,-6,0,20,31,3,0,8,38,7),Ve(0,10,13,-6,0,21,33,3,0,8,40,7),Ve(0,10,14,-6,0,22,35,3,0,8,42,7),Ve(0,11,14,-7,0,23,36,3,0,9,44,8),Ve(0,11,15,-7,0,24,38,3,0,9,46,8)],h1={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)"},g1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Lf(e){return`${Math.round(e)}ms`}function y1(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function m1(e){const t={...h1,...e.easing},n={...g1,...e.duration};return{getAutoHeightDuration:y1,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...p}=i;if(process.env.NODE_ENV!=="production"){const u=b=>typeof b=="string",h=b=>!Number.isNaN(parseFloat(b));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!u(c)&&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(`
50
+ `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Lf(a)} ${l} ${typeof c=="string"?c:Lf(c)}`).join(",")},...e,easing:t,duration:n}}const b1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function v1(e){return rn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Bf(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,l]=o[i];!v1(l)||a.startsWith("unstable_")?delete r[a]:rn(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
51
51
 
52
52
  const theme = ${JSON.stringify(t,null,2)};
53
53
 
54
54
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
55
55
  theme.transitions = createTransitions(theme.transitions || {});
56
56
 
57
- export default theme;`}function dh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Gw=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function Kw(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Ws(t,Gw(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${dh(r)})`:Us(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${dh(r)})`:Vs(t,r)}})}function pc(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:s={},transitions:l={},typography:c={},shape:d,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ir(20));const h=dc({...s,colorSpace:p}),v=Ql(e);let g=ut(v,{mixins:Dw(v.breakpoints,n),palette:h,shadows:Ww.slice(),typography:zw(h,c),transitions:Rw(l),zIndex:{...qw}});if(g=ut(g,u),g=t.reduce((y,f)=>ut(y,f),g),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,x)=>{let b;for(b in m){const w=m[b];if(y.includes(b)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=pe("",b);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
- `))}m[b]={}}}};Object.keys(g.components).forEach(m=>{const x=g.components[m].styleOverrides;x&&m.startsWith("Mui")&&f(x,m)})}return g.unstable_sxConfig={...Bo,...u?.unstable_sxConfig},g.unstable_sx=function(f){return nn({sx:f,theme:this})},g.toRuntimeSource=ch,Kw(g),g}function uc(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Xw=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=uc(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function ph(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function uh(e){return e==="dark"?Xw:[]}function Jw(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...s}=e,l=dc({...t,colorSpace:o});return{palette:l,opacity:{...ph(l.mode),...r},overlays:n||uh(l.mode),...s}}function Qw(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Zw=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],eC=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return Zw(e.cssVarPrefix).forEach(c=>{l[c]=r[c],delete r[c]}),s==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:s?{[s.replace("%s",t)]:l,[`${n}, ${s.replace("%s",t)}`]:r}:{[n]:{...r,...l}}}if(s&&s!=="media")return`${n}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(s)return s.replace("%s",String(t))}return n};function tC(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function R(e,t,r){!e[t]&&r&&(e[t]=r)}function Vo(e){return typeof e!="string"||!e.startsWith("hsl")?e:Kf(e)}function Cr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wo(Vo(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
59
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function rC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const dr=e=>{try{return e()}catch{}},nC=(e="mui")=>ww(e);function fc(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const s=o==="dark"?"dark":"light";if(!n){t[o]=Jw({...r,palette:{mode:s,...r?.palette},colorSpace:e});return}const{palette:l,...c}=pc({...n,palette:{mode:s,...r?.palette},colorSpace:e});return t[o]={...r,palette:l,opacity:{...ph(s),...r?.opacity},overlays:r?.overlays||uh(s)},c}function oC(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:l=!1,shouldSkipGeneratingVar:c=Qw,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(r)[0],v=n||(r.light&&h!=="light"?"light":h),g=nC(s),{[v]:y,light:f,dark:m,...x}=r,b={...x};let w=y;if((v==="dark"&&!("dark"in r)||v==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${v}\` option is either missing or invalid.`:ir(21,v));let S;l&&(S="oklch");const C=fc(S,b,w,u,v);f&&!b.light&&fc(S,b,f,void 0,"light"),m&&!b.dark&&fc(S,b,m,void 0,"dark");let O={defaultColorScheme:v,...C,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:g,colorSchemes:b,font:{...$w(C.typography),...C.font},spacing:rC(u.spacing)};Object.keys(O.colorSchemes).forEach(z=>{const k=O.colorSchemes[z].palette,j=M=>{const _=M.split("-"),N=_[1],W=_[2];return g(M,k[N][W])};k.mode==="light"&&(R(k.common,"background","#fff"),R(k.common,"onBackground","#000")),k.mode==="dark"&&(R(k.common,"background","#000"),R(k.common,"onBackground","#fff"));function A(M,_,N){if(S){let W;return M===sn&&(W=`transparent ${((1-N)*100).toFixed(0)}%`),M===Me&&(W=`#000 ${(N*100).toFixed(0)}%`),M===$e&&(W=`#fff ${(N*100).toFixed(0)}%`),`color-mix(in ${S}, ${_}, ${W})`}return M(_,N)}if(tC(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){R(k.Alert,"errorColor",A(Me,k.error.light,.6)),R(k.Alert,"infoColor",A(Me,k.info.light,.6)),R(k.Alert,"successColor",A(Me,k.success.light,.6)),R(k.Alert,"warningColor",A(Me,k.warning.light,.6)),R(k.Alert,"errorFilledBg",j("palette-error-main")),R(k.Alert,"infoFilledBg",j("palette-info-main")),R(k.Alert,"successFilledBg",j("palette-success-main")),R(k.Alert,"warningFilledBg",j("palette-warning-main")),R(k.Alert,"errorFilledColor",dr(()=>k.getContrastText(k.error.main))),R(k.Alert,"infoFilledColor",dr(()=>k.getContrastText(k.info.main))),R(k.Alert,"successFilledColor",dr(()=>k.getContrastText(k.success.main))),R(k.Alert,"warningFilledColor",dr(()=>k.getContrastText(k.warning.main))),R(k.Alert,"errorStandardBg",A($e,k.error.light,.9)),R(k.Alert,"infoStandardBg",A($e,k.info.light,.9)),R(k.Alert,"successStandardBg",A($e,k.success.light,.9)),R(k.Alert,"warningStandardBg",A($e,k.warning.light,.9)),R(k.Alert,"errorIconColor",j("palette-error-main")),R(k.Alert,"infoIconColor",j("palette-info-main")),R(k.Alert,"successIconColor",j("palette-success-main")),R(k.Alert,"warningIconColor",j("palette-warning-main")),R(k.AppBar,"defaultBg",j("palette-grey-100")),R(k.Avatar,"defaultBg",j("palette-grey-400")),R(k.Button,"inheritContainedBg",j("palette-grey-300")),R(k.Button,"inheritContainedHoverBg",j("palette-grey-A100")),R(k.Chip,"defaultBorder",j("palette-grey-400")),R(k.Chip,"defaultAvatarColor",j("palette-grey-700")),R(k.Chip,"defaultIconColor",j("palette-grey-700")),R(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),R(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),R(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),R(k.LinearProgress,"primaryBg",A($e,k.primary.main,.62)),R(k.LinearProgress,"secondaryBg",A($e,k.secondary.main,.62)),R(k.LinearProgress,"errorBg",A($e,k.error.main,.62)),R(k.LinearProgress,"infoBg",A($e,k.info.main,.62)),R(k.LinearProgress,"successBg",A($e,k.success.main,.62)),R(k.LinearProgress,"warningBg",A($e,k.warning.main,.62)),R(k.Skeleton,"bg",S?A(sn,k.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),R(k.Slider,"primaryTrack",A($e,k.primary.main,.62)),R(k.Slider,"secondaryTrack",A($e,k.secondary.main,.62)),R(k.Slider,"errorTrack",A($e,k.error.main,.62)),R(k.Slider,"infoTrack",A($e,k.info.main,.62)),R(k.Slider,"successTrack",A($e,k.success.main,.62)),R(k.Slider,"warningTrack",A($e,k.warning.main,.62));const M=S?A(Me,k.background.default,.6825):Hs(k.background.default,.8);R(k.SnackbarContent,"bg",M),R(k.SnackbarContent,"color",dr(()=>S?cc.text.primary:k.getContrastText(M))),R(k.SpeedDialAction,"fabHoverBg",Hs(k.background.paper,.15)),R(k.StepConnector,"border",j("palette-grey-400")),R(k.StepContent,"border",j("palette-grey-400")),R(k.Switch,"defaultColor",j("palette-common-white")),R(k.Switch,"defaultDisabledColor",j("palette-grey-100")),R(k.Switch,"primaryDisabledColor",A($e,k.primary.main,.62)),R(k.Switch,"secondaryDisabledColor",A($e,k.secondary.main,.62)),R(k.Switch,"errorDisabledColor",A($e,k.error.main,.62)),R(k.Switch,"infoDisabledColor",A($e,k.info.main,.62)),R(k.Switch,"successDisabledColor",A($e,k.success.main,.62)),R(k.Switch,"warningDisabledColor",A($e,k.warning.main,.62)),R(k.TableCell,"border",A($e,A(sn,k.divider,1),.88)),R(k.Tooltip,"bg",A(sn,k.grey[700],.92))}if(k.mode==="dark"){R(k.Alert,"errorColor",A($e,k.error.light,.6)),R(k.Alert,"infoColor",A($e,k.info.light,.6)),R(k.Alert,"successColor",A($e,k.success.light,.6)),R(k.Alert,"warningColor",A($e,k.warning.light,.6)),R(k.Alert,"errorFilledBg",j("palette-error-dark")),R(k.Alert,"infoFilledBg",j("palette-info-dark")),R(k.Alert,"successFilledBg",j("palette-success-dark")),R(k.Alert,"warningFilledBg",j("palette-warning-dark")),R(k.Alert,"errorFilledColor",dr(()=>k.getContrastText(k.error.dark))),R(k.Alert,"infoFilledColor",dr(()=>k.getContrastText(k.info.dark))),R(k.Alert,"successFilledColor",dr(()=>k.getContrastText(k.success.dark))),R(k.Alert,"warningFilledColor",dr(()=>k.getContrastText(k.warning.dark))),R(k.Alert,"errorStandardBg",A(Me,k.error.light,.9)),R(k.Alert,"infoStandardBg",A(Me,k.info.light,.9)),R(k.Alert,"successStandardBg",A(Me,k.success.light,.9)),R(k.Alert,"warningStandardBg",A(Me,k.warning.light,.9)),R(k.Alert,"errorIconColor",j("palette-error-main")),R(k.Alert,"infoIconColor",j("palette-info-main")),R(k.Alert,"successIconColor",j("palette-success-main")),R(k.Alert,"warningIconColor",j("palette-warning-main")),R(k.AppBar,"defaultBg",j("palette-grey-900")),R(k.AppBar,"darkBg",j("palette-background-paper")),R(k.AppBar,"darkColor",j("palette-text-primary")),R(k.Avatar,"defaultBg",j("palette-grey-600")),R(k.Button,"inheritContainedBg",j("palette-grey-800")),R(k.Button,"inheritContainedHoverBg",j("palette-grey-700")),R(k.Chip,"defaultBorder",j("palette-grey-700")),R(k.Chip,"defaultAvatarColor",j("palette-grey-300")),R(k.Chip,"defaultIconColor",j("palette-grey-300")),R(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),R(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),R(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),R(k.LinearProgress,"primaryBg",A(Me,k.primary.main,.5)),R(k.LinearProgress,"secondaryBg",A(Me,k.secondary.main,.5)),R(k.LinearProgress,"errorBg",A(Me,k.error.main,.5)),R(k.LinearProgress,"infoBg",A(Me,k.info.main,.5)),R(k.LinearProgress,"successBg",A(Me,k.success.main,.5)),R(k.LinearProgress,"warningBg",A(Me,k.warning.main,.5)),R(k.Skeleton,"bg",S?A(sn,k.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),R(k.Slider,"primaryTrack",A(Me,k.primary.main,.5)),R(k.Slider,"secondaryTrack",A(Me,k.secondary.main,.5)),R(k.Slider,"errorTrack",A(Me,k.error.main,.5)),R(k.Slider,"infoTrack",A(Me,k.info.main,.5)),R(k.Slider,"successTrack",A(Me,k.success.main,.5)),R(k.Slider,"warningTrack",A(Me,k.warning.main,.5));const M=S?A($e,k.background.default,.985):Hs(k.background.default,.98);R(k.SnackbarContent,"bg",M),R(k.SnackbarContent,"color",dr(()=>S?rh.text.primary:k.getContrastText(M))),R(k.SpeedDialAction,"fabHoverBg",Hs(k.background.paper,.15)),R(k.StepConnector,"border",j("palette-grey-600")),R(k.StepContent,"border",j("palette-grey-600")),R(k.Switch,"defaultColor",j("palette-grey-300")),R(k.Switch,"defaultDisabledColor",j("palette-grey-600")),R(k.Switch,"primaryDisabledColor",A(Me,k.primary.main,.55)),R(k.Switch,"secondaryDisabledColor",A(Me,k.secondary.main,.55)),R(k.Switch,"errorDisabledColor",A(Me,k.error.main,.55)),R(k.Switch,"infoDisabledColor",A(Me,k.info.main,.55)),R(k.Switch,"successDisabledColor",A(Me,k.success.main,.55)),R(k.Switch,"warningDisabledColor",A(Me,k.warning.main,.55)),R(k.TableCell,"border",A(Me,A(sn,k.divider,1),.68)),R(k.Tooltip,"bg",A(sn,k.grey[700],.92))}Cr(k.background,"default"),Cr(k.background,"paper"),Cr(k.common,"background"),Cr(k.common,"onBackground"),Cr(k,"divider"),Object.keys(k).forEach(M=>{const _=k[M];M!=="tonalOffset"&&_&&typeof _=="object"&&(_.main&&R(k[M],"mainChannel",Wo(Vo(_.main))),_.light&&R(k[M],"lightChannel",Wo(Vo(_.light))),_.dark&&R(k[M],"darkChannel",Wo(Vo(_.dark))),_.contrastText&&R(k[M],"contrastTextChannel",Wo(Vo(_.contrastText))),M==="text"&&(Cr(k[M],"primary"),Cr(k[M],"secondary")),M==="action"&&(_.active&&Cr(k[M],"active"),_.selected&&Cr(k[M],"selected")))})}),O=t.reduce((z,k)=>ut(z,k),O);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:eC(O),enableContrastVars:l},{vars:F,generateThemeVars:D,generateStyleSheets:L}=Tw(O,I);return O.vars=F,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([z,k])=>{O[z]=k}),O.generateThemeVars=D,O.generateStyleSheets=L,O.generateSpacing=function(){return Df(u.spacing,Xl(this))},O.getColorSchemeSelector=Ow(d),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=c,O.unstable_sxConfig={...Bo,...u?.unstable_sxConfig},O.unstable_sx=function(k){return nn({sx:k,theme:this})},O.toRuntimeSource=ch,O}function fh(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:dc({...r===!0?{}:r.palette,mode:t})})}function hc(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r?.mode,...l}=e,c=s||"light",d=o?.[c],p={...o,...r?{[c]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return pc(e,...t);let u=r;"palette"in e||p[c]&&(p[c]!==!0?u=p[c].palette:c==="dark"&&(u={mode:"dark"}));const h=pc({...e,palette:u},...t);return h.defaultColorScheme=c,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},fh(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},fh(h,"light",p.light)),h}return!r&&!("light"in p)&&c==="light"&&(p.light=!0),oC({...l,colorSchemes:p,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const gc=hc();function Ge(){const e=Zl(gc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[Po]||e}function hh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ft=e=>hh(e)&&e!=="classes",G=ow({themeId:Po,defaultTheme:gc,rootShouldForwardProp:ft});function yc(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function gh(e){return a.jsx(zf,{...e,defaultTheme:gc,themeId:Po})}process.env.NODE_ENV!=="production"&&(gh.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function iC(e){return function(r){return a.jsx(gh,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function sC(){return jf}const he=Sw;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function fe(e){return vw(e)}function aC(e){return pe("MuiSvgIcon",e)}de("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lC=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${te(t)}`,`fontSize${te(r)}`]};return ue(o,aC,n)},cC=G("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${te(r.color)}`],t[`fontSize${te(r.fontSize)}`]]}})(he(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Uo=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:v="0 0 24 24",...g}=n,y=T.isValidElement(o)&&o.type==="svg",f={...n,color:l,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:y},m={};u||(m.viewBox=v);const x=lC(f);return a.jsxs(cC,{as:c,className:se(x.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...m,...g,...y&&o.props,ownerState:f,children:[y?o.props.children:o,h?a.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Uo.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),Uo.muiName="SvgIcon";function ht(e,t){function r(n,o){return a.jsx(Uo,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Uo.muiName,T.memo(T.forwardRef(r))}function yh(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function gt(e){return e&&e.ownerDocument||document}function Er(e){return gt(e).defaultView||window}function mh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ho(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:s}=T.useRef(t!==void 0),[l,c]=T.useState(r),d=s?t:l;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${n} to be ${s?"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
- `))},[o,n,t]);const{current:u}=T.useRef(r);T.useEffect(()=>{!s&&JSON.stringify(r)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
61
- `))},[JSON.stringify(r)])}const p=T.useCallback(u=>{s||c(u)},[]);return[d,p]}function Bt(e){const t=T.useRef(e);return Xt(()=>{t.current=e}),T.useRef((...r)=>(0,t.current)(...r)).current}function Je(...e){const t=T.useRef(void 0),r=T.useCallback(n=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,c=l(n);return typeof c=="function"?c:()=>{l(null)}}return s.current=n,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return T.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function dC(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function bh(e,t){if(!e)return t;function r(l,c){const d={};return Object.keys(c).forEach(p=>{dC(p,c[p])&&typeof l[p]=="function"&&(d[p]=(...u)=>{l[p](...u),c[p](...u)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,p=se(l?.className,c?.className,d?.className),u=r(d,c);return{...c,...d,...u,...!!p&&{className:p},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const n=t,o=r(e,n),s=se(n?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var Rs={exports:{}},ze={};var vh;function pC(){if(vh)return ze;vh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case r:case o:case n:case d:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return ze.ContextConsumer=s,ze.ContextProvider=l,ze.Element=e,ze.ForwardRef=c,ze.Fragment=r,ze.Lazy=h,ze.Memo=u,ze.Portal=t,ze.Profiler=o,ze.StrictMode=n,ze.Suspense=d,ze.SuspenseList=p,ze.isContextConsumer=function(f){return y(f)===s},ze.isContextProvider=function(f){return y(f)===l},ze.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ze.isForwardRef=function(f){return y(f)===c},ze.isFragment=function(f){return y(f)===r},ze.isLazy=function(f){return y(f)===h},ze.isMemo=function(f){return y(f)===u},ze.isPortal=function(f){return y(f)===t},ze.isProfiler=function(f){return y(f)===o},ze.isStrictMode=function(f){return y(f)===n},ze.isSuspense=function(f){return y(f)===d},ze.isSuspenseList=function(f){return y(f)===p},ze.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},ze.typeOf=y,ze}var je={};var xh;function uC(){return xh||(xh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case n:case s:case o:case p:case u:case g:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case v:case h:return f;case l:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");je.ContextConsumer=l,je.ContextProvider=c,je.Element=t,je.ForwardRef=d,je.Fragment=n,je.Lazy=v,je.Memo=h,je.Portal=r,je.Profiler=s,je.StrictMode=o,je.Suspense=p,je.SuspenseList=u,je.isContextConsumer=function(f){return e(f)===l},je.isContextProvider=function(f){return e(f)===c},je.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},je.isForwardRef=function(f){return e(f)===d},je.isFragment=function(f){return e(f)===n},je.isLazy=function(f){return e(f)===v},je.isMemo=function(f){return e(f)===h},je.isPortal=function(f){return e(f)===r},je.isProfiler=function(f){return e(f)===s},je.isStrictMode=function(f){return e(f)===o},je.isSuspense=function(f){return e(f)===p},je.isSuspenseList=function(f){return e(f)===u},je.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===d||f.$$typeof===y||f.getModuleId!==void 0)},je.typeOf=e})()),je}var Sh;function fC(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Rs.exports=pC():Rs.exports=uC()),Rs.exports}var mc=fC();function Tr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function wh(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function bc(e,t){return bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},bc(e,t)}function Ch(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bc(e,t)}const Eh={disabled:!1};var hC=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const qs=$.createContext(null);var gC=function(t){return t.scrollTop},Ro="unmounted",ln="exited",cn="entering",Fn="entered",vc="exiting",pr=(function(e){Ch(t,e);function t(n,o){var s;s=e.call(this,n,o)||this;var l=o,c=l&&!l.isMounting?n.enter:n.appear,d;return s.appearStatus=null,n.in?c?(d=ln,s.appearStatus=cn):d=Fn:n.unmountOnExit||n.mountOnEnter?d=Ro:d=ln,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var l=o.in;return l&&s.status===Ro?{status:ln}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==cn&&l!==Fn&&(s=cn):(l===cn||l===Fn)&&(s=vc)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,l,c;return s=l=c=o,o!=null&&typeof o!="number"&&(s=o.exit,l=o.enter,c=o.appear!==void 0?o.appear:l),{exit:s,enter:l,appear:c}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===cn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this);l&&gC(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ln&&this.setState({status:Ro})},r.performEnter=function(o){var s=this,l=this.props.enter,c=this.context?this.context.isMounting:o,d=this.props.nodeRef?[c]:[Kn.findDOMNode(this),c],p=d[0],u=d[1],h=this.getTimeouts(),v=c?h.appear:h.enter;if(!o&&!l||Eh.disabled){this.safeSetState({status:Fn},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:cn},function(){s.props.onEntering(p,u),s.onTransitionEnd(v,function(){s.safeSetState({status:Fn},function(){s.props.onEntered(p,u)})})})},r.performExit=function(){var o=this,s=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:Kn.findDOMNode(this);if(!s||Eh.disabled){this.safeSetState({status:ln},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:vc},function(){o.props.onExiting(c),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:ln},function(){o.props.onExited(c)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,s.nextCallback=null,o(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:Kn.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],p=d[0],u=d[1];this.props.addEndListener(p,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ro)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=wh(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return $.createElement(qs.Provider,{value:null},typeof l=="function"?l(o,c):$.cloneElement($.Children.only(l),c))},t})($.Component);pr.contextType=qs,pr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,r,n,o,s){var l=e[t];return i.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var r=hC;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return r.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function zn(){}pr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zn,onEntering:zn,onEntered:zn,onExit:zn,onExiting:zn,onExited:zn},pr.UNMOUNTED=Ro,pr.EXITED=ln,pr.ENTERING=cn,pr.ENTERED=Fn,pr.EXITING=vc;function yC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xc(e,t){var r=function(s){return t&&$.isValidElement(s)?t(s):s},n=Object.create(null);return e&&$.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function mC(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var s in e)s in t?o.length&&(n[s]=o,o=[]):o.push(s);var l,c={};for(var d in t){if(n[d])for(l=0;l<n[d].length;l++){var p=n[d][l];c[n[d][l]]=r(p)}c[d]=r(d)}for(l=0;l<o.length;l++)c[o[l]]=r(o[l]);return c}function dn(e,t,r){return r[t]!=null?r[t]:e.props[t]}function bC(e,t){return xc(e.children,function(r){return $.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:dn(r,"appear",e),enter:dn(r,"enter",e),exit:dn(r,"exit",e)})})}function vC(e,t,r){var n=xc(e.children),o=mC(t,n);return Object.keys(o).forEach(function(s){var l=o[s];if($.isValidElement(l)){var c=s in t,d=s in n,p=t[s],u=$.isValidElement(p)&&!p.props.in;d&&(!c||u)?o[s]=$.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:dn(l,"exit",e),enter:dn(l,"enter",e)}):!d&&c&&!u?o[s]=$.cloneElement(l,{in:!1}):d&&c&&$.isValidElement(p)&&(o[s]=$.cloneElement(l,{onExited:r.bind(null,l),in:p.props.in,exit:dn(l,"exit",e),enter:dn(l,"enter",e)}))}}),o}var xC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SC={component:"div",childFactory:function(t){return t}},Sc=(function(e){Ch(t,e);function t(n,o){var s;s=e.call(this,n,o)||this;var l=s.handleExited.bind(yC(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var l=s.children,c=s.handleExited,d=s.firstRender;return{children:d?bC(o,c):vC(o,l,c),firstRender:!1}},r.handleExited=function(o,s){var l=xc(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(c){var d=gs({},c.children);return delete d[o.key],{children:d}}))},r.render=function(){var o=this.props,s=o.component,l=o.childFactory,c=wh(o,["component","childFactory"]),d=this.state.contextValue,p=xC(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,s===null?$.createElement(qs.Provider,{value:d},p):$.createElement(qs.Provider,{value:d},$.createElement(s,c,p))},t})($.Component);Sc.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},Sc.defaultProps=SC;const Th={};function Oh(e,t){const r=T.useRef(Th);return r.current===Th&&(r.current=e(t)),r}const wC=[];function CC(e){T.useEffect(e,wC)}class Ys{static create(){return new Ys}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function pn(){const e=Oh(Ys.create).current;return CC(e.disposeEffect),e}function EC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TC(e,t,r,n,o){const s=e[t],l=o||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!EC(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const wc=Tr(i.elementType,TC),kh=e=>e.scrollTop;function Gs(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function Ks(e){return typeof e=="string"}function Ph(e,t,r){return e===void 0||Ks(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Ih(e,t,r){return typeof e=="function"?e(t,r):e}function Xs(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Nh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function _h(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:s}=e;if(!t){const g=se(r?.className,s,o?.className,n?.className),y={...r?.style,...o?.style,...n?.style},f={...r,...o,...n};return g.length>0&&(f.className=g),Object.keys(y).length>0&&(f.style=y),{props:f,internalRef:void 0}}const l=Xs({...o,...n}),c=Nh(n),d=Nh(o),p=t(l),u=se(p?.className,r?.className,s,o?.className,n?.className),h={...p?.style,...r?.style,...o?.style,...n?.style},v={...p,...r,...d,...c};return u.length>0&&(v.className=u),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:p.ref}}function ge(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:s,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...v}=s,g=u[e]||n,y=Ih(h[e],o),{props:{component:f,...m},internalRef:x}=_h({className:r,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:y}),b=Je(x,y?.ref,t.ref),w=e==="root"?f||p:f,S=Ph(g,{...e==="root"&&!p&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...m,...w&&!c&&{as:w},...w&&c&&{component:w},ref:b},o);return[g,S]}function OC(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Ah(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const s=OC(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${s}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function Mh(e,t,r,n){return e[t]===void 0?null:Ah(e,t,r,n)}function Cc(){return null}Mh.isRequired=Ah,Cc.isRequired=Cc;const $h=process.env.NODE_ENV==="production"?Cc:Mh;function kC(e){return pe("MuiPaper",e)}de("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PC=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,s={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ue(s,kC,o)},IC=G("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(he(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Jt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiPaper"}),o=Ge(),{className:s,component:l="div",elevation:c=1,square:d=!1,variant:p="elevation",...u}=n,h={...n,component:l,elevation:c,square:d,variant:p},v=PC(h);return process.env.NODE_ENV!=="production"&&o.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
62
- `)),a.jsx(IC,{as:l,ownerState:h,className:se(v.root,s),ref:r,...u,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ws("#fff",uc(c))}, ${Ws("#fff",uc(c))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Jt.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:Tr($h,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});const vt=i.oneOfType([i.func,i.object]);function Js(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
63
- `))}return!1}class Qs{static create(){return new Qs}static use(){const t=Oh(Qs.create).current,[r,n]=T.useState(!1);return t.shouldMount=r,t.setShouldMount=n,T.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=_C(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function NC(){return Qs.use()}function _C(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Dh(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:s,rippleSize:l,in:c,onExited:d,timeout:p}=e,[u,h]=T.useState(!1),v=se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:l,height:l,top:-(l/2)+s,left:-(l/2)+o},y=se(r.child,u&&r.childLeaving,n&&r.childPulsate);return!c&&!u&&h(!0),T.useEffect(()=>{if(!c&&d!=null){const f=setTimeout(d,p);return()=>{clearTimeout(f)}}},[d,c,p]),a.jsx("span",{className:v,style:g,children:a.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(Dh.propTypes={classes:i.object.isRequired,className:i.string,in:i.bool,onExited:i.func,pulsate:i.bool,rippleSize:i.number,rippleX:i.number,rippleY:i.number,timeout:i.number.isRequired});const Lt=de("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ec=550,AC=80,MC=Do`
57
+ export default theme;`}function zf(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const x1=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function S1(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ei(t,x1(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${zf(n)})`:Oi(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${zf(n)})`:Ti(t,n)}})}function Yl(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Zt(20));const h=Hl({...i,colorSpace:p}),b=$l(e);let y=ut(b,{mixins:a1(b.breakpoints,r),palette:h,shadows:f1.slice(),typography:c1(h,l),transitions:m1(a),zIndex:{...b1}});if(y=ut(y,u),y=t.reduce((g,f)=>ut(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,v)=>{let w;for(w in m){const S=m[w];if(g.includes(w)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const x=de("",w);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
+ `))}m[w]={}}}};Object.keys(y.components).forEach(m=>{const v=y.components[m].styleOverrides;v&&m.startsWith("Mui")&&f(v,m)})}return y.unstable_sxConfig={...ko,...u?.unstable_sxConfig},y.unstable_sx=function(f){return Gn({sx:f,theme:this})},y.toRuntimeSource=Bf,S1(y),y}function Kl(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const w1=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Kl(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Wf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Vf(e){return e==="dark"?w1:[]}function C1(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Hl({...t,colorSpace:o});return{palette:a,opacity:{...Wf(a.mode),...n},overlays:r||Vf(a.mode),...i}}function E1(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const T1=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],O1=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return T1(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function P1(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function U(e,t,n){!e[t]&&n&&(e[t]=n)}function _o(e){return typeof e!="string"||!e.startsWith("hsl")?e:Of(e)}function wn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Io(_o(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
59
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function k1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const on=e=>{try{return e()}catch{}},N1=(e="mui")=>Kw(e);function Gl(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=C1({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:a,...l}=Yl({...r,palette:{mode:i,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...Wf(i),...n?.opacity},overlays:n?.overlays||Vf(i)},l}function I1(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=E1,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(n)[0],b=r||(n.light&&h!=="light"?"light":h),y=N1(i),{[b]:g,light:f,dark:m,...v}=n,w={...v};let S=g;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:Zt(21,b));let x;a&&(x="oklch");const E=Gl(x,w,S,u,b);f&&!w.light&&Gl(x,w,f,void 0,"light"),m&&!w.dark&&Gl(x,w,m,void 0,"dark");let O={defaultColorScheme:b,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:p,getCssVar:y,colorSchemes:w,font:{...i1(E.typography),...E.font},spacing:k1(u.spacing)};Object.keys(O.colorSchemes).forEach(_=>{const T=O.colorSchemes[_].palette,$=j=>{const P=j.split("-"),k=P[1],B=P[2];return y(j,T[k][B])};T.mode==="light"&&(U(T.common,"background","#fff"),U(T.common,"onBackground","#000")),T.mode==="dark"&&(U(T.common,"background","#000"),U(T.common,"onBackground","#fff"));function I(j,P,k){if(x){let B;return j===Xn&&(B=`transparent ${((1-k)*100).toFixed(0)}%`),j===_e&&(B=`#000 ${(k*100).toFixed(0)}%`),j===Ae&&(B=`#fff ${(k*100).toFixed(0)}%`),`color-mix(in ${x}, ${P}, ${B})`}return j(P,k)}if(P1(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){U(T.Alert,"errorColor",I(_e,T.error.light,.6)),U(T.Alert,"infoColor",I(_e,T.info.light,.6)),U(T.Alert,"successColor",I(_e,T.success.light,.6)),U(T.Alert,"warningColor",I(_e,T.warning.light,.6)),U(T.Alert,"errorFilledBg",$("palette-error-main")),U(T.Alert,"infoFilledBg",$("palette-info-main")),U(T.Alert,"successFilledBg",$("palette-success-main")),U(T.Alert,"warningFilledBg",$("palette-warning-main")),U(T.Alert,"errorFilledColor",on(()=>T.getContrastText(T.error.main))),U(T.Alert,"infoFilledColor",on(()=>T.getContrastText(T.info.main))),U(T.Alert,"successFilledColor",on(()=>T.getContrastText(T.success.main))),U(T.Alert,"warningFilledColor",on(()=>T.getContrastText(T.warning.main))),U(T.Alert,"errorStandardBg",I(Ae,T.error.light,.9)),U(T.Alert,"infoStandardBg",I(Ae,T.info.light,.9)),U(T.Alert,"successStandardBg",I(Ae,T.success.light,.9)),U(T.Alert,"warningStandardBg",I(Ae,T.warning.light,.9)),U(T.Alert,"errorIconColor",$("palette-error-main")),U(T.Alert,"infoIconColor",$("palette-info-main")),U(T.Alert,"successIconColor",$("palette-success-main")),U(T.Alert,"warningIconColor",$("palette-warning-main")),U(T.AppBar,"defaultBg",$("palette-grey-100")),U(T.Avatar,"defaultBg",$("palette-grey-400")),U(T.Button,"inheritContainedBg",$("palette-grey-300")),U(T.Button,"inheritContainedHoverBg",$("palette-grey-A100")),U(T.Chip,"defaultBorder",$("palette-grey-400")),U(T.Chip,"defaultAvatarColor",$("palette-grey-700")),U(T.Chip,"defaultIconColor",$("palette-grey-700")),U(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(T.LinearProgress,"primaryBg",I(Ae,T.primary.main,.62)),U(T.LinearProgress,"secondaryBg",I(Ae,T.secondary.main,.62)),U(T.LinearProgress,"errorBg",I(Ae,T.error.main,.62)),U(T.LinearProgress,"infoBg",I(Ae,T.info.main,.62)),U(T.LinearProgress,"successBg",I(Ae,T.success.main,.62)),U(T.LinearProgress,"warningBg",I(Ae,T.warning.main,.62)),U(T.Skeleton,"bg",x?I(Xn,T.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),U(T.Slider,"primaryTrack",I(Ae,T.primary.main,.62)),U(T.Slider,"secondaryTrack",I(Ae,T.secondary.main,.62)),U(T.Slider,"errorTrack",I(Ae,T.error.main,.62)),U(T.Slider,"infoTrack",I(Ae,T.info.main,.62)),U(T.Slider,"successTrack",I(Ae,T.success.main,.62)),U(T.Slider,"warningTrack",I(Ae,T.warning.main,.62));const j=x?I(_e,T.background.default,.6825):Pi(T.background.default,.8);U(T.SnackbarContent,"bg",j),U(T.SnackbarContent,"color",on(()=>x?ql.text.primary:T.getContrastText(j))),U(T.SpeedDialAction,"fabHoverBg",Pi(T.background.paper,.15)),U(T.StepConnector,"border",$("palette-grey-400")),U(T.StepContent,"border",$("palette-grey-400")),U(T.Switch,"defaultColor",$("palette-common-white")),U(T.Switch,"defaultDisabledColor",$("palette-grey-100")),U(T.Switch,"primaryDisabledColor",I(Ae,T.primary.main,.62)),U(T.Switch,"secondaryDisabledColor",I(Ae,T.secondary.main,.62)),U(T.Switch,"errorDisabledColor",I(Ae,T.error.main,.62)),U(T.Switch,"infoDisabledColor",I(Ae,T.info.main,.62)),U(T.Switch,"successDisabledColor",I(Ae,T.success.main,.62)),U(T.Switch,"warningDisabledColor",I(Ae,T.warning.main,.62)),U(T.TableCell,"border",I(Ae,I(Xn,T.divider,1),.88)),U(T.Tooltip,"bg",I(Xn,T.grey[700],.92))}if(T.mode==="dark"){U(T.Alert,"errorColor",I(Ae,T.error.light,.6)),U(T.Alert,"infoColor",I(Ae,T.info.light,.6)),U(T.Alert,"successColor",I(Ae,T.success.light,.6)),U(T.Alert,"warningColor",I(Ae,T.warning.light,.6)),U(T.Alert,"errorFilledBg",$("palette-error-dark")),U(T.Alert,"infoFilledBg",$("palette-info-dark")),U(T.Alert,"successFilledBg",$("palette-success-dark")),U(T.Alert,"warningFilledBg",$("palette-warning-dark")),U(T.Alert,"errorFilledColor",on(()=>T.getContrastText(T.error.dark))),U(T.Alert,"infoFilledColor",on(()=>T.getContrastText(T.info.dark))),U(T.Alert,"successFilledColor",on(()=>T.getContrastText(T.success.dark))),U(T.Alert,"warningFilledColor",on(()=>T.getContrastText(T.warning.dark))),U(T.Alert,"errorStandardBg",I(_e,T.error.light,.9)),U(T.Alert,"infoStandardBg",I(_e,T.info.light,.9)),U(T.Alert,"successStandardBg",I(_e,T.success.light,.9)),U(T.Alert,"warningStandardBg",I(_e,T.warning.light,.9)),U(T.Alert,"errorIconColor",$("palette-error-main")),U(T.Alert,"infoIconColor",$("palette-info-main")),U(T.Alert,"successIconColor",$("palette-success-main")),U(T.Alert,"warningIconColor",$("palette-warning-main")),U(T.AppBar,"defaultBg",$("palette-grey-900")),U(T.AppBar,"darkBg",$("palette-background-paper")),U(T.AppBar,"darkColor",$("palette-text-primary")),U(T.Avatar,"defaultBg",$("palette-grey-600")),U(T.Button,"inheritContainedBg",$("palette-grey-800")),U(T.Button,"inheritContainedHoverBg",$("palette-grey-700")),U(T.Chip,"defaultBorder",$("palette-grey-700")),U(T.Chip,"defaultAvatarColor",$("palette-grey-300")),U(T.Chip,"defaultIconColor",$("palette-grey-300")),U(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(T.LinearProgress,"primaryBg",I(_e,T.primary.main,.5)),U(T.LinearProgress,"secondaryBg",I(_e,T.secondary.main,.5)),U(T.LinearProgress,"errorBg",I(_e,T.error.main,.5)),U(T.LinearProgress,"infoBg",I(_e,T.info.main,.5)),U(T.LinearProgress,"successBg",I(_e,T.success.main,.5)),U(T.LinearProgress,"warningBg",I(_e,T.warning.main,.5)),U(T.Skeleton,"bg",x?I(Xn,T.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),U(T.Slider,"primaryTrack",I(_e,T.primary.main,.5)),U(T.Slider,"secondaryTrack",I(_e,T.secondary.main,.5)),U(T.Slider,"errorTrack",I(_e,T.error.main,.5)),U(T.Slider,"infoTrack",I(_e,T.info.main,.5)),U(T.Slider,"successTrack",I(_e,T.success.main,.5)),U(T.Slider,"warningTrack",I(_e,T.warning.main,.5));const j=x?I(Ae,T.background.default,.985):Pi(T.background.default,.98);U(T.SnackbarContent,"bg",j),U(T.SnackbarContent,"color",on(()=>x?Mf.text.primary:T.getContrastText(j))),U(T.SpeedDialAction,"fabHoverBg",Pi(T.background.paper,.15)),U(T.StepConnector,"border",$("palette-grey-600")),U(T.StepContent,"border",$("palette-grey-600")),U(T.Switch,"defaultColor",$("palette-grey-300")),U(T.Switch,"defaultDisabledColor",$("palette-grey-600")),U(T.Switch,"primaryDisabledColor",I(_e,T.primary.main,.55)),U(T.Switch,"secondaryDisabledColor",I(_e,T.secondary.main,.55)),U(T.Switch,"errorDisabledColor",I(_e,T.error.main,.55)),U(T.Switch,"infoDisabledColor",I(_e,T.info.main,.55)),U(T.Switch,"successDisabledColor",I(_e,T.success.main,.55)),U(T.Switch,"warningDisabledColor",I(_e,T.warning.main,.55)),U(T.TableCell,"border",I(_e,I(Xn,T.divider,1),.68)),U(T.Tooltip,"bg",I(Xn,T.grey[700],.92))}wn(T.background,"default"),wn(T.background,"paper"),wn(T.common,"background"),wn(T.common,"onBackground"),wn(T,"divider"),Object.keys(T).forEach(j=>{const P=T[j];j!=="tonalOffset"&&P&&typeof P=="object"&&(P.main&&U(T[j],"mainChannel",Io(_o(P.main))),P.light&&U(T[j],"lightChannel",Io(_o(P.light))),P.dark&&U(T[j],"darkChannel",Io(_o(P.dark))),P.contrastText&&U(T[j],"contrastTextChannel",Io(_o(P.contrastText))),j==="text"&&(wn(T[j],"primary"),wn(T[j],"secondary")),j==="action"&&(P.active&&wn(T[j],"active"),P.selected&&wn(T[j],"selected")))})}),O=t.reduce((_,T)=>ut(_,T),O);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:O1(O),enableContrastVars:a},{vars:D,generateThemeVars:A,generateStyleSheets:L}=Xw(O,N);return O.vars=D,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([_,T])=>{O[_]=T}),O.generateThemeVars=A,O.generateStyleSheets=L,O.generateSpacing=function(){return pf(u.spacing,Al(this))},O.getColorSchemeSelector=Qw(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=l,O.unstable_sxConfig={...ko,...u?.unstable_sxConfig},O.unstable_sx=function(T){return Gn({sx:T,theme:this})},O.toRuntimeSource=Bf,O}function Uf(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Hl({...n===!0?{}:n.palette,mode:t})})}function Jl(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=o?.[l],p={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Yl(e,...t);let u=n;"palette"in e||p[l]&&(p[l]!==!0?u=p[l].palette:l==="dark"&&(u={mode:"dark"}));const h=Yl({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},Uf(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},Uf(h,"light",p.light)),h}return!n&&!("light"in p)&&l==="light"&&(p.light=!0),I1({...a,colorSchemes:p,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Xl=Jl();function Nt(){const e=Dl(Xl);return process.env.NODE_ENV!=="production"&&C.useDebugValue(e),e[mo]||e}function qf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dt=e=>qf(e)&&e!=="classes",Y=Iw({themeId:mo,defaultTheme:Xl,rootShouldForwardProp:dt});function Ql(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Hf(e){return d.jsx(hf,{...e,defaultTheme:Xl,themeId:mo})}process.env.NODE_ENV!=="production"&&(Hf.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function _1(e){return function(n){return d.jsx(Hf,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function A1(){return gf}const ge=Yw;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function fe(e){return qw(e)}function M1(e){return de("MuiSvgIcon",e)}ue("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $1=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ne(t)}`,`fontSize${ne(n)}`]};return pe(o,M1,r)},D1=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ne(n.color)}`],t[`fontSize${ne(n.fontSize)}`]]}})(ge(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ao=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:b="0 0 24 24",...y}=r,g=C.isValidElement(o)&&o.type==="svg",f={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:b,hasSvgAsChild:g},m={};u||(m.viewBox=b);const v=$1(f);return d.jsxs(D1,{as:l,className:ie(v.root,i),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...y,...g&&o.props,ownerState:f,children:[g?o.props.children:o,h?d.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Ao.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string}),Ao.muiName="SvgIcon";function Ue(e,t){function n(r,o){return d.jsx(Ao,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ao.muiName,C.memo(C.forwardRef(n))}function Yf(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 pt(e){return e&&e.ownerDocument||document}function Cn(e){return pt(e).defaultView||window}function Kf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Mo(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=C.useRef(t!==void 0),[a,l]=C.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} 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
+ `))},[o,r,t]);const{current:u}=C.useRef(n);C.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
+ `))},[JSON.stringify(n)])}const p=C.useCallback(u=>{i||l(u)},[]);return[c,p]}function Ft(e){const t=C.useRef(e);return qt(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function Ze(...e){const t=C.useRef(void 0),n=C.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return C.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function F1(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Gf(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(p=>{F1(p,l[p])&&typeof a[p]=="function"&&(c[p]=(...u)=>{a[p](...u),l[p](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,p=ie(a?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!p&&{className:p},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),i=ie(r?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var ki={exports:{}},Fe={};var Jf;function j1(){if(Jf)return Fe;Jf=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case o:case r:case c:case p:case b:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case i:return f;default:return m}}case t:return m}}}return Fe.ContextConsumer=i,Fe.ContextProvider=a,Fe.Element=e,Fe.ForwardRef=l,Fe.Fragment=n,Fe.Lazy=h,Fe.Memo=u,Fe.Portal=t,Fe.Profiler=o,Fe.StrictMode=r,Fe.Suspense=c,Fe.SuspenseList=p,Fe.isContextConsumer=function(f){return g(f)===i},Fe.isContextProvider=function(f){return g(f)===a},Fe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Fe.isForwardRef=function(f){return g(f)===l},Fe.isFragment=function(f){return g(f)===n},Fe.isLazy=function(f){return g(f)===h},Fe.isMemo=function(f){return g(f)===u},Fe.isPortal=function(f){return g(f)===t},Fe.isProfiler=function(f){return g(f)===o},Fe.isStrictMode=function(f){return g(f)===r},Fe.isSuspense=function(f){return g(f)===c},Fe.isSuspenseList=function(f){return g(f)===p},Fe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},Fe.typeOf=g,Fe}var je={};var Xf;function R1(){return Xf||(Xf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case i:case o:case p:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case b:case h:return f;case a:return f;default:return m}}case n:return m}}}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"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");je.ContextConsumer=a,je.ContextProvider=l,je.Element=t,je.ForwardRef=c,je.Fragment=r,je.Lazy=b,je.Memo=h,je.Portal=n,je.Profiler=i,je.StrictMode=o,je.Suspense=p,je.SuspenseList=u,je.isContextConsumer=function(f){return e(f)===a},je.isContextProvider=function(f){return e(f)===l},je.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},je.isForwardRef=function(f){return e(f)===c},je.isFragment=function(f){return e(f)===r},je.isLazy=function(f){return e(f)===b},je.isMemo=function(f){return e(f)===h},je.isPortal=function(f){return e(f)===n},je.isProfiler=function(f){return e(f)===i},je.isStrictMode=function(f){return e(f)===o},je.isSuspense=function(f){return e(f)===p},je.isSuspenseList=function(f){return e(f)===u},je.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===b||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},je.typeOf=e})()),je}var Qf;function L1(){return Qf||(Qf=1,process.env.NODE_ENV==="production"?ki.exports=j1():ki.exports=R1()),ki.exports}var Zl=L1();function En(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Zf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ec(e,t){return ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ec(e,t)}function eh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ec(e,t)}const th={disabled:!1};var B1=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const Ni=R.createContext(null);var z1=function(t){return t.scrollTop},$o="unmounted",Zn="exited",er="entering",kr="entered",tc="exiting",sn=(function(e){eh(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=Zn,i.appearStatus=er):c=kr:r.unmountOnExit||r.mountOnEnter?c=$o:c=Zn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$o?{status:Zn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==er&&a!==kr&&(i=er):(a===er||a===kr)&&(i=tc)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===er){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this);a&&z1(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Zn&&this.setState({status:$o})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Lr.findDOMNode(this),l],p=c[0],u=c[1],h=this.getTimeouts(),b=l?h.appear:h.enter;if(!o&&!a||th.disabled){this.safeSetState({status:kr},function(){i.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:er},function(){i.props.onEntering(p,u),i.onTransitionEnd(b,function(){i.safeSetState({status:kr},function(){i.props.onEntered(p,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Lr.findDOMNode(this);if(!i||th.disabled){this.safeSetState({status:Zn},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:tc},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Zn},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Lr.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=c[0],u=c[1];this.props.addEndListener(p,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$o)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Zf(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return R.createElement(Ni.Provider,{value:null},typeof a=="function"?a(o,l):R.cloneElement(R.Children.only(a),l))},t})(R.Component);sn.contextType=Ni,sn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=B1;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Nr(){}sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nr,onEntering:Nr,onEntered:Nr,onExit:Nr,onExiting:Nr,onExited:Nr},sn.UNMOUNTED=$o,sn.EXITED=Zn,sn.ENTERING=er,sn.ENTERED=kr,sn.EXITING=tc;function W1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nc(e,t){var n=function(i){return t&&R.isValidElement(i)?t(i):i},r=Object.create(null);return e&&R.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function V1(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var p=r[c][a];l[r[c][a]]=n(p)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function tr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function U1(e,t){return nc(e.children,function(n){return R.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:tr(n,"appear",e),enter:tr(n,"enter",e),exit:tr(n,"exit",e)})})}function q1(e,t,n){var r=nc(e.children),o=V1(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(R.isValidElement(a)){var l=i in t,c=i in r,p=t[i],u=R.isValidElement(p)&&!p.props.in;c&&(!l||u)?o[i]=R.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:tr(a,"exit",e),enter:tr(a,"enter",e)}):!c&&l&&!u?o[i]=R.cloneElement(a,{in:!1}):c&&l&&R.isValidElement(p)&&(o[i]=R.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:tr(a,"exit",e),enter:tr(a,"enter",e)}))}}),o}var H1=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Y1={component:"div",childFactory:function(t){return t}},rc=(function(e){eh(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(W1(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?U1(o,l):q1(o,a,l),firstRender:!1}},n.handleExited=function(o,i){var a=nc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var c=Qs({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=Zf(o,["component","childFactory"]),c=this.state.contextValue,p=H1(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?R.createElement(Ni.Provider,{value:c},p):R.createElement(Ni.Provider,{value:c},R.createElement(i,l,p))},t})(R.Component);rc.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{},rc.defaultProps=Y1;const nh={};function rh(e,t){const n=C.useRef(nh);return n.current===nh&&(n.current=e(t)),n}const K1=[];function G1(e){C.useEffect(e,K1)}class Ii{static create(){return new Ii}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function nr(){const e=rh(Ii.create).current;return G1(e.disposeEffect),e}function J1(e){const{prototype:t={}}=e;return!!t.isReactComponent}function X1(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!J1(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oc=En(s.elementType,X1),oh=e=>e.scrollTop;function _i(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Ai(e){return typeof e=="string"}function sh(e,t,n){return e===void 0||Ai(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ih(e,t,n){return typeof e=="function"?e(t,n):e}function Mi(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function ah(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function lh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const y=ie(n?.className,i,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},f={...n,...o,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=Mi({...o,...r}),l=ah(r),c=ah(o),p=t(a),u=ie(p?.className,n?.className,i,o?.className,r?.className),h={...p?.style,...n?.style,...o?.style,...r?.style},b={...p,...n,...c,...l};return u.length>0&&(b.className=u),Object.keys(h).length>0&&(b.style=h),{props:b,internalRef:p.ref}}function be(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...b}=i,y=u[e]||r,g=ih(h[e],o),{props:{component:f,...m},internalRef:v}=lh({className:n,...c,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:g}),w=Ze(v,g?.ref,t.ref),S=e==="root"?f||p:f,x=sh(y,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...m,...S&&!l&&{as:S},...S&&l&&{component:S},ref:w},o);return[y,x]}function Q1(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function ch(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const i=Q1(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function uh(e,t,n,r){return e[t]===void 0?null:ch(e,t,n,r)}function sc(){return null}uh.isRequired=ch,sc.isRequired=sc;const dh=process.env.NODE_ENV==="production"?sc:uh;function Z1(e){return de("MuiPaper",e)}ue("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eC=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return pe(i,Z1,o)},tC=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ge(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),an=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiPaper"}),o=Nt(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:p="elevation",...u}=r,h={...r,component:a,elevation:l,square:c,variant:p},b=eC(h);return process.env.NODE_ENV!=="production"&&o.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
62
+ `)),d.jsx(tC,{as:a,ownerState:h,className:ie(b.root,i),ref:n,...u,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ei("#fff",Kl(l))}, ${Ei("#fff",Kl(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:En(dh,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});const gt=s.oneOfType([s.func,s.object]);function $i(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
63
+ `))}return!1}class Di{static create(){return new Di}static use(){const t=rh(Di.create).current,[n,r]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=r,C.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=rC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function nC(){return Di.use()}function rC(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ph(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:p}=e,[u,h]=C.useState(!1),b=ie(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=ie(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),C.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,p);return()=>{clearTimeout(f)}}},[c,l,p]),d.jsx("span",{className:b,style:y,children:d.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(ph.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const jt=ue("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ic=550,oC=80,sC=Eo`
64
64
  0% {
65
65
  transform: scale(0);
66
66
  opacity: 0.1;
@@ -70,7 +70,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
70
70
  transform: scale(1);
71
71
  opacity: 0.3;
72
72
  }
73
- `,$C=Do`
73
+ `,iC=Eo`
74
74
  0% {
75
75
  opacity: 1;
76
76
  }
@@ -78,7 +78,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
78
78
  100% {
79
79
  opacity: 0;
80
80
  }
81
- `,DC=Do`
81
+ `,aC=Eo`
82
82
  0% {
83
83
  transform: scale(1);
84
84
  }
@@ -90,23 +90,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
90
90
  100% {
91
91
  transform: scale(1);
92
92
  }
93
- `,FC=G("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zC=G(Dh,{name:"MuiTouchRipple",slot:"Ripple"})`
93
+ `,lC=Y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cC=Y(ph,{name:"MuiTouchRipple",slot:"Ripple"})`
94
94
  opacity: 0;
95
95
  position: absolute;
96
96
 
97
- &.${Lt.rippleVisible} {
97
+ &.${jt.rippleVisible} {
98
98
  opacity: 0.3;
99
99
  transform: scale(1);
100
- animation-name: ${MC};
101
- animation-duration: ${Ec}ms;
100
+ animation-name: ${sC};
101
+ animation-duration: ${ic}ms;
102
102
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
103
103
  }
104
104
 
105
- &.${Lt.ripplePulsate} {
105
+ &.${jt.ripplePulsate} {
106
106
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
107
107
  }
108
108
 
109
- & .${Lt.child} {
109
+ & .${jt.child} {
110
110
  opacity: 1;
111
111
  display: block;
112
112
  width: 100%;
@@ -115,25 +115,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
115
115
  background-color: currentColor;
116
116
  }
117
117
 
118
- & .${Lt.childLeaving} {
118
+ & .${jt.childLeaving} {
119
119
  opacity: 0;
120
- animation-name: ${$C};
121
- animation-duration: ${Ec}ms;
120
+ animation-name: ${iC};
121
+ animation-duration: ${ic}ms;
122
122
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
123
123
  }
124
124
 
125
- & .${Lt.childPulsate} {
125
+ & .${jt.childPulsate} {
126
126
  position: absolute;
127
127
  /* @noflip */
128
128
  left: 0px;
129
129
  top: 0;
130
- animation-name: ${DC};
130
+ animation-name: ${aC};
131
131
  animation-duration: 2500ms;
132
132
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
133
133
  animation-iteration-count: infinite;
134
134
  animation-delay: 200ms;
135
135
  }
136
- `,Fh=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:l,...c}=n,[d,p]=T.useState([]),u=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const v=T.useRef(!1),g=pn(),y=T.useRef(null),f=T.useRef(null),m=T.useCallback(S=>{const{pulsate:C,rippleX:O,rippleY:I,rippleSize:F,cb:D}=S;p(L=>[...L,a.jsx(zC,{classes:{ripple:se(s.ripple,Lt.ripple),rippleVisible:se(s.rippleVisible,Lt.rippleVisible),ripplePulsate:se(s.ripplePulsate,Lt.ripplePulsate),child:se(s.child,Lt.child),childLeaving:se(s.childLeaving,Lt.childLeaving),childPulsate:se(s.childPulsate,Lt.childPulsate)},timeout:Ec,pulsate:C,rippleX:O,rippleY:I,rippleSize:F},u.current)]),u.current+=1,h.current=D},[s]),x=T.useCallback((S={},C={},O=()=>{})=>{const{pulsate:I=!1,center:F=o||C.pulsate,fakeElement:D=!1}=C;if(S?.type==="mousedown"&&v.current){v.current=!1;return}S?.type==="touchstart"&&(v.current=!0);const L=D?null:f.current,z=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,j,A;if(F||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(z.width/2),j=Math.round(z.height/2);else{const{clientX:M,clientY:_}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(M-z.left),j=Math.round(_-z.top)}if(F)A=Math.sqrt((2*z.width**2+z.height**2)/3),A%2===0&&(A+=1);else{const M=Math.max(Math.abs((L?L.clientWidth:0)-k),k)*2+2,_=Math.max(Math.abs((L?L.clientHeight:0)-j),j)*2+2;A=Math.sqrt(M**2+_**2)}S?.touches?y.current===null&&(y.current=()=>{m({pulsate:I,rippleX:k,rippleY:j,rippleSize:A,cb:O})},g.start(AC,()=>{y.current&&(y.current(),y.current=null)})):m({pulsate:I,rippleX:k,rippleY:j,rippleSize:A,cb:O})},[o,m,g]),b=T.useCallback(()=>{x({},{pulsate:!0})},[x]),w=T.useCallback((S,C)=>{if(g.clear(),S?.type==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{w(S,C)});return}y.current=null,p(O=>O.length>0?O.slice(1):O),h.current=C},[g]);return T.useImperativeHandle(r,()=>({pulsate:b,start:x,stop:w}),[b,x,w]),a.jsx(FC,{className:se(Lt.root,s.root,l),ref:f,...c,children:a.jsx(Sc,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(Fh.propTypes={center:i.bool,classes:i.object,className:i.string});function jC(e){return pe("MuiButtonBase",e)}const BC=de("MuiButtonBase",["root","disabled","focusVisible"]),LC=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,l=ue({root:["root",t&&"disabled",r&&"focusVisible"]},jC,o);return r&&n&&(l.root+=` ${n}`),l},WC=G("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${BC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),qo=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:l,className:c,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:v=!1,focusVisibleClassName:g,LinkComponent:y="a",onBlur:f,onClick:m,onContextMenu:x,onDragLeave:b,onFocus:w,onFocusVisible:S,onKeyDown:C,onKeyUp:O,onMouseDown:I,onMouseLeave:F,onMouseUp:D,onTouchEnd:L,onTouchMove:z,onTouchStart:k,tabIndex:j=0,TouchRippleProps:A,touchRippleRef:M,type:_,...N}=n,W=T.useRef(null),U=NC(),B=Je(U.ref,M),[H,X]=T.useState(!1);p&&H&&X(!1),T.useImperativeHandle(o,()=>({focusVisible:()=>{X(!0),W.current.focus()}}),[]);const J=U.shouldMount&&!u&&!p;T.useEffect(()=>{H&&v&&!u&&U.pulsate()},[u,v,H,U]);const Q=Or(U,"start",I,h),Y=Or(U,"stop",x,h),K=Or(U,"stop",b,h),ee=Or(U,"stop",D,h),oe=Or(U,"stop",ne=>{H&&ne.preventDefault(),F&&F(ne)},h),ae=Or(U,"start",k,h),Z=Or(U,"stop",L,h),re=Or(U,"stop",z,h),q=Or(U,"stop",ne=>{Js(ne.target)||X(!1),f&&f(ne)},!1),ce=Bt(ne=>{W.current||(W.current=ne.currentTarget),Js(ne.target)&&(X(!0),S&&S(ne)),w&&w(ne)}),ie=()=>{const ne=W.current;return d&&d!=="button"&&!(ne.tagName==="A"&&ne.href)},ye=Bt(ne=>{v&&!ne.repeat&&H&&ne.key===" "&&U.stop(ne,()=>{U.start(ne)}),ne.target===ne.currentTarget&&ie()&&ne.key===" "&&ne.preventDefault(),C&&C(ne),ne.target===ne.currentTarget&&ie()&&ne.key==="Enter"&&!p&&(ne.preventDefault(),m&&m(ne))}),Le=Bt(ne=>{v&&ne.key===" "&&H&&!ne.defaultPrevented&&U.stop(ne,()=>{U.pulsate(ne)}),O&&O(ne),m&&ne.target===ne.currentTarget&&ie()&&ne.key===" "&&!ne.defaultPrevented&&m(ne)});let Oe=d;Oe==="button"&&(N.href||N.to)&&(Oe=y);const ke={};if(Oe==="button"){const ne=!!N.formAction;ke.type=_===void 0&&!ne?"button":_,ke.disabled=p}else!N.href&&!N.to&&(ke.role="button"),p&&(ke["aria-disabled"]=p);const Ce=Je(r,W),Ve={...n,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:v,tabIndex:j,focusVisible:H},Ne=LC(Ve);return a.jsxs(WC,{as:Oe,className:se(Ne.root,c),ownerState:Ve,onBlur:q,onClick:m,onContextMenu:Y,onFocus:ce,onKeyDown:ye,onKeyUp:Le,onMouseDown:Q,onMouseLeave:oe,onMouseUp:ee,onDragLeave:K,onTouchEnd:Z,onTouchMove:re,onTouchStart:ae,ref:Ce,tabIndex:p?-1:j,type:_,...ke,...N,children:[l,J?a.jsx(Fh,{ref:B,center:s,...A}):null]})});function Or(e,t,r,n=!1){return Bt(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(qo.propTypes={action:vt,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:wc,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function VC(e){return typeof e.main=="string"}function UC(e,t=[]){if(!VC(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Tt(e=[]){return([,t])=>t&&UC(t,e)}function HC(e){return pe("MuiCircularProgress",e)}de("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qt=44,Tc=Do`
136
+ `,fh=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...l}=r,[c,p]=C.useState([]),u=C.useRef(0),h=C.useRef(null);C.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const b=C.useRef(!1),y=nr(),g=C.useRef(null),f=C.useRef(null),m=C.useCallback(x=>{const{pulsate:E,rippleX:O,rippleY:N,rippleSize:D,cb:A}=x;p(L=>[...L,d.jsx(cC,{classes:{ripple:ie(i.ripple,jt.ripple),rippleVisible:ie(i.rippleVisible,jt.rippleVisible),ripplePulsate:ie(i.ripplePulsate,jt.ripplePulsate),child:ie(i.child,jt.child),childLeaving:ie(i.childLeaving,jt.childLeaving),childPulsate:ie(i.childPulsate,jt.childPulsate)},timeout:ic,pulsate:E,rippleX:O,rippleY:N,rippleSize:D},u.current)]),u.current+=1,h.current=A},[i]),v=C.useCallback((x={},E={},O=()=>{})=>{const{pulsate:N=!1,center:D=o||E.pulsate,fakeElement:A=!1}=E;if(x?.type==="mousedown"&&b.current){b.current=!1;return}x?.type==="touchstart"&&(b.current=!0);const L=A?null:f.current,_=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,$,I;if(D||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)T=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:j,clientY:P}=x.touches&&x.touches.length>0?x.touches[0]:x;T=Math.round(j-_.left),$=Math.round(P-_.top)}if(D)I=Math.sqrt((2*_.width**2+_.height**2)/3),I%2===0&&(I+=1);else{const j=Math.max(Math.abs((L?L.clientWidth:0)-T),T)*2+2,P=Math.max(Math.abs((L?L.clientHeight:0)-$),$)*2+2;I=Math.sqrt(j**2+P**2)}x?.touches?g.current===null&&(g.current=()=>{m({pulsate:N,rippleX:T,rippleY:$,rippleSize:I,cb:O})},y.start(oC,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:N,rippleX:T,rippleY:$,rippleSize:I,cb:O})},[o,m,y]),w=C.useCallback(()=>{v({},{pulsate:!0})},[v]),S=C.useCallback((x,E)=>{if(y.clear(),x?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{S(x,E)});return}g.current=null,p(O=>O.length>0?O.slice(1):O),h.current=E},[y]);return C.useImperativeHandle(n,()=>({pulsate:w,start:v,stop:S}),[w,v,S]),d.jsx(lC,{className:ie(jt.root,i.root,a),ref:f,...l,children:d.jsx(rc,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(fh.propTypes={center:s.bool,classes:s.object,className:s.string});function uC(e){return de("MuiButtonBase",e)}const dC=ue("MuiButtonBase",["root","disabled","focusVisible"]),pC=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=pe({root:["root",t&&"disabled",n&&"focusVisible"]},uC,o);return n&&r&&(a.root+=` ${r}`),a},fC=Y("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Do=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:b=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:v,onDragLeave:w,onFocus:S,onFocusVisible:x,onKeyDown:E,onKeyUp:O,onMouseDown:N,onMouseLeave:D,onMouseUp:A,onTouchEnd:L,onTouchMove:_,onTouchStart:T,tabIndex:$=0,TouchRippleProps:I,touchRippleRef:j,type:P,...k}=r,B=C.useRef(null),z=nC(),M=Ze(z.ref,j),[V,G]=C.useState(!1);p&&V&&G(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),B.current.focus()}}),[]);const X=z.shouldMount&&!u&&!p;C.useEffect(()=>{V&&b&&!u&&z.pulsate()},[u,b,V,z]);const ee=Tn(z,"start",N,h),K=Tn(z,"stop",v,h),Q=Tn(z,"stop",w,h),Z=Tn(z,"stop",A,h),oe=Tn(z,"stop",ae=>{V&&ae.preventDefault(),D&&D(ae)},h),se=Tn(z,"start",T,h),J=Tn(z,"stop",L,h),te=Tn(z,"stop",_,h),q=Tn(z,"stop",ae=>{$i(ae.target)||G(!1),f&&f(ae)},!1),le=Ft(ae=>{B.current||(B.current=ae.currentTarget),$i(ae.target)&&(G(!0),x&&x(ae)),S&&S(ae)}),re=()=>{const ae=B.current;return c&&c!=="button"&&!(ae.tagName==="A"&&ae.href)},he=Ft(ae=>{b&&!ae.repeat&&V&&ae.key===" "&&z.stop(ae,()=>{z.start(ae)}),ae.target===ae.currentTarget&&re()&&ae.key===" "&&ae.preventDefault(),E&&E(ae),ae.target===ae.currentTarget&&re()&&ae.key==="Enter"&&!p&&(ae.preventDefault(),m&&m(ae))}),qe=Ft(ae=>{b&&ae.key===" "&&V&&!ae.defaultPrevented&&z.stop(ae,()=>{z.pulsate(ae)}),O&&O(ae),m&&ae.target===ae.currentTarget&&re()&&ae.key===" "&&!ae.defaultPrevented&&m(ae)});let ke=c;ke==="button"&&(k.href||k.to)&&(ke=g);const Ce={};if(ke==="button"){const ae=!!k.formAction;Ce.type=P===void 0&&!ae?"button":P,Ce.disabled=p}else!k.href&&!k.to&&(Ce.role="button"),p&&(Ce["aria-disabled"]=p);const Je=Ze(n,B),We={...r,centerRipple:i,component:c,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:b,tabIndex:$,focusVisible:V},ye=pC(We);return d.jsxs(fC,{as:ke,className:ie(ye.root,l),ownerState:We,onBlur:q,onClick:m,onContextMenu:K,onFocus:le,onKeyDown:he,onKeyUp:qe,onMouseDown:ee,onMouseLeave:oe,onMouseUp:Z,onDragLeave:Q,onTouchEnd:J,onTouchMove:te,onTouchStart:se,ref:Je,tabIndex:p?-1:$,type:P,...Ce,...k,children:[a,X?d.jsx(fh,{ref:M,center:i,...I}):null]})});function Tn(e,t,n,r=!1){return Ft(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(Do.propTypes={action:gt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:oc,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,formAction:s.oneOfType([s.func,s.string]),href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function hC(e){return typeof e.main=="string"}function gC(e,t=[]){if(!hC(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function wt(e=[]){return([,t])=>t&&gC(t,e)}function yC(e){return de("MuiCircularProgress",e)}ue("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ht=44,ac=Eo`
137
137
  0% {
138
138
  transform: rotate(0deg);
139
139
  }
@@ -141,7 +141,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
141
141
  100% {
142
142
  transform: rotate(360deg);
143
143
  }
144
- `,Oc=Do`
144
+ `,lc=Eo`
145
145
  0% {
146
146
  stroke-dasharray: 1px, 200px;
147
147
  stroke-dashoffset: 0;
@@ -156,328 +156,32 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
156
156
  stroke-dasharray: 1px, 200px;
157
157
  stroke-dashoffset: -126px;
158
158
  }
159
- `,RC=typeof Tc!="string"?Wl`
160
- animation: ${Tc} 1.4s linear infinite;
161
- `:null,qC=typeof Oc!="string"?Wl`
162
- animation: ${Oc} 1.4s ease-in-out infinite;
163
- `:null,YC=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,s={root:["root",r,`color${te(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${te(r)}`,o&&"circleDisableShrink"]};return ue(s,HC,t)},GC=G("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${te(r.color)}`]]}})(he(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:RC||{animation:`${Tc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),KC=G("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),XC=G("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${te(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(he(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:qC||{animation:`${Oc} 1.4s ease-in-out infinite`}}]}))),JC=G("circle",{name:"MuiCircularProgress",slot:"Track"})(he(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Zs=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:l=!1,enableTrackSlot:c=!1,size:d=40,style:p,thickness:u=3.6,value:h=0,variant:v="indeterminate",...g}=n,y={...n,color:s,disableShrink:l,size:d,thickness:u,value:h,variant:v,enableTrackSlot:c},f=YC(y),m={},x={},b={};if(v==="determinate"){const w=2*Math.PI*((Qt-u)/2);m.strokeDasharray=w.toFixed(3),b["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return a.jsx(GC,{className:se(f.root,o),style:{width:d,height:d,...x,...p},ownerState:y,ref:r,role:"progressbar",...b,...g,children:a.jsxs(KC,{className:f.svg,ownerState:y,viewBox:`${Qt/2} ${Qt/2} ${Qt} ${Qt}`,children:[c?a.jsx(JC,{className:f.track,ownerState:y,cx:Qt,cy:Qt,r:(Qt-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,a.jsx(XC,{className:f.circle,style:m,ownerState:y,cx:Qt,cy:Qt,r:(Qt-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:Tr(i.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function QC(e){return pe("MuiIconButton",e)}const zh=de("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),ZC=e=>{const{classes:t,disabled:r,color:n,edge:o,size:s,loading:l}=e,c={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${te(n)}`,o&&`edge${te(o)}`,`size${te(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ue(c,QC,t)},e2=G(qo,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${te(r.color)}`],r.edge&&t[`edge${te(r.edge)}`],t[`size${te(r.size)}`]]}})(he(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),he(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${zh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${zh.loading}`]:{color:"transparent"}}))),t2=G("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Wt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:l,color:c="default",disabled:d=!1,disableFocusRipple:p=!1,size:u="medium",id:h,loading:v=null,loadingIndicator:g,...y}=n,f=an(h),m=g??a.jsx(Zs,{"aria-labelledby":f,color:"inherit",size:16}),x={...n,edge:o,color:c,disabled:d,disableFocusRipple:p,loading:v,loadingIndicator:m,size:u},b=ZC(x);return a.jsxs(e2,{id:v?f:h,className:se(b.root,l),centerRipple:!0,focusRipple:!p,disabled:d||v,ref:r,...y,ownerState:x,children:[typeof v=="boolean"&&a.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:a.jsx(t2,{className:b.loadingIndicator,ownerState:x,children:v&&m})}),s]})});process.env.NODE_ENV!=="production"&&(Wt.propTypes={children:Tr(i.node,e=>T.Children.toArray(e.children).some(r=>T.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
164
- `)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function r2(e){return pe("MuiTypography",e)}const jh=de("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),n2={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},o2=sC(),i2=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:s,classes:l}=e,c={root:["root",s,e.align!=="inherit"&&`align${te(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ue(c,r2,l)},s2=G("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${te(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(he(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${te(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Bh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},P=T.forwardRef(function(t,r){const{color:n,...o}=fe({props:t,name:"MuiTypography"}),s=!n2[n],l=o2({...o,...s&&{color:n}}),{align:c="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:v=!1,variant:g="body1",variantMapping:y=Bh,...f}=l,m={...l,align:c,color:n,className:d,component:p,gutterBottom:u,noWrap:h,paragraph:v,variant:g,variantMapping:y},x=p||(v?"p":y[g]||Bh[g])||"span",b=i2(m);return a.jsx(s2,{as:x,ref:r,className:se(b.root,d),...f,ownerState:m,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(P.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function kr(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],l=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}var Ot="top",Vt="bottom",Ut="right",kt="left",kc="auto",Yo=[Ot,Vt,Ut,kt],jn="start",Go="end",a2="clippingParents",Lh="viewport",Ko="popper",l2="reference",Wh=Yo.reduce(function(e,t){return e.concat([t+"-"+jn,t+"-"+Go])},[]),Vh=[].concat(Yo,[kc]).reduce(function(e,t){return e.concat([t,t+"-"+jn,t+"-"+Go])},[]),c2="beforeRead",d2="read",p2="afterRead",u2="beforeMain",f2="main",h2="afterMain",g2="beforeWrite",y2="write",m2="afterWrite",b2=[c2,d2,p2,u2,f2,h2,g2,y2,m2];function ur(e){return e?(e.nodeName||"").toLowerCase():null}function Mt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function un(e){var t=Mt(e).Element;return e instanceof t||e instanceof Element}function Ht(e){var t=Mt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pc(e){if(typeof ShadowRoot>"u")return!1;var t=Mt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function v2(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!Ht(s)||!ur(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function x2(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(d,p){return d[p]="",d},{});!Ht(o)||!ur(o)||(Object.assign(o.style,c),Object.keys(s).forEach(function(d){o.removeAttribute(d)}))})}}const S2={name:"applyStyles",enabled:!0,phase:"write",fn:v2,effect:x2,requires:["computeStyles"]};function fr(e){return e.split("-")[0]}var fn=Math.max,ea=Math.min,Bn=Math.round;function Ic(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Uh(){return!/^((?!chrome|android).)*safari/i.test(Ic())}function Ln(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Ht(e)&&(o=e.offsetWidth>0&&Bn(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Bn(n.height)/e.offsetHeight||1);var l=un(e)?Mt(e):window,c=l.visualViewport,d=!Uh()&&r,p=(n.left+(d&&c?c.offsetLeft:0))/o,u=(n.top+(d&&c?c.offsetTop:0))/s,h=n.width/o,v=n.height/s;return{width:h,height:v,top:u,right:p+h,bottom:u+v,left:p,x:p,y:u}}function Nc(e){var t=Ln(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Hh(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Pc(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Pr(e){return Mt(e).getComputedStyle(e)}function w2(e){return["table","td","th"].indexOf(ur(e))>=0}function Hr(e){return((un(e)?e.ownerDocument:e.document)||window.document).documentElement}function ta(e){return ur(e)==="html"?e:e.assignedSlot||e.parentNode||(Pc(e)?e.host:null)||Hr(e)}function Rh(e){return!Ht(e)||Pr(e).position==="fixed"?null:e.offsetParent}function C2(e){var t=/firefox/i.test(Ic()),r=/Trident/i.test(Ic());if(r&&Ht(e)){var n=Pr(e);if(n.position==="fixed")return null}var o=ta(e);for(Pc(o)&&(o=o.host);Ht(o)&&["html","body"].indexOf(ur(o))<0;){var s=Pr(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Xo(e){for(var t=Mt(e),r=Rh(e);r&&w2(r)&&Pr(r).position==="static";)r=Rh(r);return r&&(ur(r)==="html"||ur(r)==="body"&&Pr(r).position==="static")?t:r||C2(e)||t}function _c(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jo(e,t,r){return fn(e,ea(t,r))}function E2(e,t,r){var n=Jo(e,t,r);return n>r?r:n}function qh(){return{top:0,right:0,bottom:0,left:0}}function Yh(e){return Object.assign({},qh(),e)}function Gh(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var T2=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Yh(typeof t!="number"?t:Gh(t,Yo))};function O2(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=fr(r.placement),d=_c(c),p=[kt,Ut].indexOf(c)>=0,u=p?"height":"width";if(!(!s||!l)){var h=T2(o.padding,r),v=Nc(s),g=d==="y"?Ot:kt,y=d==="y"?Vt:Ut,f=r.rects.reference[u]+r.rects.reference[d]-l[d]-r.rects.popper[u],m=l[d]-r.rects.reference[d],x=Xo(s),b=x?d==="y"?x.clientHeight||0:x.clientWidth||0:0,w=f/2-m/2,S=h[g],C=b-v[u]-h[y],O=b/2-v[u]/2+w,I=Jo(S,O,C),F=d;r.modifiersData[n]=(t={},t[F]=I,t.centerOffset=I-O,t)}}function k2(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Hh(t.elements.popper,o)&&(t.elements.arrow=o))}const P2={name:"arrow",enabled:!0,phase:"main",fn:O2,effect:k2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wn(e){return e.split("-")[1]}var I2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function N2(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Bn(r*o)/o||0,y:Bn(n*o)/o||0}}function Kh(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,v=l.x,g=v===void 0?0:v,y=l.y,f=y===void 0?0:y,m=typeof u=="function"?u({x:g,y:f}):{x:g,y:f};g=m.x,f=m.y;var x=l.hasOwnProperty("x"),b=l.hasOwnProperty("y"),w=kt,S=Ot,C=window;if(p){var O=Xo(r),I="clientHeight",F="clientWidth";if(O===Mt(r)&&(O=Hr(r),Pr(O).position!=="static"&&c==="absolute"&&(I="scrollHeight",F="scrollWidth")),O=O,o===Ot||(o===kt||o===Ut)&&s===Go){S=Vt;var D=h&&O===C&&C.visualViewport?C.visualViewport.height:O[I];f-=D-n.height,f*=d?1:-1}if(o===kt||(o===Ot||o===Vt)&&s===Go){w=Ut;var L=h&&O===C&&C.visualViewport?C.visualViewport.width:O[F];g-=L-n.width,g*=d?1:-1}}var z=Object.assign({position:c},p&&I2),k=u===!0?N2({x:g,y:f},Mt(r)):{x:g,y:f};if(g=k.x,f=k.y,d){var j;return Object.assign({},z,(j={},j[S]=b?"0":"",j[w]=x?"0":"",j.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+f+"px)":"translate3d("+g+"px, "+f+"px, 0)",j))}return Object.assign({},z,(t={},t[S]=b?f+"px":"",t[w]=x?g+"px":"",t.transform="",t))}function _2(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,d=c===void 0?!0:c,p={placement:fr(t.placement),variation:Wn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Kh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Kh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const A2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_2,data:{}};var ra={passive:!0};function M2(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,d=Mt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",r.update,ra)}),c&&d.addEventListener("resize",r.update,ra),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",r.update,ra)}),c&&d.removeEventListener("resize",r.update,ra)}}const $2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:M2,data:{}};var D2={left:"right",right:"left",bottom:"top",top:"bottom"};function na(e){return e.replace(/left|right|bottom|top/g,function(t){return D2[t]})}var F2={start:"end",end:"start"};function Xh(e){return e.replace(/start|end/g,function(t){return F2[t]})}function Ac(e){var t=Mt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mc(e){return Ln(Hr(e)).left+Ac(e).scrollLeft}function z2(e,t){var r=Mt(e),n=Hr(e),o=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,d=0;if(o){s=o.width,l=o.height;var p=Uh();(p||!p&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}return{width:s,height:l,x:c+Mc(e),y:d}}function j2(e){var t,r=Hr(e),n=Ac(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=fn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=fn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Mc(e),d=-n.scrollTop;return Pr(o||r).direction==="rtl"&&(c+=fn(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function $c(e){var t=Pr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Jh(e){return["html","body","#document"].indexOf(ur(e))>=0?e.ownerDocument.body:Ht(e)&&$c(e)?e:Jh(ta(e))}function Qo(e,t){var r;t===void 0&&(t=[]);var n=Jh(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=Mt(n),l=o?[s].concat(s.visualViewport||[],$c(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(Qo(ta(l)))}function Dc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function B2(e,t){var r=Ln(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Qh(e,t,r){return t===Lh?Dc(z2(e,r)):un(t)?B2(t,r):Dc(j2(Hr(e)))}function L2(e){var t=Qo(ta(e)),r=["absolute","fixed"].indexOf(Pr(e).position)>=0,n=r&&Ht(e)?Xo(e):e;return un(n)?t.filter(function(o){return un(o)&&Hh(o,n)&&ur(o)!=="body"}):[]}function W2(e,t,r,n){var o=t==="clippingParents"?L2(e):[].concat(t),s=[].concat(o,[r]),l=s[0],c=s.reduce(function(d,p){var u=Qh(e,p,n);return d.top=fn(u.top,d.top),d.right=ea(u.right,d.right),d.bottom=ea(u.bottom,d.bottom),d.left=fn(u.left,d.left),d},Qh(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Zh(e){var t=e.reference,r=e.element,n=e.placement,o=n?fr(n):null,s=n?Wn(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,d;switch(o){case Ot:d={x:l,y:t.y-r.height};break;case Vt:d={x:l,y:t.y+t.height};break;case Ut:d={x:t.x+t.width,y:c};break;case kt:d={x:t.x-r.width,y:c};break;default:d={x:t.x,y:t.y}}var p=o?_c(o):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case jn:d[p]=d[p]-(t[u]/2-r[u]/2);break;case Go:d[p]=d[p]+(t[u]/2-r[u]/2);break}}return d}function Zo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,d=c===void 0?a2:c,p=r.rootBoundary,u=p===void 0?Lh:p,h=r.elementContext,v=h===void 0?Ko:h,g=r.altBoundary,y=g===void 0?!1:g,f=r.padding,m=f===void 0?0:f,x=Yh(typeof m!="number"?m:Gh(m,Yo)),b=v===Ko?l2:Ko,w=e.rects.popper,S=e.elements[y?b:v],C=W2(un(S)?S:S.contextElement||Hr(e.elements.popper),d,u,l),O=Ln(e.elements.reference),I=Zh({reference:O,element:w,placement:o}),F=Dc(Object.assign({},w,I)),D=v===Ko?F:O,L={top:C.top-D.top+x.top,bottom:D.bottom-C.bottom+x.bottom,left:C.left-D.left+x.left,right:D.right-C.right+x.right},z=e.modifiersData.offset;if(v===Ko&&z){var k=z[o];Object.keys(L).forEach(function(j){var A=[Ut,Vt].indexOf(j)>=0?1:-1,M=[Ot,Vt].indexOf(j)>=0?"y":"x";L[j]+=k[M]*A})}return L}function V2(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?Vh:d,u=Wn(n),h=u?c?Wh:Wh.filter(function(y){return Wn(y)===u}):Yo,v=h.filter(function(y){return p.indexOf(y)>=0});v.length===0&&(v=h);var g=v.reduce(function(y,f){return y[f]=Zo(e,{placement:f,boundary:o,rootBoundary:s,padding:l})[fr(f)],y},{});return Object.keys(g).sort(function(y,f){return g[y]-g[f]})}function U2(e){if(fr(e)===kc)return[];var t=na(e);return[Xh(e),t,Xh(t)]}function H2(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,u=r.boundary,h=r.rootBoundary,v=r.altBoundary,g=r.flipVariations,y=g===void 0?!0:g,f=r.allowedAutoPlacements,m=t.options.placement,x=fr(m),b=x===m,w=d||(b||!y?[na(m)]:U2(m)),S=[m].concat(w).reduce(function(Q,Y){return Q.concat(fr(Y)===kc?V2(t,{placement:Y,boundary:u,rootBoundary:h,padding:p,flipVariations:y,allowedAutoPlacements:f}):Y)},[]),C=t.rects.reference,O=t.rects.popper,I=new Map,F=!0,D=S[0],L=0;L<S.length;L++){var z=S[L],k=fr(z),j=Wn(z)===jn,A=[Ot,Vt].indexOf(k)>=0,M=A?"width":"height",_=Zo(t,{placement:z,boundary:u,rootBoundary:h,altBoundary:v,padding:p}),N=A?j?Ut:kt:j?Vt:Ot;C[M]>O[M]&&(N=na(N));var W=na(N),U=[];if(s&&U.push(_[k]<=0),c&&U.push(_[N]<=0,_[W]<=0),U.every(function(Q){return Q})){D=z,F=!1;break}I.set(z,U)}if(F)for(var B=y?3:1,H=function(Y){var K=S.find(function(ee){var oe=I.get(ee);if(oe)return oe.slice(0,Y).every(function(ae){return ae})});if(K)return D=K,"break"},X=B;X>0;X--){var J=H(X);if(J==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const R2={name:"flip",enabled:!0,phase:"main",fn:H2,requiresIfExists:["offset"],data:{_skip:!1}};function eg(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function tg(e){return[Ot,Ut,Vt,kt].some(function(t){return e[t]>=0})}function q2(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,l=Zo(t,{elementContext:"reference"}),c=Zo(t,{altBoundary:!0}),d=eg(l,n),p=eg(c,o,s),u=tg(d),h=tg(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const Y2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:q2};function G2(e,t,r){var n=fr(e),o=[kt,Ot].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*o,[kt,Ut].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function K2(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,l=Vh.reduce(function(u,h){return u[h]=G2(h,t.rects,s),u},{}),c=l[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=l}const X2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K2};function J2(e){var t=e.state,r=e.name;t.modifiersData[r]=Zh({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Q2={name:"popperOffsets",enabled:!0,phase:"read",fn:J2,data:{}};function Z2(e){return e==="x"?"y":"x"}function eE(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,u=r.altBoundary,h=r.padding,v=r.tether,g=v===void 0?!0:v,y=r.tetherOffset,f=y===void 0?0:y,m=Zo(t,{boundary:d,rootBoundary:p,padding:h,altBoundary:u}),x=fr(t.placement),b=Wn(t.placement),w=!b,S=_c(x),C=Z2(S),O=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,D=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(O){if(s){var j,A=S==="y"?Ot:kt,M=S==="y"?Vt:Ut,_=S==="y"?"height":"width",N=O[S],W=N+m[A],U=N-m[M],B=g?-F[_]/2:0,H=b===jn?I[_]:F[_],X=b===jn?-F[_]:-I[_],J=t.elements.arrow,Q=g&&J?Nc(J):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qh(),K=Y[A],ee=Y[M],oe=Jo(0,I[_],Q[_]),ae=w?I[_]/2-B-oe-K-L.mainAxis:H-oe-K-L.mainAxis,Z=w?-I[_]/2+B+oe+ee+L.mainAxis:X+oe+ee+L.mainAxis,re=t.elements.arrow&&Xo(t.elements.arrow),q=re?S==="y"?re.clientTop||0:re.clientLeft||0:0,ce=(j=z?.[S])!=null?j:0,ie=N+ae-ce-q,ye=N+Z-ce,Le=Jo(g?ea(W,ie):W,N,g?fn(U,ye):U);O[S]=Le,k[S]=Le-N}if(c){var Oe,ke=S==="x"?Ot:kt,Ce=S==="x"?Vt:Ut,Ve=O[C],Ne=C==="y"?"height":"width",ne=Ve+m[ke],tt=Ve-m[Ce],_e=[Ot,kt].indexOf(x)!==-1,Zt=(Oe=z?.[C])!=null?Oe:0,ot=_e?ne:Ve-I[Ne]-F[Ne]-Zt+L.altAxis,lt=_e?Ve+I[Ne]+F[Ne]-Zt-L.altAxis:tt,er=g&&_e?E2(ot,Ve,lt):Jo(g?ot:ne,Ve,g?lt:tt);O[C]=er,k[C]=er-Ve}t.modifiersData[n]=k}}const tE={name:"preventOverflow",enabled:!0,phase:"main",fn:eE,requiresIfExists:["offset"]};function rE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nE(e){return e===Mt(e)||!Ht(e)?Ac(e):rE(e)}function oE(e){var t=e.getBoundingClientRect(),r=Bn(t.width)/e.offsetWidth||1,n=Bn(t.height)/e.offsetHeight||1;return r!==1||n!==1}function iE(e,t,r){r===void 0&&(r=!1);var n=Ht(t),o=Ht(t)&&oE(t),s=Hr(t),l=Ln(e,o,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((ur(t)!=="body"||$c(s))&&(c=nE(t)),Ht(t)?(d=Ln(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Mc(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function sE(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=t.get(c);d&&o(d)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function aE(e){var t=sE(e);return b2.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function lE(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function cE(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var rg={placement:"bottom",modifiers:[],strategy:"absolute"};function ng(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dE(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?rg:o;return function(c,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},rg,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},h=[],v=!1,g={state:u,setOptions:function(x){var b=typeof x=="function"?x(u.options):x;f(),u.options=Object.assign({},s,u.options,b),u.scrollParents={reference:un(c)?Qo(c):c.contextElement?Qo(c.contextElement):[],popper:Qo(d)};var w=aE(cE([].concat(n,u.options.modifiers)));return u.orderedModifiers=w.filter(function(S){return S.enabled}),y(),g.update()},forceUpdate:function(){if(!v){var x=u.elements,b=x.reference,w=x.popper;if(ng(b,w)){u.rects={reference:iE(b,Xo(w),u.options.strategy==="fixed"),popper:Nc(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var C=u.orderedModifiers[S],O=C.fn,I=C.options,F=I===void 0?{}:I,D=C.name;typeof O=="function"&&(u=O({state:u,options:F,name:D,instance:g})||u)}}}},update:lE(function(){return new Promise(function(m){g.forceUpdate(),m(u)})}),destroy:function(){f(),v=!0}};if(!ng(c,d))return g;g.setOptions(p).then(function(m){!v&&p.onFirstUpdate&&p.onFirstUpdate(m)});function y(){u.orderedModifiers.forEach(function(m){var x=m.name,b=m.options,w=b===void 0?{}:b,S=m.effect;if(typeof S=="function"){var C=S({state:u,name:x,instance:g,options:w}),O=function(){};h.push(C||O)}})}function f(){h.forEach(function(m){return m()}),h=[]}return g}}var pE=[$2,Q2,A2,S2,X2,R2,tE,P2,Y2],uE=dE({defaultModifiers:pE});function og(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...s}=e,l=o?{}:Ih(r,n),{props:c,internalRef:d}=_h({...s,externalSlotProps:l}),p=Je(d,l?.ref,e.additionalProps?.ref);return Ph(t,{...c,ref:p},n)}function hn(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}function fE(e){return typeof e=="function"?e():e}const ei=T.forwardRef(function(t,r){const{children:n,container:o,disablePortal:s=!1}=t,[l,c]=T.useState(null),d=Je(T.isValidElement(n)?hn(n):null,r);if(Xt(()=>{s||c(fE(o)||document.body)},[o,s]),Xt(()=>{if(l&&!s)return mh(r,l),()=>{mh(r,null)}},[r,l,s]),s){if(T.isValidElement(n)){const p={ref:d};return T.cloneElement(n,p)}return n}return l&&xy.createPortal(n,l)});process.env.NODE_ENV!=="production"&&(ei.propTypes={children:i.node,container:i.oneOfType([kr,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(ei.propTypes=ic(ei.propTypes));function hE(e){return pe("MuiPopper",e)}de("MuiPopper",["root"]);function gE(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function oa(e){return typeof e=="function"?e():e}function ia(e){return e.nodeType!==void 0}function yE(e){return!ia(e)}const mE=e=>{const{classes:t}=e;return ue({root:["root"]},hE,t)},bE={},vE=T.forwardRef(function(t,r){const{anchorEl:n,children:o,direction:s,disablePortal:l,modifiers:c,open:d,placement:p,popperOptions:u,popperRef:h,slotProps:v={},slots:g={},TransitionProps:y,ownerState:f,...m}=t,x=T.useRef(null),b=Je(x,r),w=T.useRef(null),S=Je(w,h),C=T.useRef(S);Xt(()=>{C.current=S},[S]),T.useImperativeHandle(h,()=>w.current,[]);const O=gE(p,s),[I,F]=T.useState(O),[D,L]=T.useState(oa(n));T.useEffect(()=>{w.current&&w.current.forceUpdate()}),T.useEffect(()=>{n&&L(oa(n))},[n]),Xt(()=>{if(!D||!d)return;const M=W=>{F(W.placement)};if(process.env.NODE_ENV!=="production"&&D&&ia(D)&&D.nodeType===1){const W=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&W.top===0&&W.left===0&&W.right===0&&W.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
165
- `))}let _=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{M(W)}}];c!=null&&(_=_.concat(c)),u&&u.modifiers!=null&&(_=_.concat(u.modifiers));const N=uE(D,x.current,{placement:O,...u,modifiers:_});return C.current(N),()=>{N.destroy(),C.current(null)}},[D,l,c,d,u,O]);const z={placement:I};y!==null&&(z.TransitionProps=y);const k=mE(t),j=g.root??"div",A=og({elementType:j,externalSlotProps:v.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:k.root});return a.jsx(j,{...A,children:typeof o=="function"?o(z):o})}),ig=T.forwardRef(function(t,r){const{anchorEl:n,children:o,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:v=bE,popperRef:g,style:y,transition:f=!1,slotProps:m={},slots:x={},...b}=t,[w,S]=T.useState(!0),C=()=>{S(!1)},O=()=>{S(!0)};if(!d&&!u&&(!f||w))return null;let I;if(s)I=s;else if(n){const L=oa(n);I=L&&ia(L)?gt(L).body:gt(null).body}const F=!u&&d&&(!f||w)?"none":void 0,D=f?{in:u,onEnter:C,onExited:O}:void 0;return a.jsx(ei,{disablePortal:c,container:I,children:a.jsx(vE,{anchorEl:n,direction:l,disablePortal:c,modifiers:p,ref:r,open:f?!w:u,placement:h,popperOptions:v,popperRef:g,slotProps:m,slots:x,...b,style:{position:"fixed",top:0,left:0,display:F,...y},TransitionProps:D,children:o})})});process.env.NODE_ENV!=="production"&&(ig.propTypes={anchorEl:Tr(i.oneOfType([kr,i.object,i.func]),e=>{if(e.open){const t=oa(e.anchorEl);if(t&&ia(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
166
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||yE(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
167
- `))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([kr,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:vt,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const xE=G(ig,{name:"MuiPopper",slot:"Root"})({}),Fc=T.forwardRef(function(t,r){const n=sc(),o=fe({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:p,disablePortal:u,keepMounted:h,modifiers:v,open:g,placement:y,popperOptions:f,popperRef:m,transition:x,slots:b,slotProps:w,...S}=o,C=b?.root??c?.Root,O={anchorEl:s,container:p,disablePortal:u,keepMounted:h,modifiers:v,open:g,placement:y,popperOptions:f,popperRef:m,transition:x,...S};return a.jsx(xE,{as:l,direction:n?"rtl":"ltr",slots:{root:C},slotProps:w??d,...O,ref:r})});process.env.NODE_ENV!=="production"&&(Fc.propTypes={anchorEl:i.oneOfType([kr,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([kr,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:i.oneOf(["absolute","fixed"])}),popperRef:vt,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});function sa(e){return parseInt(e,10)||0}const SE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function wE(e){for(const t in e)return!1;return!0}function sg(e){return wE(e)||e.outerHeightStyle===0&&!e.overflowing}const ag=T.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:s=1,style:l,value:c,...d}=t,{current:p}=T.useRef(c!=null),u=T.useRef(null),h=Je(r,u),v=T.useRef(null),g=T.useRef(null),y=T.useCallback(()=>{const w=u.current,S=g.current;if(!w||!S)return;const O=Er(w).getComputedStyle(w);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=O.width,S.value=w.value||t.placeholder||"x",S.value.slice(-1)===`
168
- `&&(S.value+=" ");const I=O.boxSizing,F=sa(O.paddingBottom)+sa(O.paddingTop),D=sa(O.borderBottomWidth)+sa(O.borderTopWidth),L=S.scrollHeight;S.value="x";const z=S.scrollHeight;let k=L;s&&(k=Math.max(Number(s)*z,k)),o&&(k=Math.min(Number(o)*z,k)),k=Math.max(k,z);const j=k+(I==="border-box"?F+D:0),A=Math.abs(k-L)<=1;return{outerHeightStyle:j,overflowing:A}},[o,s,t.placeholder]),f=Bt(()=>{const w=u.current,S=y();if(!w||!S||sg(S))return!1;const C=S.outerHeightStyle;return v.current!=null&&v.current!==C}),m=T.useCallback(()=>{const w=u.current,S=y();if(!w||!S||sg(S))return;const C=S.outerHeightStyle;v.current!==C&&(v.current=C,w.style.height=`${C}px`),w.style.overflow=S.overflowing?"hidden":""},[y]),x=T.useRef(-1);Xt(()=>{const w=yh(m),S=u?.current;if(!S)return;const C=Er(S);C.addEventListener("resize",w);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{f()&&(O.unobserve(S),cancelAnimationFrame(x.current),m(),x.current=requestAnimationFrame(()=>{O.observe(S)}))}),O.observe(S)),()=>{w.clear(),cancelAnimationFrame(x.current),C.removeEventListener("resize",w),O&&O.disconnect()}},[y,m,f]),Xt(()=>{m()});const b=w=>{p||m();const S=w.target,C=S.value.length,O=S.value.endsWith(`
169
- `),I=S.selectionStart===C;O&&I&&S.setSelectionRange(C,C),n&&n(w)};return a.jsxs(T.Fragment,{children:[a.jsx("textarea",{value:c,onChange:b,ref:h,rows:s,style:l,...d}),a.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...SE.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(ag.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function Rr({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const aa=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(aa.displayName="FormControlContext");function hr(){return T.useContext(aa)}function lg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function la(e,t=!1){return e&&(lg(e.value)&&e.value!==""||t&&lg(e.defaultValue)&&e.defaultValue!=="")}function CE(e){return e.startAdornment}function EE(e){return pe("MuiInputBase",e)}const Vn=de("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var cg;const ca=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${te(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},da=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},TE=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:s,focused:l,formControl:c,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:h,size:v,startAdornment:g,type:y}=e,f={root:["root",`color${te(r)}`,n&&"disabled",o&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",v&&v!=="medium"&&`size${te(v)}`,u&&"multiline",g&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return ue(f,EE,t)},pa=G("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ca})(he(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Vn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ua=G("input",{name:"MuiInputBase",slot:"Input",overridesResolver:da})(he(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vn.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Vn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),dg=iC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ti=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:l,className:c,color:d,components:p={},componentsProps:u={},defaultValue:h,disabled:v,disableInjectingGlobalStyles:g,endAdornment:y,error:f,fullWidth:m=!1,id:x,inputComponent:b="input",inputProps:w={},inputRef:S,margin:C,maxRows:O,minRows:I,multiline:F=!1,name:D,onBlur:L,onChange:z,onClick:k,onFocus:j,onKeyDown:A,onKeyUp:M,placeholder:_,readOnly:N,renderSuffix:W,rows:U,size:B,slotProps:H={},slots:X={},startAdornment:J,type:Q="text",value:Y,...K}=n,ee=w.value!=null?w.value:Y,{current:oe}=T.useRef(ee!=null),ae=T.useRef(),Z=T.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
170
- `))},[]),re=Je(ae,S,w.ref,Z),[q,ce]=T.useState(!1),ie=hr();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(ie)return ie.registerEffect()},[ie]);const ye=Rr({props:n,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ie?ie.focused:q,T.useEffect(()=>{!ie&&v&&q&&(ce(!1),L&&L())},[ie,v,q,L]);const Le=ie&&ie.onFilled,Oe=ie&&ie.onEmpty,ke=T.useCallback(xe=>{la(xe)?Le&&Le():Oe&&Oe()},[Le,Oe]);Xt(()=>{oe&&ke({value:ee})},[ee,ke,oe]);const Ce=xe=>{j&&j(xe),w.onFocus&&w.onFocus(xe),ie&&ie.onFocus?ie.onFocus(xe):ce(!0)},Ve=xe=>{L&&L(xe),w.onBlur&&w.onBlur(xe),ie&&ie.onBlur?ie.onBlur(xe):ce(!1)},Ne=(xe,...rr)=>{if(!oe){const ct=xe.target||ae.current;if(ct==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":ir(1));ke({value:ct.value})}w.onChange&&w.onChange(xe,...rr),z&&z(xe,...rr)};T.useEffect(()=>{ke(ae.current)},[]);const ne=xe=>{ae.current&&xe.currentTarget===xe.target&&ae.current.focus(),k&&k(xe)};let tt=b,_e=w;F&&tt==="input"&&(U?(process.env.NODE_ENV!=="production"&&(I||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),_e={type:void 0,minRows:U,maxRows:U,..._e}):_e={type:void 0,maxRows:O,minRows:I,..._e},tt=ag);const Zt=xe=>{ke(xe.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};T.useEffect(()=>{ie&&ie.setAdornedStart(!!J)},[ie,J]);const ot={...n,color:ye.color||"primary",disabled:ye.disabled,endAdornment:y,error:ye.error,focused:ye.focused,formControl:ie,fullWidth:m,hiddenLabel:ye.hiddenLabel,multiline:F,size:ye.size,startAdornment:J,type:Q},lt=TE(ot),er=X.root||p.Root||pa,tr=H.root||u.root||{},Ar=X.input||p.Input||ua;return _e={..._e,...H.input??u.input},a.jsxs(T.Fragment,{children:[!g&&typeof dg=="function"&&(cg||(cg=a.jsx(dg,{}))),a.jsxs(er,{...tr,ref:r,onClick:ne,...K,...!Ks(er)&&{ownerState:{...ot,...tr.ownerState}},className:se(lt.root,tr.className,c,N&&"MuiInputBase-readOnly"),children:[J,a.jsx(aa.Provider,{value:null,children:a.jsx(Ar,{"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:l,defaultValue:h,disabled:ye.disabled,id:x,onAnimationStart:Zt,name:D,placeholder:_,readOnly:N,required:ye.required,rows:U,value:ee,onKeyDown:A,onKeyUp:M,type:Q,..._e,...!Ks(Ar)&&{as:tt,ownerState:{...ot,..._e.ownerState}},ref:re,className:se(lt.input,_e.className,N&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ne,onFocus:Ce})}),y,W?W({...ye,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(ti.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:wc,inputProps:i.object,inputRef:vt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function OE(e){return pe("MuiInput",e)}const ri={...Vn,...de("MuiInput",["root","underline","input"])};function kE(e){return pe("MuiOutlinedInput",e)}const gr={...Vn,...de("MuiOutlinedInput",["root","notchedOutline","input"])};function PE(e){return pe("MuiFilledInput",e)}const gn={...Vn,...de("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},IE=ht(a.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),NE=ht(a.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function _E(e){return pe("MuiAvatar",e)}de("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const AE=e=>{const{classes:t,variant:r,colorDefault:n}=e;return ue({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},_E,t)},ME=G("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(he(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),$E=G("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),DE=G(NE,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function FE({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,s]=T.useState(!1);return T.useEffect(()=>{if(!r&&!n)return;s(!1);let l=!0;const c=new Image;return c.onload=()=>{l&&s("loaded")},c.onerror=()=>{l&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=r,n&&(c.srcset=n),()=>{l=!1}},[e,t,r,n]),o}const ni=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:l,component:c="div",slots:d={},slotProps:p={},imgProps:u,sizes:h,src:v,srcSet:g,variant:y="circular",...f}=n;let m=null;const x={...n,component:c,variant:y},b=FE({...u,...typeof p.img=="function"?p.img(x):p.img,src:v,srcSet:g}),w=v||g,S=w&&b!=="error";x.colorDefault=!S,delete x.ownerState;const C=AE(x),[O,I]=ge("root",{ref:r,className:se(C.root,l),elementType:ME,externalForwardedProps:{slots:d,slotProps:p,component:c,...f},ownerState:x}),[F,D]=ge("img",{className:C.img,elementType:$E,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:o,src:v,srcSet:g,sizes:h},ownerState:x}),[L,z]=ge("fallback",{className:C.fallback,elementType:DE,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:x});return S?m=a.jsx(F,{...D}):s||s===0?m=s:w&&o?m=o[0]:m=a.jsx(L,{...z}),a.jsx(O,{...I,children:m})});process.env.NODE_ENV!=="production"&&(ni.propTypes={alt:i.string,children:i.node,classes:i.object,className:i.string,component:i.elementType,imgProps:i.object,sizes:i.string,slotProps:i.shape({fallback:i.oneOfType([i.func,i.object]),img:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({fallback:i.elementType,img:i.elementType,root:i.elementType}),src:i.string,srcSet:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function zE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function pg(e,t,r,n,o){const s=e[t],l=o||t;if(s==null||typeof window>"u")return null;let c;const d=s.type;return typeof d=="function"&&!zE(d)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const yn=Tr(i.element,pg);yn.isRequired=Tr(i.element.isRequired,pg);const jE={entering:{opacity:1},entered:{opacity:1}},fa=T.forwardRef(function(t,r){const n=Ge(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:d,in:p,onEnter:u,onEntered:h,onEntering:v,onExit:g,onExited:y,onExiting:f,style:m,timeout:x=o,TransitionComponent:b=pr,...w}=t,S=T.useRef(null),C=Je(S,hn(c),r),O=A=>M=>{if(A){const _=S.current;M===void 0?A(_):A(_,M)}},I=O(v),F=O((A,M)=>{kh(A);const _=Gs({style:m,timeout:x,easing:d},{mode:"enter"});A.style.webkitTransition=n.transitions.create("opacity",_),A.style.transition=n.transitions.create("opacity",_),u&&u(A,M)}),D=O(h),L=O(f),z=O(A=>{const M=Gs({style:m,timeout:x,easing:d},{mode:"exit"});A.style.webkitTransition=n.transitions.create("opacity",M),A.style.transition=n.transitions.create("opacity",M),g&&g(A)}),k=O(y),j=A=>{s&&s(S.current,A)};return a.jsx(b,{appear:l,in:p,nodeRef:S,onEnter:F,onEntered:D,onEntering:I,onExit:z,onExited:k,onExiting:L,addEndListener:j,timeout:x,...w,children:(A,{ownerState:M,..._})=>T.cloneElement(c,{style:{opacity:0,visibility:A==="exited"&&!p?"hidden":void 0,...jE[A],...m,...c.props.style},ref:C,..._})})});process.env.NODE_ENV!=="production"&&(fa.propTypes={addEndListener:i.func,appear:i.bool,children:yn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function BE(e){return pe("MuiBackdrop",e)}de("MuiBackdrop",["root","invisible"]);const LE=e=>{const{classes:t,invisible:r}=e;return ue({root:["root",r&&"invisible"]},BE,t)},WE=G("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),zc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:l="div",invisible:c=!1,open:d,components:p={},componentsProps:u={},slotProps:h={},slots:v={},TransitionComponent:g,transitionDuration:y,...f}=n,m={...n,component:l,invisible:c},x=LE(m),b={transition:g,root:p.Root,...v},w={...u,...h},S={component:l,slots:b,slotProps:w},[C,O]=ge("root",{elementType:WE,externalForwardedProps:S,className:se(x.root,s),ownerState:m}),[I,F]=ge("transition",{elementType:fa,externalForwardedProps:S,ownerState:m});return a.jsx(I,{in:d,timeout:y,...f,...F,children:a.jsx(C,{"aria-hidden":!0,...O,classes:x,ref:r,children:o})})});process.env.NODE_ENV!=="production"&&(zc.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});const VE=de("MuiBox",["root"]),UE=hc(),E=QS({themeId:Po,defaultTheme:UE,defaultClassName:VE.root,generateClassName:Lf.generate});process.env.NODE_ENV!=="production"&&(E.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function HE(e){return pe("MuiButton",e)}const mn=de("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),ug=T.createContext({});process.env.NODE_ENV!=="production"&&(ug.displayName="ButtonGroupContext");const fg=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(fg.displayName="ButtonGroupButtonContext");const RE=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:s,loading:l,loadingPosition:c,classes:d}=e,p={root:["root",l&&"loading",s,`${s}${te(t)}`,`size${te(o)}`,`${s}Size${te(o)}`,`color${te(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${te(c)}`],startIcon:["icon","startIcon",`iconSize${te(o)}`],endIcon:["icon","endIcon",`iconSize${te(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=ue(p,HE,d);return{...d,...u}},hg=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],qE=G(qo,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${te(r.color)}`],t[`size${te(r.size)}`],t[`${r.variant}Size${te(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(he(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${mn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${mn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${mn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${mn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Tt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${mn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${mn.loading}`]:{color:"transparent"}}}]}})),YE=G("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${te(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...hg]})),GE=G("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${te(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...hg]})),KE=G("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),gg=G("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Se=T.forwardRef(function(t,r){const n=T.useContext(ug),o=T.useContext(fg),s=Lo(n,t),l=fe({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:p="button",className:u,disabled:h=!1,disableElevation:v=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:f,fullWidth:m=!1,id:x,loading:b=null,loadingIndicator:w,loadingPosition:S="center",size:C="medium",startIcon:O,type:I,variant:F="text",...D}=l,L=an(x),z=w??a.jsx(Zs,{"aria-labelledby":L,color:"inherit",size:16}),k={...l,color:d,component:p,disabled:h,disableElevation:v,disableFocusRipple:g,fullWidth:m,loading:b,loadingIndicator:z,loadingPosition:S,size:C,type:I,variant:F},j=RE(k),A=(O||b&&S==="start")&&a.jsx(YE,{className:j.startIcon,ownerState:k,children:O||a.jsx(gg,{className:j.loadingIconPlaceholder,ownerState:k})}),M=(y||b&&S==="end")&&a.jsx(GE,{className:j.endIcon,ownerState:k,children:y||a.jsx(gg,{className:j.loadingIconPlaceholder,ownerState:k})}),_=o||"",N=typeof b=="boolean"?a.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:b&&a.jsx(KE,{className:j.loadingIndicator,ownerState:k,children:z})}):null;return a.jsxs(qE,{ownerState:k,className:se(n.className,j.root,u,_),component:p,disabled:h||b,focusRipple:!g,focusVisibleClassName:se(j.focusVisible,f),ref:r,type:I,id:b?L:x,...D,classes:j,children:[A,S!=="end"&&N,c,S==="end"&&N,M]})});process.env.NODE_ENV!=="production"&&(Se.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function XE(e){return pe("MuiCard",e)}de("MuiCard",["root"]);const JE=e=>{const{classes:t}=e;return ue({root:["root"]},XE,t)},QE=G(Jt,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),$t=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCard"}),{className:o,raised:s=!1,...l}=n,c={...n,raised:s},d=JE(c);return a.jsx(QE,{className:se(d.root,o),elevation:s?8:void 0,ref:r,ownerState:c,...l})});process.env.NODE_ENV!=="production"&&($t.propTypes={children:i.node,classes:i.object,className:i.string,raised:Tr(i.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function ZE(e){return pe("MuiCardContent",e)}de("MuiCardContent",["root"]);const eT=e=>{const{classes:t}=e;return ue({root:["root"]},ZE,t)},tT=G("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),yg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCardContent"}),{className:o,component:s="div",...l}=n,c={...n,component:s},d=eT(c);return a.jsx(tT,{as:s,className:se(d.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(yg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function rT(e){return pe("PrivateSwitchBase",e)}de("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nT=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,s={root:["root",r&&"checked",n&&"disabled",o&&`edge${te(o)}`],input:["input"]};return ue(s,rT,t)},oT=G(qo,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),iT=G("input",{name:"MuiSwitchBase",shouldForwardProp:ft})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ha=T.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:h,inputProps:v,inputRef:g,name:y,onBlur:f,onChange:m,onFocus:x,readOnly:b,required:w=!1,tabIndex:S,type:C,value:O,slots:I={},slotProps:F={},...D}=t,[L,z]=Ho({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),k=hr(),j=Y=>{x&&x(Y),k&&k.onFocus&&k.onFocus(Y)},A=Y=>{f&&f(Y),k&&k.onBlur&&k.onBlur(Y)},M=Y=>{if(Y.nativeEvent.defaultPrevented)return;const K=Y.target.checked;z(K),m&&m(Y,K)};let _=c;k&&typeof _>"u"&&(_=k.disabled);const N=C==="checkbox"||C==="radio",W={...t,checked:L,disabled:_,disableFocusRipple:d,edge:p},U=nT(W),B={slots:I,slotProps:{input:v,...F}},[H,X]=ge("root",{ref:r,elementType:oT,className:U.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...D},getSlotProps:Y=>({...Y,onFocus:K=>{Y.onFocus?.(K),j(K)},onBlur:K=>{Y.onBlur?.(K),A(K)}}),ownerState:W,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:_,role:void 0,tabIndex:null}}),[J,Q]=ge("input",{ref:g,elementType:iT,className:U.input,externalForwardedProps:B,getSlotProps:Y=>({...Y,onChange:K=>{Y.onChange?.(K),M(K)}}),ownerState:W,additionalProps:{autoFocus:n,checked:o,defaultChecked:l,disabled:_,id:N?h:void 0,name:y,readOnly:b,required:w,tabIndex:S,type:C,...C==="checkbox"&&O===void 0?{}:{value:O}}});return a.jsxs(H,{...X,children:[a.jsx(J,{...Q}),L?s:u]})});process.env.NODE_ENV!=="production"&&(ha.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:vt,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const sT=ht(a.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),aT=ht(a.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),lT=ht(a.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function cT(e){return pe("MuiCheckbox",e)}const jc=de("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),dT=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,s={root:["root",r&&"indeterminate",`color${te(n)}`,`size${te(o)}`]},l=ue(s,cT,t);return{...t,...l}},pT=G(ha,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${te(r.size)}`],r.color!=="default"&&t[`color${te(r.color)}`]]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{[`&.${jc.checked}, &.${jc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${jc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),uT=a.jsx(aT,{}),fT=a.jsx(sT,{}),hT=a.jsx(lT,{}),Qe=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=uT,color:s="primary",icon:l=fT,indeterminate:c=!1,indeterminateIcon:d=hT,inputProps:p,size:u="medium",disableRipple:h=!1,className:v,slots:g={},slotProps:y={},...f}=n,m=c?d:l,x=c?d:o,b={...n,disableRipple:h,color:s,indeterminate:c,size:u},w=dT(b),S=y.input??p,[C,O]=ge("root",{ref:r,elementType:pT,className:se(w.root,v),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...f},ownerState:b,additionalProps:{type:"checkbox",icon:T.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:T.cloneElement(x,{fontSize:x.props.fontSize??u}),disableRipple:h,slots:g,slotProps:{input:bh(typeof S=="function"?S(b):S,{"data-indeterminate":c})}}});return a.jsx(C,{...O,classes:w})});process.env.NODE_ENV!=="production"&&(Qe.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function mg(e){return e.substring(2).toLowerCase()}function gT(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function ga(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,l=T.useRef(!1),c=T.useRef(null),d=T.useRef(!1),p=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=Je(hn(t),c),h=Bt(y=>{const f=p.current;p.current=!1;const m=gt(c.current);if(!d.current||!c.current||"clientX"in y&&gT(y,m))return;if(l.current){l.current=!1;return}let x;y.composedPath?x=y.composedPath().includes(c.current):x=!m.documentElement.contains(y.target)||c.current.contains(y.target),!x&&(r||!f)&&o(y)}),v=y=>f=>{p.current=!0;const m=t.props[y];m&&m(f)},g={ref:u};return s!==!1&&(g[s]=v(s)),T.useEffect(()=>{if(s!==!1){const y=mg(s),f=gt(c.current),m=()=>{l.current=!0};return f.addEventListener(y,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(y,h),f.removeEventListener("touchmove",m)}}},[h,s]),n!==!1&&(g[n]=v(n)),T.useEffect(()=>{if(n!==!1){const y=mg(n),f=gt(c.current);return f.addEventListener(y,h),()=>{f.removeEventListener(y,h)}}},[h,n]),T.cloneElement(t,g)}process.env.NODE_ENV!=="production"&&(ga.propTypes={children:yn.isRequired,disableReactTree:i.bool,mouseEvent:i.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:i.func.isRequired,touchEvent:i.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(ga.propTypes=ic(ga.propTypes));function bg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function yT(e){const t=gt(e);return t.body===e?Er(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function oi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vg(e){return parseInt(Er(e).getComputedStyle(e).paddingRight,10)||0}function mT(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function xg(e,t,r,n,o){const s=[t,r,...n];[].forEach.call(e.children,l=>{const c=!s.includes(l),d=!mT(l);c&&d&&oi(l,o)})}function Bc(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function bT(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(yT(n)){const l=bg(Er(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${vg(n)+l}px`;const c=gt(n).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${vg(d)+l}px`})}let s;if(n.parentNode instanceof DocumentFragment)s=gt(n).body;else{const l=n.parentElement,c=Er(n);s=l?.nodeName==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:l,property:c})=>{s?l.style.setProperty(c,s):l.style.removeProperty(c)})}}function vT(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class xT{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&oi(t.modalRef,!1);const o=vT(r);xg(r,t.mount,t.modalRef,o,!0);const s=Bc(this.containers,l=>l.container===r);return s!==-1?(this.containers[s].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=Bc(this.containers,s=>s.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=bT(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=Bc(this.containers,l=>l.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(n,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&oi(t.modalRef,r),xg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&oi(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ii(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const ST=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wT(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function CT(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function ET(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||CT(e))}function TT(e){const t=[],r=[];return Array.from(e.querySelectorAll(ST)).forEach((n,o)=>{const s=wT(n);s===-1||!ET(n)||(s===0?t.push(n):r.push({documentOrder:o,tabIndex:s,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function OT(){return!0}function ya(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:s=TT,isEnabled:l=OT,open:c}=e,d=T.useRef(!1),p=T.useRef(null),u=T.useRef(null),h=T.useRef(null),v=T.useRef(null),g=T.useRef(!1),y=T.useRef(null),f=Je(hn(t),y),m=T.useRef(null);T.useEffect(()=>{!c||!y.current||(g.current=!r)},[r,c]),T.useEffect(()=>{if(!c||!y.current)return;const w=gt(y.current),S=ii(w);return y.current.contains(S)||(y.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
171
- `)),y.current.setAttribute("tabIndex","-1")),g.current&&y.current.focus()),()=>{o||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[c]),T.useEffect(()=>{if(!c||!y.current)return;const w=gt(y.current),S=ii(w),C=F=>{m.current=F,!(n||!l()||F.key!=="Tab")&&S===y.current&&F.shiftKey&&(d.current=!0,u.current&&u.current.focus())},O=()=>{const F=y.current;if(F===null)return;const D=ii(w);if(!w.hasFocus()||!l()||d.current){d.current=!1;return}if(F.contains(D)||n&&D!==p.current&&D!==u.current)return;if(D!==v.current)v.current=null;else if(v.current!==null)return;if(!g.current)return;let L=[];if((D===p.current||D===u.current)&&(L=s(y.current)),L.length>0){const z=!!(m.current?.shiftKey&&m.current?.key==="Tab"),k=L[0],j=L[L.length-1];typeof k!="string"&&typeof j!="string"&&(z?j.focus():k.focus())}else F.focus()};w.addEventListener("focusin",O),w.addEventListener("keydown",C,!0);const I=setInterval(()=>{const F=ii(w);F&&F.tagName==="BODY"&&O()},50);return()=>{clearInterval(I),w.removeEventListener("focusin",O),w.removeEventListener("keydown",C,!0)}},[r,n,o,l,c,s]);const x=w=>{h.current===null&&(h.current=w.relatedTarget),g.current=!0,v.current=w.target;const S=t.props.onFocus;S&&S(w)},b=w=>{h.current===null&&(h.current=w.relatedTarget),g.current=!0};return a.jsxs(T.Fragment,{children:[a.jsx("div",{tabIndex:c?0:-1,onFocus:b,ref:p,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:f,onFocus:x}),a.jsx("div",{tabIndex:c?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ya.propTypes={children:yn,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ya.propTypes=ic(ya.propTypes));function kT(e){return typeof e=="function"?e():e}function PT(e){return e?e.props.hasOwnProperty("in"):!1}const Sg=()=>{},ma=new xT;function IT(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:p,rootRef:u}=e,h=T.useRef({}),v=T.useRef(null),g=T.useRef(null),y=Je(g,u),[f,m]=T.useState(!p),x=PT(c);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const w=()=>gt(v.current),S=()=>(h.current.modalRef=g.current,h.current.mount=v.current,h.current),C=()=>{ma.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},O=Bt(()=>{const M=kT(t)||w().body;ma.add(S(),M),g.current&&C()}),I=()=>ma.isTopModal(S()),F=Bt(M=>{v.current=M,M&&(p&&I()?C():g.current&&oi(g.current,b))}),D=T.useCallback(()=>{ma.remove(S(),b)},[b]);T.useEffect(()=>()=>{D()},[D]),T.useEffect(()=>{p?O():(!x||!o)&&D()},[p,D,x,o,O]);const L=M=>_=>{M.onKeyDown?.(_),!(_.key!=="Escape"||_.which===229||!I())&&(r||(_.stopPropagation(),d&&d(_,"escapeKeyDown")))},z=M=>_=>{M.onClick?.(_),_.target===_.currentTarget&&d&&d(_,"backdropClick")};return{getRootProps:(M={})=>{const _=Xs(e);delete _.onTransitionEnter,delete _.onTransitionExited;const N={..._,...M};return{role:"presentation",...N,onKeyDown:L(N),ref:y}},getBackdropProps:(M={})=>{const _=M;return{"aria-hidden":!0,..._,onClick:z(_),open:p}},getTransitionProps:()=>{const M=()=>{m(!1),s&&s()},_=()=>{m(!0),l&&l(),o&&D()};return{onEnter:yc(M,c?.props.onEnter??Sg),onExited:yc(_,c?.props.onExited??Sg)}},rootRef:y,portalRef:F,isTopModal:I,exited:f,hasTransition:x}}function NT(e){return pe("MuiModal",e)}de("MuiModal",["root","hidden","backdrop"]);const _T=e=>{const{open:t,exited:r,classes:n}=e;return ue({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},NT,n)},AT=G("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(he(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),MT=G(zc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),si=T.forwardRef(function(t,r){const n=fe({name:"MuiModal",props:t}),{BackdropComponent:o=MT,BackdropProps:s,classes:l,className:c,closeAfterTransition:d=!1,children:p,container:u,component:h,components:v={},componentsProps:g={},disableAutoFocus:y=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:x=!1,disableRestoreFocus:b=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:C=!1,onClose:O,onTransitionEnter:I,onTransitionExited:F,open:D,slotProps:L={},slots:z={},theme:k,...j}=n,A={...n,closeAfterTransition:d,disableAutoFocus:y,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:x,disableRestoreFocus:b,disableScrollLock:w,hideBackdrop:S,keepMounted:C},{getRootProps:M,getBackdropProps:_,getTransitionProps:N,portalRef:W,isTopModal:U,exited:B,hasTransition:H}=IT({...A,rootRef:r}),X={...A,exited:B},J=_T(X),Q={};if(p.props.tabIndex===void 0&&(Q.tabIndex="-1"),H){const{onEnter:Z,onExited:re}=N();Q.onEnter=Z,Q.onExited=re}const Y={slots:{root:v.Root,backdrop:v.Backdrop,...z},slotProps:{...g,...L}},[K,ee]=ge("root",{ref:r,elementType:AT,externalForwardedProps:{...Y,...j,component:h},getSlotProps:M,ownerState:X,className:se(c,J?.root,!X.open&&X.exited&&J?.hidden)}),[oe,ae]=ge("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Z=>_({...Z,onClick:re=>{Z?.onClick&&Z.onClick(re)}}),className:se(s?.className,J?.backdrop),ownerState:X});return!C&&!D&&(!H||B)?null:a.jsx(ei,{ref:W,container:u,disablePortal:x,children:a.jsxs(K,{...ee,children:[!S&&o?a.jsx(oe,{...ae}):null,a.jsx(ya,{disableEnforceFocus:f,disableAutoFocus:y,disableRestoreFocus:b,isEnabled:U,open:D,children:T.cloneElement(p,Q)})]})})});process.env.NODE_ENV!=="production"&&(si.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:yn.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([kr,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function $T(e){return pe("MuiDialog",e)}const Lc=de("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Wc=T.createContext({});process.env.NODE_ENV!=="production"&&(Wc.displayName="DialogContext");const DT=G(zc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),FT=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${te(r)}`],paper:["paper",`paperScroll${te(r)}`,`paperWidth${te(String(n))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return ue(l,$T,t)},zT=G(si,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),jT=G("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${te(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),BT=G(Jt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${te(r.scroll)}`],t[`paperWidth${te(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(he(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Lc.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Lc.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Lc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Un=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialog"}),o=Ge(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:u,children:h,className:v,disableEscapeKeyDown:g=!1,fullScreen:y=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:x,onClose:b,open:w,PaperComponent:S=Jt,PaperProps:C={},scroll:O="paper",slots:I={},slotProps:F={},TransitionComponent:D=fa,transitionDuration:L=s,TransitionProps:z,...k}=n,j={...n,disableEscapeKeyDown:g,fullScreen:y,fullWidth:f,maxWidth:m,scroll:O},A=FT(j),M=T.useRef(),_=ce=>{M.current=ce.target===ce.currentTarget},N=ce=>{x&&x(ce),M.current&&(M.current=null,b&&b(ce,"backdropClick"))},W=an(c),U=T.useMemo(()=>({titleId:W}),[W]),B={transition:D,...I},H={transition:z,paper:C,backdrop:u,...F},X={slots:B,slotProps:H},[J,Q]=ge("root",{elementType:zT,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:j,className:se(A.root,v),ref:r}),[Y,K]=ge("backdrop",{elementType:DT,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:j}),[ee,oe]=ge("paper",{elementType:BT,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:j,className:se(A.paper,C.className)}),[ae,Z]=ge("container",{elementType:jT,externalForwardedProps:X,ownerState:j,className:A.container}),[re,q]=ge("transition",{elementType:fa,externalForwardedProps:X,ownerState:j,additionalProps:{appear:!0,in:w,timeout:L,role:"presentation"}});return a.jsx(J,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:L,as:p,...K}},disableEscapeKeyDown:g,onClose:b,open:w,onClick:N,...Q,...k,children:a.jsx(re,{...q,children:a.jsx(ae,{onMouseDown:_,...Z,children:a.jsx(ee,{as:S,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":W,"aria-modal":d,...oe,children:a.jsx(Wc.Provider,{value:U,children:h})})})})})});process.env.NODE_ENV!=="production"&&(Un.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function LT(e){return pe("MuiDialogActions",e)}de("MuiDialogActions",["root","spacing"]);const WT=e=>{const{classes:t,disableSpacing:r}=e;return ue({root:["root",!r&&"spacing"]},LT,t)},VT=G("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ai=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...l}=n,c={...n,disableSpacing:s},d=WT(c);return a.jsx(VT,{className:se(d.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(ai.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function UT(e){return pe("MuiDialogContent",e)}de("MuiDialogContent",["root","dividers"]);function HT(e){return pe("MuiDialogTitle",e)}const RT=de("MuiDialogTitle",["root"]),qT=e=>{const{classes:t,dividers:r}=e;return ue({root:["root",r&&"dividers"]},UT,t)},YT=G("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(he(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${RT.root} + &`]:{paddingTop:0}}}]}))),Hn=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...l}=n,c={...n,dividers:s},d=qT(c);return a.jsx(YT,{className:se(d.root,o),ownerState:c,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Hn.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const GT=e=>{const{classes:t}=e;return ue({root:["root"]},HT,t)},KT=G(P,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Rn=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...l}=n,c=n,d=GT(c),{titleId:p=s}=T.useContext(Wc);return a.jsx(KT,{component:"h2",className:se(d.root,o),ownerState:c,ref:r,variant:"h6",id:s??p,...l})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={children:i.node,classes:i.object,className:i.string,id:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function XT(e){return pe("MuiDivider",e)}const wg=de("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),JT=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:s,orientation:l,textAlign:c,variant:d}=e;return ue({root:["root",t&&"absolute",d,s&&"light",l==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},XT,n)},QT=G("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(he(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ZT=G("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(he(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ke=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:l,orientation:c="horizontal",component:d=s||c==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=d!=="hr"?"separator":void 0,textAlign:v="center",variant:g="fullWidth",...y}=n,f={...n,absolute:o,component:d,flexItem:p,light:u,orientation:c,role:h,textAlign:v,variant:g},m=JT(f);return a.jsx(QT,{as:d,className:se(m.root,l),role:h,ref:r,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...y,children:s?a.jsx(ZT,{className:m.wrapper,ownerState:f,children:s}):null})});Ke&&(Ke.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Ke.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const eO=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:s,hiddenLabel:l,multiline:c}=e,d={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${te(s)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},p=ue(d,PE,t);return{...t,...p}},tO=G(pa,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ca(e,t),!r.disableUnderline&&t.underline]}})(he(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${gn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${gn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${gn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${gn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${gn.disabled}, .${gn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${gn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Tt()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),rO=G(ua,{name:"MuiFilledInput",slot:"Input",overridesResolver:da})(he(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ba=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:v={},type:g="text",...y}=n,f={...n,disableUnderline:o,fullWidth:c,inputComponent:p,multiline:u,type:g},m=eO(n),x={root:{ownerState:f},input:{ownerState:f}},b=h??l?ut(x,h??l):x,w=v.root??s.Root??tO,S=v.input??s.Input??rO;return a.jsx(ti,{slots:{root:w,input:S},slotProps:b,fullWidth:c,inputComponent:p,multiline:u,ref:r,type:g,...y,classes:m})});process.env.NODE_ENV!=="production"&&(ba.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:vt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),ba.muiName="Input";function nO(e){return pe("MuiFormControl",e)}de("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const oO=e=>{const{classes:t,margin:r,fullWidth:n}=e,o={root:["root",r!=="none"&&`margin${te(r)}`,n&&"fullWidth"]};return ue(o,nO,t)},iO=G("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${te(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Cg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormControl"}),{children:o,className:s,color:l="primary",component:c="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:v=!1,margin:g="none",required:y=!1,size:f="medium",variant:m="outlined",...x}=n,b={...n,color:l,component:c,disabled:d,error:p,fullWidth:h,hiddenLabel:v,margin:g,required:y,size:f,variant:m},w=oO(b),[S,C]=T.useState(()=>{let _=!1;return o&&T.Children.forEach(o,N=>{if(!lc(N,["Input","Select"]))return;const W=lc(N,["Select"])?N.props.input:N;W&&CE(W.props)&&(_=!0)}),_}),[O,I]=T.useState(()=>{let _=!1;return o&&T.Children.forEach(o,N=>{lc(N,["Input","Select"])&&(la(N.props,!0)||la(N.props.inputProps,!0))&&(_=!0)}),_}),[F,D]=T.useState(!1);d&&F&&D(!1);const L=u!==void 0&&!d?u:F;let z;const k=T.useRef(!1);process.env.NODE_ENV!=="production"&&(z=()=>(k.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
- `)),k.current=!0,()=>{k.current=!1}));const j=T.useCallback(()=>{I(!0)},[]),A=T.useCallback(()=>{I(!1)},[]),M=T.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:l,disabled:d,error:p,filled:O,focused:L,fullWidth:h,hiddenLabel:v,size:f,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:A,onFilled:j,registerEffect:z,required:y,variant:m}),[S,l,d,p,O,L,h,v,z,A,j,y,f,m]);return a.jsx(aa.Provider,{value:M,children:a.jsx(iO,{as:c,ownerState:b,className:se(w.root,s),ref:r,...x,children:o})})});process.env.NODE_ENV!=="production"&&(Cg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function sO(e){return pe("MuiFormControlLabel",e)}const li=de("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),aO=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:s}=e,l={root:["root",r&&"disabled",`labelPlacement${te(n)}`,o&&"error",s&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return ue(l,sO,t)},lO=G("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${li.label}`]:t.label},t.root,t[`labelPlacement${te(r.labelPlacement)}`]]}})(he(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${li.disabled}`]:{cursor:"default"},[`& .${li.label}`]:{[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),cO=G("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(he(({theme:e})=>({[`&.${li.error}`]:{color:(e.vars||e).palette.error.main}}))),xt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:l={},control:c,disabled:d,disableTypography:p,inputRef:u,label:h,labelPlacement:v="end",name:g,onChange:y,required:f,slots:m={},slotProps:x={},value:b,...w}=n,S=hr(),C=d??c.props.disabled??S?.disabled,O=f??c.props.required,I={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof c.props[M]>"u"&&typeof n[M]<"u"&&(I[M]=n[M])});const F=Rr({props:n,muiFormControl:S,states:["error"]}),D={...n,disabled:C,labelPlacement:v,required:O,error:F.error},L=aO(D),z={slots:m,slotProps:{...l,...x}},[k,j]=ge("typography",{elementType:P,externalForwardedProps:z,ownerState:D});let A=h;return A!=null&&A.type!==P&&!p&&(A=a.jsx(k,{component:"span",...j,className:se(L.label,j?.className),children:A})),a.jsxs(lO,{className:se(L.root,s),ownerState:D,ref:r,...w,children:[T.cloneElement(c,I),O?a.jsxs("div",{children:[A,a.jsxs(cO,{ownerState:D,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):A]})});process.env.NODE_ENV!=="production"&&(xt.propTypes={checked:i.bool,classes:i.object,className:i.string,componentsProps:i.shape({typography:i.object}),control:i.element.isRequired,disabled:i.bool,disableTypography:i.bool,inputRef:vt,label:i.node,labelPlacement:i.oneOf(["bottom","end","start","top"]),name:i.string,onChange:i.func,required:i.bool,slotProps:i.shape({typography:i.oneOfType([i.func,i.object])}),slots:i.shape({typography:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function dO(e){return pe("MuiFormGroup",e)}de("MuiFormGroup",["root","row","error"]);const pO=e=>{const{classes:t,row:r,error:n}=e;return ue({root:["root",r&&"row",n&&"error"]},dO,t)},uO=G("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Eg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1,...l}=n,c=hr(),d=Rr({props:n,muiFormControl:c,states:["error"]}),p={...n,row:s,error:d.error},u=pO(p);return a.jsx(uO,{className:se(u.root,o),ownerState:p,ref:r,...l})});process.env.NODE_ENV!=="production"&&(Eg.propTypes={children:i.node,classes:i.object,className:i.string,row:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function fO(e){return pe("MuiFormHelperText",e)}const Tg=de("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Og;const hO=e=>{const{classes:t,contained:r,size:n,disabled:o,error:s,filled:l,focused:c,required:d}=e,p={root:["root",o&&"disabled",s&&"error",n&&`size${te(n)}`,r&&"contained",c&&"focused",l&&"filled",d&&"required"]};return ue(p,fO,t)},gO=G("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${te(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Tg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Tg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),kg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:l="p",disabled:c,error:d,filled:p,focused:u,margin:h,required:v,variant:g,...y}=n,f=hr(),m=Rr({props:n,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),x={...n,component:l,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete x.ownerState;const b=hO(x);return a.jsx(gO,{as:l,className:se(b.root,s),ref:r,...y,ownerState:x,children:o===" "?Og||(Og=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(kg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function yO(e){return pe("MuiFormLabel",e)}const ci=de("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),mO=e=>{const{classes:t,color:r,focused:n,disabled:o,error:s,filled:l,required:c}=e,d={root:["root",`color${te(r)}`,o&&"disabled",s&&"error",l&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return ue(d,yO,t)},bO=G("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t},style:{[`&.${ci.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ci.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ci.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),vO=G("span",{name:"MuiFormLabel",slot:"Asterisk"})(he(({theme:e})=>({[`&.${ci.error}`]:{color:(e.vars||e).palette.error.main}}))),Pg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:l,component:c="label",disabled:d,error:p,filled:u,focused:h,required:v,...g}=n,y=hr(),f=Rr({props:n,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),m={...n,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},x=mO(m);return a.jsxs(bO,{as:c,ownerState:m,className:se(x.root,s),ref:r,...g,children:[o,f.required&&a.jsxs(vO,{ownerState:m,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Vc(e){return`scale(${e}, ${e**2})`}const xO={entering:{opacity:1,transform:Vc(1)},entered:{opacity:1,transform:"none"}},Uc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),qn=T.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:s,easing:l,in:c,onEnter:d,onEntered:p,onEntering:u,onExit:h,onExited:v,onExiting:g,style:y,timeout:f="auto",TransitionComponent:m=pr,...x}=t,b=pn(),w=T.useRef(),S=Ge(),C=T.useRef(null),O=Je(C,hn(s),r),I=M=>_=>{if(M){const N=C.current;_===void 0?M(N):M(N,_)}},F=I(u),D=I((M,_)=>{kh(M);const{duration:N,delay:W,easing:U}=Gs({style:y,timeout:f,easing:l},{mode:"enter"});let B;f==="auto"?(B=S.transitions.getAutoHeightDuration(M.clientHeight),w.current=B):B=N,M.style.transition=[S.transitions.create("opacity",{duration:B,delay:W}),S.transitions.create("transform",{duration:Uc?B:B*.666,delay:W,easing:U})].join(","),d&&d(M,_)}),L=I(p),z=I(g),k=I(M=>{const{duration:_,delay:N,easing:W}=Gs({style:y,timeout:f,easing:l},{mode:"exit"});let U;f==="auto"?(U=S.transitions.getAutoHeightDuration(M.clientHeight),w.current=U):U=_,M.style.transition=[S.transitions.create("opacity",{duration:U,delay:N}),S.transitions.create("transform",{duration:Uc?U:U*.666,delay:Uc?N:N||U*.333,easing:W})].join(","),M.style.opacity=0,M.style.transform=Vc(.75),h&&h(M)}),j=I(v),A=M=>{f==="auto"&&b.start(w.current||0,M),n&&n(C.current,M)};return a.jsx(m,{appear:o,in:c,nodeRef:C,onEnter:D,onEntered:L,onEntering:F,onExit:k,onExited:j,onExiting:z,addEndListener:A,timeout:f==="auto"?null:f,...x,children:(M,{ownerState:_,...N})=>T.cloneElement(s,{style:{opacity:0,transform:Vc(.75),visibility:M==="exited"&&!c?"hidden":void 0,...xO[M],...y,...s.props.style},ref:O,...N})})});process.env.NODE_ENV!=="production"&&(qn.propTypes={addEndListener:i.func,appear:i.bool,children:yn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),qn&&(qn.muiSupportAuto=!0);const SO=e=>{const{classes:t,disableUnderline:r}=e,o=ue({root:["root",!r&&"underline"],input:["input"]},OE,t);return{...t,...o}},wO=G(pa,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ca(e,t),!r.disableUnderline&&t.underline]}})(he(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ri.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ri.disabled}, .${ri.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ri.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Tt()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),CO=G(ua,{name:"MuiInput",slot:"Input",overridesResolver:da})({}),va=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:h={},type:v="text",...g}=n,y=SO(n),m={root:{ownerState:{disableUnderline:o}}},x=u??l?ut(u??l,m):m,b=h.root??s.Root??wO,w=h.input??s.Input??CO;return a.jsx(ti,{slots:{root:b,input:w},slotProps:x,fullWidth:c,inputComponent:d,multiline:p,ref:r,type:v,...g,classes:y})});process.env.NODE_ENV!=="production"&&(va.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:vt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),va.muiName="Input";function EO(e){return pe("MuiInputLabel",e)}de("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const TO=e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:s,variant:l,required:c}=e,d={root:["root",r&&"formControl",!s&&"animated",o&&"shrink",n&&n!=="medium"&&`size${te(n)}`,l],asterisk:[c&&"asterisk"]},p=ue(d,EO,t);return{...t,...p}},OO=G(Pg,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ci.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(he(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Ig=T.forwardRef(function(t,r){const n=fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:l,variant:c,className:d,...p}=n,u=hr();let h=l;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const v=Rr({props:n,muiFormControl:u,states:["size","variant","required","focused"]}),g={...n,disableAnimation:o,formControl:u,shrink:h,size:v.size,variant:v.variant,required:v.required,focused:v.focused},y=TO(g);return a.jsx(OO,{"data-shrink":h,ref:r,className:se(y.root,d),...p,ownerState:g,classes:y})});process.env.NODE_ENV!=="production"&&(Ig.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});const di=T.createContext({});process.env.NODE_ENV!=="production"&&(di.displayName="ListContext");function kO(e){return pe("MuiList",e)}de("MuiList",["root","padding","dense","subheader"]);const PO=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ue({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},kO,t)},IO=G("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ng=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiList"}),{children:o,className:s,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:p,...u}=n,h=T.useMemo(()=>({dense:c}),[c]),v={...n,component:l,dense:c,disablePadding:d},g=PO(v);return a.jsx(di.Provider,{value:h,children:a.jsxs(IO,{as:l,className:se(g.root,s),ref:r,ownerState:v,...u,children:[p,o]})})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const _g=de("MuiListItemIcon",["root","alignItemsFlexStart"]);function NO(e){return pe("MuiListItemText",e)}const Yn=de("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_O=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:s}=e;return ue({root:["root",r&&"inset",s&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},NO,t)},AO=G("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Yn.primary}`]:t.primary},{[`& .${Yn.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${jh.root}:where(& .${Yn.primary})`]:{display:"block"},[`.${jh.root}:where(& .${Yn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Hc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:v={},slotProps:g={},...y}=n,{dense:f}=T.useContext(di);let m=d??o,x=u;const b={...n,disableTypography:l,inset:c,primary:!!m,secondary:!!x,dense:f},w=_O(b),S={slots:v,slotProps:{primary:p,secondary:h,...g}},[C,O]=ge("root",{className:se(w.root,s),elementType:AO,externalForwardedProps:{...S,...y},ownerState:b,ref:r}),[I,F]=ge("primary",{className:w.primary,elementType:P,externalForwardedProps:S,ownerState:b}),[D,L]=ge("secondary",{className:w.secondary,elementType:P,externalForwardedProps:S,ownerState:b});return m!=null&&m.type!==P&&!l&&(m=a.jsx(I,{variant:f?"body2":"body1",component:F?.variant?void 0:"span",...F,children:m})),x!=null&&x.type!==P&&!l&&(x=a.jsx(D,{variant:"body2",color:"textSecondary",...L,children:x})),a.jsxs(C,{...O,children:[m,x]})});process.env.NODE_ENV!=="production"&&(Hc.propTypes={children:i.node,classes:i.object,className:i.string,disableTypography:i.bool,inset:i.bool,primary:i.node,primaryTypographyProps:i.object,secondary:i.node,secondaryTypographyProps:i.object,slotProps:i.shape({primary:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),secondary:i.oneOfType([i.func,i.object])}),slots:i.shape({primary:i.elementType,root:i.elementType,secondary:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Rc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ag(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mg(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function pi(e,t,r,n,o,s){let l=!1,c=o(e,t,t?r:!1);for(;c;){if(c===e.firstChild){if(l)return!1;l=!0}const d=n?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Mg(c,s)||d)c=o(e,c,r);else return c.focus(),!0}return!1}const $g=T.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...v}=t,g=T.useRef(null),y=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xt(()=>{o&&g.current.focus()},[o]),T.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const C=!g.current.style.width;if(w.clientHeight<g.current.clientHeight&&C){const O=`${bg(Er(w))}px`;g.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,g.current.style.width=`calc(100% + ${O})`}return g.current}}),[]);const f=w=>{const S=g.current,C=w.key;if(w.ctrlKey||w.metaKey||w.altKey){u&&u(w);return}const I=ii(gt(S));if(C==="ArrowDown")w.preventDefault(),pi(S,I,p,d,Rc);else if(C==="ArrowUp")w.preventDefault(),pi(S,I,p,d,Ag);else if(C==="Home")w.preventDefault(),pi(S,null,p,d,Rc);else if(C==="End")w.preventDefault(),pi(S,null,p,d,Ag);else if(C.length===1){const F=y.current,D=C.toLowerCase(),L=performance.now();F.keys.length>0&&(L-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&D!==F.keys[0]&&(F.repeating=!1)),F.lastTime=L,F.keys.push(D);const z=I&&!F.repeating&&Mg(I,F);F.previousKeyMatched&&(z||pi(S,I,!1,d,Rc,F))?w.preventDefault():F.previousKeyMatched=!1}u&&u(w)},m=Je(g,r);let x=-1;T.Children.forEach(l,(w,S)=>{if(!T.isValidElement(w)){x===S&&(x+=1,x>=l.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&mc.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
173
- `)),w.props.disabled||(h==="selectedMenu"&&w.props.selected||x===-1)&&(x=S),x===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=l.length&&(x=-1))});const b=T.Children.map(l,(w,S)=>{if(S===x){const C={};return s&&(C.autoFocus=!0),w.props.tabIndex===void 0&&h==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(w,C)}return w});return a.jsx(Ng,{role:"menu",ref:m,className:c,onKeyDown:f,tabIndex:o?0:-1,...v,children:b})});process.env.NODE_ENV!=="production"&&($g.propTypes={autoFocus:i.bool,autoFocusItem:i.bool,children:i.node,className:i.string,disabledItemsFocusable:i.bool,disableListWrap:i.bool,onKeyDown:i.func,variant:i.oneOf(["menu","selectedMenu"])});function MO(e){return pe("MuiPopover",e)}de("MuiPopover",["root","paper"]);function Dg(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Fg(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function zg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ui(e){return typeof e=="function"?e():e}const $O=e=>{const{classes:t}=e;return ue({root:["root"],paper:["paper"]},MO,t)},DO=G(si,{name:"MuiPopover",slot:"Root"})({}),jg=G(Jt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),qc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:u,container:h,elevation:v=8,marginThreshold:g=16,open:y,PaperProps:f={},slots:m={},slotProps:x={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:S="auto",TransitionProps:C={},disableScrollLock:O=!1,...I}=n,F=T.useRef(),D={...n,anchorOrigin:l,anchorReference:d,elevation:v,marginThreshold:g,transformOrigin:b,TransitionComponent:w,transitionDuration:S,TransitionProps:C},L=$O(D),z=T.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const Z=ui(s),re=Z&&Z.nodeType===1?Z:gt(F.current).body,q=re.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ce=re.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
174
- `))}return{top:q.top+Dg(q,l.vertical),left:q.left+Fg(q,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),k=T.useCallback(Z=>({vertical:Dg(Z,b.vertical),horizontal:Fg(Z,b.horizontal)}),[b.horizontal,b.vertical]),j=T.useCallback(Z=>{const re={width:Z.offsetWidth,height:Z.offsetHeight},q=k(re);if(d==="none")return{top:null,left:null,transformOrigin:zg(q)};const ce=z();let ie=ce.top-q.vertical,ye=ce.left-q.horizontal;const Le=ie+re.height,Oe=ye+re.width,ke=Er(ui(s)),Ce=ke.innerHeight-g,Ve=ke.innerWidth-g;if(g!==null&&ie<g){const Ne=ie-g;ie-=Ne,q.vertical+=Ne}else if(g!==null&&Le>Ce){const Ne=Le-Ce;ie-=Ne,q.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&re.height>Ce&&re.height&&Ce&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${re.height-Ce}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
175
- `)),g!==null&&ye<g){const Ne=ye-g;ye-=Ne,q.horizontal+=Ne}else if(Oe>Ve){const Ne=Oe-Ve;ye-=Ne,q.horizontal+=Ne}return{top:`${Math.round(ie)}px`,left:`${Math.round(ye)}px`,transformOrigin:zg(q)}},[s,d,z,k,g]),[A,M]=T.useState(y),_=T.useCallback(()=>{const Z=F.current;if(!Z)return;const re=j(Z);re.top!==null&&Z.style.setProperty("top",re.top),re.left!==null&&(Z.style.left=re.left),Z.style.transformOrigin=re.transformOrigin,M(!0)},[j]);T.useEffect(()=>(O&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,O,_]);const N=()=>{_()},W=()=>{M(!1)};T.useEffect(()=>{y&&_()}),T.useImperativeHandle(o,()=>y?{updatePosition:()=>{_()}}:null,[y,_]),T.useEffect(()=>{if(!y)return;const Z=yh(()=>{_()}),re=Er(ui(s));return re.addEventListener("resize",Z),()=>{Z.clear(),re.removeEventListener("resize",Z)}},[s,y,_]);let U=S;const B={slots:{transition:w,...m},slotProps:{transition:C,paper:f,...x}},[H,X]=ge("transition",{elementType:qn,externalForwardedProps:B,ownerState:D,getSlotProps:Z=>({...Z,onEntering:(re,q)=>{Z.onEntering?.(re,q),N()},onExited:re=>{Z.onExited?.(re),W()}}),additionalProps:{appear:!0,in:y}});S==="auto"&&!H.muiSupportAuto&&(U=void 0);const J=h||(s?gt(ui(s)).body:void 0),[Q,{slots:Y,slotProps:K,...ee}]=ge("root",{ref:r,elementType:DO,externalForwardedProps:{...B,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:bh(typeof x.backdrop=="function"?x.backdrop(D):x.backdrop,{invisible:!0})},container:J,open:y},ownerState:D,className:se(L.root,u)}),[oe,ae]=ge("paper",{ref:F,className:L.paper,elementType:jg,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:A?void 0:{opacity:0}},ownerState:D});return a.jsx(Q,{...ee,...!Ks(Q)&&{slots:Y,slotProps:K,disableScrollLock:O},children:a.jsx(H,{...X,timeout:U,children:a.jsx(oe,{...ae,children:p})})})});process.env.NODE_ENV!=="production"&&(qc.propTypes={action:vt,anchorEl:Tr(i.oneOfType([kr,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ui(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
159
+ `,mC=typeof ac!="string"?Cl`
160
+ animation: ${ac} 1.4s linear infinite;
161
+ `:null,bC=typeof lc!="string"?Cl`
162
+ animation: ${lc} 1.4s ease-in-out infinite;
163
+ `:null,vC=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ne(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ne(n)}`,o&&"circleDisableShrink"]};return pe(i,yC,t)},xC=Y("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ne(n.color)}`]]}})(ge(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:mC||{animation:`${ac} 1.4s linear infinite`}},...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),SC=Y("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),wC=Y("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ge(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:bC||{animation:`${lc} 1.4s ease-in-out infinite`}}]}))),CC=Y("circle",{name:"MuiCircularProgress",slot:"Track"})(ge(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Fi=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:p,thickness:u=3.6,value:h=0,variant:b="indeterminate",...y}=r,g={...r,color:i,disableShrink:a,size:c,thickness:u,value:h,variant:b,enableTrackSlot:l},f=vC(g),m={},v={},w={};if(b==="determinate"){const S=2*Math.PI*((Ht-u)/2);m.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*S).toFixed(3)}px`,v.transform="rotate(-90deg)"}return d.jsx(xC,{className:ie(f.root,o),style:{width:c,height:c,...v,...p},ownerState:g,ref:n,role:"progressbar",...w,...y,children:d.jsxs(SC,{className:f.svg,ownerState:g,viewBox:`${Ht/2} ${Ht/2} ${Ht} ${Ht}`,children:[l?d.jsx(CC,{className:f.track,ownerState:g,cx:Ht,cy:Ht,r:(Ht-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,d.jsx(wC,{className:f.circle,style:m,ownerState:g,cx:Ht,cy:Ht,r:(Ht-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(Fi.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:En(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function EC(e){return de("MuiIconButton",e)}const hh=ue("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),TC=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${ne(r)}`,o&&`edge${ne(o)}`,`size${ne(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return pe(l,EC,t)},OC=Y(Do,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ne(n.color)}`],n.edge&&t[`edge${ne(n.edge)}`],t[`size${ne(n.size)}`]]}})(ge(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ge(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${hh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${hh.loading}`]:{color:"transparent"}}))),PC=Y("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ln=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:p=!1,size:u="medium",id:h,loading:b=null,loadingIndicator:y,...g}=r,f=Qn(h),m=y??d.jsx(Fi,{"aria-labelledby":f,color:"inherit",size:16}),v={...r,edge:o,color:l,disabled:c,disableFocusRipple:p,loading:b,loadingIndicator:m,size:u},w=TC(v);return d.jsxs(OC,{id:b?f:h,className:ie(w.root,a),centerRipple:!0,focusRipple:!p,disabled:c||b,ref:n,...g,ownerState:v,children:[typeof b=="boolean"&&d.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:d.jsx(PC,{className:w.loadingIndicator,ownerState:v,children:b&&m})}),i]})});process.env.NODE_ENV!=="production"&&(ln.propTypes={children:En(s.node,e=>C.Children.toArray(e.children).some(n=>C.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
164
+ `)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),id:s.string,loading:s.bool,loadingIndicator:s.node,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function kC(e){return de("MuiTypography",e)}const gh=ue("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),NC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},IC=A1(),_C=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return pe(l,kC,a)},AC=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ge(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${ne(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),yh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},H=C.forwardRef(function(t,n){const{color:r,...o}=fe({props:t,name:"MuiTypography"}),i=!NC[r],a=IC({...o,...i&&{color:r}}),{align:l="inherit",className:c,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:b=!1,variant:y="body1",variantMapping:g=yh,...f}=a,m={...a,align:l,color:r,className:c,component:p,gutterBottom:u,noWrap:h,paragraph:b,variant:y,variantMapping:g},v=p||(b?"p":g[y]||yh[y])||"span",w=_C(m);return d.jsx(AC,{as:v,ref:n,className:ie(w.root,c),...f,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(H.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function On(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Ct="top",Rt="bottom",Lt="right",Et="left",cc="auto",Fo=[Ct,Rt,Lt,Et],Ir="start",jo="end",MC="clippingParents",mh="viewport",Ro="popper",$C="reference",bh=Fo.reduce(function(e,t){return e.concat([t+"-"+Ir,t+"-"+jo])},[]),vh=[].concat(Fo,[cc]).reduce(function(e,t){return e.concat([t,t+"-"+Ir,t+"-"+jo])},[]),DC="beforeRead",FC="read",jC="afterRead",RC="beforeMain",LC="main",BC="afterMain",zC="beforeWrite",WC="write",VC="afterWrite",UC=[DC,FC,jC,RC,LC,BC,zC,WC,VC];function cn(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rr(e){var t=It(e).Element;return e instanceof t||e instanceof Element}function Bt(e){var t=It(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uc(e){if(typeof ShadowRoot>"u")return!1;var t=It(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qC(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Bt(i)||!cn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function HC(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,p){return c[p]="",c},{});!Bt(o)||!cn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const YC={name:"applyStyles",enabled:!0,phase:"write",fn:qC,effect:HC,requires:["computeStyles"]};function un(e){return e.split("-")[0]}var or=Math.max,ji=Math.min,_r=Math.round;function dc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xh(){return!/^((?!chrome|android).)*safari/i.test(dc())}function Ar(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Bt(e)&&(o=e.offsetWidth>0&&_r(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_r(r.height)/e.offsetHeight||1);var a=rr(e)?It(e):window,l=a.visualViewport,c=!xh()&&n,p=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/i,h=r.width/o,b=r.height/i;return{width:h,height:b,top:u,right:p+h,bottom:u+b,left:p,x:p,y:u}}function pc(e){var t=Ar(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Sh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pn(e){return It(e).getComputedStyle(e)}function KC(e){return["table","td","th"].indexOf(cn(e))>=0}function Rn(e){return((rr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ri(e){return cn(e)==="html"?e:e.assignedSlot||e.parentNode||(uc(e)?e.host:null)||Rn(e)}function wh(e){return!Bt(e)||Pn(e).position==="fixed"?null:e.offsetParent}function GC(e){var t=/firefox/i.test(dc()),n=/Trident/i.test(dc());if(n&&Bt(e)){var r=Pn(e);if(r.position==="fixed")return null}var o=Ri(e);for(uc(o)&&(o=o.host);Bt(o)&&["html","body"].indexOf(cn(o))<0;){var i=Pn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Lo(e){for(var t=It(e),n=wh(e);n&&KC(n)&&Pn(n).position==="static";)n=wh(n);return n&&(cn(n)==="html"||cn(n)==="body"&&Pn(n).position==="static")?t:n||GC(e)||t}function fc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bo(e,t,n){return or(e,ji(t,n))}function JC(e,t,n){var r=Bo(e,t,n);return r>n?n:r}function Ch(){return{top:0,right:0,bottom:0,left:0}}function Eh(e){return Object.assign({},Ch(),e)}function Th(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var XC=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Eh(typeof t!="number"?t:Th(t,Fo))};function QC(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=un(n.placement),c=fc(l),p=[Et,Lt].indexOf(l)>=0,u=p?"height":"width";if(!(!i||!a)){var h=XC(o.padding,n),b=pc(i),y=c==="y"?Ct:Et,g=c==="y"?Rt:Lt,f=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],v=Lo(i),w=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,S=f/2-m/2,x=h[y],E=w-b[u]-h[g],O=w/2-b[u]/2+S,N=Bo(x,O,E),D=c;n.modifiersData[r]=(t={},t[D]=N,t.centerOffset=N-O,t)}}function ZC(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Sh(t.elements.popper,o)&&(t.elements.arrow=o))}const eE={name:"arrow",enabled:!0,phase:"main",fn:QC,effect:ZC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mr(e){return e.split("-")[1]}var tE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nE(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:_r(n*o)/o||0,y:_r(r*o)/o||0}}function Oh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,b=a.x,y=b===void 0?0:b,g=a.y,f=g===void 0?0:g,m=typeof u=="function"?u({x:y,y:f}):{x:y,y:f};y=m.x,f=m.y;var v=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Et,x=Ct,E=window;if(p){var O=Lo(n),N="clientHeight",D="clientWidth";if(O===It(n)&&(O=Rn(n),Pn(O).position!=="static"&&l==="absolute"&&(N="scrollHeight",D="scrollWidth")),O=O,o===Ct||(o===Et||o===Lt)&&i===jo){x=Rt;var A=h&&O===E&&E.visualViewport?E.visualViewport.height:O[N];f-=A-r.height,f*=c?1:-1}if(o===Et||(o===Ct||o===Rt)&&i===jo){S=Lt;var L=h&&O===E&&E.visualViewport?E.visualViewport.width:O[D];y-=L-r.width,y*=c?1:-1}}var _=Object.assign({position:l},p&&tE),T=u===!0?nE({x:y,y:f},It(n)):{x:y,y:f};if(y=T.x,f=T.y,c){var $;return Object.assign({},_,($={},$[x]=w?"0":"",$[S]=v?"0":"",$.transform=(E.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",$))}return Object.assign({},_,(t={},t[x]=w?f+"px":"",t[S]=v?y+"px":"",t.transform="",t))}function rE(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,p={placement:un(t.placement),variation:Mr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Oh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const oE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rE,data:{}};var Li={passive:!0};function sE(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=It(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(u){u.addEventListener("scroll",n.update,Li)}),l&&c.addEventListener("resize",n.update,Li),function(){i&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Li)}),l&&c.removeEventListener("resize",n.update,Li)}}const iE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:sE,data:{}};var aE={left:"right",right:"left",bottom:"top",top:"bottom"};function Bi(e){return e.replace(/left|right|bottom|top/g,function(t){return aE[t]})}var lE={start:"end",end:"start"};function Ph(e){return e.replace(/start|end/g,function(t){return lE[t]})}function hc(e){var t=It(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function gc(e){return Ar(Rn(e)).left+hc(e).scrollLeft}function cE(e,t){var n=It(e),r=Rn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;var p=xh();(p||!p&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l+gc(e),y:c}}function uE(e){var t,n=Rn(e),r=hc(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=or(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=or(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+gc(e),c=-r.scrollTop;return Pn(o||n).direction==="rtl"&&(l+=or(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function yc(e){var t=Pn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function kh(e){return["html","body","#document"].indexOf(cn(e))>=0?e.ownerDocument.body:Bt(e)&&yc(e)?e:kh(Ri(e))}function zo(e,t){var n;t===void 0&&(t=[]);var r=kh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=It(r),a=o?[i].concat(i.visualViewport||[],yc(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(zo(Ri(a)))}function mc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dE(e,t){var n=Ar(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Nh(e,t,n){return t===mh?mc(cE(e,n)):rr(t)?dE(t,n):mc(uE(Rn(e)))}function pE(e){var t=zo(Ri(e)),n=["absolute","fixed"].indexOf(Pn(e).position)>=0,r=n&&Bt(e)?Lo(e):e;return rr(r)?t.filter(function(o){return rr(o)&&Sh(o,r)&&cn(o)!=="body"}):[]}function fE(e,t,n,r){var o=t==="clippingParents"?pE(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(c,p){var u=Nh(e,p,r);return c.top=or(u.top,c.top),c.right=ji(u.right,c.right),c.bottom=ji(u.bottom,c.bottom),c.left=or(u.left,c.left),c},Nh(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ih(e){var t=e.reference,n=e.element,r=e.placement,o=r?un(r):null,i=r?Mr(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Ct:c={x:a,y:t.y-n.height};break;case Rt:c={x:a,y:t.y+t.height};break;case Lt:c={x:t.x+t.width,y:l};break;case Et:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var p=o?fc(o):null;if(p!=null){var u=p==="y"?"height":"width";switch(i){case Ir:c[p]=c[p]-(t[u]/2-n[u]/2);break;case jo:c[p]=c[p]+(t[u]/2-n[u]/2);break}}return c}function Wo(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?MC:l,p=n.rootBoundary,u=p===void 0?mh:p,h=n.elementContext,b=h===void 0?Ro:h,y=n.altBoundary,g=y===void 0?!1:y,f=n.padding,m=f===void 0?0:f,v=Eh(typeof m!="number"?m:Th(m,Fo)),w=b===Ro?$C:Ro,S=e.rects.popper,x=e.elements[g?w:b],E=fE(rr(x)?x:x.contextElement||Rn(e.elements.popper),c,u,a),O=Ar(e.elements.reference),N=Ih({reference:O,element:S,placement:o}),D=mc(Object.assign({},S,N)),A=b===Ro?D:O,L={top:E.top-A.top+v.top,bottom:A.bottom-E.bottom+v.bottom,left:E.left-A.left+v.left,right:A.right-E.right+v.right},_=e.modifiersData.offset;if(b===Ro&&_){var T=_[o];Object.keys(L).forEach(function($){var I=[Lt,Rt].indexOf($)>=0?1:-1,j=[Ct,Rt].indexOf($)>=0?"y":"x";L[$]+=T[j]*I})}return L}function hE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,p=c===void 0?vh:c,u=Mr(r),h=u?l?bh:bh.filter(function(g){return Mr(g)===u}):Fo,b=h.filter(function(g){return p.indexOf(g)>=0});b.length===0&&(b=h);var y=b.reduce(function(g,f){return g[f]=Wo(e,{placement:f,boundary:o,rootBoundary:i,padding:a})[un(f)],g},{});return Object.keys(y).sort(function(g,f){return y[g]-y[f]})}function gE(e){if(un(e)===cc)return[];var t=Bi(e);return[Ph(e),t,Ph(t)]}function yE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,p=n.padding,u=n.boundary,h=n.rootBoundary,b=n.altBoundary,y=n.flipVariations,g=y===void 0?!0:y,f=n.allowedAutoPlacements,m=t.options.placement,v=un(m),w=v===m,S=c||(w||!g?[Bi(m)]:gE(m)),x=[m].concat(S).reduce(function(ee,K){return ee.concat(un(K)===cc?hE(t,{placement:K,boundary:u,rootBoundary:h,padding:p,flipVariations:g,allowedAutoPlacements:f}):K)},[]),E=t.rects.reference,O=t.rects.popper,N=new Map,D=!0,A=x[0],L=0;L<x.length;L++){var _=x[L],T=un(_),$=Mr(_)===Ir,I=[Ct,Rt].indexOf(T)>=0,j=I?"width":"height",P=Wo(t,{placement:_,boundary:u,rootBoundary:h,altBoundary:b,padding:p}),k=I?$?Lt:Et:$?Rt:Ct;E[j]>O[j]&&(k=Bi(k));var B=Bi(k),z=[];if(i&&z.push(P[T]<=0),l&&z.push(P[k]<=0,P[B]<=0),z.every(function(ee){return ee})){A=_,D=!1;break}N.set(_,z)}if(D)for(var M=g?3:1,V=function(K){var Q=x.find(function(Z){var oe=N.get(Z);if(oe)return oe.slice(0,K).every(function(se){return se})});if(Q)return A=Q,"break"},G=M;G>0;G--){var X=V(G);if(X==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const mE={name:"flip",enabled:!0,phase:"main",fn:yE,requiresIfExists:["offset"],data:{_skip:!1}};function _h(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ah(e){return[Ct,Lt,Rt,Et].some(function(t){return e[t]>=0})}function bE(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Wo(t,{elementContext:"reference"}),l=Wo(t,{altBoundary:!0}),c=_h(a,r),p=_h(l,o,i),u=Ah(c),h=Ah(p);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const vE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bE};function xE(e,t,n){var r=un(e),o=[Et,Ct].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Et,Lt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function SE(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=vh.reduce(function(u,h){return u[h]=xE(h,t.rects,i),u},{}),l=a[t.placement],c=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}const wE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SE};function CE(e){var t=e.state,n=e.name;t.modifiersData[n]=Ih({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const EE={name:"popperOffsets",enabled:!0,phase:"read",fn:CE,data:{}};function TE(e){return e==="x"?"y":"x"}function OE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.padding,b=n.tether,y=b===void 0?!0:b,g=n.tetherOffset,f=g===void 0?0:g,m=Wo(t,{boundary:c,rootBoundary:p,padding:h,altBoundary:u}),v=un(t.placement),w=Mr(t.placement),S=!w,x=fc(v),E=TE(x),O=t.modifiersData.popperOffsets,N=t.rects.reference,D=t.rects.popper,A=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(O){if(i){var $,I=x==="y"?Ct:Et,j=x==="y"?Rt:Lt,P=x==="y"?"height":"width",k=O[x],B=k+m[I],z=k-m[j],M=y?-D[P]/2:0,V=w===Ir?N[P]:D[P],G=w===Ir?-D[P]:-N[P],X=t.elements.arrow,ee=y&&X?pc(X):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ch(),Q=K[I],Z=K[j],oe=Bo(0,N[P],ee[P]),se=S?N[P]/2-M-oe-Q-L.mainAxis:V-oe-Q-L.mainAxis,J=S?-N[P]/2+M+oe+Z+L.mainAxis:G+oe+Z+L.mainAxis,te=t.elements.arrow&&Lo(t.elements.arrow),q=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,le=($=_?.[x])!=null?$:0,re=k+se-le-q,he=k+J-le,qe=Bo(y?ji(B,re):B,k,y?or(z,he):z);O[x]=qe,T[x]=qe-k}if(l){var ke,Ce=x==="x"?Ct:Et,Je=x==="x"?Rt:Lt,We=O[E],ye=E==="y"?"height":"width",ae=We+m[Ce],Re=We-m[Je],me=[Ct,Et].indexOf(v)!==-1,Te=(ke=_?.[E])!=null?ke:0,Be=me?ae:We-N[ye]-D[ye]-Te+L.altAxis,et=me?We+N[ye]+D[ye]-Te-L.altAxis:Re,Kt=y&&me?JC(Be,We,et):Bo(y?Be:ae,We,y?et:Re);O[E]=Kt,T[E]=Kt-We}t.modifiersData[r]=T}}const PE={name:"preventOverflow",enabled:!0,phase:"main",fn:OE,requiresIfExists:["offset"]};function kE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function NE(e){return e===It(e)||!Bt(e)?hc(e):kE(e)}function IE(e){var t=e.getBoundingClientRect(),n=_r(t.width)/e.offsetWidth||1,r=_r(t.height)/e.offsetHeight||1;return n!==1||r!==1}function _E(e,t,n){n===void 0&&(n=!1);var r=Bt(t),o=Bt(t)&&IE(t),i=Rn(t),a=Ar(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((cn(t)!=="body"||yc(i))&&(l=NE(t)),Bt(t)?(c=Ar(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=gc(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function AE(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function ME(e){var t=AE(e);return UC.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function $E(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mh={placement:"bottom",modifiers:[],strategy:"absolute"};function $h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function FE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Mh:o;return function(l,c,p){p===void 0&&(p=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mh,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],b=!1,y={state:u,setOptions:function(v){var w=typeof v=="function"?v(u.options):v;f(),u.options=Object.assign({},i,u.options,w),u.scrollParents={reference:rr(l)?zo(l):l.contextElement?zo(l.contextElement):[],popper:zo(c)};var S=ME(DE([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(x){return x.enabled}),g(),y.update()},forceUpdate:function(){if(!b){var v=u.elements,w=v.reference,S=v.popper;if($h(w,S)){u.rects={reference:_E(w,Lo(S),u.options.strategy==="fixed"),popper:pc(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var E=u.orderedModifiers[x],O=E.fn,N=E.options,D=N===void 0?{}:N,A=E.name;typeof O=="function"&&(u=O({state:u,options:D,name:A,instance:y})||u)}}}},update:$E(function(){return new Promise(function(m){y.forceUpdate(),m(u)})}),destroy:function(){f(),b=!0}};if(!$h(l,c))return y;y.setOptions(p).then(function(m){!b&&p.onFirstUpdate&&p.onFirstUpdate(m)});function g(){u.orderedModifiers.forEach(function(m){var v=m.name,w=m.options,S=w===void 0?{}:w,x=m.effect;if(typeof x=="function"){var E=x({state:u,name:v,instance:y,options:S}),O=function(){};h.push(E||O)}})}function f(){h.forEach(function(m){return m()}),h=[]}return y}}var jE=[iE,EE,oE,YC,wE,mE,PE,eE,vE],RE=FE({defaultModifiers:jE});function Dh(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:ih(n,r),{props:l,internalRef:c}=lh({...i,externalSlotProps:a}),p=Ze(c,a?.ref,e.additionalProps?.ref);return sh(t,{...l,ref:p},r)}function sr(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function LE(e){return typeof e=="function"?e():e}const Vo=C.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=C.useState(null),c=Ze(C.isValidElement(r)?sr(r):null,n);if(qt(()=>{i||l(LE(o)||document.body)},[o,i]),qt(()=>{if(a&&!i)return Kf(n,a),()=>{Kf(n,null)}},[n,a,i]),i){if(C.isValidElement(r)){const p={ref:c};return C.cloneElement(r,p)}return r}return a&&Zg.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Vo.propTypes={children:s.node,container:s.oneOfType([On,s.func]),disablePortal:s.bool}),process.env.NODE_ENV!=="production"&&(Vo.propTypes=zl(Vo.propTypes));function BE(e){return de("MuiPopper",e)}ue("MuiPopper",["root"]);function zE(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function zi(e){return typeof e=="function"?e():e}function Wi(e){return e.nodeType!==void 0}function WE(e){return!Wi(e)}const VE=e=>{const{classes:t}=e;return pe({root:["root"]},BE,t)},UE={},qE=C.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:c,placement:p,popperOptions:u,popperRef:h,slotProps:b={},slots:y={},TransitionProps:g,ownerState:f,...m}=t,v=C.useRef(null),w=Ze(v,n),S=C.useRef(null),x=Ze(S,h),E=C.useRef(x);qt(()=>{E.current=x},[x]),C.useImperativeHandle(h,()=>S.current,[]);const O=zE(p,i),[N,D]=C.useState(O),[A,L]=C.useState(zi(r));C.useEffect(()=>{S.current&&S.current.forceUpdate()}),C.useEffect(()=>{r&&L(zi(r))},[r]),qt(()=>{if(!A||!c)return;const j=B=>{D(B.placement)};if(process.env.NODE_ENV!=="production"&&A&&Wi(A)&&A.nodeType===1){const B=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
165
+ `))}let P=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{j(B)}}];l!=null&&(P=P.concat(l)),u&&u.modifiers!=null&&(P=P.concat(u.modifiers));const k=RE(A,v.current,{placement:O,...u,modifiers:P});return E.current(k),()=>{k.destroy(),E.current(null)}},[A,a,l,c,u,O]);const _={placement:N};g!==null&&(_.TransitionProps=g);const T=VE(t),$=y.root??"div",I=Dh({elementType:$,externalSlotProps:b.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:T.root});return d.jsx($,{...I,children:typeof o=="function"?o(_):o})}),Fh=C.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:b=UE,popperRef:y,style:g,transition:f=!1,slotProps:m={},slots:v={},...w}=t,[S,x]=C.useState(!0),E=()=>{x(!1)},O=()=>{x(!0)};if(!c&&!u&&(!f||S))return null;let N;if(i)N=i;else if(r){const L=zi(r);N=L&&Wi(L)?pt(L).body:pt(null).body}const D=!u&&c&&(!f||S)?"none":void 0,A=f?{in:u,onEnter:E,onExited:O}:void 0;return d.jsx(Vo,{disablePortal:l,container:N,children:d.jsx(qE,{anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:n,open:f?!S:u,placement:h,popperOptions:b,popperRef:y,slotProps:m,slots:v,...w,style:{position:"fixed",top:0,left:0,display:D,...g},TransitionProps:A,children:o})})});process.env.NODE_ENV!=="production"&&(Fh.propTypes={anchorEl:En(s.oneOfType([On,s.object,s.func]),e=>{if(e.open){const t=zi(e.anchorEl);if(t&&Wi(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
166
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||WE(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
167
+ `))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([On,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:gt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const HE=Y(Fh,{name:"MuiPopper",slot:"Root"})({}),bc=C.forwardRef(function(t,n){const r=Wl(),o=fe({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:p,disablePortal:u,keepMounted:h,modifiers:b,open:y,placement:g,popperOptions:f,popperRef:m,transition:v,slots:w,slotProps:S,...x}=o,E=w?.root??l?.Root,O={anchorEl:i,container:p,disablePortal:u,keepMounted:h,modifiers:b,open:y,placement:g,popperOptions:f,popperRef:m,transition:v,...x};return d.jsx(HE,{as:a,direction:r?"rtl":"ltr",slots:{root:E},slotProps:S??c,...O,ref:n})});process.env.NODE_ENV!=="production"&&(bc.propTypes={anchorEl:s.oneOfType([On,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([On,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:gt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function Vi(e){return parseInt(e,10)||0}const YE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function KE(e){for(const t in e)return!1;return!0}function jh(e){return KE(e)||e.outerHeightStyle===0&&!e.overflowing}const Rh=C.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l,...c}=t,{current:p}=C.useRef(l!=null),u=C.useRef(null),h=Ze(n,u),b=C.useRef(null),y=C.useRef(null),g=C.useCallback(()=>{const S=u.current,x=y.current;if(!S||!x)return;const O=Cn(S).getComputedStyle(S);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=O.width,x.value=S.value||t.placeholder||"x",x.value.slice(-1)===`
168
+ `&&(x.value+=" ");const N=O.boxSizing,D=Vi(O.paddingBottom)+Vi(O.paddingTop),A=Vi(O.borderBottomWidth)+Vi(O.borderTopWidth),L=x.scrollHeight;x.value="x";const _=x.scrollHeight;let T=L;i&&(T=Math.max(Number(i)*_,T)),o&&(T=Math.min(Number(o)*_,T)),T=Math.max(T,_);const $=T+(N==="border-box"?D+A:0),I=Math.abs(T-L)<=1;return{outerHeightStyle:$,overflowing:I}},[o,i,t.placeholder]),f=Ft(()=>{const S=u.current,x=g();if(!S||!x||jh(x))return!1;const E=x.outerHeightStyle;return b.current!=null&&b.current!==E}),m=C.useCallback(()=>{const S=u.current,x=g();if(!S||!x||jh(x))return;const E=x.outerHeightStyle;b.current!==E&&(b.current=E,S.style.height=`${E}px`),S.style.overflow=x.overflowing?"hidden":""},[g]),v=C.useRef(-1);qt(()=>{const S=Yf(m),x=u?.current;if(!x)return;const E=Cn(x);E.addEventListener("resize",S);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{f()&&(O.unobserve(x),cancelAnimationFrame(v.current),m(),v.current=requestAnimationFrame(()=>{O.observe(x)}))}),O.observe(x)),()=>{S.clear(),cancelAnimationFrame(v.current),E.removeEventListener("resize",S),O&&O.disconnect()}},[g,m,f]),qt(()=>{m()});const w=S=>{p||m();const x=S.target,E=x.value.length,O=x.value.endsWith(`
169
+ `),N=x.selectionStart===E;O&&N&&x.setSelectionRange(E,E),r&&r(S)};return d.jsxs(C.Fragment,{children:[d.jsx("textarea",{value:l,onChange:w,ref:h,rows:i,style:a,...c}),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...YE.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Rh.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function Ln({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const Ui=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ui.displayName="FormControlContext");function dn(){return C.useContext(Ui)}function Lh(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function qi(e,t=!1){return e&&(Lh(e.value)&&e.value!==""||t&&Lh(e.defaultValue)&&e.defaultValue!=="")}function GE(e){return e.startAdornment}function JE(e){return de("MuiInputBase",e)}const $r=ue("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Bh;const Hi=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ne(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Yi=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},XE=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:p,multiline:u,readOnly:h,size:b,startAdornment:y,type:g}=e,f={root:["root",`color${ne(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",b&&b!=="medium"&&`size${ne(b)}`,u&&"multiline",y&&"adornedStart",i&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",b==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",h&&"readOnly"]};return pe(f,JE,t)},Ki=Y("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Hi})(ge(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${$r.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Gi=Y("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Yi})(ge(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$r.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${$r.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),zh=_1({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Uo=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,color:c,components:p={},componentsProps:u={},defaultValue:h,disabled:b,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:m=!1,id:v,inputComponent:w="input",inputProps:S={},inputRef:x,margin:E,maxRows:O,minRows:N,multiline:D=!1,name:A,onBlur:L,onChange:_,onClick:T,onFocus:$,onKeyDown:I,onKeyUp:j,placeholder:P,readOnly:k,renderSuffix:B,rows:z,size:M,slotProps:V={},slots:G={},startAdornment:X,type:ee="text",value:K,...Q}=r,Z=S.value!=null?S.value:K,{current:oe}=C.useRef(Z!=null),se=C.useRef(),J=C.useCallback(we=>{process.env.NODE_ENV!=="production"&&we&&we.nodeName!=="INPUT"&&!we.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
170
+ `))},[]),te=Ze(se,x,S.ref,J),[q,le]=C.useState(!1),re=dn();process.env.NODE_ENV!=="production"&&C.useEffect(()=>{if(re)return re.registerEffect()},[re]);const he=Ln({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=re?re.focused:q,C.useEffect(()=>{!re&&b&&q&&(le(!1),L&&L())},[re,b,q,L]);const qe=re&&re.onFilled,ke=re&&re.onEmpty,Ce=C.useCallback(we=>{qi(we)?qe&&qe():ke&&ke()},[qe,ke]);qt(()=>{oe&&Ce({value:Z})},[Z,Ce,oe]);const Je=we=>{$&&$(we),S.onFocus&&S.onFocus(we),re&&re.onFocus?re.onFocus(we):le(!0)},We=we=>{L&&L(we),S.onBlur&&S.onBlur(we),re&&re.onBlur?re.onBlur(we):le(!1)},ye=(we,...Jt)=>{if(!oe){const it=we.target||se.current;if(it==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Zt(1));Ce({value:it.value})}S.onChange&&S.onChange(we,...Jt),_&&_(we,...Jt)};C.useEffect(()=>{Ce(se.current)},[]);const ae=we=>{se.current&&we.currentTarget===we.target&&se.current.focus(),T&&T(we)};let Re=w,me=S;D&&Re==="input"&&(z?(process.env.NODE_ENV!=="production"&&(N||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),me={type:void 0,minRows:z,maxRows:z,...me}):me={type:void 0,maxRows:O,minRows:N,...me},Re=Rh);const Te=we=>{Ce(we.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};C.useEffect(()=>{re&&re.setAdornedStart(!!X)},[re,X]);const Be={...r,color:he.color||"primary",disabled:he.disabled,endAdornment:g,error:he.error,focused:he.focused,formControl:re,fullWidth:m,hiddenLabel:he.hiddenLabel,multiline:D,size:he.size,startAdornment:X,type:ee},et=XE(Be),Kt=G.root||p.Root||Ki,Gt=V.root||u.root||{},kn=G.input||p.Input||Gi;return me={...me,...V.input??u.input},d.jsxs(C.Fragment,{children:[!y&&typeof zh=="function"&&(Bh||(Bh=d.jsx(zh,{}))),d.jsxs(Kt,{...Gt,ref:n,onClick:ae,...Q,...!Ai(Kt)&&{ownerState:{...Be,...Gt.ownerState}},className:ie(et.root,Gt.className,l,k&&"MuiInputBase-readOnly"),children:[X,d.jsx(Ui.Provider,{value:null,children:d.jsx(kn,{"aria-invalid":he.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:h,disabled:he.disabled,id:v,onAnimationStart:Te,name:A,placeholder:P,readOnly:k,required:he.required,rows:z,value:Z,onKeyDown:I,onKeyUp:j,type:ee,...me,...!Ai(kn)&&{as:Re,ownerState:{...Be,...me.ownerState}},ref:te,className:ie(et.input,me.className,k&&"MuiInputBase-readOnly"),onBlur:We,onChange:ye,onFocus:Je})}),g,B?B({...he,startAdornment:X}):null]})]})});process.env.NODE_ENV!=="production"&&(Uo.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:oc,inputProps:s.object,inputRef:gt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function QE(e){return de("MuiInput",e)}const qo={...$r,...ue("MuiInput",["root","underline","input"])};function ZE(e){return de("MuiOutlinedInput",e)}const pn={...$r,...ue("MuiOutlinedInput",["root","notchedOutline","input"])};function eT(e){return de("MuiFilledInput",e)}const ir={...$r,...ue("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},tT=Ue(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nT=Ue(d.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function rT(e){return de("MuiAvatar",e)}ue("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const oT=e=>{const{classes:t,variant:n,colorDefault:r}=e;return pe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},rT,t)},sT=Y("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(ge(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),iT=Y("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),aT=Y(nT,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function lT({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=C.useState(!1);return C.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&i("loaded")},l.onerror=()=>{a&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Ho=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:l="div",slots:c={},slotProps:p={},imgProps:u,sizes:h,src:b,srcSet:y,variant:g="circular",...f}=r;let m=null;const v={...r,component:l,variant:g},w=lT({...u,...typeof p.img=="function"?p.img(v):p.img,src:b,srcSet:y}),S=b||y,x=S&&w!=="error";v.colorDefault=!x,delete v.ownerState;const E=oT(v),[O,N]=be("root",{ref:n,className:ie(E.root,a),elementType:sT,externalForwardedProps:{slots:c,slotProps:p,component:l,...f},ownerState:v}),[D,A]=be("img",{className:E.img,elementType:iT,externalForwardedProps:{slots:c,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:o,src:b,srcSet:y,sizes:h},ownerState:v}),[L,_]=be("fallback",{className:E.fallback,elementType:aT,externalForwardedProps:{slots:c,slotProps:p},shouldForwardComponentProp:!0,ownerState:v});return x?m=d.jsx(D,{...A}):i||i===0?m=i:S&&o?m=o[0]:m=d.jsx(L,{..._}),d.jsx(O,{...N,children:m})});process.env.NODE_ENV!=="production"&&(Ho.propTypes={alt:s.string,children:s.node,classes:s.object,className:s.string,component:s.elementType,imgProps:s.object,sizes:s.string,slotProps:s.shape({fallback:s.oneOfType([s.func,s.object]),img:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({fallback:s.elementType,img:s.elementType,root:s.elementType}),src:s.string,srcSet:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rounded","square"]),s.string])});function cT(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Wh(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!cT(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ar=En(s.element,Wh);ar.isRequired=En(s.element.isRequired,Wh);const uT={entering:{opacity:1},entered:{opacity:1}},Ji=C.forwardRef(function(t,n){const r=Nt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:p,onEnter:u,onEntered:h,onEntering:b,onExit:y,onExited:g,onExiting:f,style:m,timeout:v=o,TransitionComponent:w=sn,...S}=t,x=C.useRef(null),E=Ze(x,sr(l),n),O=I=>j=>{if(I){const P=x.current;j===void 0?I(P):I(P,j)}},N=O(b),D=O((I,j)=>{oh(I);const P=_i({style:m,timeout:v,easing:c},{mode:"enter"});I.style.webkitTransition=r.transitions.create("opacity",P),I.style.transition=r.transitions.create("opacity",P),u&&u(I,j)}),A=O(h),L=O(f),_=O(I=>{const j=_i({style:m,timeout:v,easing:c},{mode:"exit"});I.style.webkitTransition=r.transitions.create("opacity",j),I.style.transition=r.transitions.create("opacity",j),y&&y(I)}),T=O(g),$=I=>{i&&i(x.current,I)};return d.jsx(w,{appear:a,in:p,nodeRef:x,onEnter:D,onEntered:A,onEntering:N,onExit:_,onExited:T,onExiting:L,addEndListener:$,timeout:v,...S,children:(I,{ownerState:j,...P})=>C.cloneElement(l,{style:{opacity:0,visibility:I==="exited"&&!p?"hidden":void 0,...uT[I],...m,...l.props.style},ref:E,...P})})});process.env.NODE_ENV!=="production"&&(Ji.propTypes={addEndListener:s.func,appear:s.bool,children:ar.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function dT(e){return de("MuiBackdrop",e)}ue("MuiBackdrop",["root","invisible"]);const pT=e=>{const{classes:t,invisible:n}=e;return pe({root:["root",n&&"invisible"]},dT,t)},fT=Y("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),vc=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:l=!1,open:c,components:p={},componentsProps:u={},slotProps:h={},slots:b={},TransitionComponent:y,transitionDuration:g,...f}=r,m={...r,component:a,invisible:l},v=pT(m),w={transition:y,root:p.Root,...b},S={...u,...h},x={component:a,slots:w,slotProps:S},[E,O]=be("root",{elementType:fT,externalForwardedProps:x,className:ie(v.root,i),ownerState:m}),[N,D]=be("transition",{elementType:Ji,externalForwardedProps:x,ownerState:m});return d.jsx(N,{in:c,timeout:g,...f,...D,children:d.jsx(E,{"aria-hidden":!0,...O,classes:v,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(vc.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const hT=ue("MuiBox",["root"]),gT=Jl(),F=Ew({themeId:mo,defaultTheme:gT,defaultClassName:hT.root,generateClassName:mf.generate});process.env.NODE_ENV!=="production"&&(F.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function yT(e){return de("MuiButton",e)}const lr=ue("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Vh=C.createContext({});process.env.NODE_ENV!=="production"&&(Vh.displayName="ButtonGroupContext");const Uh=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(Uh.displayName="ButtonGroupButtonContext");const mT=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:c}=e,p={root:["root",a&&"loading",i,`${i}${ne(t)}`,`size${ne(o)}`,`${i}Size${ne(o)}`,`color${ne(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${ne(l)}`],startIcon:["icon","startIcon",`iconSize${ne(o)}`],endIcon:["icon","endIcon",`iconSize${ne(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=pe(p,yT,c);return{...c,...u}},qh=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],bT=Y(Do,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color)}`],t[`size${ne(n.size)}`],t[`${n.variant}Size${ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ge(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${lr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${lr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${lr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${lr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(wt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${lr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${lr.loading}`]:{color:"transparent"}}}]}})),vT=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ne(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...qh]})),xT=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ne(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...qh]})),ST=Y("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Hh=Y("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ze=C.forwardRef(function(t,n){const r=C.useContext(Vh),o=C.useContext(Uh),i=No(r,t),a=fe({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:p="button",className:u,disabled:h=!1,disableElevation:b=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:v,loading:w=null,loadingIndicator:S,loadingPosition:x="center",size:E="medium",startIcon:O,type:N,variant:D="text",...A}=a,L=Qn(v),_=S??d.jsx(Fi,{"aria-labelledby":L,color:"inherit",size:16}),T={...a,color:c,component:p,disabled:h,disableElevation:b,disableFocusRipple:y,fullWidth:m,loading:w,loadingIndicator:_,loadingPosition:x,size:E,type:N,variant:D},$=mT(T),I=(O||w&&x==="start")&&d.jsx(vT,{className:$.startIcon,ownerState:T,children:O||d.jsx(Hh,{className:$.loadingIconPlaceholder,ownerState:T})}),j=(g||w&&x==="end")&&d.jsx(xT,{className:$.endIcon,ownerState:T,children:g||d.jsx(Hh,{className:$.loadingIconPlaceholder,ownerState:T})}),P=o||"",k=typeof w=="boolean"?d.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:w&&d.jsx(ST,{className:$.loadingIndicator,ownerState:T,children:_})}):null;return d.jsxs(bT,{ownerState:T,className:ie(r.className,$.root,u,P),component:p,disabled:h||w,focusRipple:!y,focusVisibleClassName:ie($.focusVisible,f),ref:n,type:N,id:w?L:v,...A,classes:$,children:[I,x!=="end"&&k,l,x==="end"&&k,j]})});process.env.NODE_ENV!=="production"&&(ze.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function wT(e){return de("MuiCard",e)}ue("MuiCard",["root"]);const CT=e=>{const{classes:t}=e;return pe({root:["root"]},wT,t)},ET=Y(an,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),_t=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCard"}),{className:o,raised:i=!1,...a}=r,l={...r,raised:i},c=CT(l);return d.jsx(ET,{className:ie(c.root,o),elevation:i?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(_t.propTypes={children:s.node,classes:s.object,className:s.string,raised:En(s.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function TT(e){return de("MuiCardContent",e)}ue("MuiCardContent",["root"]);const OT=e=>{const{classes:t}=e;return pe({root:["root"]},TT,t)},PT=Y("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Yh=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCardContent"}),{className:o,component:i="div",...a}=r,l={...r,component:i},c=OT(l);return d.jsx(PT,{as:i,className:ie(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Yh.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function kT(e){return de("PrivateSwitchBase",e)}ue("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const NT=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ne(o)}`],input:["input"]};return pe(i,kT,t)},IT=Y(Do,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_T=Y("input",{name:"MuiSwitchBase",shouldForwardProp:dt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Xi=C.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:p=!1,icon:u,id:h,inputProps:b,inputRef:y,name:g,onBlur:f,onChange:m,onFocus:v,readOnly:w,required:S=!1,tabIndex:x,type:E,value:O,slots:N={},slotProps:D={},...A}=t,[L,_]=Mo({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),T=dn(),$=K=>{v&&v(K),T&&T.onFocus&&T.onFocus(K)},I=K=>{f&&f(K),T&&T.onBlur&&T.onBlur(K)},j=K=>{if(K.nativeEvent.defaultPrevented)return;const Q=K.target.checked;_(Q),m&&m(K,Q)};let P=l;T&&typeof P>"u"&&(P=T.disabled);const k=E==="checkbox"||E==="radio",B={...t,checked:L,disabled:P,disableFocusRipple:c,edge:p},z=NT(B),M={slots:N,slotProps:{input:b,...D}},[V,G]=be("root",{ref:n,elementType:IT,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...M,component:"span",...A},getSlotProps:K=>({...K,onFocus:Q=>{K.onFocus?.(Q),$(Q)},onBlur:Q=>{K.onBlur?.(Q),I(Q)}}),ownerState:B,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:P,role:void 0,tabIndex:null}}),[X,ee]=be("input",{ref:y,elementType:_T,className:z.input,externalForwardedProps:M,getSlotProps:K=>({...K,onChange:Q=>{K.onChange?.(Q),j(Q)}}),ownerState:B,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:P,id:k?h:void 0,name:g,readOnly:w,required:S,tabIndex:x,type:E,...E==="checkbox"&&O===void 0?{}:{value:O}}});return d.jsxs(V,{...G,children:[d.jsx(X,{...ee}),L?i:u]})});process.env.NODE_ENV!=="production"&&(Xi.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:gt,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const AT=Ue(d.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MT=Ue(d.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),$T=Ue(d.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function DT(e){return de("MuiCheckbox",e)}const xc=ue("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),FT=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${ne(r)}`,`size${ne(o)}`]},a=pe(i,DT,t);return{...t,...a}},jT=Y(Xi,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ne(n.size)}`],n.color!=="default"&&t[`color${ne(n.color)}`]]}})(ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t},style:{[`&.${xc.checked}, &.${xc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${xc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),RT=d.jsx(MT,{}),LT=d.jsx(AT,{}),BT=d.jsx($T,{}),Dr=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=RT,color:i="primary",icon:a=LT,indeterminate:l=!1,indeterminateIcon:c=BT,inputProps:p,size:u="medium",disableRipple:h=!1,className:b,slots:y={},slotProps:g={},...f}=r,m=l?c:a,v=l?c:o,w={...r,disableRipple:h,color:i,indeterminate:l,size:u},S=FT(w),x=g.input??p,[E,O]=be("root",{ref:n,elementType:jT,className:ie(S.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:w,additionalProps:{type:"checkbox",icon:C.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:C.cloneElement(v,{fontSize:v.props.fontSize??u}),disableRipple:h,slots:y,slotProps:{input:Gf(typeof x=="function"?x(w):x,{"data-indeterminate":l})}}});return d.jsx(E,{...O,classes:S})});process.env.NODE_ENV!=="production"&&(Dr.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function Kh(e){return e.substring(2).toLowerCase()}function zT(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Qi(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=C.useRef(!1),l=C.useRef(null),c=C.useRef(!1),p=C.useRef(!1);C.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=Ze(sr(t),l),h=Ft(g=>{const f=p.current;p.current=!1;const m=pt(l.current);if(!c.current||!l.current||"clientX"in g&&zT(g,m))return;if(a.current){a.current=!1;return}let v;g.composedPath?v=g.composedPath().includes(l.current):v=!m.documentElement.contains(g.target)||l.current.contains(g.target),!v&&(n||!f)&&o(g)}),b=g=>f=>{p.current=!0;const m=t.props[g];m&&m(f)},y={ref:u};return i!==!1&&(y[i]=b(i)),C.useEffect(()=>{if(i!==!1){const g=Kh(i),f=pt(l.current),m=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,i]),r!==!1&&(y[r]=b(r)),C.useEffect(()=>{if(r!==!1){const g=Kh(r),f=pt(l.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),C.cloneElement(t,y)}process.env.NODE_ENV!=="production"&&(Qi.propTypes={children:ar.isRequired,disableReactTree:s.bool,mouseEvent:s.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:s.func.isRequired,touchEvent:s.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(Qi.propTypes=zl(Qi.propTypes));function Gh(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function WT(e){const t=pt(e);return t.body===e?Cn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Jh(e){return parseInt(Cn(e).getComputedStyle(e).paddingRight,10)||0}function VT(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Xh(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!VT(a);l&&c&&Yo(a,o)})}function Sc(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function UT(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(WT(r)){const a=Gh(Cn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Jh(r)+a}px`;const l=pt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Jh(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=pt(r).body;else{const a=r.parentElement,l=Cn(r);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function qT(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class HT{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Yo(t.modalRef,!1);const o=qT(n);Xh(n,t.mount,t.modalRef,o,!0);const i=Sc(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Sc(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=UT(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Sc(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Yo(t.modalRef,n),Xh(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Yo(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ko(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const YT=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KT(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function GT(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function JT(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||GT(e))}function XT(e){const t=[],n=[];return Array.from(e.querySelectorAll(YT)).forEach((r,o)=>{const i=KT(r);i===-1||!JT(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function QT(){return!0}function Zi(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=XT,isEnabled:a=QT,open:l}=e,c=C.useRef(!1),p=C.useRef(null),u=C.useRef(null),h=C.useRef(null),b=C.useRef(null),y=C.useRef(!1),g=C.useRef(null),f=Ze(sr(t),g),m=C.useRef(null);C.useEffect(()=>{!l||!g.current||(y.current=!n)},[n,l]),C.useEffect(()=>{if(!l||!g.current)return;const S=pt(g.current),x=Ko(S);return g.current.contains(x)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
171
+ `)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),C.useEffect(()=>{if(!l||!g.current)return;const S=pt(g.current),x=Ko(S),E=D=>{m.current=D,!(r||!a()||D.key!=="Tab")&&x===g.current&&D.shiftKey&&(c.current=!0,u.current&&u.current.focus())},O=()=>{const D=g.current;if(D===null)return;const A=Ko(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(D.contains(A)||r&&A!==p.current&&A!==u.current)return;if(A!==b.current)b.current=null;else if(b.current!==null)return;if(!y.current)return;let L=[];if((A===p.current||A===u.current)&&(L=i(g.current)),L.length>0){const _=!!(m.current?.shiftKey&&m.current?.key==="Tab"),T=L[0],$=L[L.length-1];typeof T!="string"&&typeof $!="string"&&(_?$.focus():T.focus())}else D.focus()};S.addEventListener("focusin",O),S.addEventListener("keydown",E,!0);const N=setInterval(()=>{const D=Ko(S);D&&D.tagName==="BODY"&&O()},50);return()=>{clearInterval(N),S.removeEventListener("focusin",O),S.removeEventListener("keydown",E,!0)}},[n,r,o,a,l,i]);const v=S=>{h.current===null&&(h.current=S.relatedTarget),y.current=!0,b.current=S.target;const x=t.props.onFocus;x&&x(S)},w=S=>{h.current===null&&(h.current=S.relatedTarget),y.current=!0};return d.jsxs(C.Fragment,{children:[d.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:f,onFocus:v}),d.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Zi.propTypes={children:ar,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Zi.propTypes=zl(Zi.propTypes));function ZT(e){return typeof e=="function"?e():e}function eO(e){return e?e.props.hasOwnProperty("in"):!1}const Qh=()=>{},ea=new HT;function tO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:p,rootRef:u}=e,h=C.useRef({}),b=C.useRef(null),y=C.useRef(null),g=Ze(y,u),[f,m]=C.useState(!p),v=eO(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>pt(b.current),x=()=>(h.current.modalRef=y.current,h.current.mount=b.current,h.current),E=()=>{ea.mount(x(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},O=Ft(()=>{const j=ZT(t)||S().body;ea.add(x(),j),y.current&&E()}),N=()=>ea.isTopModal(x()),D=Ft(j=>{b.current=j,j&&(p&&N()?E():y.current&&Yo(y.current,w))}),A=C.useCallback(()=>{ea.remove(x(),w)},[w]);C.useEffect(()=>()=>{A()},[A]),C.useEffect(()=>{p?O():(!v||!o)&&A()},[p,A,v,o,O]);const L=j=>P=>{j.onKeyDown?.(P),!(P.key!=="Escape"||P.which===229||!N())&&(n||(P.stopPropagation(),c&&c(P,"escapeKeyDown")))},_=j=>P=>{j.onClick?.(P),P.target===P.currentTarget&&c&&c(P,"backdropClick")};return{getRootProps:(j={})=>{const P=Mi(e);delete P.onTransitionEnter,delete P.onTransitionExited;const k={...P,...j};return{role:"presentation",...k,onKeyDown:L(k),ref:g}},getBackdropProps:(j={})=>{const P=j;return{"aria-hidden":!0,...P,onClick:_(P),open:p}},getTransitionProps:()=>{const j=()=>{m(!1),i&&i()},P=()=>{m(!0),a&&a(),o&&A()};return{onEnter:Ql(j,l?.props.onEnter??Qh),onExited:Ql(P,l?.props.onExited??Qh)}},rootRef:g,portalRef:D,isTopModal:N,exited:f,hasTransition:v}}function nO(e){return de("MuiModal",e)}ue("MuiModal",["root","hidden","backdrop"]);const rO=e=>{const{open:t,exited:n,classes:r}=e;return pe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},nO,r)},oO=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ge(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),sO=Y(vc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Go=C.forwardRef(function(t,n){const r=fe({name:"MuiModal",props:t}),{BackdropComponent:o=sO,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:p,container:u,component:h,components:b={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:E=!1,onClose:O,onTransitionEnter:N,onTransitionExited:D,open:A,slotProps:L={},slots:_={},theme:T,...$}=r,I={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:v,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:x,keepMounted:E},{getRootProps:j,getBackdropProps:P,getTransitionProps:k,portalRef:B,isTopModal:z,exited:M,hasTransition:V}=tO({...I,rootRef:n}),G={...I,exited:M},X=rO(G),ee={};if(p.props.tabIndex===void 0&&(ee.tabIndex="-1"),V){const{onEnter:J,onExited:te}=k();ee.onEnter=J,ee.onExited=te}const K={slots:{root:b.Root,backdrop:b.Backdrop,..._},slotProps:{...y,...L}},[Q,Z]=be("root",{ref:n,elementType:oO,externalForwardedProps:{...K,...$,component:h},getSlotProps:j,ownerState:G,className:ie(l,X?.root,!G.open&&G.exited&&X?.hidden)}),[oe,se]=be("backdrop",{ref:i?.ref,elementType:o,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:J=>P({...J,onClick:te=>{J?.onClick&&J.onClick(te)}}),className:ie(i?.className,X?.backdrop),ownerState:G});return!E&&!A&&(!V||M)?null:d.jsx(Vo,{ref:B,container:u,disablePortal:v,children:d.jsxs(Q,{...Z,children:[!x&&o?d.jsx(oe,{...se}):null,d.jsx(Zi,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:z,open:A,children:C.cloneElement(p,ee)})]})})});process.env.NODE_ENV!=="production"&&(Go.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:ar.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([On,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function iO(e){return de("MuiDialog",e)}const wc=ue("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Cc=C.createContext({});process.env.NODE_ENV!=="production"&&(Cc.displayName="DialogContext");const aO=Y(vc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),lO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${ne(n)}`],paper:["paper",`paperScroll${ne(n)}`,`paperWidth${ne(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return pe(a,iO,t)},cO=Y(Go,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),uO=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ne(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),dO=Y(an,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ne(n.scroll)}`],t[`paperWidth${ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ge(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${wc.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${wc.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${wc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Zh=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiDialog"}),o=Nt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:p,BackdropProps:u,children:h,className:b,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:v,onClose:w,open:S,PaperComponent:x=an,PaperProps:E={},scroll:O="paper",slots:N={},slotProps:D={},TransitionComponent:A=Ji,transitionDuration:L=i,TransitionProps:_,...T}=r,$={...r,disableEscapeKeyDown:y,fullScreen:g,fullWidth:f,maxWidth:m,scroll:O},I=lO($),j=C.useRef(),P=le=>{j.current=le.target===le.currentTarget},k=le=>{v&&v(le),j.current&&(j.current=null,w&&w(le,"backdropClick"))},B=Qn(l),z=C.useMemo(()=>({titleId:B}),[B]),M={transition:A,...N},V={transition:_,paper:E,backdrop:u,...D},G={slots:M,slotProps:V},[X,ee]=be("root",{elementType:cO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:$,className:ie(I.root,b),ref:n}),[K,Q]=be("backdrop",{elementType:aO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:$}),[Z,oe]=be("paper",{elementType:dO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:$,className:ie(I.paper,E.className)}),[se,J]=be("container",{elementType:uO,externalForwardedProps:G,ownerState:$,className:I.container}),[te,q]=be("transition",{elementType:Ji,externalForwardedProps:G,ownerState:$,additionalProps:{appear:!0,in:S,timeout:L,role:"presentation"}});return d.jsx(X,{closeAfterTransition:!0,slots:{backdrop:K},slotProps:{backdrop:{transitionDuration:L,as:p,...Q}},disableEscapeKeyDown:y,onClose:w,open:S,onClick:k,...ee,...T,children:d.jsx(te,{...q,children:d.jsx(se,{onMouseDown:P,...J,children:d.jsx(Z,{as:x,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B,"aria-modal":c,...oe,children:d.jsx(Cc.Provider,{value:z,children:h})})})})})});process.env.NODE_ENV!=="production"&&(Zh.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),container:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,container:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function pO(e){return de("MuiDialogActions",e)}ue("MuiDialogActions",["root","spacing"]);const fO=e=>{const{classes:t,disableSpacing:n}=e;return pe({root:["root",!n&&"spacing"]},pO,t)},hO=Y("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),eg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,l={...r,disableSpacing:i},c=fO(l);return d.jsx(hO,{className:ie(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(eg.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function gO(e){return de("MuiDialogContent",e)}ue("MuiDialogContent",["root","dividers"]);function yO(e){return de("MuiDialogTitle",e)}const mO=ue("MuiDialogTitle",["root"]),bO=e=>{const{classes:t,dividers:n}=e;return pe({root:["root",n&&"dividers"]},gO,t)},vO=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ge(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${mO.root} + &`]:{paddingTop:0}}}]}))),tg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,l={...r,dividers:i},c=bO(l);return d.jsx(vO,{className:ie(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(tg.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const xO=e=>{const{classes:t}=e;return pe({root:["root"]},yO,t)},SO=Y(H,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),ng=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,l=r,c=xO(l),{titleId:p=i}=C.useContext(Cc);return d.jsx(SO,{component:"h2",className:ie(c.root,o),ownerState:l,ref:n,variant:"h6",id:i??p,...a})});process.env.NODE_ENV!=="production"&&(ng.propTypes={children:s.node,classes:s.object,className:s.string,id:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function wO(e){return de("MuiDivider",e)}const rg=ue("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),CO=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:c}=e;return pe({root:["root",t&&"absolute",c,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},wO,r)},EO=Y("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ge(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),TO=Y("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ge(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ot=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=c!=="hr"?"separator":void 0,textAlign:b="center",variant:y="fullWidth",...g}=r,f={...r,absolute:o,component:c,flexItem:p,light:u,orientation:l,role:h,textAlign:b,variant:y},m=CO(f);return d.jsx(EO,{as:c,className:ie(m.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:i?d.jsx(TO,{className:m.wrapper,ownerState:f,children:i}):null})});ot&&(ot.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(ot.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const OO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ne(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},p=pe(c,eT,t);return{...t,...p}},PO=Y(Ki,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Hi(e,t),!n.disableUnderline&&t.underline]}})(ge(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ir.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ir.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ir.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ir.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ir.disabled}, .${ir.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ir.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(wt()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),kO=Y(Gi,{name:"MuiFilledInput",slot:"Input",overridesResolver:Yi})(ge(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ta=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:b={},type:y="text",...g}=r,f={...r,disableUnderline:o,fullWidth:l,inputComponent:p,multiline:u,type:y},m=OO(r),v={root:{ownerState:f},input:{ownerState:f}},w=h??a?ut(v,h??a):v,S=b.root??i.Root??PO,x=b.input??i.Input??kO;return d.jsx(Uo,{slots:{root:S,input:x},slotProps:w,fullWidth:l,inputComponent:p,multiline:u,ref:n,type:y,...g,classes:m})});process.env.NODE_ENV!=="production"&&(ta.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:gt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any}),ta.muiName="Input";function NO(e){return de("MuiFormControl",e)}ue("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const IO=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ne(n)}`,r&&"fullWidth"]};return pe(o,NO,t)},_O=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ne(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),og=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:c=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:b=!1,margin:y="none",required:g=!1,size:f="medium",variant:m="outlined",...v}=r,w={...r,color:a,component:l,disabled:c,error:p,fullWidth:h,hiddenLabel:b,margin:y,required:g,size:f,variant:m},S=IO(w),[x,E]=C.useState(()=>{let P=!1;return o&&C.Children.forEach(o,k=>{if(!Ul(k,["Input","Select"]))return;const B=Ul(k,["Select"])?k.props.input:k;B&&GE(B.props)&&(P=!0)}),P}),[O,N]=C.useState(()=>{let P=!1;return o&&C.Children.forEach(o,k=>{Ul(k,["Input","Select"])&&(qi(k.props,!0)||qi(k.props.inputProps,!0))&&(P=!0)}),P}),[D,A]=C.useState(!1);c&&D&&A(!1);const L=u!==void 0&&!c?u:D;let _;const T=C.useRef(!1);process.env.NODE_ENV!=="production"&&(_=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
+ `)),T.current=!0,()=>{T.current=!1}));const $=C.useCallback(()=>{N(!0)},[]),I=C.useCallback(()=>{N(!1)},[]),j=C.useMemo(()=>({adornedStart:x,setAdornedStart:E,color:a,disabled:c,error:p,filled:O,focused:L,fullWidth:h,hiddenLabel:b,size:f,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:I,onFilled:$,registerEffect:_,required:g,variant:m}),[x,a,c,p,O,L,h,b,_,I,$,g,f,m]);return d.jsx(Ui.Provider,{value:j,children:d.jsx(_O,{as:l,ownerState:w,className:ie(S.root,i),ref:n,...v,children:o})})});process.env.NODE_ENV!=="production"&&(og.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function AO(e){return de("MuiFormControlLabel",e)}const Jo=ue("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),MO=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${ne(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return pe(a,AO,t)},$O=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jo.label}`]:t.label},t.root,t[`labelPlacement${ne(n.labelPlacement)}`]]}})(ge(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Jo.disabled}`]:{cursor:"default"},[`& .${Jo.label}`]:{[`&.${Jo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),DO=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ge(({theme:e})=>({[`&.${Jo.error}`]:{color:(e.vars||e).palette.error.main}}))),Ec=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:l,disabled:c,disableTypography:p,inputRef:u,label:h,labelPlacement:b="end",name:y,onChange:g,required:f,slots:m={},slotProps:v={},value:w,...S}=r,x=dn(),E=c??l.props.disabled??x?.disabled,O=f??l.props.required,N={disabled:E,required:O};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof r[j]<"u"&&(N[j]=r[j])});const D=Ln({props:r,muiFormControl:x,states:["error"]}),A={...r,disabled:E,labelPlacement:b,required:O,error:D.error},L=MO(A),_={slots:m,slotProps:{...a,...v}},[T,$]=be("typography",{elementType:H,externalForwardedProps:_,ownerState:A});let I=h;return I!=null&&I.type!==H&&!p&&(I=d.jsx(T,{component:"span",...$,className:ie(L.label,$?.className),children:I})),d.jsxs($O,{className:ie(L.root,i),ownerState:A,ref:n,...S,children:[C.cloneElement(l,N),O?d.jsxs("div",{children:[I,d.jsxs(DO,{ownerState:A,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):I]})});process.env.NODE_ENV!=="production"&&(Ec.propTypes={checked:s.bool,classes:s.object,className:s.string,componentsProps:s.shape({typography:s.object}),control:s.element.isRequired,disabled:s.bool,disableTypography:s.bool,inputRef:gt,label:s.node,labelPlacement:s.oneOf(["bottom","end","start","top"]),name:s.string,onChange:s.func,required:s.bool,slotProps:s.shape({typography:s.oneOfType([s.func,s.object])}),slots:s.shape({typography:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function FO(e){return de("MuiFormGroup",e)}ue("MuiFormGroup",["root","row","error"]);const jO=e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},FO,t)},RO=Y("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),sg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...a}=r,l=dn(),c=Ln({props:r,muiFormControl:l,states:["error"]}),p={...r,row:i,error:c.error},u=jO(p);return d.jsx(RO,{className:ie(u.root,o),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(sg.propTypes={children:s.node,classes:s.object,className:s.string,row:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function LO(e){return de("MuiFormHelperText",e)}const ig=ue("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ag;const BO=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:c}=e,p={root:["root",o&&"disabled",i&&"error",r&&`size${ne(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return pe(p,LO,t)},zO=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ne(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ig.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ig.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),lg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:l,error:c,filled:p,focused:u,margin:h,required:b,variant:y,...g}=r,f=dn(),m=Ln({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:a,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete v.ownerState;const w=BO(v);return d.jsx(zO,{as:a,className:ie(w.root,i),ref:n,...g,ownerState:v,children:o===" "?ag||(ag=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(lg.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function WO(e){return de("MuiFormLabel",e)}const Xo=ue("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),VO=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,c={root:["root",`color${ne(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return pe(c,WO,t)},UO=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t},style:{[`&.${Xo.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Xo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Xo.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),qO=Y("span",{name:"MuiFormLabel",slot:"Asterisk"})(ge(({theme:e})=>({[`&.${Xo.error}`]:{color:(e.vars||e).palette.error.main}}))),cg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:l="label",disabled:c,error:p,filled:u,focused:h,required:b,...y}=r,g=dn(),f=Ln({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},v=VO(m);return d.jsxs(UO,{as:l,ownerState:m,className:ie(v.root,i),ref:n,...y,children:[o,f.required&&d.jsxs(qO,{ownerState:m,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(cg.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Tc(e){return`scale(${e}, ${e**2})`}const HO={entering:{opacity:1,transform:Tc(1)},entered:{opacity:1,transform:"none"}},Oc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Fr=C.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:c,onEntered:p,onEntering:u,onExit:h,onExited:b,onExiting:y,style:g,timeout:f="auto",TransitionComponent:m=sn,...v}=t,w=nr(),S=C.useRef(),x=Nt(),E=C.useRef(null),O=Ze(E,sr(i),n),N=j=>P=>{if(j){const k=E.current;P===void 0?j(k):j(k,P)}},D=N(u),A=N((j,P)=>{oh(j);const{duration:k,delay:B,easing:z}=_i({style:g,timeout:f,easing:a},{mode:"enter"});let M;f==="auto"?(M=x.transitions.getAutoHeightDuration(j.clientHeight),S.current=M):M=k,j.style.transition=[x.transitions.create("opacity",{duration:M,delay:B}),x.transitions.create("transform",{duration:Oc?M:M*.666,delay:B,easing:z})].join(","),c&&c(j,P)}),L=N(p),_=N(y),T=N(j=>{const{duration:P,delay:k,easing:B}=_i({style:g,timeout:f,easing:a},{mode:"exit"});let z;f==="auto"?(z=x.transitions.getAutoHeightDuration(j.clientHeight),S.current=z):z=P,j.style.transition=[x.transitions.create("opacity",{duration:z,delay:k}),x.transitions.create("transform",{duration:Oc?z:z*.666,delay:Oc?k:k||z*.333,easing:B})].join(","),j.style.opacity=0,j.style.transform=Tc(.75),h&&h(j)}),$=N(b),I=j=>{f==="auto"&&w.start(S.current||0,j),r&&r(E.current,j)};return d.jsx(m,{appear:o,in:l,nodeRef:E,onEnter:A,onEntered:L,onEntering:D,onExit:T,onExited:$,onExiting:_,addEndListener:I,timeout:f==="auto"?null:f,...v,children:(j,{ownerState:P,...k})=>C.cloneElement(i,{style:{opacity:0,transform:Tc(.75),visibility:j==="exited"&&!l?"hidden":void 0,...HO[j],...g,...i.props.style},ref:O,...k})})});process.env.NODE_ENV!=="production"&&(Fr.propTypes={addEndListener:s.func,appear:s.bool,children:ar.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])}),Fr&&(Fr.muiSupportAuto=!0);const YO=e=>{const{classes:t,disableUnderline:n}=e,o=pe({root:["root",!n&&"underline"],input:["input"]},QE,t);return{...t,...o}},KO=Y(Ki,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Hi(e,t),!n.disableUnderline&&t.underline]}})(ge(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${qo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${qo.disabled}, .${qo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${qo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(wt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),GO=Y(Gi,{name:"MuiInput",slot:"Input",overridesResolver:Yi})({}),na=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:p=!1,slotProps:u,slots:h={},type:b="text",...y}=r,g=YO(r),m={root:{ownerState:{disableUnderline:o}}},v=u??a?ut(u??a,m):m,w=h.root??i.Root??KO,S=h.input??i.Input??GO;return d.jsx(Uo,{slots:{root:w,input:S},slotProps:v,fullWidth:l,inputComponent:c,multiline:p,ref:n,type:b,...y,classes:g})});process.env.NODE_ENV!=="production"&&(na.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:gt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any}),na.muiName="Input";function JO(e){return de("MuiInputLabel",e)}ue("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const XO=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${ne(r)}`,a],asterisk:[l&&"asterisk"]},p=pe(c,JO,t);return{...t,...p}},QO=Y(cg,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Xo.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ge(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ug=C.forwardRef(function(t,n){const r=fe({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:l,className:c,...p}=r,u=dn();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const b=Ln({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),y={...r,disableAnimation:o,formControl:u,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},g=XO(y);return d.jsx(QO,{"data-shrink":h,ref:n,className:ie(g.root,c),...p,ownerState:y,classes:g})});process.env.NODE_ENV!=="production"&&(ug.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Qo=C.createContext({});process.env.NODE_ENV!=="production"&&(Qo.displayName="ListContext");function ZO(e){return de("MuiList",e)}ue("MuiList",["root","padding","dense","subheader"]);const eP=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return pe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},ZO,t)},tP=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),dg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:p,...u}=r,h=C.useMemo(()=>({dense:l}),[l]),b={...r,component:a,dense:l,disablePadding:c},y=eP(b);return d.jsx(Qo.Provider,{value:h,children:d.jsxs(tP,{as:a,className:ie(y.root,i),ref:n,ownerState:b,...u,children:[p,o]})})});process.env.NODE_ENV!=="production"&&(dg.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const pg=ue("MuiListItemIcon",["root","alignItemsFlexStart"]);function nP(e){return de("MuiListItemText",e)}const jr=ue("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),rP=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return pe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nP,t)},oP=Y("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jr.primary}`]:t.primary},{[`& .${jr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${gh.root}:where(& .${jr.primary})`]:{display:"block"},[`.${gh.root}:where(& .${jr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Pc=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:b={},slotProps:y={},...g}=r,{dense:f}=C.useContext(Qo);let m=c??o,v=u;const w={...r,disableTypography:a,inset:l,primary:!!m,secondary:!!v,dense:f},S=rP(w),x={slots:b,slotProps:{primary:p,secondary:h,...y}},[E,O]=be("root",{className:ie(S.root,i),elementType:oP,externalForwardedProps:{...x,...g},ownerState:w,ref:n}),[N,D]=be("primary",{className:S.primary,elementType:H,externalForwardedProps:x,ownerState:w}),[A,L]=be("secondary",{className:S.secondary,elementType:H,externalForwardedProps:x,ownerState:w});return m!=null&&m.type!==H&&!a&&(m=d.jsx(N,{variant:f?"body2":"body1",component:D?.variant?void 0:"span",...D,children:m})),v!=null&&v.type!==H&&!a&&(v=d.jsx(A,{variant:"body2",color:"textSecondary",...L,children:v})),d.jsxs(E,{...O,children:[m,v]})});process.env.NODE_ENV!=="production"&&(Pc.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,slotProps:s.shape({primary:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),secondary:s.oneOfType([s.func,s.object])}),slots:s.shape({primary:s.elementType,root:s.elementType,secondary:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function kc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Zo(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!hg(l,i)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const gg=C.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...b}=t,y=C.useRef(null),g=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qt(()=>{o&&y.current.focus()},[o]),C.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const E=!y.current.style.width;if(S.clientHeight<y.current.clientHeight&&E){const O=`${Gh(Cn(S))}px`;y.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=O,y.current.style.width=`calc(100% + ${O})`}return y.current}}),[]);const f=S=>{const x=y.current,E=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const N=Ko(pt(x));if(E==="ArrowDown")S.preventDefault(),Zo(x,N,p,c,kc);else if(E==="ArrowUp")S.preventDefault(),Zo(x,N,p,c,fg);else if(E==="Home")S.preventDefault(),Zo(x,null,p,c,kc);else if(E==="End")S.preventDefault(),Zo(x,null,p,c,fg);else if(E.length===1){const D=g.current,A=E.toLowerCase(),L=performance.now();D.keys.length>0&&(L-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&A!==D.keys[0]&&(D.repeating=!1)),D.lastTime=L,D.keys.push(A);const _=N&&!D.repeating&&hg(N,D);D.previousKeyMatched&&(_||Zo(x,N,!1,c,kc,D))?S.preventDefault():D.previousKeyMatched=!1}u&&u(S)},m=Ze(y,n);let v=-1;C.Children.forEach(a,(S,x)=>{if(!C.isValidElement(S)){v===x&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Zl.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
173
+ `)),S.props.disabled||(h==="selectedMenu"&&S.props.selected||v===-1)&&(v=x),v===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const w=C.Children.map(a,(S,x)=>{if(x===v){const E={};return i&&(E.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(E.tabIndex=0),C.cloneElement(S,E)}return S});return d.jsx(dg,{role:"menu",ref:m,className:l,onKeyDown:f,tabIndex:o?0:-1,...b,children:w})});process.env.NODE_ENV!=="production"&&(gg.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function sP(e){return de("MuiPopover",e)}ue("MuiPopover",["root","paper"]);function yg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function mg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function bg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function es(e){return typeof e=="function"?e():e}const iP=e=>{const{classes:t}=e;return pe({root:["root"],paper:["paper"]},sP,t)},aP=Y(Go,{name:"MuiPopover",slot:"Root"})({}),vg=Y(an,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nc=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:p,className:u,container:h,elevation:b=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:m={},slotProps:v={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:x="auto",TransitionProps:E={},disableScrollLock:O=!1,...N}=r,D=C.useRef(),A={...r,anchorOrigin:a,anchorReference:c,elevation:b,marginThreshold:y,transformOrigin:w,TransitionComponent:S,transitionDuration:x,TransitionProps:E},L=iP(A),_=C.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const J=es(i),te=J&&J.nodeType===1?J:pt(D.current).body,q=te.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const le=te.getBoundingClientRect();process.env.NODE_ENV!=="test"&&le.top===0&&le.left===0&&le.right===0&&le.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
174
+ `))}return{top:q.top+yg(q,a.vertical),left:q.left+mg(q,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),T=C.useCallback(J=>({vertical:yg(J,w.vertical),horizontal:mg(J,w.horizontal)}),[w.horizontal,w.vertical]),$=C.useCallback(J=>{const te={width:J.offsetWidth,height:J.offsetHeight},q=T(te);if(c==="none")return{top:null,left:null,transformOrigin:bg(q)};const le=_();let re=le.top-q.vertical,he=le.left-q.horizontal;const qe=re+te.height,ke=he+te.width,Ce=Cn(es(i)),Je=Ce.innerHeight-y,We=Ce.innerWidth-y;if(y!==null&&re<y){const ye=re-y;re-=ye,q.vertical+=ye}else if(y!==null&&qe>Je){const ye=qe-Je;re-=ye,q.vertical+=ye}if(process.env.NODE_ENV!=="production"&&te.height>Je&&te.height&&Je&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${te.height-Je}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
175
+ `)),y!==null&&he<y){const ye=he-y;he-=ye,q.horizontal+=ye}else if(ke>We){const ye=ke-We;he-=ye,q.horizontal+=ye}return{top:`${Math.round(re)}px`,left:`${Math.round(he)}px`,transformOrigin:bg(q)}},[i,c,_,T,y]),[I,j]=C.useState(g),P=C.useCallback(()=>{const J=D.current;if(!J)return;const te=$(J);te.top!==null&&J.style.setProperty("top",te.top),te.left!==null&&(J.style.left=te.left),J.style.transformOrigin=te.transformOrigin,j(!0)},[$]);C.useEffect(()=>(O&&window.addEventListener("scroll",P),()=>window.removeEventListener("scroll",P)),[i,O,P]);const k=()=>{P()},B=()=>{j(!1)};C.useEffect(()=>{g&&P()}),C.useImperativeHandle(o,()=>g?{updatePosition:()=>{P()}}:null,[g,P]),C.useEffect(()=>{if(!g)return;const J=Yf(()=>{P()}),te=Cn(es(i));return te.addEventListener("resize",J),()=>{J.clear(),te.removeEventListener("resize",J)}},[i,g,P]);let z=x;const M={slots:{transition:S,...m},slotProps:{transition:E,paper:f,...v}},[V,G]=be("transition",{elementType:Fr,externalForwardedProps:M,ownerState:A,getSlotProps:J=>({...J,onEntering:(te,q)=>{J.onEntering?.(te,q),k()},onExited:te=>{J.onExited?.(te),B()}}),additionalProps:{appear:!0,in:g}});x==="auto"&&!V.muiSupportAuto&&(z=void 0);const X=h||(i?pt(es(i)).body:void 0),[ee,{slots:K,slotProps:Q,...Z}]=be("root",{ref:n,elementType:aP,externalForwardedProps:{...M,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Gf(typeof v.backdrop=="function"?v.backdrop(A):v.backdrop,{invisible:!0})},container:X,open:g},ownerState:A,className:ie(L.root,u)}),[oe,se]=be("paper",{ref:D,className:L.paper,elementType:vg,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:b,style:I?void 0:{opacity:0}},ownerState:A});return d.jsx(ee,{...Z,...!Ai(ee)&&{slots:K,slotProps:Q,disableScrollLock:O},children:d.jsx(V,{...G,timeout:z,children:d.jsx(oe,{...se,children:p})})})});process.env.NODE_ENV!=="production"&&(Nc.propTypes={action:gt,anchorEl:En(s.oneOfType([On,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=es(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
176
176
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
177
- `))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([kr,i.func]),disableScrollLock:i.bool,elevation:$h,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:wc}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function FO(e){return pe("MuiMenu",e)}de("MuiMenu",["root","paper","list"]);const zO={vertical:"top",horizontal:"right"},jO={vertical:"top",horizontal:"left"},BO=e=>{const{classes:t}=e;return ue({root:["root"],paper:["paper"],list:["list"]},FO,t)},LO=G(qc,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),WO=G(jg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),VO=G($g,{name:"MuiMenu",slot:"List"})({outline:0}),Yc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:h={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:y,...f}={},variant:m="selectedMenu",slots:x={},slotProps:b={},...w}=n,S=sc(),C={...n,autoFocus:o,disableAutoFocusItem:c,MenuListProps:d,onEntering:y,PaperProps:h,transitionDuration:g,TransitionProps:f,variant:m},O=BO(C),I=o&&!c&&u,F=T.useRef(null),D=(U,B)=>{F.current&&F.current.adjustStyleForScrollbar(U,{direction:S?"rtl":"ltr"}),y&&y(U,B)},L=U=>{U.key==="Tab"&&(U.preventDefault(),p&&p(U,"tabKeyDown"))};let z=-1;T.Children.map(s,(U,B)=>{T.isValidElement(U)&&(process.env.NODE_ENV!=="production"&&mc.isFragment(U)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
178
- `)),U.props.disabled||(m==="selectedMenu"&&U.props.selected||z===-1)&&(z=B))});const k={slots:x,slotProps:{list:d,transition:f,paper:h,...b}},j=og({elementType:x.root,externalSlotProps:b.root,ownerState:C,className:[O.root,l]}),[A,M]=ge("paper",{className:O.paper,elementType:WO,externalForwardedProps:k,shouldForwardComponentProp:!0,ownerState:C}),[_,N]=ge("list",{className:se(O.list,d.className),elementType:VO,shouldForwardComponentProp:!0,externalForwardedProps:k,getSlotProps:U=>({...U,onKeyDown:B=>{L(B),U.onKeyDown?.(B)}}),ownerState:C}),W=typeof k.slotProps.transition=="function"?k.slotProps.transition(C):k.slotProps.transition;return a.jsx(LO,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?zO:jO,slots:{root:x.root,paper:A,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:j,paper:M,backdrop:typeof b.backdrop=="function"?b.backdrop(C):b.backdrop,transition:{...W,onEntering:(...U)=>{D(...U),W?.onEntering?.(...U)}}},open:u,ref:r,transitionDuration:g,ownerState:C,...w,classes:v,children:a.jsx(_,{actions:F,autoFocus:o&&(z===-1||c),autoFocusItem:I,variant:m,...N,children:s})})});process.env.NODE_ENV!=="production"&&(Yc.propTypes={anchorEl:i.oneOfType([kr,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function UO(e){return pe("MuiMenuItem",e)}const fi=de("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),HO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},RO=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:s,classes:l}=e,d=ue({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",s&&"selected"]},UO,l);return{...l,...d}},qO=G(qo,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:HO})(he(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${fi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${fi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${fi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wg.inset}`]:{marginLeft:52},[`& .${Yn.root}`]:{marginTop:0,marginBottom:0},[`& .${Yn.inset}`]:{paddingLeft:36},[`& .${_g.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${_g.root} svg`]:{fontSize:"1.25rem"}}}]}))),Rt=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:v,...g}=n,y=T.useContext(di),f=T.useMemo(()=>({dense:l||y.dense||!1,disableGutters:d}),[y.dense,l,d]),m=T.useRef(null);Xt(()=>{o&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const x={...n,dense:f.dense,divider:c,disableGutters:d},b=RO(n),w=Je(m,r);let S;return n.disabled||(S=h!==void 0?h:-1),a.jsx(di.Provider,{value:f,children:a.jsx(qO,{ref:w,role:u,tabIndex:S,component:s,focusVisibleClassName:se(b.focusVisible,p),className:se(b.root,v),...g,ownerState:x,classes:b})})});process.env.NODE_ENV!=="production"&&(Rt.propTypes={autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disabled:i.bool,disableGutters:i.bool,divider:i.bool,focusVisibleClassName:i.string,role:i.string,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number});function YO(e){return pe("MuiNativeSelect",e)}const Gc=de("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),GO=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:s,error:l}=e,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${te(r)}`,s&&"iconOpen",n&&"disabled"]};return ue(c,YO,t)},Bg=G("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Gc.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),KO=G(Bg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ft,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Gc.multiple}`]:t.multiple}]}})({}),Lg=G("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Gc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),XO=G(Lg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${te(r.variant)}`],r.open&&t.iconOpen]}})({}),Wg=T.forwardRef(function(t,r){const{className:n,disabled:o,error:s,IconComponent:l,inputRef:c,variant:d="standard",...p}=t,u={...t,disabled:o,variant:d,error:s},h=GO(u);return a.jsxs(T.Fragment,{children:[a.jsx(KO,{ownerState:u,className:se(h.select,n),disabled:o,ref:c||r,...p}),t.multiple?null:a.jsx(XO,{as:l,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:vt,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var Vg;const JO=G("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ft})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),QO=G("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ft})(he(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Ug(e){const{children:t,classes:r,className:n,label:o,notched:s,...l}=e,c=o!=null&&o!=="",d={...e,notched:s,withLabel:c};return a.jsx(JO,{"aria-hidden":!0,className:n,ownerState:d,...l,children:a.jsx(QO,{ownerState:d,children:c?a.jsx("span",{children:o}):Vg||(Vg=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const ZO=e=>{const{classes:t}=e,n=ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kE,t);return{...t,...n}},ek=G(pa,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ca})(he(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${gr.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${gr.focused} .${gr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Tt()).map(([r])=>({props:{color:r},style:{[`&.${gr.focused} .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${gr.error} .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gr.disabled} .${gr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),tk=G(Ug,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(he(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),rk=G(ua,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:da})(he(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),xa=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:p,slots:u={},slotProps:h={},type:v="text",...g}=n,y=ZO(n),f=hr(),m=Rr({props:n,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...n,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:v},b=u.root??o.Root??ek,w=u.input??o.Input??rk,[S,C]=ge("notchedOutline",{elementType:tk,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:c!=null&&c!==""&&m.required?a.jsxs(T.Fragment,{children:[c," ","*"]}):c}});return a.jsx(ti,{slots:{root:b,input:w},slotProps:h,renderSuffix:O=>a.jsx(S,{...C,notched:typeof p<"u"?p:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:s,inputComponent:l,multiline:d,ref:r,type:v,...g,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(xa.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:vt,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),xa.muiName="Input";const nk=ht(a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ok=ht(a.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),ik=G("span",{name:"MuiRadioButtonIcon",shouldForwardProp:ft})({position:"relative",display:"flex"}),sk=G(nk,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),ak=G(ok,{name:"MuiRadioButtonIcon"})(he(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Kc(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o={...e,checked:t};return a.jsxs(ik,{className:r.root,ownerState:o,children:[a.jsx(sk,{fontSize:n,className:r.background,ownerState:o}),a.jsx(ak,{fontSize:n,className:r.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Kc.propTypes={checked:i.bool,classes:i.object,fontSize:i.oneOf(["small","medium"])});const Xc=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Xc.displayName="RadioGroupContext");function lk(){return T.useContext(Xc)}function ck(e){return pe("MuiRadio",e)}const Hg=de("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),dk=e=>{const{classes:t,color:r,size:n}=e,o={root:["root",`color${te(r)}`,n!=="medium"&&`size${te(n)}`]};return{...t,...ue(o,ck,t)}},pk=G(ha,{shouldForwardProp:e=>ft(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size!=="medium"&&t[`size${te(r.size)}`],t[`color${te(r.color)}`]]}})(he(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Hg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Tt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Hg.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function uk(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const fk=a.jsx(Kc,{checked:!0}),hk=a.jsx(Kc,{}),Rg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:s=fk,color:l="primary",icon:c=hk,name:d,onChange:p,size:u="medium",className:h,disabled:v,disableRipple:g=!1,slots:y={},slotProps:f={},inputProps:m,...x}=n,b=hr();let w=v;b&&typeof w>"u"&&(w=b.disabled),w??=!1;const S={...n,disabled:w,disableRipple:g,color:l,size:u},C=dk(S),O=lk();let I=o;const F=yc(p,O&&O.onChange);let D=d;O&&(typeof I>"u"&&(I=uk(O.value,n.value)),typeof D>"u"&&(D=O.name));const L=f.input??m,[z,k]=ge("root",{ref:r,elementType:pk,className:se(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:f,...x},getSlotProps:j=>({...j,onChange:(A,...M)=>{j.onChange?.(A,...M),F(A,...M)}}),ownerState:S,additionalProps:{type:"radio",icon:T.cloneElement(c,{fontSize:c.props.fontSize??u}),checkedIcon:T.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:w,name:D,checked:I,slots:y,slotProps:{input:typeof L=="function"?L(S):L}}});return a.jsx(z,{...k,classes:C})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,inputProps:i.object,inputRef:vt,name:i.string,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function gk(e){return pe("MuiRadioGroup",e)}de("MuiRadioGroup",["root","row","error"]);const yk=e=>{const{classes:t,row:r,error:n}=e;return ue({root:["root",r&&"row",n&&"error"]},gk,t)},qg=T.forwardRef(function(t,r){const{actions:n,children:o,className:s,defaultValue:l,name:c,onChange:d,value:p,...u}=t,h=T.useRef(null),v=yk(t),[g,y]=Ho({controlled:p,default:l,name:"RadioGroup"});T.useImperativeHandle(n,()=>({focus:()=>{let b=h.current.querySelector("input:not(:disabled):checked");b||(b=h.current.querySelector("input:not(:disabled)")),b&&b.focus()}}),[]);const f=Je(r,h),m=an(c),x=T.useMemo(()=>({name:m,onChange(b){y(b.target.value),d&&d(b,b.target.value)},value:g}),[m,d,y,g]);return a.jsx(Xc.Provider,{value:x,children:a.jsx(Eg,{role:"radiogroup",ref:f,className:se(v.root,s),...u,children:o})})});process.env.NODE_ENV!=="production"&&(qg.propTypes={children:i.node,className:i.string,defaultValue:i.any,name:i.string,onChange:i.func,value:i.any});function Yg(e){return pe("MuiSelect",e)}const hi=de("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Gg;const mk=G(Bg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${hi.select}`]:t.select},{[`&.${hi.select}`]:t[r.variant]},{[`&.${hi.error}`]:t.error},{[`&.${hi.multiple}`]:t.multiple}]}})({[`&.${hi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bk=G(Lg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${te(r.variant)}`],r.open&&t.iconOpen]}})({}),vk=G("input",{shouldForwardProp:e=>hh(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Kg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xk(e){return e==null||typeof e=="string"&&!e.trim()}const Sk=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:s,error:l}=e,c={select:["select",r,n&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${te(r)}`,s&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return ue(c,Yg,t)},Xg=T.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":o,autoFocus:s,autoWidth:l,children:c,className:d,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:v,error:g=!1,IconComponent:y,inputRef:f,labelId:m,MenuProps:x={},multiple:b,name:w,onBlur:S,onChange:C,onClose:O,onFocus:I,onKeyDown:F,onMouseDown:D,onOpen:L,open:z,readOnly:k,renderValue:j,required:A,SelectDisplayProps:M={},tabIndex:_,type:N,value:W,variant:U="standard",...B}=t,[H,X]=Ho({controlled:W,default:u,name:"Select"}),[J,Q]=Ho({controlled:z,default:p,name:"Select"}),Y=T.useRef(null),K=T.useRef(null),[ee,oe]=T.useState(null),{current:ae}=T.useRef(z!=null),[Z,re]=T.useState(),q=Je(r,f),ce=T.useCallback(le=>{K.current=le,le&&oe(le)},[]),ie=ee?.parentNode;T.useImperativeHandle(q,()=>({focus:()=>{K.current.focus()},node:Y.current,value:H}),[H]),T.useEffect(()=>{p&&J&&ee&&!ae&&(re(l?null:ie.clientWidth),K.current.focus())},[ee,l]),T.useEffect(()=>{s&&K.current.focus()},[s]),T.useEffect(()=>{if(!m)return;const le=gt(K.current).getElementById(m);if(le){const we=()=>{getSelection().isCollapsed&&K.current.focus()};return le.addEventListener("click",we),()=>{le.removeEventListener("click",we)}}},[m]);const ye=(le,we)=>{le?L&&L(we):O&&O(we),ae||(re(l?null:ie.clientWidth),Q(le))},Le=le=>{D?.(le),le.button===0&&(le.preventDefault(),K.current.focus(),ye(!0,le))},Oe=le=>{ye(!1,le)},ke=T.Children.toArray(c),Ce=le=>{const we=ke.find(rt=>rt.props.value===le.target.value);we!==void 0&&(X(we.props.value),C&&C(le,we))},Ve=le=>we=>{let rt;if(we.currentTarget.hasAttribute("tabindex")){if(b){rt=Array.isArray(H)?H.slice():[];const Kr=H.indexOf(le.props.value);Kr===-1?rt.push(le.props.value):rt.splice(Kr,1)}else rt=le.props.value;if(le.props.onClick&&le.props.onClick(we),H!==rt&&(X(rt),C)){const Kr=we.nativeEvent||we,ka=new Kr.constructor(Kr.type,Kr);Object.defineProperty(ka,"target",{writable:!0,value:{value:rt,name:w}}),C(ka,le)}b||ye(!1,we)}},Ne=le=>{k||([" ","ArrowUp","ArrowDown","Enter"].includes(le.key)&&(le.preventDefault(),ye(!0,le)),F?.(le))},ne=ee!==null&&J,tt=le=>{!ne&&S&&(Object.defineProperty(le,"target",{writable:!0,value:{value:H,name:w}}),S(le))};delete B["aria-invalid"];let _e,Zt;const ot=[];let lt=!1,er=!1;(la({value:H})||v)&&(j?_e=j(H):lt=!0);const tr=ke.map(le=>{if(!T.isValidElement(le))return null;process.env.NODE_ENV!=="production"&&mc.isFragment(le)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
179
- `));let we;if(b){if(!Array.isArray(H))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":ir(2));we=H.some(rt=>Kg(rt,le.props.value)),we&&lt&&ot.push(le.props.children)}else we=Kg(H,le.props.value),we&&lt&&(Zt=le.props.children);return we&&(er=!0),T.cloneElement(le,{"aria-selected":we?"true":"false",onClick:Ve(le),onKeyUp:rt=>{rt.key===" "&&rt.preventDefault(),le.props.onKeyUp&&le.props.onKeyUp(rt)},role:"option",selected:we,value:void 0,"data-value":le.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!er&&!b&&H!==""){const le=ke.map(we=>we.props.value);console.warn([`MUI: You have provided an out-of-range value \`${H}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${le.filter(we=>we!=null).map(we=>`\`${we}\``).join(", ")||'""'}.`].join(`
180
- `))}},[er,ke,b,w,H]),lt&&(b?ot.length===0?_e=null:_e=ot.reduce((le,we,rt)=>(le.push(we),rt<ot.length-1&&le.push(", "),le),[]):_e=Zt);let Ar=Z;!l&&ae&&ee&&(Ar=ie.clientWidth);let xe;typeof _<"u"?xe=_:xe=h?null:0;const rr=M.id||(w?`mui-component-select-${w}`:void 0),ct={...t,variant:U,value:H,open:ne,error:g},Mr=Sk(ct),Ti={...x.PaperProps,...typeof x.slotProps?.paper=="function"?x.slotProps.paper(ct):x.slotProps?.paper},Oi={...x.MenuListProps,...typeof x.slotProps?.list=="function"?x.slotProps.list(ct):x.slotProps?.list},Oa=an();return a.jsxs(T.Fragment,{children:[a.jsx(mk,{as:"div",ref:ce,tabIndex:xe,role:"combobox","aria-controls":ne?Oa:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,rr].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":A?"true":void 0,"aria-invalid":g?"true":void 0,onKeyDown:Ne,onMouseDown:h||k?null:Le,onBlur:tt,onFocus:I,...M,ownerState:ct,className:se(M.className,Mr.select,d),id:rr,children:xk(_e)?Gg||(Gg=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):_e}),a.jsx(vk,{"aria-invalid":g,value:Array.isArray(H)?H.join(","):H,name:w,ref:Y,"aria-hidden":!0,onChange:Ce,tabIndex:-1,disabled:h,className:Mr.nativeInput,autoFocus:s,required:A,...B,ownerState:ct}),a.jsx(bk,{as:y,className:Mr.icon,ownerState:ct}),a.jsx(Yc,{id:`menu-${w||""}`,anchorEl:ie,open:ne,onClose:Oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:Oa,...Oi},paper:{...Ti,style:{minWidth:Ar,...Ti!=null?Ti.style:null}}},children:tr})]})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:vt,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});const wk=e=>{const{classes:t}=e,n=ue({root:["root"]},Yg,t);return{...t,...n}},Jc={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ft(e)&&e!=="variant"},Ck=G(va,Jc)(""),Ek=G(xa,Jc)(""),Tk=G(ba,Jc)(""),bn=T.forwardRef(function(t,r){const n=fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=IE,id:h,input:v,inputProps:g,label:y,labelId:f,MenuProps:m,multiple:x=!1,native:b=!1,onClose:w,onOpen:S,open:C,renderValue:O,SelectDisplayProps:I,variant:F="outlined",...D}=n,L=b?Wg:Xg,z=hr(),k=Rr({props:n,muiFormControl:z,states:["variant","error"]}),j=k.variant||F,A={...n,variant:j,classes:l},M=wk(A),{root:_,...N}=M,W=v||{standard:a.jsx(Ck,{ownerState:A}),outlined:a.jsx(Ek,{label:y,ownerState:A}),filled:a.jsx(Tk,{ownerState:A})}[j],U=Je(r,hn(W));return a.jsx(T.Fragment,{children:T.cloneElement(W,{inputComponent:L,inputProps:{children:s,error:k.error,IconComponent:u,variant:j,type:void 0,multiple:x,...b?{id:h}:{autoWidth:o,defaultOpen:d,displayEmpty:p,labelId:f,MenuProps:m,onClose:w,onOpen:S,open:C,renderValue:O,SelectDisplayProps:{id:h,...I}},...g,classes:g?ut(N,g.classes):N,...v?v.props.inputProps:{}},...(x&&b||p)&&j==="outlined"?{notched:!0}:{},ref:U,className:se(W.props.className,c,M.root),...!v&&{variant:j},...D})})});process.env.NODE_ENV!=="production"&&(bn.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),bn.muiName="Select";function Ok(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:s}=e,l=pn();T.useEffect(()=>{if(!o)return;function x(b){b.defaultPrevented||b.key==="Escape"&&n?.(b,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[o,n]);const c=Bt((x,b)=>{n?.(x,b)}),d=Bt(x=>{!n||x==null||l.start(x,()=>{c(null,"timeout")})});T.useEffect(()=>(o&&d(t),l.clear),[o,t,d,l]);const p=x=>{n?.(x,"clickaway")},u=l.clear,h=T.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),v=x=>b=>{const w=x.onBlur;w?.(b),h()},g=x=>b=>{const w=x.onFocus;w?.(b),u()},y=x=>b=>{const w=x.onMouseEnter;w?.(b),u()},f=x=>b=>{const w=x.onMouseLeave;w?.(b),h()};return T.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[r,o,h,u]),{getRootProps:(x={})=>{const b={...Xs(e),...Xs(x)};return{role:"presentation",...x,...b,onBlur:v(b),onFocus:g(b),onMouseEnter:y(b),onMouseLeave:f(b)}},onClickAway:p}}function kk(e){return pe("MuiSnackbarContent",e)}de("MuiSnackbarContent",["root","message","action"]);const Pk=e=>{const{classes:t}=e;return ue({root:["root"],action:["action"],message:["message"]},kk,t)},Ik=G(Jt,{name:"MuiSnackbarContent",slot:"Root"})(he(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(oc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:oc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Nk=G("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),_k=G("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Jg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:l,role:c="alert",...d}=n,p=n,u=Pk(p);return a.jsxs(Ik,{role:c,elevation:6,className:se(u.root,s),ownerState:p,ref:r,...d,children:[a.jsx(Nk,{className:u.message,ownerState:p,children:l}),o?a.jsx(_k,{className:u.action,ownerState:p,children:o}):null]})});process.env.NODE_ENV!=="production"&&(Jg.propTypes={action:i.node,classes:i.object,className:i.string,message:i.node,role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Ak(e){return pe("MuiSnackbar",e)}de("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mk=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${te(r.vertical)}${te(r.horizontal)}`]};return ue(n,Ak,t)},$k=G("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${te(r.anchorOrigin.vertical)}${te(r.anchorOrigin.horizontal)}`]]}})(he(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),gi=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSnackbar"}),o=Ge(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:v,ContentProps:g,disableWindowBlurListener:y=!1,message:f,onBlur:m,onClose:x,onFocus:b,onMouseEnter:w,onMouseLeave:S,open:C,resumeHideDuration:O,slots:I={},slotProps:F={},TransitionComponent:D,transitionDuration:L=s,TransitionProps:{onEnter:z,onExited:k,...j}={},...A}=n,M={...n,anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:p,disableWindowBlurListener:y,TransitionComponent:D,transitionDuration:L},_=Mk(M),{getRootProps:N,onClickAway:W}=Ok(M),[U,B]=T.useState(!0),H=ce=>{B(!0),k&&k(ce)},X=(ce,ie)=>{B(!1),z&&z(ce,ie)},J={slots:{transition:D,...I},slotProps:{content:g,clickAwayListener:v,transition:j,...F}},[Q,Y]=ge("root",{ref:r,className:[_.root,h],elementType:$k,getSlotProps:N,externalForwardedProps:{...J,...A},ownerState:M}),[K,{ownerState:ee,...oe}]=ge("clickAwayListener",{elementType:ga,externalForwardedProps:J,getSlotProps:ce=>({onClickAway:(...ie)=>{const ye=ie[0];ce.onClickAway?.(...ie),!ye?.defaultMuiPrevented&&W(...ie)}}),ownerState:M}),[ae,Z]=ge("content",{elementType:Jg,shouldForwardComponentProp:!0,externalForwardedProps:J,additionalProps:{message:f,action:l},ownerState:M}),[re,q]=ge("transition",{elementType:qn,externalForwardedProps:J,getSlotProps:ce=>({onEnter:(...ie)=>{ce.onEnter?.(...ie),X(...ie)},onExited:(...ie)=>{ce.onExited?.(...ie),H(...ie)}}),additionalProps:{appear:!0,in:C,timeout:L,direction:c==="top"?"down":"up"},ownerState:M});return!C&&U?null:a.jsx(K,{...oe,...I.clickAwayListener&&{ownerState:ee},children:a.jsx(Q,{...Y,children:a.jsx(re,{...q,children:u||a.jsx(ae,{...Z})})})})});process.env.NODE_ENV!=="production"&&(gi.propTypes={action:i.node,anchorOrigin:i.shape({horizontal:i.oneOf(["center","left","right"]).isRequired,vertical:i.oneOf(["bottom","top"]).isRequired}),autoHideDuration:i.number,children:i.element,classes:i.object,className:i.string,ClickAwayListenerProps:i.object,ContentProps:i.object,disableWindowBlurListener:i.bool,key:()=>null,message:i.node,onBlur:i.func,onClose:i.func,onFocus:i.func,onMouseEnter:i.func,onMouseLeave:i.func,open:i.bool,resumeHideDuration:i.number,slotProps:i.shape({clickAwayListener:i.oneOfType([i.func,i.object]),content:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({clickAwayListener:i.elementType,content:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function Dk(e){return pe("MuiTooltip",e)}const qe=de("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Fk(e){return Math.round(e*1e5)/1e5}const zk=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:s}=e,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${te(s.split("-")[0])}`],arrow:["arrow"]};return ue(l,Dk,t)},jk=G(Fc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(he(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Bk=G("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${te(r.placement.split("-")[0])}`]]}})(he(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Fk(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Lk=G("span",{name:"MuiTooltip",slot:"Arrow"})(he(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Sa=!1;const Qg=new Ys;let yi={x:0,y:0};function wa(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Zg=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:l,components:c={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:v=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:x=!1,id:b,leaveDelay:w=0,leaveTouchDelay:S=1500,onClose:C,onOpen:O,open:I,placement:F="bottom",PopperComponent:D,PopperProps:L={},slotProps:z={},slots:k={},title:j,TransitionComponent:A,TransitionProps:M,..._}=n,N=T.isValidElement(s)?s:a.jsx("span",{children:s}),W=Ge(),U=sc(),[B,H]=T.useState(),[X,J]=T.useState(null),Q=T.useRef(!1),Y=v||x,K=pn(),ee=pn(),oe=pn(),ae=pn(),[Z,re]=Ho({controlled:I,default:!1,name:"Tooltip",state:"open"});let q=Z;if(process.env.NODE_ENV!=="production"){const{current:be}=T.useRef(I!==void 0);T.useEffect(()=>{B&&B.disabled&&!be&&j!==""&&B.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
181
- `))},[j,B,be])}const ce=an(b),ie=T.useRef(),ye=Bt(()=>{ie.current!==void 0&&(document.body.style.WebkitUserSelect=ie.current,ie.current=void 0),ae.clear()});T.useEffect(()=>ye,[ye]);const Le=be=>{Qg.clear(),Sa=!0,re(!0),O&&!q&&O(be)},Oe=Bt(be=>{Qg.start(800+w,()=>{Sa=!1}),re(!1),C&&q&&C(be),K.start(W.transitions.duration.shortest,()=>{Q.current=!1})}),ke=be=>{Q.current&&be.type!=="touchstart"||(B&&B.removeAttribute("title"),ee.clear(),oe.clear(),y||Sa&&f?ee.start(Sa?f:y,()=>{Le(be)}):Le(be))},Ce=be=>{ee.clear(),oe.start(w,()=>{Oe(be)})},[,Ve]=T.useState(!1),Ne=be=>{Js(be.target)||(Ve(!1),Ce(be))},ne=be=>{B||H(be.currentTarget),Js(be.target)&&(Ve(!0),ke(be))},tt=be=>{Q.current=!0;const Xr=N.props;Xr.onTouchStart&&Xr.onTouchStart(be)},_e=be=>{tt(be),oe.clear(),K.clear(),ye(),ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ae.start(m,()=>{document.body.style.WebkitUserSelect=ie.current,ke(be)})},Zt=be=>{N.props.onTouchEnd&&N.props.onTouchEnd(be),ye(),oe.start(S,()=>{Oe(be)})};T.useEffect(()=>{if(!q)return;function be(Xr){Xr.key==="Escape"&&Oe(Xr)}return document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)}},[Oe,q]);const ot=Je(hn(N),H,r);!j&&j!==0&&(q=!1);const lt=T.useRef(),er=be=>{const Xr=N.props;Xr.onMouseMove&&Xr.onMouseMove(be),yi={x:be.clientX,y:be.clientY},lt.current&&lt.current.update()},tr={},Ar=typeof j=="string";p?(tr.title=!q&&Ar&&!h?j:null,tr["aria-describedby"]=q?ce:null):(tr["aria-label"]=Ar?j:null,tr["aria-labelledby"]=q&&!Ar?ce:null);const xe={...tr,..._,...N.props,className:se(_.className,N.props.className),onTouchStart:tt,ref:ot,...x?{onMouseMove:er}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{B&&!B.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
182
- `))},[B]));const rr={};g||(xe.onTouchStart=_e,xe.onTouchEnd=Zt),h||(xe.onMouseOver=wa(ke,xe.onMouseOver),xe.onMouseLeave=wa(Ce,xe.onMouseLeave),Y||(rr.onMouseOver=ke,rr.onMouseLeave=Ce)),u||(xe.onFocus=wa(ne,xe.onFocus),xe.onBlur=wa(Ne,xe.onBlur),Y||(rr.onFocus=ne,rr.onBlur=Ne)),process.env.NODE_ENV!=="production"&&N.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${N.props.title}\` or the Tooltip component.`].join(`
183
- `));const ct={...n,isRtl:U,arrow:o,disableInteractive:Y,placement:F,PopperComponentProp:D,touch:Q.current},Mr=typeof z.popper=="function"?z.popper(ct):z.popper,Ti=T.useMemo(()=>{let be=[{name:"arrow",enabled:!!X,options:{element:X,padding:4}}];return L.popperOptions?.modifiers&&(be=be.concat(L.popperOptions.modifiers)),Mr?.popperOptions?.modifiers&&(be=be.concat(Mr.popperOptions.modifiers)),{...L.popperOptions,...Mr?.popperOptions,modifiers:be}},[X,L.popperOptions,Mr?.popperOptions]),Oi=zk(ct),Oa=typeof z.transition=="function"?z.transition(ct):z.transition,le={slots:{popper:c.Popper,transition:c.Transition??A,tooltip:c.Tooltip,arrow:c.Arrow,...k},slotProps:{arrow:z.arrow??d.arrow,popper:{...L,...Mr??d.popper},tooltip:z.tooltip??d.tooltip,transition:{...M,...Oa??d.transition}}},[we,rt]=ge("popper",{elementType:jk,externalForwardedProps:le,ownerState:ct,className:se(Oi.popper,L?.className)}),[Kr,ka]=ge("transition",{elementType:qn,externalForwardedProps:le,ownerState:ct}),[HI,RI]=ge("tooltip",{elementType:Bk,className:Oi.tooltip,externalForwardedProps:le,ownerState:ct}),[qI,YI]=ge("arrow",{elementType:Lk,className:Oi.arrow,externalForwardedProps:le,ownerState:ct,ref:J});return a.jsxs(T.Fragment,{children:[T.cloneElement(N,xe),a.jsx(we,{as:D??Fc,placement:F,anchorEl:x?{getBoundingClientRect:()=>({top:yi.y,left:yi.x,right:yi.x,bottom:yi.y,width:0,height:0})}:B,popperRef:lt,open:B?q:!1,id:ce,transition:!0,...rr,...rt,popperOptions:Ti,children:({TransitionProps:be})=>a.jsx(Kr,{timeout:W.transitions.duration.shorter,...be,...ka,children:a.jsxs(HI,{...RI,children:[j,o?a.jsx(qI,{...YI}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={arrow:i.bool,children:yn.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});function Wk(e){return pe("MuiSwitch",e)}const St=de("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Vk=e=>{const{classes:t,edge:r,size:n,color:o,checked:s,disabled:l}=e,c={root:["root",r&&`edge${te(r)}`,`size${te(n)}`],switchBase:["switchBase",`color${te(o)}`,s&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=ue(c,Wk,t);return{...t,...d}},Uk=G("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${te(r.edge)}`],t[`size${te(r.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${St.thumb}`]:{width:16,height:16},[`& .${St.switchBase}`]:{padding:4,[`&.${St.checked}`]:{transform:"translateX(16px)"}}}}]}),Hk=G(ha,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${St.input}`]:t.input},r.color!=="default"&&t[`color${te(r.color)}`]]}})(he(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${St.checked}`]:{transform:"translateX(20px)"},[`&.${St.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${St.checked} + .${St.track}`]:{opacity:.5},[`&.${St.disabled} + .${St.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${St.input}`]:{left:"-100%",width:"300%"}})),he(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Tt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${St.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${St.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${St.checked} + .${St.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Rk=G("span",{name:"MuiSwitch",slot:"Track"})(he(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),qk=G("span",{name:"MuiSwitch",slot:"Thumb"})(he(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),mi=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:l=!1,size:c="medium",sx:d,slots:p={},slotProps:u={},...h}=n,v={...n,color:s,edge:l,size:c},g=Vk(v),y={slots:p,slotProps:u},[f,m]=ge("root",{className:se(g.root,o),elementType:Uk,externalForwardedProps:y,ownerState:v,additionalProps:{sx:d}}),[x,b]=ge("thumb",{className:g.thumb,elementType:qk,externalForwardedProps:y,ownerState:v}),w=a.jsx(x,{...b}),[S,C]=ge("track",{className:g.track,elementType:Rk,externalForwardedProps:y,ownerState:v});return a.jsxs(f,{...m,children:[a.jsx(Hk,{type:"checkbox",icon:w,checkedIcon:w,ref:r,ownerState:v,...h,classes:{...g,root:g.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(v):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(v):u.input}}}),a.jsx(S,{...C})]})});process.env.NODE_ENV!=="production"&&(mi.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:vt,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});const Qc=T.createContext();process.env.NODE_ENV!=="production"&&(Qc.displayName="TableContext");function Yk(e){return pe("MuiTable",e)}de("MuiTable",["root","stickyHeader"]);const Gk=e=>{const{classes:t,stickyHeader:r}=e;return ue({root:["root",r&&"stickyHeader"]},Yk,t)},Kk=G("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(he(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),ey="table",ty=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTable"}),{className:o,component:s=ey,padding:l="normal",size:c="medium",stickyHeader:d=!1,...p}=n,u={...n,component:s,padding:l,size:c,stickyHeader:d},h=Gk(u),v=T.useMemo(()=>({padding:l,size:c,stickyHeader:d}),[l,c,d]);return a.jsx(Qc.Provider,{value:v,children:a.jsx(Kk,{as:s,role:s===ey?null:"table",ref:r,className:se(h.root,o),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(ty.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const bi=T.createContext();process.env.NODE_ENV!=="production"&&(bi.displayName="Tablelvl2Context");function Xk(e){return pe("MuiTableBody",e)}de("MuiTableBody",["root"]);const Jk=e=>{const{classes:t}=e;return ue({root:["root"]},Xk,t)},Qk=G("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Zk={variant:"body"},ry="tbody",ny=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableBody"}),{className:o,component:s=ry,...l}=n,c={...n,component:s},d=Jk(c);return a.jsx(bi.Provider,{value:Zk,children:a.jsx(Qk,{className:se(d.root,o),as:s,ref:r,role:s===ry?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(ny.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function eP(e){return pe("MuiTableCell",e)}const tP=de("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),rP=e=>{const{classes:t,variant:r,align:n,padding:o,size:s,stickyHeader:l}=e,c={root:["root",r,l&&"stickyHeader",n!=="inherit"&&`align${te(n)}`,o!=="normal"&&`padding${te(o)}`,`size${te(s)}`]};return ue(c,eP,t)},nP=G("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${te(r.size)}`],r.padding!=="normal"&&t[`padding${te(r.padding)}`],r.align!=="inherit"&&t[`align${te(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(he(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
184
- ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${tP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),qr=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:l,padding:c,scope:d,size:p,sortDirection:u,variant:h,...v}=n,g=T.useContext(Qc),y=T.useContext(bi),f=y&&y.variant==="head";let m;l?m=l:m=f?"th":"td";let x=d;m==="td"?x=void 0:!x&&f&&(x="col");const b=h||y&&y.variant,w={...n,align:o,component:m,padding:c||(g&&g.padding?g.padding:"normal"),size:p||(g&&g.size?g.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&g&&g.stickyHeader,variant:b},S=rP(w);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),a.jsx(nP,{as:m,ref:r,className:se(S.root,s),"aria-sort":C,scope:x,ownerState:w,...v})});process.env.NODE_ENV!=="production"&&(qr.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function oP(e){return pe("MuiTableContainer",e)}de("MuiTableContainer",["root"]);const iP=e=>{const{classes:t}=e;return ue({root:["root"]},oP,t)},sP=G("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),oy=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableContainer"}),{className:o,component:s="div",...l}=n,c={...n,component:s},d=iP(c);return a.jsx(sP,{ref:r,as:s,className:se(d.root,o),ownerState:c,...l})});process.env.NODE_ENV!=="production"&&(oy.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function aP(e){return pe("MuiTableHead",e)}de("MuiTableHead",["root"]);const lP=e=>{const{classes:t}=e;return ue({root:["root"]},aP,t)},cP=G("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),dP={variant:"head"},iy="thead",sy=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableHead"}),{className:o,component:s=iy,...l}=n,c={...n,component:s},d=lP(c);return a.jsx(bi.Provider,{value:dP,children:a.jsx(cP,{as:s,className:se(d.root,o),ref:r,role:s===iy?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(sy.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function pP(e){return pe("MuiTableRow",e)}const ay=de("MuiTableRow",["root","selected","hover","head","footer"]),uP=e=>{const{classes:t,selected:r,hover:n,head:o,footer:s}=e;return ue({root:["root",r&&"selected",n&&"hover",o&&"head",s&&"footer"]},pP,t)},fP=G("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(he(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ay.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ay.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),ly="tr",vi=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTableRow"}),{className:o,component:s=ly,hover:l=!1,selected:c=!1,...d}=n,p=T.useContext(bi),u={...n,component:s,hover:l,selected:c,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=uP(u);return a.jsx(fP,{as:s,ref:r,className:se(h.root,o),role:s===ly?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&(vi.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function hP(e){return pe("MuiTextField",e)}de("MuiTextField",["root"]);const gP={standard:va,filled:ba,outlined:xa},yP=e=>{const{classes:t}=e;return ue({root:["root"]},hP,t)},mP=G(Cg,{name:"MuiTextField",slot:"Root"})({}),Zc=T.forwardRef(function(t,r){const n=fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:l,className:c,color:d="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:v,fullWidth:g=!1,helperText:y,id:f,InputLabelProps:m,inputProps:x,InputProps:b,inputRef:w,label:S,maxRows:C,minRows:O,multiline:I=!1,name:F,onBlur:D,onChange:L,onFocus:z,placeholder:k,required:j=!1,rows:A,select:M=!1,SelectProps:_,slots:N={},slotProps:W={},type:U,value:B,variant:H="outlined",...X}=n,J={...n,autoFocus:s,color:d,disabled:u,error:h,fullWidth:g,multiline:I,required:j,select:M,variant:H},Q=yP(J);process.env.NODE_ENV!=="production"&&M&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Y=an(f),K=y&&Y?`${Y}-helper-text`:void 0,ee=S&&Y?`${Y}-label`:void 0,oe=gP[H],ae={slots:N,slotProps:{input:b,inputLabel:m,htmlInput:x,formHelperText:v,select:_,...W}},Z={},re=ae.slotProps.inputLabel;H==="outlined"&&(re&&typeof re.shrink<"u"&&(Z.notched=re.shrink),Z.label=S),M&&((!_||!_.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const[q,ce]=ge("root",{elementType:mP,shouldForwardComponentProp:!0,externalForwardedProps:{...ae,...X},ownerState:J,className:se(Q.root,c),ref:r,additionalProps:{disabled:u,error:h,fullWidth:g,required:j,color:d,variant:H}}),[ie,ye]=ge("input",{elementType:oe,externalForwardedProps:ae,additionalProps:Z,ownerState:J}),[Le,Oe]=ge("inputLabel",{elementType:Ig,externalForwardedProps:ae,ownerState:J}),[ke,Ce]=ge("htmlInput",{elementType:"input",externalForwardedProps:ae,ownerState:J}),[Ve,Ne]=ge("formHelperText",{elementType:kg,externalForwardedProps:ae,ownerState:J}),[ne,tt]=ge("select",{elementType:bn,externalForwardedProps:ae,ownerState:J}),_e=a.jsx(ie,{"aria-describedby":K,autoComplete:o,autoFocus:s,defaultValue:p,fullWidth:g,multiline:I,name:F,rows:A,maxRows:C,minRows:O,type:U,value:B,id:Y,inputRef:w,onBlur:D,onChange:L,onFocus:z,placeholder:k,inputProps:Ce,slots:{input:N.htmlInput?ke:void 0},...ye});return a.jsxs(q,{...ce,children:[S!=null&&S!==""&&a.jsx(Le,{htmlFor:Y,id:ee,...Oe,children:S}),M?a.jsx(ne,{"aria-describedby":K,id:Y,labelId:ee,value:B,input:_e,...tt,children:l}):_e,y&&a.jsx(Ve,{id:K,...Ne,children:y})]})});process.env.NODE_ENV!=="production"&&(Zc.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:vt,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const Ze=Gf({themeId:Po});function Ir(){return{...$.useMemo(()=>({global:{body:{margin:12,boxSizing:"border-box",width:"100vw",maxWidth:"100vw",overflowX:"hidden",overscrollBehaviorX:"none"},html:{overflowX:"hidden"}},topBar:{root:{bgcolor:"background.paper",py:1.5,px:0,borderBottom:1,borderColor:"divider"},headerRow:{display:"flex",justifyContent:"flex-end",alignItems:"right",mb:1.5},controlRow:{display:"flex",alignItems:"center",gap:1},storeDropdown:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333",fontWeight:500},filterBtn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333"},iconBtn:{minWidth:36,width:36,height:36,p:0,color:"#666","&:hover":{bgcolor:"#f5f5f5"}},rightIcons:{display:"flex",alignItems:"center",gap:1}},header:{container:{px:0,py:1.5},title:{fontSize:"22px",fontWeight:700,color:"#333",mb:1.5},subtitle:{fontSize:"16px",color:"#666",fontWeight:500,mb:1.5},actionLink:{fontSize:"16px",color:"#2563eb",fontWeight:600,textDecoration:"underline",cursor:"pointer",mt:1},statsScroll:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:140,bgcolor:"background.paper",border:1,borderColor:"#e8e8e8",borderRadius:2,p:1.5},statLabel:{fontSize:"12px",color:"#888",mb:.3,fontWeight:400},statValue:{fontSize:"28px",fontWeight:700,color:"#333",lineHeight:1.2,mb:.3},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",cursor:"pointer",ml:.5}},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1.5,bgcolor:"#fafafa"},productCount:{fontSize:"13px",fontWeight:400,color:"#666"},checkboxIcon:{display:"flex",alignItems:"center",justifyContent:"center"}},productCard:{root:{bgcolor:"background.paper",borderBottom:1,borderColor:"#f0f0f0",p:2,position:"relative"},offerBadge:{position:"absolute",top:12,right:12,color:"#454545",px:1,py:.3,borderRadius:.5,fontSize:"11px",fontWeight:500},contentRow:{display:"flex",alignItems:"flex-start",gap:1.5},checkbox:{p:0,mt:.5},image:{width:56,height:56,bgcolor:"#f8f8f8",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},details:{flex:1,minWidth:0,pr:10},name:{fontSize:"14px",fontWeight:600,color:"#333",textDecoration:"none",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:1.3,mb:.3},meta:{fontSize:"12px",color:"#888",mb:.2},sku:{fontSize:"11px",color:"#aaa",mb:.5},priceRow:{display:"flex",alignItems:"center",gap:.5},price:{fontSize:"14px",fontWeight:700,color:"#333"},originalPrice:{fontSize:"12px",color:"#999",textDecoration:"line-through"},discount:{fontSize:"11px",color:"#28a745",fontWeight:600}},floatingActions:{root:{position:"fixed",left:0,right:0,bottom:0,bgcolor:"#1a1a1a",color:"white",px:2,pt:1.5,pb:2,display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,zIndex:1200,borderRadius:"16px 16px 0 0"},countText:{fontSize:"15px",fontWeight:400,color:"#fff",textAlign:"center"},buttonRow:{display:"flex",gap:1.5,width:"100%"},btn:{flex:1,bgcolor:"#333",color:"white",fontSize:"14px",fontWeight:500,py:1.2,borderRadius:1.5,textTransform:"none",display:"flex",alignItems:"center",justifyContent:"center",gap:1,"&:hover":{bgcolor:"#444"}}},logo:{container:{display:"flex",alignItems:"center",gap:1},icon:{width:32,height:32,bgcolor:"#f97316",borderRadius:1.5,display:"flex",alignItems:"center",justifyContent:"center"},iconText:{color:"white",fontSize:"14px",fontWeight:700},textContainer:{display:"flex",flexDirection:"column"},brandName:{fontSize:"16px",fontWeight:700,color:"#333",lineHeight:1.2},tagline:{fontSize:"10px",color:"#888",lineHeight:1}},headerIcons:{container:{display:"flex",alignItems:"center",gap:1.5},iconBtn:{position:"relative",color:"#333"},notificationDot:{position:"absolute",top:0,right:0,width:8,height:8,bgcolor:"#ef4444",borderRadius:"50%"},avatar:{width:32,height:32,bgcolor:"#3b82f6",fontSize:"13px",fontWeight:600}},emptyProduct:{wrapper:{position:"relative",mx:1,my:1,overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"350px",bgcolor:"#fff",mx:2,py:6,px:2,borderRadius:2,border:"1px solid #e8e8e8",position:"relative",zIndex:1,overflowX:"hidden"},iconContainer:{position:"relative",mb:2},sparkleContainer:{position:"absolute",top:-20,left:"50%",transform:"translateX(-50%)",width:40,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:16,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:70,height:55,border:"2px solid #5b9bd5",borderRadius:"6px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-2,left:"50%",transform:"translateX(-50%)",width:28,height:18,bgcolor:"#fff",borderBottomLeftRadius:14,borderBottomRightRadius:14,borderLeft:"2px solid #5b9bd5",borderRight:"2px solid #5b9bd5",borderBottom:"2px solid #5b9bd5"},title:{fontSize:"22px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"18px",color:"#888",mb:1},actionLink:{fontSize:"18px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSetting:{wrapper:{background:"#f7f8fa",minHeight:"100vh",margin:"0 -5px",marginbottom:4},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:0,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"15px",color:"#666"},breadcrumbActive:{fontSize:"22px",fontWeight:400,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:28,height:28,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{width:"100vw",maxWidth:"100vw",mx:"auto",px:2,py:2,overflowX:"hidden"},section:{mb:2.5,width:"100vw",maxWidth:"93vw",overflowX:"hidden"},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1},sectionTitle:{fontSize:"13px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"11px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:1.5,py:1.25,mb:1,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:1.5,py:1.25,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1},settingIcon:{width:32,height:32,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"13px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"11px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,mr:5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},syncNowText:{fontSize:"11px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,mr:4,px:1.5,py:1.25,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:300,mx:1,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:1.5,py:1.2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"13px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:1.5,py:1.2},radioIcon:{width:16,height:16},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"12px",color:"#333"},formControlLabel:{mx:0,py:.4,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:1.2,pt:1.2,pl:1.2,pr:1.2,pb:1.2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"11px",color:"#000000",maxWidth:120},managePlanLink:{fontSize:"11px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:1.5,pb:1.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"12px",fontWeight:500,py:1,borderRadius:1.5,boxShadow:"none"}},productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:2,py:0},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:0,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"13px",color:"#666"},breadcrumbActive:{fontSize:"13px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:28,height:28,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:"100%",mx:"auto",px:2,py:2},section:{maxWidth:"100%",mx:0,mb:2},sectionTitle:{fontSize:"13px",fontWeight:600,color:"#222",mb:1},sectionCount:{fontSize:"11px",color:"#aaa",fontWeight:400},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:1.5,py:1,mb:1,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",cursor:"pointer",border:"none"},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:1.5,py:1,mb:1,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:1},cardTitle:{fontSize:"13px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"11px",color:"#888"},ftpIcon:{width:18,height:18,bgcolor:"#2D64B8",borderRadius:1,mr:1}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:"100%",mx:1},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2,px:2},section:{mb:2.5},sectionTitle:{fontSize:"13px",fontWeight:600,mb:1},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.85rem"}},checkboxGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:.5,columnGap:2},designContainer:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2,p:1,cursor:"pointer",width:130,minWidth:130,height:100,textAlign:"center",bgcolor:"#FFFFFF",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:40,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.3},percentText:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:25},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.3,gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",lineHeight:1.2},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",lineHeight:1.2,fontWeight:600,color:"#000000",minHeight:12}},design2:{topSection:{minHeight:50},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"16px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",mt:.3,lineHeight:1.2},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2}},design3:{productName:{fontFamily:"Inter, sans-serif",fontSize:"7px",lineHeight:1.2,fontWeight:600,color:"#000000"},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.3,minHeight:10},priceText:{fontFamily:"Inter, sans-serif",fontSize:"7px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"16px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"14px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},sheetSizeGroup:{display:"flex",gap:.75},sheetSizeBtn:{flex:1,py:.75,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:2,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:3,py:1,width:"100%",fontSize:"14px","&:hover":{bgcolor:"primary.dark"}}},stepper:{},createCatalogModal:{}}),[]),categoriesView:{root:{p:2,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:1,my:2,flexDirection:"column"},summaryCard:{flex:1,borderRadius:2,boxShadow:1,p:1,minWidth:120},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:2,boxShadow:1,p:1,mb:2},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"text.secondary",fontSize:13,pb:1,borderBottom:"1px solid #eee"},categoryTableHeaderCell:{flex:2},categoryTableRow:()=>({display:"flex",alignItems:"center",py:1.5,borderBottom:"1px solid #eee"}),categoryNameCell:{flex:2},categoryName:{fontWeight:600,fontSize:13,color:"text.primary"},categoryProducts:{fontSize:11,color:"text.secondary",mt:.2},categoryUpdated:{fontSize:10,color:"#bbb",mt:.2},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:13,color:"#454545",fontWeight:500}),categoryOSA:()=>({fontSize:11,color:"#808080",mt:.2}),categoryImagesCell:{flex:2,display:"flex",gap:.5},categoryImage:{width:28,height:28,borderRadius:2,border:"1px solid #eee",objectFit:"cover"},categoryViewCell:{flex:2,textAlign:"right"},categoryViewButton:{borderRadius:1,px:1.5,fontWeight:600,fontSize:12}}}}function Nr(){return $.useMemo(()=>({topBar:{root:{bgcolor:"#fff",px:2,py:.5,borderBottom:"1px solid #e0e0e0",minWidth:"100vw",overflowX:"auto",marginBottom:0},searchBox:{display:"flex",alignItems:"center",position:"relative",minWidth:180,maxWidth:220,mr:1.5},searchInput:{fontSize:"13px",color:"#222",width:"100%",height:36,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,boxSizing:"border-box"},btn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:1,px:2,height:36,fontSize:13,fontWeight:500,color:"#222",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#f3f4f6",borderColor:"#ccc"}},iconOnly:{minWidth:36,width:36,height:36,p:0,color:"#555",borderRadius:1,bgcolor:"#fff",border:"1px solid #e0e0e0",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{bgcolor:"#f3f4f6",color:"#111"}}},header:{container:{display:"flex",flexDirection:"row",gap:2,my:1,px:3,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:180,bgcolor:"background.paper",borderRadius:2,p:2,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.04)"},statLabel:{fontSize:"12px",color:"#888",mb:.5},statValue:{fontSize:"26px",fontWeight:700,color:"#333",mb:.5},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",display:"block",mt:.5}},productCard:{root:{borderBottom:1,borderColor:"divider",p:2,mx:2,bgcolor:"background.paper",transition:"all 0.2s ease",borderRadius:1,"&:hover":{bgcolor:"#f9f9f9"}},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},image:{width:56,height:56,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"28px",overflow:"hidden",flexShrink:0},name:{fontSize:"13px",fontWeight:600,color:"#454545",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{px:2,py:.4,borderRadius:.5,fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(200px, 1fr) 90px 120px 100px 140px",gap:1.5,alignItems:"center",px:2},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(280px, 1fr) 100px 150px",gap:2,alignItems:"center",px:2},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,py:1.5,bgcolor:"#f9fafb",borderBottom:1,borderColor:"divider"},productCount:{fontSize:"14px",color:"#666"},gridHeader:{display:"grid",bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"13px",color:"#6b7280"}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:24,zIndex:1200},inner:{bgcolor:"#111",color:"white",px:3,py:1.5,borderRadius:2,display:"flex",alignItems:"center",gap:2,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.3)"},count:{fontWeight:600,fontSize:"15px",whiteSpace:"nowrap"},divider:{width:1,height:28,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2.5,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"14px",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}}},table:{container:{mx:2,borderRadius:2,border:1,borderColor:"divider",overflow:"hidden"},cell:{fontSize:"13px",py:1.5,px:1.5},headerCell:{fontSize:"12px",fontWeight:600,color:"#6b7280",py:1.5,px:1.5,bgcolor:"#f9fafb"}},modal:{dialog:{borderRadius:2,maxWidth:520,mx:3},content:{p:3}},productSetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:560,mx:"auto",px:3,py:3},section:{mb:3,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 8px rgba(0,0,0,0.06)",p:2.5},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1.5},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"12px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1.5},settingIcon:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"14px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"12px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},syncNowText:{fontSize:"12px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSync:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,margin:0},stepperHeader:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"24px 0 16px 0"},stepperContainer:{width:"98vw",maxWidth:400,margin:"0 auto",position:"relative"},stepperRow:{display:"flex",justifyContent:"center",position:"relative",minHeight:40,marginBottom:12},grayLine:{position:"absolute",top:45,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},grayLineTransition:"left 1.2s cubic-bezier(0.4,0,0.2,1), width 1.2s cubic-bezier(0.4,0,0.2,1)",greenBar:{position:"absolute",top:45,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},greenBarTransition:"width 1.2s cubic-bezier(0.4,0,0.2,1)",stepLabel:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:13,marginBottom:6,fontFamily:"Inter, sans-serif"},activeStepColor:"#222",inactiveStepColor:"#b3b3b3",activeStepWeight:700,inactiveStepWeight:500,tickIconContainer:{height:24,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"},mainContainer:{width:"98vw",maxWidth:420,minHeight:400,background:"#fff",borderRadius:12,margin:"0 auto",boxShadow:"0 2px 8px #0001",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0 0 32px 0"},instructionsContainer:{background:"#f7f8fa",borderRadius:14,padding:"18px 12px 16px 12px",minWidth:220,maxWidth:340,margin:"24px auto 0 auto",boxShadow:"0 1px 4px #0002",display:"flex",flexDirection:"column",alignItems:"center"},instructionsTitle:{fontWeight:700,fontSize:16,marginBottom:10,fontFamily:"Inter, sans-serif",textAlign:"left",width:"100%"},instructionsList:{color:"#222",fontSize:13,margin:0,paddingLeft:18,marginBottom:16,textAlign:"left",width:"100%"},nextButton:{background:"#2563eb",color:"#fff",border:"none",borderRadius:6,padding:"8px 20px",fontWeight:600,fontSize:14,cursor:"pointer",boxShadow:"0 2px 6px #2563eb22",alignSelf:"flex-end",marginTop:6}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:4,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSync1:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,marginTop:0,marginBottom:0,marginRight:-8,marginLeft:-5},stepperHeader:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"32px 0 24px 0"},stepperContainer:{width:700,maxWidth:"95vw",margin:"0 auto",position:"relative"},stepperRow:{display:"flex",justifyContent:"center",position:"relative",minHeight:42,marginBottom:12},grayLine:{position:"absolute",top:55,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},grayLineTransition:"left 1.2s cubic-bezier(0.4,0,0.2,1), width 1.2s cubic-bezier(0.4,0,0.2,1)",greenBar:{position:"absolute",top:55,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},greenBarTransition:"width 1.2s cubic-bezier(0.4,0,0.2,1)",stepLabel:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:15,marginBottom:6,fontFamily:"Inter, sans-serif"},activeStepColor:"#222",inactiveStepColor:"#b3b3b3",activeStepWeight:700,inactiveStepWeight:500,tickIconContainer:{height:28,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"},mainContainer:{width:800,maxWidth:"97vw",minHeight:500,background:"#fff",borderRadius:14,margin:"0 auto",boxShadow:"0 2px 12px #0001",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:0},instructionsContainer:{background:"#f7f8fa",borderRadius:18,padding:"24px 24px 20px 24px",minWidth:280,maxWidth:360,margin:"28px auto 0 auto",boxShadow:"0 1px 6px #0002",display:"flex",flexDirection:"column",alignItems:"center"},instructionsTitle:{fontWeight:700,fontSize:18,marginBottom:12,fontFamily:"Inter, sans-serif",textAlign:"left",width:"100%"},instructionsList:{color:"#222",fontSize:15,margin:0,paddingLeft:18,marginBottom:18,textAlign:"left",width:"100%"},nextButton:{background:"#2563eb",color:"#fff",border:"none",borderRadius:8,padding:"9px 24px",fontWeight:600,fontSize:15,cursor:"pointer",boxShadow:"0 2px 8px #2563eb22",alignSelf:"flex-end",marginTop:7},input:{width:"100%",padding:"9px 11px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,marginBottom:0,background:"#fff",outline:"none",boxSizing:"border-box"},passwordInput:{width:"100%",padding:"9px 34px 9px 11px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,background:"#fff",outline:"none",boxSizing:"border-box"},backButton:{background:"#fff",color:"#2563eb",border:"1px solid #2563eb",borderRadius:8,padding:"9px 24px",fontWeight:600,fontSize:15,cursor:"pointer",marginRight:8}},productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:2,py:0},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:1.5},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"13px",color:"inherit"},divider:{height:18,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"13px",color:"#666"},breadcrumbActive:{fontSize:"13px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1},bellButton:{color:"#666"},avatar:{width:30,height:30,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:"100%",mx:"auto",px:2,py:2},section:{maxWidth:"100%",mx:0,mb:2},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#222",mb:1.5},sectionCount:{fontSize:"12px",color:"#aaa",fontWeight:400},sectionTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNow:{color:"#1976d2",fontWeight:500,fontSize:"13px",cursor:"pointer"},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:2,py:1.5,mb:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",border:"1px solid #e0e0e0",cursor:"pointer",transition:"border 0.2s, box-shadow 0.2s, background 0.2s","&:hover":{border:"1.5px solid #1976D2",background:"#f5faff",boxShadow:"0 2px 6px rgba(25, 118, 210, 0.08)"}},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:2,py:1.5,mb:1.5,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:1.5},cardTitle:{fontSize:"14px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"12px",color:"#888"},cardGrid:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1.5,mb:1.5},cardGridItem:{flex:1},ftpIcon:{width:20,height:20,bgcolor:"#2D64B8",borderRadius:1,mr:1.5}},categoriesView:{root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:2,my:3},summaryCard:{flex:1,borderRadius:2,boxShadow:1,p:2,minWidth:140},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:2,boxShadow:1,p:2,mb:2},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"text.secondary",fontSize:13,pb:1,borderBottom:"1px solid #eee"},categoryTableHeaderCell:{flex:2},categoryTableRow:()=>({display:"flex",alignItems:"center",py:1.5,borderBottom:"1px solid #eee"}),categoryNameCell:{flex:2},categoryName:{fontWeight:600,fontSize:14,color:"text.primary"},categoryProducts:{fontSize:11,color:"text.secondary",mt:.2},categoryUpdated:{fontSize:10,color:"#bbb",mt:.2},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:13,color:"#454545",fontWeight:500}),categoryOSA:()=>({fontSize:11,color:"#808080",mt:.2}),categoryImagesCell:{flex:2,display:"flex",gap:.5},categoryImage:{width:32,height:32,borderRadius:2,border:"1px solid #eee",objectFit:"cover"},categoryViewCell:{flex:2,textAlign:"right"},categoryViewButton:{borderRadius:1,px:2,fontWeight:600}}}),[])}const ed=({product:e,isSelected:t,onToggle:r,styles:n,showLimitedColumns:o})=>{const s=Ge(),l=Ze(s.breakpoints.down("sm")),c=Ze(s.breakpoints.between("sm","md")),d=Ir(),p=Nr(),u=e.price??0,h=e.percentageOff??0;let v=u;u>0&&h>0&&(v=Math.round(u*(1-h/100)));const g=e.inShelf??e.inshelff??e.onShelf??e.quantity??0,y=e.stock??e.totalStock??e.maxStock??0,f=y>0?Math.round(g/y*100):0,x=(b=>b?b.startsWith("http")?b:`${$u()}${b}`:null)(e.productImage||e.image);if(!l&&!c)return!n||!n.productCard?null:a.jsxs(E,{sx:{...n.productCard.root,...o?n.gridSystemLimited:n.gridSystem,bgcolor:t?"#f0f9ff":"background.paper"},children:[a.jsx(Qe,{checked:t||!1,onChange:r,size:"small",sx:{p:.5}}),a.jsxs(E,{sx:n.productCard.content,children:[a.jsx(E,{sx:n.productCard.image,children:x?a.jsx(E,{component:"img",src:x,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):a.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),a.jsxs(E,{sx:{flex:1,minWidth:0},children:[a.jsx(P,{component:oo,to:`/product/${e.id}`,sx:{...n.productCard.name,textDecoration:"none",display:"block"},children:e.name}),a.jsxs(P,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),a.jsx(P,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),a.jsx(E,{children:a.jsx(E,{sx:{...n.productCard.badge,...e.status===!0||e.status==="Active"?n.productCard.badge.active:n.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),!o&&a.jsx(E,{children:h>0?a.jsxs(a.Fragment,{children:[a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",v]}),a.jsxs(P,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",u]}),a.jsxs(P,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[h,"% OFF"]})]}):a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",u]})}),a.jsxs(E,{children:[a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[a.jsx(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:g}),a.jsxs(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",y.toLocaleString()]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[a.jsxs(P,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[f,"%"]}),a.jsx(P,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),!o&&a.jsx(E,{children:a.jsx(P,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]});if(l){const b=d;return a.jsxs(E,{sx:{...b.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[e.offer&&a.jsx(E,{sx:b.productCard.offerBadge,children:e.offer}),a.jsxs(E,{sx:b.productCard.contentRow,children:[a.jsx(Qe,{checked:t||!1,onChange:r,size:"small",sx:b.productCard.checkbox}),a.jsx(E,{sx:b.productCard.image,children:x?a.jsx(E,{component:"img",src:x,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):a.jsx("span",{style:{fontSize:"24px"},children:"📷"})}),a.jsxs(E,{sx:b.productCard.details,children:[a.jsx(P,{component:oo,to:`/product/${e.id}`,sx:b.productCard.name,children:e.name}),a.jsx(P,{sx:b.productCard.meta,children:e.productWeight||"43g"}),a.jsxs(P,{sx:b.productCard.sku,children:["SKU: ",e.sku||"234987"]}),a.jsxs(E,{sx:b.productCard.priceRow,children:[a.jsxs(P,{sx:b.productCard.price,children:["₹",v]}),h>0&&a.jsxs(a.Fragment,{children:[a.jsxs(P,{sx:b.productCard.originalPrice,children:["₹",u]}),a.jsxs(P,{sx:b.productCard.discount,children:[h,"% OFF"]})]})]})]})]})]})}if(c){const b=p;return a.jsxs(E,{sx:{...b.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[a.jsxs(E,{sx:b.productCard.content,children:[a.jsx(E,{sx:b.productCard.image,children:x?a.jsx(E,{component:"img",src:x,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):a.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),a.jsxs(E,{sx:{flex:1,minWidth:0},children:[a.jsx(P,{component:oo,to:`/product/${e.id}`,sx:b.productCard.name,children:e.name}),a.jsxs(P,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),a.jsx(P,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),a.jsx(E,{children:a.jsx(E,{sx:{...b.productCard.badge,...e.status===!0||e.status==="Active"?b.productCard.badge.active:b.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),a.jsx(E,{children:h>0?a.jsxs(a.Fragment,{children:[a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",v]}),a.jsxs(P,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",u]}),a.jsxs(P,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[h,"% OFF"]})]}):a.jsxs(P,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",u]})}),a.jsxs(E,{children:[a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[a.jsx(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:g}),a.jsxs(P,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",y.toLocaleString()]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[a.jsxs(P,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[f,"%"]}),a.jsx(P,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),a.jsx(E,{children:a.jsx(P,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]})}};function Pt(){const t={theme:$.useMemo(()=>hc({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:0,py:0,mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{maxWidth:520,mx:"auto",mb:4},sectionTitle:{fontSize:"15px",fontWeight:600,color:"#222",mb:1.5},sectionCount:{fontSize:"13px",color:"#aaa",fontWeight:400},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",border:"1px solid #e0e0e0",cursor:"pointer",transition:"border 0.2s, box-shadow 0.2s, background 0.2s","&:hover":{border:"1.5px solid #1976D2",background:"#f5faff",boxShadow:"0 2px 8px rgba(25, 118, 210, 0.08)"}},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:2},cardTitle:{fontSize:"15px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"13px",color:"#888"},ftpIcon:{width:24,height:24,bgcolor:"#2D64B8",borderRadius:1,mr:2}},flexBetween:{display:"flex",justifyContent:"space-between",alignItems:"center"},flexCenter:{display:"flex",justifyContent:"center",alignItems:"center"},topBar:{root:{bgcolor:"background.paper",marginBottom:"20px"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,maxWidth:"100%"},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},productCard:{root:{borderBottom:1,borderColor:"divider",p:"0.25rem 0.25rem",m:"4px",bgcolor:"background.paper",transition:"all 0.3s ease",borderRadius:1,width:"100%",maxWidth:1100,mx:"auto"},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:3},image:{width:50,height:50,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",overflow:"hidden",flexShrink:0},name:{fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:600,letterSpacing:"0px",color:"#454545",width:"166px",display:"-webkit-box",WebkitLineClamp:2,lineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{width:"30%",px:2.5,py:.5,mr:2,borderRadius:.5,fontSize:"0.8rem",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(250px, 1fr) 100px 150px 120px 160px",gap:2,alignItems:"center",px:3},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(400px, 1fr) 120px 180px",gap:5,alignItems:"center",px:3},listHeader:{root:{bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"0.85rem",color:"#6b7280",width:"100%",maxWidth:1100,mx:"auto"}},header:{container:{display:"flex",gap:3,my:1,width:"100%",px:3,maxWidth:1e3,mx:"auto"},statCard:{bgcolor:"background.paper",borderRadius:2,p:3,flex:1,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.05)"},bigNumber:{fontSize:"1.8rem",fontWeight:700,color:"#000",mb:.5}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:30,zIndex:1200,animation:"slideUp 0.3s ease-out","@keyframes slideUp":{from:{transform:"translate(-50%, 100%)",opacity:0},to:{transform:"translate(-50%, 0)",opacity:1}}},inner:{bgcolor:"#111",color:"white",px:2,py:1,borderRadius:2,display:"flex",alignItems:"center",gap:1.5,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",justifyContent:"space-between"},count:{fontWeight:600,fontSize:"0.9rem",whiteSpace:"nowrap"},divider:{width:1,height:24,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"0.85rem",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}},btnPrimary:{"&:hover":{bgcolor:"#2563eb"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,height:120,textAlign:"center",bgcolor:"#FFFFFF",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:50,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.5},percentText:{fontFamily:"Inter, sans-serif",fontSize:"22px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,letterSpacing:"0px",display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2,letterSpacing:"0px"},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",minHeight:14}},design2:{topSection:{minHeight:60},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:600,color:"#000000",mt:.5,lineHeight:1.3,letterSpacing:"0px"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"}},design3:{topSection:{minHeight:20},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px"},middleSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"},bottomSection:{minHeight:30},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"25%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{mb:3},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1.5},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"12px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1.5},settingIcon:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"14px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"12px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888"},syncNowText:{fontSize:"12px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:2,bgcolor:"#fff",border:"1px solid #e8e8e8",px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}},productSync:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,marginTop:0,marginBottom:0,marginRight:-8,marginLeft:-5},width:"100%",padding:"10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,marginBottom:0,background:"#fff",outline:"none",boxSizing:"border-box"},passwordInput:{width:"100%",padding:"10px 38px 10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,background:"#fff",outline:"none",boxSizing:"border-box"},backButton:{background:"#fff",color:"#2563eb",border:"1px solid #2563eb",borderRadius:8,padding:"10px 32px",fontWeight:600,fontSize:16,cursor:"pointer",marginRight:8}},r={root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:0,boxShadow:"none",background:"#fff",p:0,mb:3},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"#222",fontSize:16,pb:2,borderBottom:"1px solid #f0f0f0",background:"#f7f8fa",borderTopLeftRadius:0,borderTopRightRadius:0},categoryTableHeaderCell:{flex:2,marginLeft:7},categoryTableRow:()=>({display:"flex",alignItems:"center",py:3,borderBottom:"1px solid #f0f0f0",background:"#fff",borderRadius:0,transition:"background 0.2s",boxShadow:"none",marginLeft:7}),categoryNameCell:{flex:2},categoryName:{fontWeight:700,fontSize:18,color:"#222"},categoryProducts:{fontSize:14,color:"#888",mt:.5},categoryUpdated:{fontSize:13,color:"#aaa",mt:.5},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:16,color:"#222",fontWeight:600}),categoryOSA:()=>({fontSize:14,color:"#e53935",mt:.5}),categoryImagesCell:{flex:2,display:"flex",gap:1.5},categoryImage:{width:48,height:48,borderRadius:8,border:"1px solid #eee",objectFit:"cover",background:"#f5f5f5"},categoryViewCell:{flex:1},categoryViewButton:{background:"none",color:"#444",fontWeight:400,fontSize:18,textTransform:"none",p:0,boxShadow:"none",justifyContent:"flex-end","&:hover":{background:"none",boxShadow:"none"}}};return t.categoriesView=r,t}function td(){return td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(this,arguments)}function bP(e,t){if(e==null)return{};var r=vP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var rd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=bP(e,["color","size"]);return $.createElement("svg",td({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),$.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),$.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),$.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});rd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},rd.displayName="AlignLeft";function nd(){return nd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nd.apply(this,arguments)}function xP(e,t){if(e==null)return{};var r=SP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var od=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=xP(e,["color","size"]);return $.createElement("svg",nd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),$.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});od.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},od.displayName="Bell";function id(){return id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},id.apply(this,arguments)}function wP(e,t){if(e==null)return{};var r=CP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Ca=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=wP(e,["color","size"]);return $.createElement("svg",id({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("polyline",{points:"6 9 12 15 18 9"}))});Ca.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Ca.displayName="ChevronDown";function sd(){return sd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sd.apply(this,arguments)}function EP(e,t){if(e==null)return{};var r=TP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var xi=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=EP(e,["color","size"]);return $.createElement("svg",sd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),$.createElement("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}))});xi.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},xi.displayName="Link";function ad(){return ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ad.apply(this,arguments)}function OP(e,t){if(e==null)return{};var r=kP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var ld=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=OP(e,["color","size"]);return $.createElement("svg",ad({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("circle",{cx:"12",cy:"12",r:"1"}),$.createElement("circle",{cx:"12",cy:"5",r:"1"}),$.createElement("circle",{cx:"12",cy:"19",r:"1"}))});ld.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},ld.displayName="MoreVertical";function cd(){return cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cd.apply(this,arguments)}function PP(e,t){if(e==null)return{};var r=IP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Si=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=PP(e,["color","size"]);return $.createElement("svg",cd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("polyline",{points:"6 9 6 2 18 2 18 9"}),$.createElement("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),$.createElement("rect",{x:"6",y:"14",width:"12",height:"8"}))});Si.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Si.displayName="Printer";function dd(){return dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dd.apply(this,arguments)}function NP(e,t){if(e==null)return{};var r=_P(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _P(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var pd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=NP(e,["color","size"]);return $.createElement("svg",dd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("circle",{cx:"11",cy:"11",r:"8"}),$.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});pd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},pd.displayName="Search";function ud(){return ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(this,arguments)}function AP(e,t){if(e==null)return{};var r=MP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var fd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=AP(e,["color","size"]);return $.createElement("svg",ud({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("circle",{cx:"12",cy:"12",r:"3"}),$.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});fd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},fd.displayName="Settings";function hd(){return hd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hd.apply(this,arguments)}function $P(e,t){if(e==null)return{};var r=DP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var gd=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=$P(e,["color","size"]);return $.createElement("svg",hd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),$.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),$.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});gd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},gd.displayName="ShoppingBag";function yd(){return yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yd.apply(this,arguments)}function FP(e,t){if(e==null)return{};var r=zP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var md=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=FP(e,["color","size"]);return $.createElement("svg",yd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}))});md.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},md.displayName="Star";function bd(){return bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bd.apply(this,arguments)}function jP(e,t){if(e==null)return{};var r=BP(e,t),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BP(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var wi=$.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,s=o===void 0?24:o,l=jP(e,["color","size"]);return $.createElement("svg",bd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});wi.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},wi.displayName="X";const Yr=({filters:e,onFilterChange:t,stores:r=[],onOpenFilterModal:n,StoresModal:o,storesModalProps:s,onStoreSelect:l,showBackButton:c=!1,hideViewSwitch:d=!1,isHomeDefault:p=!1,tenantStatus:u={matched:!0},hasProducts:h=!1})=>{const v=et();Ge();const g=Pt(),[y,f]=$.useState("OSA"),[m,x]=$.useState(null),b=!!m,[w,S]=$.useState(!1),C=Array.isArray(e?.store)?e.store:[],O=()=>{x(null)},[I,F]=$.useState(C),D=N=>{let W=[...I];N==="all"?I.includes("all")?W=[]:W=["all"]:I.includes(N)?W=I.filter(U=>U!==N&&U!=="all"):(W=I.filter(U=>U!=="all"),W.push(N)),F(W)},L=N=>{o?S(!0):(F(C),x(N.currentTarget))},z=()=>{t({...e,store:I}),x(null)},k=N=>{l?l(N):t({...e,store:N}),S(!1)},j=()=>{S(!1)},M=g.topBar||{},_=M&&M.viewSwitch||{};return a.jsxs(a.Fragment,{children:[a.jsx(E,{sx:M.root,children:a.jsxs(E,{sx:M.inner,children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",marginBottom:"20px"},children:[c&&a.jsxs(Se,{variant:"text",size:"small",sx:{minWidth:0,px:2,color:"#222",fontWeight:400,fontSize:15,textTransform:"none",display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none","&:hover":{background:"none",boxShadow:"none"}},disableRipple:!0,onClick:()=>v("/home"),children:[a.jsx("span",{style:{fontSize:20,fontWeight:400,color:"#222",marginRight:6},children:"<"}),a.jsx("span",{style:{fontSize:15,fontWeight:400,color:"#222"},children:"Back"})]}),a.jsxs(E,{sx:M.searchBox,children:[a.jsx(pd,{size:18,style:{position:"absolute",left:0,color:"#888"}}),a.jsx(ti,{placeholder:"Search Products",value:e.search,onChange:N=>t({...e,search:N.target.value}),sx:{...M.searchInput||{},pl:3.5}})]})]}),a.jsxs(E,{sx:M.controlGroup,children:[a.jsxs(E,{sx:{display:"flex",gap:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"6px",px:1.5,minWidth:80,cursor:"pointer",gap:1,...M.btn||{}},onClick:L,tabIndex:0,"aria-label":"Select stores",children:[a.jsx(gd,{size:18,style:{color:"#555",marginRight:4}}),a.jsx(P,{sx:{fontWeight:700,fontSize:15,color:"#222",mr:.5},children:C.length===0||C.includes("all")?"All Stores":`${C.length} Stores`}),a.jsx(P,{sx:{fontWeight:400,fontSize:15,color:"#888",ml:.5},children:` ${r.filter(N=>N.id!=="all").length} stores`}),a.jsx(Ca,{size:16,color:"#888",style:{marginLeft:2}})]}),a.jsxs(Yc,{anchorEl:m,open:b,onClose:O,PaperProps:{style:{minWidth:180}},children:[a.jsxs(Rt,{onClick:()=>D("all"),children:[a.jsx(Qe,{checked:I.includes("all")}),a.jsx(Hc,{primary:"All Stores"})]}),a.jsx(Ke,{}),r.filter(N=>N.id!=="all").map(N=>a.jsxs(Rt,{onClick:()=>D(N.id),children:[a.jsx(Qe,{checked:I.includes(N.id)}),a.jsx(Hc,{primary:N.name})]},N.id)),a.jsx(Ke,{}),a.jsx(E,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:a.jsx(Se,{variant:"contained",size:"small",onClick:z,children:"Apply"})})]}),a.jsxs(E,{sx:M.btn,onClick:n,children:[a.jsx(P,{variant:"body2",children:p?"MTD":"Filters"}),a.jsx(Ca,{size:14,color:"#888"})]}),a.jsxs(E,{sx:M.btn,children:[a.jsx(P,{variant:"body2",children:"Sort"}),a.jsx(rd,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),!d&&a.jsxs(E,{sx:{display:"flex",gap:1.5},children:[a.jsx(E,{component:"button",onClick:()=>f("OSA"),sx:{..._.opt||{},...y==="OSA"&&_.active},children:"OSA"}),a.jsx(E,{component:"button",onClick:()=>f("Catalogs"),sx:{..._.opt||{},...y==="Catalogs"&&_.active},children:"Catalogs"})]}),!d&&a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),a.jsxs(E,{sx:{display:"flex",gap:1,alignItems:"center"},children:[!d&&a.jsxs(a.Fragment,{children:[a.jsx(E,{component:"button",sx:{...M.iconOnly,cursor:u.loading?"not-allowed":"pointer",opacity:u.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:u.loading?"none":"auto"},title:u.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{u.loading||(h?v("/product-setting",{state:{tenantIntegrationMatched:!0}}):v("/product-setting",{state:{tenantIntegrationMatched:!1}}))},children:a.jsx(fd,{size:20})}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}})]}),a.jsx(E,{component:"button",sx:M.iconOnly,title:"More",children:a.jsx(ld,{size:20})})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[a.jsx(E,{component:"button",sx:M.iconOnly,title:"Notifications",children:a.jsx(od,{size:20})}),a.jsx(E,{component:"button",sx:M.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:a.jsx(md,{size:20})})]})]})]})}),o&&(()=>{const{open:N,onClose:W,onStoreSelect:U,...B}=s||{};return a.jsx(o,{open:w,onClose:j,onStoreSelect:k,selectedStores:C,...B})})()]})};function LP({showTopBar:e=!0}){const t=Ge(),r=Ze(t.breakpoints.down("sm")),n=Ze(t.breakpoints.between("sm","md")),o=et(),s=Ft();Ae(C=>C.dashboard?.companyId||"");const l=Pt(),c=Ir(),d=Nr(),[p,u]=$.useState({matched:!1,error:"",apiResponse:null,loading:!1});$.useEffect(()=>{p.matched&&o("/categories")},[p.matched,o]);let h={};r?h=c&&c.emptyProduct?c.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}}:n?h=d&&d.emptyProduct?d.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}}:h=l&&l.emptyProduct?l.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const y=(Ae(C=>C.dashboard)?.products||[]).reduce((C,O)=>(O?.id&&(C[O.id]=O),C),{}),[f,m]=$.useState({category:"all",status:"all",search:"",store:[]});$.useEffect(()=>{s(Lr())},[s]);const x={};Object.values(y).forEach(C=>{C.storeId&&C.storeName&&(x[C.storeId]=C.storeName)});const b=[{id:"all",name:"All Stores"},...Object.entries(x).map(([C,O])=>({id:C,name:O}))],w=C=>{m(C),e&&C.store&&C.store.length>0&&o("/products",{state:{filters:C,tenantStatus:p}})},S=C=>{C.preventDefault(),o("/settings",{state:{tenantIntegrationData:p.apiResponse}})};return!r&&!n?a.jsxs(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:[e&&a.jsx(Yr,{filters:f,onFilterChange:w,styles:l.topBar,stores:b,tenantStatus:p}),a.jsx(E,{sx:h.wrapper,children:a.jsxs(E,{sx:h.card,children:[a.jsxs(E,{sx:h.iconContainer,children:[a.jsxs(E,{sx:h.sparkleContainer,children:[a.jsx(E,{sx:h.sparkleLeft}),a.jsx(E,{sx:h.sparkleCenter}),a.jsx(E,{sx:h.sparkleRight})]}),a.jsx(E,{sx:h.inboxIcon,children:a.jsx(E,{sx:h.notch})})]}),a.jsx(P,{sx:h.title,children:"No Products"}),a.jsx(P,{sx:h.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&a.jsx(P,{component:"a",href:"#",sx:h.actionLink,onClick:S,children:"Start Syncing Products"})]})})]}):r?a.jsxs(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[e&&a.jsx(Yr,{filters:f,onFilterChange:w,styles:c,stores:b}),a.jsx(E,{sx:h.wrapper,children:a.jsxs(E,{sx:h.card,children:[a.jsxs(E,{sx:h.iconContainer,children:[a.jsxs(E,{sx:h.sparkleContainer,children:[a.jsx(E,{sx:h.sparkleLeft}),a.jsx(E,{sx:h.sparkleCenter}),a.jsx(E,{sx:h.sparkleRight})]}),a.jsx(E,{sx:h.inboxIcon,children:a.jsx(E,{sx:h.notch})})]}),a.jsx(P,{sx:h.title,children:"No Products"}),a.jsx(P,{sx:h.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&a.jsx(P,{component:"a",href:"#",sx:h.actionLink,onClick:S,children:"Start Syncing Products"})]})})]}):a.jsxs(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[e&&a.jsx(Yr,{filters:f,onFilterChange:w,styles:d&&d.topBar?d.topBar:{root:{},inner:{},searchBox:{},searchInput:{},controlGroup:{},btn:{},iconOnly:{},magicBtn:{},viewSwitch:{opt:{},active:{}}},stores:b}),a.jsx(E,{sx:h.wrapper,children:a.jsxs(E,{sx:h.card,children:[a.jsxs(E,{sx:h.iconContainer,children:[a.jsxs(E,{sx:h.sparkleContainer,children:[a.jsx(E,{sx:h.sparkleLeft}),a.jsx(E,{sx:h.sparkleCenter}),a.jsx(E,{sx:h.sparkleRight})]}),a.jsx(E,{sx:h.inboxIcon,children:a.jsx(E,{sx:h.notch})})]}),a.jsx(P,{sx:h.title,children:"No Products"}),a.jsx(P,{sx:h.subtitle,children:p.loading?"Loading...":p.matched?"Active integrations fetched successfully":p.error?p.error:"No active integration found for this tenant id"}),!p.loading&&!p.matched&&a.jsx(P,{component:"a",href:"#",sx:h.actionLink,onClick:S,children:"Start Syncing Products"})]})})]})}const WP=({products:e,loading:t,selectedProducts:r,onToggleProduct:n,styles:o,onHeaderToggle:s,showLimitedColumns:l})=>{const c=Ge(),d=Ze(c.breakpoints.down("sm")),p=Ze(c.breakpoints.between("sm","md")),u=Ir(),h=Nr();if(t)return a.jsxs(E,{sx:{display:"flex",justifyContent:"center",p:4,bgcolor:"background.paper",borderRadius:2},children:[a.jsx(Zs,{}),a.jsx(P,{sx:{ml:2,color:"text.secondary"},children:"Loading products..."})]});if(e.length===0)return a.jsx(LP,{showTopBar:!1});if(!d&&!p)return!o||!o.listHeader?null:a.jsx(a.Fragment,{children:a.jsxs(E,{children:[a.jsxs(E,{sx:{...o.listHeader.root,...l?o.gridSystemLimited:o.gridSystem},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?a.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),a.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):a.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:s?"pointer":"default"},onClick:v=>{v.stopPropagation()},onMouseDown:v=>{v.preventDefault()},children:[a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),a.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[a.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),a.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),a.jsx(E,{sx:{display:"flex",flexDirection:"column"},children:e.map((v,g)=>a.jsx(ed,{product:v,isSelected:r?.includes(v.id),onToggle:()=>n(v.id),styles:o,showLimitedColumns:l},v.id?`${v.id}-${g}`:g))})]})});if(d){const v=u;return a.jsxs(E,{children:[a.jsxs(E,{sx:v.listHeader.root,children:[a.jsx(E,{sx:v.listHeader.checkboxIcon,children:Array.isArray(r)&&r.length>0?a.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),a.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#ccc",strokeWidth:"2"})})}),a.jsxs(P,{sx:v.listHeader.productCount,children:[e.length," Products"]})]}),a.jsx(E,{sx:{display:"flex",flexDirection:"column"},children:e.map((g,y)=>a.jsx(ed,{product:g,isSelected:r?.includes(g.id),onToggle:()=>n(g.id),styles:v,showLimitedColumns:l},g.id?`${g.id}-${y}`:y))})]})}if(p){const v=h;return a.jsxs(E,{children:[a.jsxs(E,{sx:{...v.listHeader.root,...l?v.gridSystemLimited:v.gridSystem},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?a.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),a.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):a.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:a.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:s?"pointer":"default"},onClick:g=>{g.stopPropagation()},onMouseDown:g=>{g.preventDefault()},children:[a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),a.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[a.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),a.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!l&&a.jsx(P,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),a.jsx(E,{sx:{display:"flex",flexDirection:"column"},children:e.map(g=>a.jsx(ed,{product:g,isSelected:r?.includes(g.id),onToggle:()=>n(g.id),styles:v,showLimitedColumns:l},g.id))})]})}},Ci=ht(a.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");const VP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),UP=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),cy=e=>{const t=UP(e);return t.charAt(0).toUpperCase()+t.slice(1)},dy=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),HP=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var RP={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const qP=$.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:l,...c},d)=>$.createElement("svg",{ref:d,...RP,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:dy("lucide",o),...!s&&!HP(c)&&{"aria-hidden":"true"},...c},[...l.map(([p,u])=>$.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Gr=(e,t)=>{const r=$.forwardRef(({className:n,...o},s)=>$.createElement(qP,{ref:s,iconNode:t,className:dy(`lucide-${VP(cy(e))}`,`lucide-${e}`,n),...o}));return r.displayName=cy(e),r};const vd=Gr("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const YP=Gr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const xd=Gr("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const _r=Gr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Gn=Gr("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const at=Gr("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const vn=Gr("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);const GP=Gr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),KP=({products:e=[],styles:t})=>{const r=et(),n=Ge(),o=Ze(n.breakpoints.down("sm")),s=Ze(n.breakpoints.between("sm","md")),l=Ir(),c=Nr(),d=m=>m.status===!0||m.status==="Active",p=()=>{if(!e.length)return null;const m=e.filter(x=>x.updatedAt).sort((x,b)=>new Date(b.updatedAt)-new Date(x.updatedAt))[0];return m?m.updatedAt:null},u=m=>{if(!m)return"Unknown";const x=new Date,b=new Date(m),w=Math.floor((x-b)/6e4);if(w<1)return"Just now";const S=Math.floor(w/1440),C=Math.floor(w%1440/60),O=w%60;let I="";return S>0&&(I+=`${S} days `),C>0&&(I+=`${C} hour `),O>0&&(I+=`${O} minutes `),I=I.trim(),I?`${I} ago`:"Just now"},h=$.useMemo(()=>e.length?e[0]:null,[e]),g=h?(m=>m?m.startsWith("http")?m:`${$u()}${m}`:null)(h.productImage||h.image):null,y=e.filter(d).length,f=p();if(!o&&!s)return!t||!t.header?null:a.jsxs(E,{component:"header",sx:t.header.container,children:[a.jsxs(E,{sx:t.header.statCard,children:[a.jsx(P,{variant:"h4",sx:t.theme.typography.h4,children:"Active Products"}),a.jsx(P,{sx:t.header.bigNumber,children:y}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[a.jsx(Ci,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:u(f)})]})]}),a.jsxs(E,{sx:t.header.statCard,children:[a.jsx(P,{variant:"h4",sx:{fontSize:18,fontWeight:500,color:"#444",mb:.5},children:"Active Catalogs"}),a.jsx(P,{sx:{fontSize:36,fontWeight:600,color:"#222",lineHeight:1,mb:.5},children:"34"}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[a.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",style:{marginRight:4},children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#757575",fontWeight:500,fontSize:"0.95rem"},children:"4 public links"}),a.jsx(E,{sx:{flex:1}}),a.jsxs(P,{component:"span",sx:{color:"#2563eb",fontWeight:500,fontSize:"1rem",textDecoration:"none",cursor:"pointer",ml:1,display:"inline-flex",alignItems:"center"},onClick:()=>window.location.href="/catalogs/manage-shared",children:["Manage ",a.jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",style:{verticalAlign:"middle"},children:a.jsx("path",{d:"M9 18l6-6-6-6",stroke:"#2563eb",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]}),a.jsxs(E,{sx:t.header.statCard,children:[a.jsx(P,{variant:"h4",sx:t.theme.typography.h4,children:"Best Product"}),h?a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[g?a.jsx(E,{component:"img",src:g,alt:h.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):a.jsx(E,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),a.jsxs(E,{children:[a.jsx(P,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:h.name}),a.jsxs(P,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[h.quantity||h.stock," units",h.category?` · ${h.category}`:""]})]})]}):a.jsx(E,{sx:{display:"flex",alignItems:"center",mt:1},children:a.jsx(P,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]});if(o){const m=l;return a.jsxs(E,{component:"header",sx:m.header.container,children:[a.jsx(P,{sx:m.header.title,children:"Christmas Super Sale 2025"}),a.jsxs(E,{sx:m.header.statsScroll,children:[a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{sx:m.header.statLabel,children:"Active Products"}),a.jsx(P,{sx:m.header.statValue,children:y}),a.jsxs(E,{sx:m.header.statMeta,children:[a.jsx(Ci,{sx:{color:"#27ae60",fontSize:14}}),a.jsxs(P,{sx:m.header.statMetaText,children:["Sync ",u(f)]})]})]}),a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{sx:{fontSize:15,fontWeight:500,color:"#444",mb:.5},children:"Active Catalogs"}),a.jsx(P,{sx:{fontSize:28,fontWeight:600,color:"#222",lineHeight:1,mb:.5},children:"34"}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[a.jsxs("svg",{width:"15",height:"15",fill:"none",viewBox:"0 0 24 24",style:{marginRight:4},children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#757575",fontWeight:500,fontSize:"0.95rem"},children:"4 public links"}),a.jsx(E,{sx:{flex:1}}),a.jsxs(P,{component:"span",sx:{color:"#2563eb",fontWeight:500,fontSize:"1rem",textDecoration:"none",cursor:"pointer",ml:1},onClick:()=>r("/catalogs/manage-shared"),children:["Manage  ",a.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",style:{verticalAlign:"middle"},children:a.jsx("path",{d:"M9 18l6-6-6-6",stroke:"#2563eb",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]}),h&&a.jsxs(E,{sx:{...m.header.statCard,minWidth:180,display:"flex",flexDirection:"column",gap:.5},children:[a.jsx(P,{sx:m.header.statLabel,children:"Best Product"}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[g&&a.jsx(E,{component:"img",src:g,alt:h.name,sx:{width:48,height:48,objectFit:"cover",borderRadius:1,bgcolor:"#f5f5f5"}}),a.jsxs(E,{sx:{display:"flex",flexDirection:"column"},children:[a.jsx(P,{sx:{fontSize:"14px",fontWeight:600,color:"#333",lineHeight:1.3},children:h.name}),a.jsx(P,{sx:{fontSize:"12px",color:"rgba(0, 0, 0, 0.6)",fontWeight:500},children:"250 units"})]})]})]})]})]})}if(s){const m=c;return a.jsxs(E,{component:"header",sx:m.header.container,children:[a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{variant:"h4",sx:m.theme.typography.h4,children:"Active Products"}),a.jsx(P,{sx:m.header.bigNumber,children:y}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[a.jsx(Ci,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),a.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:u(f)})]})]}),a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{variant:"h4",sx:m.theme.typography.h4,children:"Active Catalogs"}),a.jsx(E,{sx:{display:"flex",alignItems:"center",gap:.5}})]}),a.jsxs(E,{sx:m.header.statCard,children:[a.jsx(P,{variant:"h4",sx:m.theme.typography.h4,children:"Best Product"}),h?a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[g?a.jsx(E,{component:"img",src:g,alt:h.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):a.jsx(E,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),a.jsxs(E,{children:[a.jsx(P,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:h.name}),a.jsxs(P,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[h.quantity||h.stock," units",h.category?` · ${h.category}`:""]})]})]}):a.jsx(E,{sx:{display:"flex",alignItems:"center",mt:1},children:a.jsx(P,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]})}},XP=({selectedProducts:e,selectedDesign:t,sheetSize:r,itemsToShow:n})=>{if(console.log("printPromoDesigns called with:",{selectedDesign:t,sheetSize:r,itemsToShow:n,productsCount:e.length,selectedProducts:e}),!e||e.length===0){alert("No products selected for printing");return}const o=window.open("","_blank","width=800,height=600");if(!o){alert("Please allow popups to print promo designs");return}const s={A2:{width:420,height:594,stickersPerSheet:4},A3:{width:297,height:420,stickersPerSheet:6},A4:{width:210,height:297,stickersPerSheet:1},A5:{width:148,height:210,stickersPerSheet:12},A7:{width:74,height:105,stickersPerSheet:24}},l=s[r]||s.A5,d=(()=>{const x=r==="A2"||r==="A3"?2:r==="A4"?1:r==="A5"?3:4,b=Math.ceil(l.stickersPerSheet/x);return{width:r==="A4"?l.width-20:l.width/x-5,height:r==="A4"?l.height-20:l.height/b-5,cols:x,rows:b}})(),p=(x,b=0)=>{const w=Number(x);return Number.isFinite(w)?w:b},g={design1:x=>{const b=x?.productName||x?.name||"Product",w=x?.originalPrice??x?.mrp??x?.price??0,S=x?.price??x?.discountPrice??0,C=p(w,0),O=p(S,0),I=C>O&&C>0?Math.round((C-O)/C*100):5,F=O;return`
185
- <div class="sticker design-1">
186
- <div class="top-section">
187
- ${n.percentOff?`
188
- <div class="save-text">SAVE</div>
189
- <div class="percent-text">${I}<span class="percent-symbol">%</span></div>
190
- `:""}
191
- </div>
192
- <div class="bottom-section">
193
- ${n.discountPrice||n.mrp?`
194
- <div class="price-row">
195
- ${n.discountPrice?`<div class="price-text our-price">OUR PRICE: ₹${p(F,0).toFixed(0)}</div>`:""}
196
- ${n.mrp?`<div class="price-text">MRP: ₹${p(C,0).toFixed(0)}</div>`:""}
197
- </div>
198
- `:""}
199
- ${n.productName?`<div class="product-name">${b}</div>`:""}
200
- </div>
201
- </div>
202
- `},design2:x=>{const b=x?.productName||x?.name||"Product",w=x?.originalPrice??x?.mrp??x?.price??0,S=x?.price??x?.discountPrice??0,C=p(w,0),O=p(S,0),I=C>O&&C>0?Math.round((C-O)/C*100):5,F=O;return`
203
- <div class="sticker design-2">
204
- <div class="top-section">
205
- ${n.percentOff?`<div class="percent-off-text">${I}<span class="percent-symbol">%</span> OFF</div>`:""}
206
- ${n.productName?`<div class="product-name">${b}</div>`:""}
207
- </div>
208
- ${n.discountPrice||n.mrp?`
209
- <div class="price-row">
210
- ${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${p(F,0).toFixed(0)}</div>`:""}
211
- ${n.mrp?`<div class="price-text">MRP: ₹${p(C,0).toFixed(0)}</div>`:""}
212
- </div>
213
- `:""}
214
- </div>
215
- `},design3:x=>{const b=x?.productName||x?.name||"Product",w=x?.originalPrice??x?.mrp??x?.price??0,S=x?.price??x?.discountPrice??0,C=p(w,0),O=p(S,0),I=C>O&&C>0?Math.round((C-O)/C*100):5,F=O;return`
216
- <div class="sticker design-3">
217
- ${n.productName?`<div class="product-name">${b}</div>`:""}
218
- ${n.discountPrice||n.mrp?`
219
- <div class="price-row">
220
- ${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${p(F,0).toFixed(0)}</div>`:""}
221
- ${n.mrp?`<div class="price-text">MRP: ₹${p(C,0).toFixed(0)}</div>`:""}
222
- </div>
223
- `:""}
224
- ${n.percentOff?`<div class="percent-off-text">${I}<span class="percent-symbol">%</span> OFF</div>`:""}
225
- </div>
226
- `}},y=g[t]||g.design1,f=e.map(x=>y(x)).join(""),m=`
227
- <!DOCTYPE html>
228
- <html>
229
- <head>
230
- <meta charset="UTF-8">
231
- <title>Promo Print - ${r}</title>
232
- <style>
233
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
234
-
235
- * {
236
- margin: 0;
237
- padding: 0;
238
- box-sizing: border-box;
239
- }
240
-
241
- @page {
242
- size: ${r};
243
- margin: ${r==="A4"?"0":"5mm"};
244
- }
245
-
246
- body {
247
- font-family: 'Inter', sans-serif;
248
- background: white;
249
- margin: 0;
250
- padding: 0;
251
- }
252
-
253
- .print-container {
254
- /* Use real print units for A4 to avoid DPI scaling issues */
255
- width: ${r==="A4"?"210mm":l.width+"mm"};
256
- height: ${r==="A4"?"297mm":l.height+"mm"};
257
- display: ${r==="A4"?"flex":"grid"};
258
- flex-direction: ${r==="A4"?"column":"unset"};
259
- align-items: ${r==="A4"?"center":"unset"};
260
- justify-content: ${r==="A4"?"center":"unset"};
261
- grid-template-columns: ${r==="A4"?"none":`repeat(${d.cols}, 1fr)`};
262
- grid-template-rows: ${r==="A4"?"none":`repeat(${d.rows}, 1fr)`};
263
- gap: ${r==="A4"?"0":"4mm"};
264
- padding: ${r==="A4"?"0":"3mm"};
265
- margin: 0;
266
- }
267
-
268
- .sticker {
269
- /* For A4 print, use mm sizes to get consistent physical dimensions */
270
- width: ${r==="A4"?"180mm":"100%"};
271
- height: ${r==="A4"?"120mm":"100%"};
272
- border: ${r==="A4"?"none":"2px solid #e0e0e0"};
273
- border-radius: ${r==="A4"?"0px":"8px"};
274
- padding: ${r==="A4"?"10mm":"40px"};
275
- background: white;
276
- display: flex;
277
- flex-direction: column;
278
- align-items: center;
279
- justify-content: center;
280
- gap: 16px;
281
- page-break-inside: avoid;
282
- page-break-after: ${r==="A4"?"always":"auto"};
283
- margin: 0;
284
- text-align: center;
285
- box-sizing: border-box;
286
- overflow: hidden;
287
- }
288
-
289
- /* Design 1 Styles */
290
- .design-1 .top-section {
291
- display: flex;
292
- flex-direction: column;
293
- align-items: center;
294
- min-height: 40%;
295
- justify-content: center;
296
- }
297
-
298
- .design-1 .save-text {
299
- font-size: 32px;
300
- font-weight: 600;
301
- letter-spacing: 2px;
302
- color: #000;
303
- line-height: 1.2;
304
- margin-bottom: 12px;
305
- }
306
-
307
- .design-1 .percent-text {
308
- /* Responsive, clamped size to avoid overflowing on print */
309
- font-size: clamp(48px, 10vw, 120px);
310
- font-weight: 600;
311
- font-style: italic;
312
- color: #000;
313
- line-height: 1;
314
- display: flex;
315
- justify-content: center;
316
- align-items: center;
317
- max-width: 100%;
318
- white-space: nowrap;
319
- overflow: hidden;
320
- text-overflow: ellipsis;
321
- }
322
-
323
- .design-1 .percent-symbol {
324
- font-size: clamp(32px, 8vw, 90px);
325
- font-weight: 600;
326
- }
327
-
328
- .design-1 .bottom-section {
329
- min-height: 30%;
330
- }
331
-
332
- .design-1 .price-row {
333
- display: flex;
334
- justify-content: space-between;
335
- align-items: center;
336
- margin-bottom: 8px;
337
- gap: 8px;
338
- }
339
-
340
- .design-1 .price-text {
341
- font-size: 28px;
342
- font-weight: 600;
343
- color: #000;
344
- line-height: 1.3;
345
- }
346
-
347
- .design-1 .our-price {
348
- text-align: left;
349
- }
350
-
351
- .design-1 .product-name {
352
- font-size: clamp(16px, 3.5vw, 32px);
353
- line-height: 1.4;
354
- font-weight: 600;
355
- color: #000;
356
- margin-top: 6px;
357
- word-break: break-word;
358
- max-width: 100%;
359
- }
360
-
361
- /* Design 2 Styles */
362
- .design-2 .top-section {
363
- display: flex;
364
- flex-direction: column;
365
- align-items: center;
366
- justify-content: center;
367
- min-height: 60%;
368
- gap: 10px;
369
- }
370
-
371
- .design-2 .percent-off-text {
372
- font-size: 110px;
373
- font-weight: 600;
374
- color: #000;
375
- line-height: 1;
376
- text-align: center;
377
- }
378
-
379
- .design-2 .percent-symbol {
380
- font-size: 90px;
381
- font-weight: 600;
382
- }
383
-
384
- .design-2 .product-name {
385
- font-size: 32px;
386
- font-weight: 600;
387
- color: #000;
388
- line-height: 1.5;
389
- text-align: center;
390
- }
391
-
392
- .design-2 .price-row {
393
- display: flex;
394
- justify-content: space-between;
395
- align-items: center;
396
- gap: 8px;
397
- }
398
-
399
- .design-2 .price-text {
400
- font-size: 28px;
401
- font-weight: 600;
402
- color: #000;
403
- text-align: left;
404
- line-height: 1.3;
405
- }
406
-
407
- /* Design 3 Styles (matches reference layout) */
408
- .design-3 {
409
- display: flex;
410
- flex-direction: column;
411
- align-items: center;
412
- justify-content: flex-start;
413
- text-align: center;
414
- gap: 10px;
415
- }
416
-
417
- .design-3 .our-price-header {
418
- font-size: 32px;
419
- font-weight: 700;
420
- color: #000;
421
- letter-spacing: 1px;
422
- }
423
-
424
- .design-3 .big-price {
425
- font-size: 96px;
426
- font-weight: 700;
427
- color: #000;
428
- line-height: 1;
429
- }
430
-
431
- .design-3 .bottom-info {
432
- display: flex;
433
- justify-content: space-between;
434
- align-items: center;
435
- width: 100%;
436
- gap: 24px;
437
- }
438
-
439
- .design-3 .save-amount,
440
- .design-3 .mrp-amount {
441
- font-size: 24px;
442
- font-weight: 600;
443
- color: #000;
444
- }
445
-
446
- .design-3 .product-name {
447
- font-size: 28px;
448
- line-height: 1.4;
449
- font-weight: 600;
450
- color: #000;
451
- text-align: center;
452
- margin-top: 12px;
453
- }
454
-
455
- @media print {
456
- body {
457
- -webkit-print-color-adjust: exact;
458
- print-color-adjust: exact;
459
- }
460
- }
461
- </style>
462
- </head>
463
- <body>
464
- <div class="print-container">
465
- ${f}
466
- </div>
467
- <script>
468
- window.onload = function() {
469
- setTimeout(function() {
470
- window.print();
471
- // Close window after printing or canceling
472
- setTimeout(function() {
473
- window.close();
474
- }, 100);
475
- }, 500);
476
- };
477
- <\/script>
478
- </body>
479
- </html>
480
- `;console.log("Generated stickers HTML length:",f.length),console.log("Generated HTML content length:",m.length);try{o.document.open(),o.document.write(m),o.document.close(),console.log("HTML written successfully to print window")}catch(x){console.error("Error writing to print window:",x),alert("Error generating print preview. Please check console for details.")}},Sd=({open:e,onClose:t,selectedProducts:r=[]})=>{const n=Ge(),o=Ze(n.breakpoints.down("sm")),s=Ze(n.breakpoints.between("sm","md")),l=Pt(),c=Ir(),d=Nr(),[p,u]=$.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[h,v]=$.useState("design1"),[g,y]=$.useState("A5"),f=b=>u(w=>({...w,[b]:!w[b]})),m=()=>{if(!r||r.length===0){alert("No products selected. Please select products first.");return}XP({selectedProducts:r,selectedDesign:h,sheetSize:g,itemsToShow:p}),t()};if(o){const b=c.promoPrintModal;return a.jsxs(Un,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:b.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:b.header,children:[a.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),a.jsx(Wt,{onClick:t,size:"small",children:a.jsx(wi,{size:20})})]})}),a.jsxs(Hn,{sx:b.content,children:[a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Items to show"}),a.jsxs(E,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[a.jsx(xt,{control:a.jsx(Qe,{checked:p.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:b.checkboxLabel})]})]}),a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Promo Design"}),a.jsxs(E,{sx:b.designContainer,children:[a.jsxs(E,{onClick:()=>v("design1"),sx:{...b.designCard.base,...h==="design1"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design1.topSection,children:[a.jsx(P,{sx:{...b.design1.saveText,visibility:p.percentOff?"visible":"hidden"},children:"SAVE"}),a.jsxs(P,{sx:{...b.design1.percentText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design1.percentSymbol,children:"%"})]})]}),a.jsxs(E,{sx:b.design1.bottomSection,children:[a.jsxs(E,{sx:{...b.design1.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design1.priceText,...b.design1.ourPrice,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design1.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsx(P,{sx:{...b.design1.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),a.jsxs(E,{onClick:()=>v("design2"),sx:{...b.designCard.base,...h==="design2"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design2.topSection,children:[a.jsxs(P,{sx:{...b.design2.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design2.percentSymbol,children:"%"})," OFF"]}),a.jsx(P,{sx:{...b.design2.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),a.jsxs(E,{sx:{...b.design2.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design2.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design2.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),a.jsxs(E,{onClick:()=>v("design3"),sx:{...b.designCard.base,...h==="design3"?b.designCard.selected:b.designCard.unselected},children:[a.jsx(P,{sx:{...b.design3.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),a.jsxs(E,{sx:{...b.design3.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design3.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design3.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsxs(P,{sx:{...b.design3.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:b.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[a.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),a.jsx(E,{sx:b.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(w=>a.jsx(E,{onClick:()=>y(w),sx:{...b.sheetSizeBtn,...g===w?b.sheetSizeBtnSelected:{}},children:a.jsx(P,{variant:"body2",textAlign:"center",children:w})},w))})]})]}),a.jsx(ai,{sx:b.actions||{px:3,pb:2},children:a.jsx(Se,{type:"button",onClick:m,variant:"contained",sx:b.printButton,children:"Print"})})]})}if(s){const b=d.promoPrintModal;return a.jsxs(Un,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:b.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:b.header,children:[a.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),a.jsx(Wt,{onClick:t,size:"small",children:a.jsx(wi,{size:20})})]})}),a.jsxs(Hn,{sx:b.content,children:[a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Items to show"}),a.jsxs(E,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[a.jsx(xt,{control:a.jsx(Qe,{checked:p.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:b.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:b.checkboxLabel})]})]}),a.jsxs(E,{sx:b.section,children:[a.jsx(P,{sx:b.sectionTitle,children:"Promo Design"}),a.jsxs(E,{sx:b.designContainer,children:[a.jsxs(E,{onClick:()=>v("design1"),sx:{...b.designCard.base,...h==="design1"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design1.topSection,children:[a.jsx(P,{sx:{...b.design1.saveText,visibility:p.percentOff?"visible":"hidden"},children:"SAVE"}),a.jsxs(P,{sx:{...b.design1.percentText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design1.percentSymbol,children:"%"})]})]}),a.jsxs(E,{sx:b.design1.bottomSection,children:[a.jsxs(E,{sx:{...b.design1.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design1.priceText,...b.design1.ourPrice,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design1.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsx(P,{sx:{...b.design1.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),a.jsxs(E,{onClick:()=>v("design2"),sx:{...b.designCard.base,...h==="design2"?b.designCard.selected:b.designCard.unselected},children:[a.jsxs(E,{sx:b.design2.topSection,children:[a.jsxs(P,{sx:{...b.design2.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design2.percentSymbol,children:"%"})," OFF"]}),a.jsx(P,{sx:{...b.design2.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),a.jsxs(E,{sx:{...b.design2.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design2.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design2.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),a.jsxs(E,{onClick:()=>v("design3"),sx:{...b.designCard.base,...h==="design3"?b.designCard.selected:b.designCard.unselected},children:[a.jsx(P,{sx:{...b.design3.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),a.jsxs(E,{sx:{...b.design3.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...b.design3.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...b.design3.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsxs(P,{sx:{...b.design3.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:b.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:b.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[a.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),a.jsx(E,{sx:b.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(w=>a.jsx(E,{onClick:()=>y(w),sx:{...b.sheetSizeBtn,...g===w?b.sheetSizeBtnSelected:{}},children:a.jsx(P,{variant:"body2",textAlign:"center",children:w})},w))})]})]}),a.jsx(ai,{sx:b.actions||{px:3,pb:2},children:a.jsx(Se,{type:"button",onClick:m,variant:"contained",sx:b.printButton,children:"Print"})})]})}const x=l.promoPrintModal;return a.jsxs(Un,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:x.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:x.header,children:[a.jsx(P,{variant:"h6",fontWeight:600,children:"Promo Print"}),a.jsx(Wt,{onClick:t,size:"small",children:a.jsx(wi,{size:20})})]})}),a.jsxs(Hn,{sx:x.content,children:[a.jsxs(E,{sx:x.section,children:[a.jsx(P,{sx:x.sectionTitle,children:"Items to show"}),a.jsxs(E,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[a.jsx(xt,{control:a.jsx(Qe,{checked:p.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:x.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:x.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:x.checkboxLabel}),a.jsx(xt,{control:a.jsx(Qe,{checked:p.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:x.checkboxLabel})]})]}),a.jsxs(E,{sx:x.section,children:[a.jsx(P,{sx:x.sectionTitle,children:"Promo Design"}),a.jsxs(E,{sx:x.designContainer,children:[a.jsxs(E,{onClick:()=>v("design1"),sx:{...x.designCard.base,...h==="design1"?x.designCard.selected:x.designCard.unselected},children:[a.jsxs(E,{sx:x.design1.topSection,children:[a.jsx(P,{sx:{...x.design1.saveText,visibility:p.percentOff?"visible":"hidden"},children:"SAVE"}),a.jsxs(P,{sx:{...x.design1.percentText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:x.design1.percentSymbol,children:"%"})]})]}),a.jsxs(E,{sx:x.design1.bottomSection,children:[a.jsxs(E,{sx:{...x.design1.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...x.design1.priceText,...x.design1.ourPrice,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...x.design1.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsx(P,{sx:{...x.design1.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),a.jsxs(E,{onClick:()=>v("design2"),sx:{...x.designCard.base,...h==="design2"?x.designCard.selected:x.designCard.unselected},children:[a.jsxs(E,{sx:x.design2.topSection,children:[a.jsxs(P,{sx:{...x.design2.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:x.design2.percentSymbol,children:"%"})," OFF"]}),a.jsx(P,{sx:{...x.design2.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),a.jsxs(E,{sx:{...x.design2.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...x.design2.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...x.design2.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),a.jsxs(E,{onClick:()=>v("design3"),sx:{...x.designCard.base,...h==="design3"?x.designCard.selected:x.designCard.unselected},children:[a.jsx(P,{sx:{...x.design3.productName,visibility:p.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),a.jsxs(E,{sx:{...x.design3.priceRow,visibility:p.discountPrice||p.mrp?"visible":"hidden"},children:[a.jsx(P,{sx:{...x.design3.priceText,visibility:p.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),a.jsx(P,{sx:{...x.design3.priceText,visibility:p.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),a.jsxs(P,{sx:{...x.design3.percentOffText,visibility:p.percentOff?"visible":"hidden"},children:["5",a.jsx(P,{component:"span",sx:x.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:x.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[a.jsx(P,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),a.jsx(E,{sx:x.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(b=>a.jsx(E,{onClick:()=>y(b),sx:{...x.sheetSizeBtn,...g===b?x.sheetSizeBtnSelected:{}},children:a.jsx(P,{variant:"body2",textAlign:"center",children:b})},b))})]})]}),a.jsx(ai,{sx:x.actions||{px:3,pb:2},children:a.jsx(Se,{type:"button",onClick:m,variant:"contained",sx:x.printButton,children:"Print"})})]})},JP=ht(a.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),QP=ht(a.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");function wd({onClose:e,selectedCount:t=3,open:r,stores:n=[]}){const[o,s]=$.useState("Christmas Super Sale 2025"),[l,c]=$.useState("company.ariaops.com/catalog/christmas-super-sale-2025"),[d,p]=$.useState("all"),[u,h]=$.useState("Unlisted"),[v,g]=$.useState(!1);return a.jsxs(Un,{open:r,onClose:e,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[a.jsx(Rn,{children:a.jsxs(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(P,{variant:"h6",fontWeight:600,children:["Create Catalog Of ",t," Items"]}),a.jsx(Wt,{onClick:e,size:"small","aria-label":"Close",children:a.jsx(JP,{})})]})}),a.jsxs(Hn,{sx:{pt:1},children:[a.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Name"}),a.jsx("input",{type:"text",value:o,onChange:y=>s(y.target.value),style:{width:"100%",marginBottom:16,padding:"10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#fff",color:"#222",boxSizing:"border-box"}}),a.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Link"}),a.jsxs("div",{style:{position:"relative",marginBottom:16},children:[a.jsx("input",{type:"text",value:l,onChange:y=>c(y.target.value),style:{width:"100%",padding:"10px 36px 10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#f5f7fa",color:"#888",boxSizing:"border-box"}}),l&&a.jsx(Ci,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]}),a.jsx(P,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),a.jsxs(E,{sx:{position:"relative",mb:3},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>g(y=>!y),children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",mr:1},children:a.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),a.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),a.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),a.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:d==="all"?"All Stores":n.find(y=>y.id===d)?.name||"Select Store"}),a.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${n.filter(y=>y.id!=="all").length} stores`}),a.jsx(QP,{sx:{color:"#888",ml:"auto"}})]}),v&&a.jsx(E,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:n.map(y=>a.jsx(E,{sx:{px:2,py:1.2,cursor:"pointer",fontWeight:d===y.id?700:400,color:d===y.id?"#222":"#444",background:d===y.id?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{p(y.id),g(!1)},children:y.name},y.id))})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3},children:[a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsx(Se,{onClick:()=>h("Public"),sx:{minWidth:100,borderRadius:2,bgcolor:"#F5F5F5",color:"#454545",fontWeight:500,boxShadow:"none"},children:"Public"}),a.jsx(Se,{onClick:()=>h("Unlisted"),sx:{minWidth:100,borderRadius:2,bgcolor:"#F3F8FF",color:"#888",fontWeight:500,border:"1px solid #2D64B8"},children:"Unlisted"})]}),a.jsx(Se,{variant:"contained",color:"primary",sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:"Create"})]})]})]})}const ZP=({selectedProducts:e=[],stores:t=[]})=>{const[r,n]=$.useState(!1),o=Ge(),s=Ze(o.breakpoints.down("sm")),l=Ze(o.breakpoints.between("sm","md")),c=Pt(),d=Ir(),p=Nr(),[u,h]=$.useState(!1);if(!e||e.length===0)return null;if(s){const g=d.floatingActions;return a.jsxs(a.Fragment,{children:[a.jsxs(E,{sx:g.root,"data-floating-actions":!0,children:[a.jsxs(P,{sx:g.countText,children:[e.length," items selected"]}),a.jsxs(E,{sx:g.buttonRow,children:[a.jsxs(Se,{onClick:()=>n(!0),sx:g.btn,children:[a.jsx(Si,{size:18}),"Promo Print"]}),a.jsxs(Se,{sx:g.btn,onClick:()=>h(!0),children:[a.jsx(xi,{size:18}),"Create Catalog"]})]})]}),a.jsx(Sd,{open:r,onClose:()=>n(!1),selectedProducts:e}),u&&a.jsx(E,{sx:{position:"fixed",zIndex:1299,top:0,left:0,width:"100vw",height:"100vh",bgcolor:"rgba(255,255,255,0.4)",backdropFilter:"blur(36px)",WebkitBackdropFilter:"blur(36px)",transition:"all 0.2s"}}),a.jsx(wd,{onClose:()=>h(!1),selectedCount:e.length,open:u,stores:t})]})}if(l){const g=p.floatingActions;return a.jsxs(a.Fragment,{children:[a.jsx(E,{sx:g.root,children:a.jsxs(E,{sx:g.inner,children:[a.jsxs(P,{sx:g.count,children:[e.length," items selected"]}),a.jsx(E,{sx:g.divider}),a.jsxs(Se,{sx:g.btn,onClick:()=>n(!0),children:[a.jsx(Si,{size:16}),a.jsx("span",{children:"Promo Print"})]}),a.jsxs(Se,{sx:g.btn,onClick:()=>h(!0),children:[a.jsx(xi,{size:16}),a.jsx("span",{children:"Create Catalog"})]})]})}),a.jsx(Sd,{open:r,onClose:()=>n(!1),selectedProducts:e}),a.jsx(wd,{onClose:()=>h(!1),selectedCount:e.length,open:u,stores:t})]})}const v=c.floatingActions;return a.jsxs(a.Fragment,{children:[a.jsx(E,{sx:v.root,children:a.jsxs(E,{sx:v.inner,children:[a.jsxs(P,{sx:v.count,children:[e.length," items selected"]}),a.jsxs(Se,{sx:v.btn,onClick:()=>n(!0),children:[a.jsx(Si,{size:16}),a.jsx("span",{children:"Promo Print"})]}),a.jsxs(Se,{sx:v.btn,onClick:()=>h(!0),children:[a.jsx(xi,{size:16}),a.jsx("span",{children:"Create Catalog"})]})]})}),a.jsx(Sd,{open:r,onClose:()=>n(!1),selectedProducts:e}),a.jsx(wd,{onClose:()=>h(!1),selectedCount:e.length,open:u,stores:t})]})},py=[{key:"storeId",label:"Store ID",type:"number"},{key:"productId",label:"Product ID",type:"number"},{key:"categoryId",label:"Category ID",type:"number"},{key:"status",label:"Status",type:"boolean"},{key:"minPrice",label:"Min Price",type:"number"},{key:"maxPrice",label:"Max Price",type:"number"},{key:"inStock",label:"In Stock",type:"boolean"}];function eI({open:e,filters:t,onChange:r,onClose:n,onApply:o}){const s=(l,c)=>{let d=c;const p=py.find(u=>u.key===l);p&&p.type==="number"&&(d=c===""?void 0:Number(c)),p&&p.type==="boolean"&&(d=!!c),r({...t,[l]:d})};return a.jsxs(Un,{open:e,onClose:n,maxWidth:"xs",fullWidth:!0,children:[a.jsx(Rn,{children:"Filter Products"}),a.jsx(Hn,{children:a.jsx(E,{display:"flex",flexDirection:"column",gap:2,children:py.map(l=>a.jsx(E,{children:l.type==="boolean"?a.jsx(xt,{control:a.jsx(Qe,{checked:!!t[l.key],onChange:c=>s(l.key,c.target.checked)}),label:l.label}):a.jsx(Zc,{label:l.label,type:"number",value:t[l.key]||"",onChange:c=>s(l.key,c.target.value),fullWidth:!0,size:"small"})},l.key))})}),a.jsxs(ai,{children:[a.jsx(Se,{onClick:n,children:"Cancel"}),a.jsx(Se,{variant:"contained",onClick:o,children:"Apply"})]})]})}function tI({StoresModal:e,storesModalProps:t,onStoreSelect:r}){const n=Pt(),o=yt(),s=o.state?.filters||{category:"",status:"",search:"",store:[]},[l,c]=$.useState([]),[d,p]=$.useState(!0),[u,h]=$.useState(s),[v,g]=$.useState(!1),[y,f]=$.useState(u),m=Ae(N=>N.dashboard),x=m?.products||[],b=x.reduce((N,W)=>(W?.id&&(N[W.id]=W),N),{}),w=x.map(N=>N?.id).filter(Boolean),S=m?.loading||!1;console.log(w,"productIds we get at page");const C=Ft();$.useEffect(()=>{C(Lr())},[C]),$.useEffect(()=>{o.state?.filters&&setTimeout(()=>{h(o.state.filters)},0)},[o.state]),$.useEffect(()=>{if(!Array.isArray(w)||!b||typeof c!="function")return;const N=()=>{try{if(w&&w.length>0){let W=w.map(U=>b&&b[U]).filter(U=>U&&U.id);u&&u.storeId?W=W.filter(U=>U&&String(U.storeId)===String(u.storeId)):u&&u.store&&Array.isArray(u.store)&&!u.store.includes("all")&&(W=W.filter(U=>U&&u.store.includes(String(U.storeId)))),c(W),p(!1)}else c([]),p(typeof S=="boolean"?S:!1)}catch(W){console.error("Error updating products:",W),c([]),p(!1)}};typeof requestAnimationFrame=="function"?requestAnimationFrame(N):N()},[w,S,u,b]);const O=N=>{h(N)},I=()=>{f(u),g(!0)},[F,D]=$.useState([]),L=N=>{D(W=>W.includes(N)?W.filter(U=>U!==N):[...W,N])},z=l.filter(N=>F.includes(N.id)),k={};Object.values(b).forEach(N=>{N.storeId&&N.storeName&&(k[N.storeId]=N.storeName)});const j=[{id:"all",name:"All Stores"},...Object.entries(k).map(([N,W])=>({id:N,name:W}))],A=Array.isArray(u.store)?u.store:[],M=A.length===0||A.includes("all")||A.length>1,_=o.state&&o.state.tenantStatus||{matched:!0};return a.jsxs("div",{className:"app-container",children:[a.jsx(Yr,{styles:n,onFilterChange:O,filters:u,stores:j,onOpenFilterModal:I,StoresModal:e,storesModalProps:t,onStoreSelect:r,showBackButton:!0,tenantStatus:_}),a.jsxs("div",{className:"product-main-container",children:[l.length>0&&a.jsx(KP,{products:l,styles:n}),a.jsx(WP,{products:l,loading:d,selectedProducts:F,onToggleProduct:L,styles:n,showLimitedColumns:M})]}),a.jsx(ZP,{selectedProducts:z,stores:j}),a.jsx(eI,{open:v,filters:y,onChange:f,onClose:()=>g(!1),onApply:()=>{h(y),g(!1)}})]})}const rI=e=>a.jsx(Uo,{...e,viewBox:"0 0 24 24",children:a.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),nI=()=>{const e=et(),t=Ft(),r=Pt(),{metrics:n,loading:o}=Ae(C=>C.dashboard),[s,l]=$.useState({search:"",store:[],category:"all",status:"all"}),c=C=>l(C),[d,p]=$.useState(new Date);$.useEffect(()=>{t(ds())},[t]),$.useEffect(()=>{const C=setInterval(()=>{p(new Date)},6e4);return()=>clearInterval(C)},[]);const u=d.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=d.getDate(),v=d.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),g=n?.activeProducts||0,y=n?.activeCatalogues||0,f=n?.osa||{},m=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),x=f?.availableProducts||0,b=f?.totalRequests||0,w=f?.availabilityPercentage||0,S=b>0?100-w:0;return a.jsxs(a.Fragment,{children:[a.jsx(Yr,{styles:r.topBar,filters:s,onFilterChange:c,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),a.jsxs(E,{sx:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[a.jsx($t,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:a.jsxs(yg,{sx:{p:1},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:u}),a.jsx(P,{variant:"h6",fontWeight:400,color:"#000000",children:h}),a.jsx(P,{variant:"caption",color:"text.secondary",children:v})]})}),a.jsxs(E,{children:[a.jsxs(P,{variant:"h6",fontWeight:700,children:["Hi Ashok ",a.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),a.jsx(P,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),a.jsx(E,{sx:{mt:2},children:a.jsxs($t,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(rI,{sx:{fontSize:24,color:"#000000"}}),a.jsxs(P,{variant:"h6",fontWeight:700,children:["Products ",a.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:o?"...":g})]})]}),a.jsxs(P,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/categories"),children:["Report ",">"]})]}),a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsxs($t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(P,{variant:"body2",color:"#454545",children:"Active Products"}),a.jsx(P,{variant:"h6",fontWeight:700,children:o?"...":g}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5},children:[a.jsx(Ci,{sx:{fontSize:16,color:"#4caf50"}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),a.jsxs($t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(P,{variant:"body2",color:"#454545",children:"Active Catalogs"}),a.jsx(P,{variant:"h6",fontWeight:700,children:o?"...":y}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),a.jsxs($t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(P,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),a.jsxs(P,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[o?"...":`${w}%`,a.jsx(P,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:o?"":`${m(x)}/${m(b)}`})]}),a.jsx(P,{variant:"caption",color:"error",children:o?"":`${S.toFixed(0)}% missing`})]})]})]})})]})]})};function Ei({loading:e,handleStartSyncing:t,categoryName:r,sessionExpired:n=!1}){const o=et(),s=Pt(),[l,c]=$.useState({matched:!1,error:"",apiResponse:null,loading:!1});let d=s&&s.emptyProduct?s.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const u=Ae(f=>f.dashboard)?.products||[],h=u.reduce((f,m)=>(m?.id&&(f[m.id]=m),f),{}),v={};Object.values(h).forEach(f=>{f.storeId&&f.storeName&&(v[f.storeId]=f.storeName)});const g=t||(()=>o("/product-setting")),y=!n&&!e&&Array.isArray(u)&&u.length===0;return a.jsx(E,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:a.jsx(E,{sx:d.wrapper,children:a.jsxs(E,{sx:d.card,children:[a.jsxs(E,{sx:d.iconContainer,children:[a.jsxs(E,{sx:d.sparkleContainer,children:[a.jsx(E,{sx:d.sparkleLeft}),a.jsx(E,{sx:d.sparkleCenter}),a.jsx(E,{sx:d.sparkleRight})]}),a.jsx(E,{sx:d.inboxIcon,children:a.jsx(E,{sx:d.notch})})]}),a.jsx(P,{sx:d.title,children:n?"Session Expired":r?`No Products in ${r}`:"No Products"}),a.jsx(P,{sx:d.subtitle,children:n?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":r&&!y?`No products found in the "${r}" category.`:y?"No products found in store inventory. Start syncing to add products.":l.matched?"Active integrations fetched successfully":l.error?l.error:"No active integration found for this tenant id"}),!e&&!n&&a.jsx(P,{component:"a",href:"#",sx:d.actionLink,onClick:f=>{f.preventDefault(),g()},children:"Start Syncing Products"})]})})})}const uy=ht(a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),fy=ht(a.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),hy=({productState:e})=>a.jsxs(E,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[a.jsx(Cd,{title:"Categories",titleValue:e.homePageCardSummary?.totalCategories||0,subtitle:"Products",subtitleValue:e.homePageCardSummary?.totalProducts||0,recentText:e.homePageCardSummary?.lastSync?`Sync ${e.homePageCardSummary.lastSync}`:"",tickMarkRequired:!0,btnLabel:"History"}),a.jsx(Cd,{title:"Active Catalogs",titleValue:"34",recentText:"4 public links",linkRequired:!0,btnLabel:"Manage"}),a.jsx(Cd,{title:"On Shelf Yesterday",titleValue:"78%",thirdVaue:"78/100X",recentText:"22% mising",btnLabel:"Report"})]});function Cd({title:e="",subtitle:t="",titleValue:r="",thirdVaue:n="",subtitleValue:o="",recentText:s="",btnLabel:l="",tickMarkRequired:c=!1,linkRequired:d=!1}){return a.jsxs($t,{sx:{flex:1,minWidth:250,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",mb:1},children:[e&&a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:e}),a.jsx(P,{variant:"h5",fontWeight:500,children:r}),a.jsx(P,{variant:"caption",color:"text.secondary",children:n})]}),t&&a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),t&&a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:t}),a.jsx(P,{variant:"h5",fontWeight:500,children:o})]})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",flex:1},children:[c&&a.jsx(uy,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),d&&a.jsx(fy,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:s})]}),l&&a.jsxs(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:[l," >"]})]})]})}function oI(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var iI=function(t){var r=t.size,n=r===void 0?24:r,o=t.className,s=o===void 0?"":o,l=t.fill,c=l===void 0?"none":l,d=oI(t,["size","className","fill"]);return $.createElement("svg",Object.assign({width:n,height:n,viewBox:"0 0 24 24",fill:c,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-chevron-right ".concat(s)},d),$.createElement("g",null,$.createElement("polyline",{points:"9 18 15 12 9 6"})))};function sI({categoryData:e=[],styles:t={},onView:r}){return console.log("Table.jsx categoryData:",e),a.jsxs($t,{sx:t.categoryTable,children:[a.jsxs(E,{sx:t.categoryTableHeader,children:[a.jsx(E,{sx:t.categoryTableHeaderCell,children:"Category"}),a.jsx(E,{sx:t.categoryTableHeaderCell,children:"Stock / OSA"}),a.jsx(E,{sx:t.categoryTableHeaderCell,children:"Products"}),a.jsx(E,{sx:t.categoryTableHeaderCell})]}),e.map((n,o)=>a.jsxs(E,{sx:t.categoryTableRow(o),children:[a.jsxs(E,{sx:t.categoryNameCell,children:[a.jsx(P,{sx:t.categoryName,children:n.name}),a.jsxs(P,{sx:t.categoryProducts,children:[n.products," Products"]}),a.jsxs(P,{sx:t.categoryUpdated,children:["Updated ",n.updated]})]}),a.jsxs(E,{sx:t.categoryStockCell,children:[a.jsx(P,{sx:t.categoryStock(o),children:n.stock}),a.jsx(P,{sx:t.categoryOSA(o),children:n.osa})]}),a.jsx(E,{sx:t.categoryImagesCell,children:n.images.map((s,l)=>a.jsx(ni,{src:s,alt:n.name+" product",sx:t.categoryImage},l))}),a.jsx(E,{sx:t.categoryViewCell,children:a.jsxs(Se,{variant:"contained",color:"primary",sx:t.categoryViewButton,onClick:()=>r&&r(n),children:["View",a.jsx(iI,{size:20,style:{marginLeft:6}})]})})]},n.name))]})}const aI=()=>{const e=Ft(),t=et(),n=Pt().categoriesView,[o,s]=$.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:l,companyId:c,loading:d,error:p}=Ae(D=>D.dashboard),u=$.useMemo(()=>l?.status&&Array.isArray(l?.data)&&l.data.length>0?{matched:!0,error:"",apiResponse:l.data[0],loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[l]),h=Ae(D=>D.dashboard),{categorySummary:v=[],products:g=[]}=h||{},y=v,f=Array.isArray(g)&&g.length>0,m=()=>{u.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},x={},{productsByCategory:b={}}=h||{};Object.values(b).flat().forEach(D=>{D.storeId&&D.storeName&&(x[D.storeId]=D.storeName)});const w=[{id:"all",name:"All Stores"},...Object.entries(x).map(([D,L])=>({id:D,name:L}))],S=D=>{s(D)},[C,O]=$.useState(!1);$.useEffect(()=>{!c&&!C?e(xo()).finally(()=>{O(!0)}):c&&queueMicrotask(()=>O(!0))},[e,c,C]),$.useEffect(()=>{c&&(e(Br(c)),e(Lr()))},[e,c]);const I=D=>{t(`/category?categoryName=${encodeURIComponent(D.name)}`)},F=C&&p&&!c;return a.jsxs(a.Fragment,{children:[!F&&a.jsx(Yr,{filters:o,onFilterChange:S,styles:n.topBar,stores:w,tenantStatus:u,hasProducts:f}),F?a.jsx(Ei,{handleStartSyncing:m,loading:!1,sessionExpired:!0}):!C&&!c?a.jsx(Ei,{handleStartSyncing:m,loading:!0,sessionExpired:!1}):f?a.jsxs(E,{sx:n.root,children:[a.jsx(hy,{productState:h}),a.jsx(sI,{categoryData:y,styles:n,onView:I})]}):a.jsx(Ei,{handleStartSyncing:m,loading:d,sessionExpired:!1})]})},lI=[{name:"Bakery",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg"]},{name:"Biscuits",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg"]},{name:"Drinks",products:45,stock:"20/5,600",osa:"5% on shelf",updated:"2 days ago",images:["https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL"]},{name:"Pulses",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg"]},{name:"Snacks",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg"]}],cI=()=>{const e=Pt(),t=Ir(),r=Nr(),n=window.innerWidth<600,o=window.innerWidth>=600&&window.innerWidth<1024,s=n?t.categoriesView:o?r.categoriesView:e.categoriesView,[l,c]=$.useState({category:"all",status:"all",search:"",store:[]}),d=Ft(),h=(Ae(f=>f.dashboard)?.products||[]).reduce((f,m)=>(m?.id&&(f[m.id]=m),f),{});$.useEffect(()=>{d(Lr())},[d]);const v={};Object.values(h).forEach(f=>{f.storeId&&f.storeName&&(v[f.storeId]=f.storeName)});const g=[{id:"all",name:"All Stores"},...Object.entries(v).map(([f,m])=>({id:f,name:m}))],y=f=>{c(f)};return a.jsxs(a.Fragment,{children:[a.jsx(Yr,{filters:l,onFilterChange:y,styles:s.topBar,stores:g}),a.jsxs(E,{sx:s.root,children:[a.jsxs(E,{sx:{display:"flex",gap:2,mb:3},children:[a.jsxs($t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",mb:1},children:[a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"Categories"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"45"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),a.jsxs(E,{sx:{flex:1,textAlign:"center"},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"Products"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"234"})]})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",flex:1},children:[a.jsx(uy,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]}),a.jsx(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"History >"})]})]}),a.jsxs($t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[a.jsxs(E,{sx:{textAlign:"center",mb:1},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"Active Catalogs"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"34"})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",flex:1},children:[a.jsx(fy,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),a.jsx(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Manage >"})]})]}),a.jsxs($t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[a.jsxs(E,{sx:{textAlign:"center",mb:1},children:[a.jsx(P,{variant:"body2",color:"text.secondary",children:"On Shelf Yesterday"}),a.jsx(P,{variant:"h5",fontWeight:500,children:"78%"}),a.jsx(P,{variant:"caption",color:"text.secondary",children:"78/100X"})]}),a.jsx(Ke,{}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",mt:1},children:[a.jsx(E,{sx:{flex:1},children:a.jsx(P,{variant:"caption",color:"#ef4444",fontWeight:500,children:"22% missing"})}),a.jsx(Se,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Report >"})]})]})]}),a.jsxs($t,{sx:s.categoryTable,children:[a.jsxs(E,{sx:s.categoryTableHeader,children:[a.jsx(E,{sx:s.categoryTableHeaderCell,children:"Category"}),a.jsx(E,{sx:s.categoryTableHeaderCell,children:"Stock / OSA"}),a.jsx(E,{sx:s.categoryTableHeaderCell,children:"Products"}),a.jsx(E,{sx:s.categoryTableHeaderCell})]}),lI.map((f,m)=>a.jsxs(E,{sx:s.categoryTableRow(m),children:[a.jsxs(E,{sx:s.categoryNameCell,children:[a.jsx(P,{sx:s.categoryName,children:f.name}),a.jsxs(P,{sx:s.categoryProducts,children:[f.products," Products"]}),a.jsxs(P,{sx:s.categoryUpdated,children:["Updated ",f.updated]})]}),a.jsxs(E,{sx:s.categoryStockCell,children:[a.jsx(P,{sx:s.categoryStock(m),children:f.stock}),a.jsx(P,{sx:s.categoryOSA(m),children:f.osa})]}),a.jsx(E,{sx:s.categoryImagesCell,children:f.images.map((x,b)=>a.jsx(ni,{src:x,alt:f.name+" product",sx:s.categoryImage},b))}),a.jsx(E,{sx:s.categoryViewCell,children:a.jsx(Se,{variant:"contained",color:"primary",sx:s.categoryViewButton,children:"View"})})]},f.name))]})]})]})};function nt({icon:e,title:t,subtitle:r,subtitleValue:n,onClick:o,selected:s,highlightStyle:l={},action:c,disabled:d=!1,customStyle:p={}}){const h={card:{...{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,cursor:o&&!d?"pointer":"default",minHeight:60,opacity:d?.5:1,...s?l:{}},...p},cardInner:{display:"flex",alignItems:"center",flex:1},icon:{display:"flex",alignItems:"center",mr:2},title:{fontWeight:700,fontSize:15,color:d?"#999":"#222",lineHeight:1.2},subtitle:{color:d?"#bbb":"#888",fontSize:13,fontWeight:400,mt:.5,lineHeight:1.3}};return a.jsxs(E,{onClick:d?void 0:o,sx:{...h.card,...p||{}},children:[e&&a.jsx(E,{sx:h.icon,children:e}),a.jsxs(E,{sx:h.cardInner,children:[a.jsxs(E,{children:[a.jsx(P,{sx:h.title,children:t}),r&&a.jsx(P,{sx:h.subtitle,children:n?`${n} ${r}`:r})]}),c&&a.jsx(E,{sx:{ml:"auto"},children:c})]})]})}function dI({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:r,setSelectedCard:n,syncStep:o=0,syncMethod:s="",onSetupSync:l=()=>{},onSyncNow:c=()=>{},integrationData:d={},...p}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=et();d?.configs;const v=d?.configs?.sync_frequency||"Daily",g=d?.configs?.sync_time||"10:00 AM",y=d?.type||s||"FTP";return o===3?a.jsxs(E,{sx:{maxWidth:600,mx:"auto",mt:4},children:[a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>n&&n("catalogs"),selected:r==="catalogs",highlightStyle:u}),a.jsx(nt,{icon:a.jsx(vn,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>n&&n("aira-ai"),selected:r==="aira-ai",highlightStyle:u,action:a.jsx(mi,{checked:e,onChange:f=>t&&t(f.target.checked)})}),a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),a.jsx("span",{style:{float:"right",color:"#1976d2",fontWeight:500,fontSize:15,cursor:"pointer"},onClick:c,children:"Sync Now"})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Method",subtitle:y,highlightStyle:u,disabled:!0}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:v,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Time",subtitle:g,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]}):a.jsxs(E,{sx:{maxWidth:600,mx:"auto",mt:4},children:[a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>n&&n("catalogs"),selected:r==="catalogs",highlightStyle:u}),a.jsx(nt,{icon:a.jsx(vn,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>n&&n("aira-ai"),selected:r==="aira-ai",highlightStyle:u,action:a.jsx(mi,{checked:e,onChange:f=>t&&t(f.target.checked)})}),a.jsxs(P,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",a.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),a.jsx("span",{style:{float:"right",color:o===0?"#bbb":"#1976d2",fontWeight:500,fontSize:15,cursor:o===0?"not-allowed":"pointer",opacity:o===0?.5:1},onClick:o===0?void 0:c,children:"Sync Now"})]}),o===0&&a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Setup Sync",subtitle:"Sync products",onClick:l,highlightStyle:u}),o===1&&a.jsxs(a.Fragment,{children:[a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Method",subtitle:y,highlightStyle:u}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:`Setup ${y} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})},highlightStyle:u})]}),o===3&&a.jsxs(a.Fragment,{children:[a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),a.jsxs(E,{sx:{display:"flex",gap:2},children:[a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:"Daily",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),a.jsx(E,{sx:{flex:1},children:a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync Time",subtitle:"10:00 AM",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),a.jsx(nt,{icon:a.jsx(at,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]})]})}const yr=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:r})=>{const n=Ge(),o=Ze(n.breakpoints.down("sm")),s=Ze(n.breakpoints.between("sm","md")),l=Pt(),c=Ir(),d=Nr(),p=(u=15)=>!r||!Array.isArray(r)||r.length===0?null:a.jsx(E,{sx:{display:"flex",alignItems:"center"},children:r.map((h,v)=>a.jsxs($.Fragment,{children:[v>0&&a.jsx(_r,{size:u-2,color:"#bbb",style:{margin:"0 7px"}}),a.jsx(P,{sx:{color:v===r.length-1?"#111":"#888",fontWeight:v===r.length-1?700:500,fontSize:u},children:h.label})]},h.label))});if(!o&&!s){const u=l;return a.jsxs(E,{sx:u.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:56,px:2,borderBottom:"1px solid #eee",mb:0},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsxs(E,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:2},children:[a.jsx(xd,{size:18}),a.jsx(P,{sx:{ml:1,color:"#888",fontWeight:500},children:"Back"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24}}),r&&r.length>0?p(16):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{color:"#888",fontWeight:500,mr:1},children:"Products"}),a.jsx(_r,{size:16,color:"#bbb",style:{margin:"0 8px"}}),a.jsx(P,{sx:{fontWeight:600},children:e})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:24,mx:3}}),a.jsx(Wt,{size:"small",sx:{color:"#888",mx:1},children:a.jsx(vd,{size:20})}),a.jsx(E,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"30%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:a.jsx(vn,{size:16,color:"#fff"})})]})]})}if(o){const u=c;return a.jsxs(E,{sx:u.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:48,px:1.5,borderBottom:"1px solid #eee",mb:0},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsxs(E,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:1},children:[a.jsx(xd,{size:16}),a.jsx(P,{sx:{ml:.5,color:"#888",fontWeight:500,fontSize:14},children:"Back"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:1,height:20}}),r&&r.length>0?p(14):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{color:"#888",fontWeight:500,mr:.5,fontSize:13},children:"Products"}),a.jsx(_r,{size:14,color:"#bbb",style:{margin:"0 6px"}}),a.jsx(P,{sx:{fontWeight:600,fontSize:14},children:e})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:20,mx:1}}),a.jsx(Wt,{size:"small",sx:{color:"#888"},children:a.jsx(vd,{size:18})}),a.jsx(E,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:a.jsx(vn,{size:14,color:"#fff"})})]})]})}if(s){const u=d;return a.jsxs(E,{sx:u.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:52,px:2,borderBottom:"1px solid #eee",mb:0},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsxs(E,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:1.5},children:[a.jsx(xd,{size:17}),a.jsx(P,{sx:{ml:.8,color:"#888",fontWeight:500,fontSize:15},children:"Back"})]}),a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{mx:1.5,height:22}}),r&&r.length>0?p(15):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{color:"#888",fontWeight:500,mr:.8,fontSize:14},children:"Products"}),a.jsx(_r,{size:15,color:"#bbb",style:{margin:"0 7px"}}),a.jsx(P,{sx:{fontWeight:600,fontSize:15},children:e})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center"},children:[a.jsx(Ke,{orientation:"vertical",flexItem:!0,sx:{height:22,mx:1.5}}),a.jsx(Wt,{size:"small",sx:{color:"#888"},children:a.jsx(vd,{size:19})}),a.jsx(E,{sx:{width:34,height:34,bgcolor:"#1976d2",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:a.jsx(vn,{size:15,color:"#fff"})})]})]})}};function Ea({open:e,onClose:t,onSave:r}){Ge();const n=Pt(),[o,s]=$.useState("sftp"),l=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],c=h=>s(h.target.value),d=()=>{r&&r(o),t()},p=()=>{},u=n.productSettingModal;return a.jsx(si,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:a.jsxs(E,{sx:u.container,children:[a.jsxs(E,{sx:u.header,children:[a.jsx(P,{sx:u.headerTitle,children:"Sync Method"}),a.jsx(Wt,{onClick:t,size:"small",sx:u.closeButton,children:a.jsx(GP,{size:20})})]}),a.jsxs(E,{sx:u.content,children:[a.jsx(qg,{value:o,onChange:c,children:l.map(h=>a.jsx(xt,{value:h.value,control:a.jsx(Rg,{icon:a.jsx(E,{sx:u.radioIcon}),checkedIcon:a.jsx(YP,{size:18,color:"#000"}),sx:u.radioChecked}),label:a.jsx(P,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...o===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),a.jsxs(E,{sx:u.upgradeSection,children:[a.jsx(P,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),a.jsx(P,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),a.jsx(E,{sx:u.footer,children:a.jsx(Se,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const pI=({isOpen:e,onClose:t,onConfirm:r})=>{const n=Pt();let o;return o=n.productSettingModal,a.jsx(si,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:o.modal,children:a.jsxs(E,{sx:o.container,children:[a.jsx(E,{sx:o.header,children:a.jsx(P,{sx:{...o.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),a.jsxs(E,{sx:{...o.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[a.jsx(Se,{variant:"contained",color:"primary",onClick:r,sx:{minWidth:100,mx:4},children:"Yes"}),a.jsx(Se,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function uI(){const e=yt(),t=et(),r=Ft(),{companyId:n,integrationData:o}=Ae(L=>L.dashboard),[s,l]=$.useState(!0),[c,d]=$.useState(),[p,u]=$.useState(0),[h,v]=$.useState(""),[g,y]=$.useState(!1),[f,m]=$.useState(!1),[x,b]=$.useState(!1),[w,S]=$.useState("");$.useEffect(()=>{n&&r(Br(n))},[n,r]),$.useEffect(()=>{let L=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(L=e.state.tenantIntegrationMatched,L&&n&&r(Br(n)));const z=e.state?.fromSyncStep===1?1:L===!0?3:0;queueMicrotask(()=>{u(z)})},[e.state,n,r]);const C=()=>y(!0),O=L=>{v(L),u(1),y(!1)},I=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:p}})},F=async()=>{const L=o?.channelId||o?.id;if(!L){S("Channel ID not found"),b(!0),m(!1);return}m(!1);try{const z=await r(Eo(L));Eo.fulfilled.match(z)&&z.payload&&z.payload.message==="Sync started successfully"?S("Sync started successfully"):S("Sync not started successfully"),b(!0)}catch{S("Sync not started successfully"),b(!0)}},D=()=>{p===1?(u(0),v("")):t("/")};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbRight:"Settings",onBack:D}),a.jsx(Ea,{open:g,onClose:()=>y(!1),onSave:O}),a.jsx(pI,{isOpen:f,onClose:()=>m(!1),onConfirm:F}),a.jsx(gi,{open:x,autoHideDuration:4e3,onClose:()=>b(!1),message:w,anchorOrigin:{vertical:"top",horizontal:"center"}}),a.jsx(dI,{airaAiEnabled:s,setAiraAiEnabled:l,selectedCard:c,setSelectedCard:d,syncStep:p,syncMethod:h,integrationData:o,onSetupSync:C,onSetupFTP:I,onSyncNow:()=>m(!0)})]})}function fI(){const e=Ge(),t=Ze(e.breakpoints.down("sm")),r=Ze(e.breakpoints.between("sm","md")),n=et(),o=yt(),s=Pt(),l=Ir(),c=Nr(),[d,p]=$.useState(!0),[u,h]=$.useState(!1),[v,g]=$.useState(),y=o.state?.tenantIntegrationData,f={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},m=()=>{n("/empty-products")},x=()=>{},b=()=>{g("sync"),h(!0)},w=()=>{h(!1)},S=O=>{localStorage.setItem("selectedSyncMethod",O),h(!1),n("/product-sync-setting",{state:{tenantIntegrationData:y}})},C=()=>{g("catalogs")};if(!t&&!r){const O=s.productSetting;return a.jsxs(E,{sx:O.wrapper,children:[a.jsx(Ea,{open:u,onClose:w,onSave:S}),a.jsx(yr,{breadcrumbRight:"Settings",onBack:m}),a.jsxs(E,{sx:O.content,children:[a.jsx(nt,{airaAiEnabled:d,setAiraAiEnabled:p,handleManageCatalogs:C,selectedCard:v,highlightStyle:f}),a.jsxs(E,{children:[a.jsxs(E,{sx:O.syncHeader,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"Sync"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:x,sx:O.syncNowButton,children:[a.jsx(Gn,{size:14}),a.jsx(P,{sx:O.syncNowText,children:"Sync Now"})]})]}),a.jsxs(E,{onClick:b,sx:{...O.setupSyncCard,...v==="sync"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(Gn,{size:18,color:"#454545"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Setup Sync"}),a.jsx(P,{sx:O.settingSubtitle,children:"Sync products"})]})]}),a.jsx(_r,{size:20,color:"#888"})]})]})]})]})}if(t){const O=l.productSetting;return a.jsxs(E,{sx:O.wrapper,children:[a.jsx(Ea,{open:u,onClose:w,onSave:S}),a.jsx(yr,{breadcrumbRight:"Settings",onBack:m}),a.jsxs(E,{sx:O.content,children:[a.jsxs(E,{sx:O.section,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"General"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:C,sx:{...O.settingCard,...v==="catalogs"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(at,{size:18,color:"#666"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Manage Shared Catalogs"}),a.jsx(P,{sx:O.settingSubtitle,children:"4 shared"})]})]}),a.jsx(_r,{size:20,color:"#999"})]}),a.jsxs(E,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,mt:1,minHeight:60},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",mr:2},children:a.jsx(vn,{size:20,color:"#888"})}),a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Aira AI"}),a.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Make your workflows faster and smarter"})]}),a.jsx(mi,{checked:d,onChange:I=>p(I.target.checked),sx:{mr:.5,"& .MuiSwitch-switchBase.Mui-checked":{color:"#1976d2"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#b3e0ff"},"& .MuiSwitch-track":{backgroundColor:"#e3eefa",opacity:1},"& .MuiSwitch-thumb":{boxShadow:"0 1px 4px #1976d233"}}})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:O.syncHeader,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"Sync"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:x,sx:O.syncNowButton,children:[a.jsx(Gn,{size:14}),a.jsx(P,{sx:O.syncNowText,children:"Sync Now"})]})]}),a.jsxs(E,{onClick:b,sx:{...O.setupSyncCard,...v==="sync"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(Gn,{size:18,color:"#454545"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Setup Sync"}),a.jsx(P,{sx:O.settingSubtitle,children:"Sync products"})]})]}),a.jsx(_r,{size:20,color:"#888"})]})]})]})]})}if(r){const O=c.productSetting;return a.jsxs(E,{sx:O.wrapper,children:[a.jsx(Ea,{open:u,onClose:w,onSave:S}),a.jsx(yr,{breadcrumbRight:"Settings",onBack:m}),a.jsxs(E,{sx:O.content,children:[a.jsxs(E,{sx:O.section,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"General"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:C,sx:{...O.settingCard,...v==="catalogs"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(at,{size:18,color:"#666"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Manage Shared Catalogs"}),a.jsx(P,{sx:O.settingSubtitle,children:"4 shared"})]})]}),a.jsx(_r,{size:20,color:"#999"})]}),a.jsxs(E,{sx:{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,mt:1,minHeight:60},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",mr:2},children:a.jsx(vn,{size:20,color:"#888"})}),a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{sx:{fontWeight:700,fontSize:16,color:"#222",lineHeight:1.2},children:"Aira AI"}),a.jsx(P,{sx:{color:"#888",fontSize:14,fontWeight:400,mt:.5,lineHeight:1.3},children:"Make your workflows faster and smarter"})]}),a.jsx(mi,{checked:d,onChange:I=>p(I.target.checked),sx:{mr:.5,"& .MuiSwitch-switchBase.Mui-checked":{color:"#1976d2"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#b3e0ff"},"& .MuiSwitch-track":{backgroundColor:"#e3eefa",opacity:1},"& .MuiSwitch-thumb":{boxShadow:"0 1px 4px #1976d233"}}})]})]}),a.jsxs(E,{children:[a.jsxs(E,{sx:O.syncHeader,children:[a.jsxs(E,{sx:O.sectionHeader,children:[a.jsx(P,{sx:O.sectionTitle,children:"Sync"}),a.jsx(P,{sx:O.sectionCount,children:"2"})]}),a.jsxs(E,{onClick:x,sx:O.syncNowButton,children:[a.jsx(Gn,{size:14}),a.jsx(P,{sx:O.syncNowText,children:"Sync Now"})]})]}),a.jsxs(E,{onClick:b,sx:{...O.setupSyncCard,...v==="sync"?f:{}},children:[a.jsxs(E,{sx:O.settingCardInner,children:[a.jsx(E,{sx:O.settingIcon,children:a.jsx(Gn,{size:18,color:"#454545"})}),a.jsxs(E,{children:[a.jsx(P,{sx:O.settingTitle,children:"Setup Sync"}),a.jsx(P,{sx:O.settingSubtitle,children:"Sync products"})]})]}),a.jsx(_r,{size:20,color:"#888"})]})]})]})]})}}const gy=["Setup FTP","Check data","Start Sync"],hI=e=>{const t=yt(),r=et();t.state?.tenantIntegrationData;const n=t.state?.fromSyncStep,o=()=>{n!==void 0?r("/product-setting",{state:{fromSyncStep:n,tenantIntegrationMatched:n===3}}):r("/product-setting")};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:o}),a.jsxs(E,{sx:{maxWidth:800,mx:"auto",pt:4},children:[a.jsx(E,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:4,mb:2},children:gy.map((s,l)=>a.jsx("span",{style:{fontWeight:l===0?700:400,color:"#222",fontSize:16,flex:1,textAlign:l===0?"left":l===gy.length-1?"right":"center"},children:s},s))}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,minWidth:600,bgcolor:"#fff"},children:a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:a.jsxs(Jt,{elevation:0,sx:{mt:4,p:4,borderRadius:4,background:"#fafafa",minWidth:400,maxWidth:420},children:[a.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Setup Instructions"}),a.jsxs("ol",{style:{color:"#222",fontSize:16,margin:0,paddingLeft:20,marginBottom:24},children:[a.jsx("li",{children:"Directory should have just one file"}),a.jsx("li",{children:"File format must be in CSV (comma separated)"}),a.jsx("li",{children:"File structure should be flat"})]}),a.jsx(E,{sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})})]})]})},yy=ht(a.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),gI=ht(a.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),yI=ht(a.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),mI=ht(a.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),bI=({active:e,completed:t,showBlue:r})=>a.jsx(E,{sx:{width:24,height:24,borderRadius:"50%",border:`2px solid ${r?"#2563eb":"#bbb"}`,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff"},children:r?a.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2563eb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):e||t?a.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):a.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),Ta=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:r=!1,progressToCheckData:n=!1,showSetupFtpBlueTick:o=!1,showStartSyncBlueTick:s=!1,instantComplete:l=!1})=>{Ge();const[c,d]=$.useState(0),[p,u]=$.useState(!1),h=$.useRef(null),[v,g]=$.useState(0),[y,f]=$.useState(0),[m,x]=$.useState(0);return $.useEffect(()=>{if(l){setTimeout(()=>{d(1),u(!0)},0);return}if(setTimeout(()=>{d(0),u(!1)},0),n){const b=setTimeout(()=>{d(1),setTimeout(()=>u(!0),600)},100);return()=>clearTimeout(b)}else{const b=setTimeout(()=>{d(1),setTimeout(()=>u(!0),600)},100);return()=>clearTimeout(b)}},[t,e.length,n,l]),$.useEffect(()=>{if(h.current){const b=h.current.querySelector(".stepper-icon-0"),w=h.current.querySelector(".stepper-icon-1"),S=h.current.querySelector(`.stepper-icon-${e.length-1}`);if(b&&w&&S){const C=b.getBoundingClientRect(),O=w.getBoundingClientRect(),I=S.getBoundingClientRect(),F=h.current.getBoundingClientRect(),D=C.left+C.width/2-F.left;g(D),f((O.left+O.width/2-F.left-D)*.4),x(I.left+I.width/2-F.left-D)}}},[e.length,c]),a.jsxs(E,{sx:{width:"100%",p:"24px 0 0 0"},children:[a.jsx(E,{ref:h,sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",px:4},children:e.map((b,w)=>a.jsxs(E,{className:`stepper-icon-${w}`,sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[a.jsx(bI,{active:w===t,completed:w<t,showBlue:w===0&&o||w===1&&r&&p||w===2&&s}),a.jsx("span",{style:{fontWeight:w===t?700:400,color:"#222",fontSize:16,marginTop:8},children:b})]},b))}),a.jsxs(E,{sx:{position:"relative",width:"100%",height:6,mt:1.5,mb:0,px:4},children:[a.jsx(E,{sx:{position:"absolute",left:v,top:0,width:m,height:4,bgcolor:"#f2f2f2",borderRadius:2,transition:"left 0.30s, width 0.30s"}}),a.jsx(E,{sx:{position:"absolute",left:v,top:0,height:4,borderRadius:2,bgcolor:"#219653",width:s?c?m:0:n?c?m*.5:0:c?y:0,transition:"width 0.7s cubic-bezier(.47,1.64,.41,.8), left 0.4s"}})]})]})},vI=["Setup FTP","Check data","Start Sync"],xI=e=>e.dashboard?.companyId||"";function SI(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const wI=e=>{const{ftpDetails:t={}}=e,[r,n]=$.useState(null),o=yt(),s=et(),l=Ae(xI),c=1,[d,p]=$.useState(!1),[u,h]=$.useState(0);$.useEffect(()=>{let z,k;return setTimeout(()=>{h(0),p(!1),z=setTimeout(()=>{h(1),k=setTimeout(()=>p(!0),600)},100)},0),()=>{z&&clearTimeout(z),k&&clearTimeout(k)}},[]);const[v,g]=$.useState(!1),y=localStorage.getItem("selectedSyncMethod")||"sftp",[f,m]=$.useState(`${y}:`),[x,b]=$.useState(""),[w,S]=$.useState(""),C=Ft(),O=Ae(z=>z.ftpSync.loading),I=Ae(z=>z.ftpSync.error),F=Ge();Ze(F.breakpoints.up("lg"));const D=Ae(z=>z.productSettings.syncData);$.useEffect(()=>{const z=o.state?.ftpConfig,k=o.state?.tenantIntegrationData;if(D&&D.serverAddress){setTimeout(()=>{m(D.serverAddress||""),b(D.configs&&D.configs.username||""),S(D.configs&&D.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const j=t.type||"sftp",A=t.host||"",M=t.port||"",_=t.path||"",N=`${j}://${A}${M?`:${M}`:""}${_?`/${_}`:""}`;setTimeout(()=>{m(N),b(t.username||""),S(t.password||"")},0);return}if(k&&k.configs){const j=k.configs,A=j.type||k.type||"sftp",M=j.host||"",_=j.port||"",N=j.path||"",W=`${A}://${M}:${_}/${N}`,U=j.username||"",B=j.password||"";setTimeout(()=>{m(W),b(U),S(B)},0);return}if(z){const A=`${z.type||"sftp"}://${z.host}:${z.port}/${z.path}`,M=z.username||"",_=z.password||"";setTimeout(()=>{m(A),b(M),S(_)},0)}},[o.state,D,t]);const L=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:z,host:k,port:j,path:A}=SI(f),M=await C(So({serverAddress:f,username:x,password:w,companyId:l}));if(!So.fulfilled.match(M))return;const _=M.payload;if(o.state?.fromSettingsIcon){const U=_?.entity_type||r?.entity_type||"products",B={...r||{},companyId:l,tenantId:l,type:z,configs:{host:k,port:Number(j),path:A,username:x,password:w,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:U,mappings:r?.mappings||_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):",JSON.stringify(B,null,2)),n(B),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),s("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:B}});return}const N=_?.entity_type||"",W={companyId:l,tenantId:l,type:z,serverAddress:f,configs:{host:k,port:Number(j),path:A,username:x,password:w,sync_frequency:"",sync_time:""},entity_type:N||"products",mappings:_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(W,null,2)),C(us(W)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(W)),e.onNext&&e.onNext({putjson:W})};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),a.jsxs(E,{sx:{maxWidth:800,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:vI,activeStep:c,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:d,animateSetupFtp:!0}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:600,minWidth:600,bgcolor:"#fff",mt:4},children:a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:a.jsx(E,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:440,maxWidth:480},children:a.jsxs(E,{sx:{background:"#f5f5f5",borderRadius:4,p:4},children:[a.jsx(P,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),a.jsxs(E,{component:"form",autoComplete:"off",sx:{width:"90%"},children:[a.jsxs("div",{style:{marginBottom:16},children:[a.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),a.jsx("input",{type:"text",value:f,onChange:z=>m(z.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),a.jsxs("div",{style:{marginBottom:16},children:[a.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),a.jsx("input",{type:"text",value:x,onChange:z=>b(z.target.value),placeholder:"Enter username",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),a.jsxs("div",{style:{marginBottom:16,position:"relative"},children:[a.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),a.jsx("input",{type:v?"text":"password",value:w,onChange:z=>S(z.target.value),placeholder:"Enter password",style:{width:"82%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 44px 12px 14px",fontSize:16,marginBottom:0}}),a.jsx(Wt,{"aria-label":"toggle password visibility",onClick:()=>g(z=>!z),edge:"end",tabIndex:-1,style:{position:"absolute",right:24,top:"65%",transform:"translateY(-50%)",zIndex:2},children:v?a.jsx(mI,{}):a.jsx(yI,{})})]}),a.jsxs(E,{sx:{display:"flex",mt:3,justifyContent:"flex-end",gap:2},children:[a.jsx(Se,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:L,disabled:O,children:O?"Loading...":"Next"})]}),I&&a.jsx(P,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})})]})]})},CI=["Setup FTP","Check data","Start Sync"],EI=e=>e.productSettings.ftpColumns||[],TI=e=>e.productSettings.preview||[],OI=e=>e.productSettings.loading,kI=e=>e.productSettings.error,PI=e=>e.productSettings.existingMapping,II=e=>e.productSettings.entity_type||"products",NI=e=>{const{mapping:t=[]}=e,r=yt(),n=et(),o=r.state?.fromSettingsIcon,[s,l]=$.useState(r.state?.putjson||(t.length>0?{mappings:t}:null)),[c,d]=$.useState({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0}),[p,u]=$.useState([]),[h,v]=$.useState({});$.useEffect(()=>{let A;return setTimeout(()=>{d({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0}),A=setTimeout(()=>{d({activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0})},400)},0),()=>{A&&clearTimeout(A)}},[]);const g=Ae(EI),y=Ae(TI),f=Ae(OI),m=Ae(kI),x=Ae(PI),b=Ae(II),w=$.useRef(f);$.useEffect(()=>{f&&!w.current&&queueMicrotask(()=>v({})),w.current=f},[f]);const S=$.useRef(!1);$.useLayoutEffect(()=>{x==null||!x?.mappings||x.mappings.length===0?S.current||(S.current=!0,queueMicrotask(()=>v({}))):S.current=!1},[x]),$.useEffect(()=>{console.log("=== FTPSync_2: Redux State ==="),console.log("ftpColumns:",g),console.log("preview:",y),console.log("existingMapping:",x),console.log("entityType:",b),console.log("loading:",f),console.log("error:",m),console.log("================================")},[g,y,x,b,f,m]);const C=Ft();Ae(A=>A.productSettings.mappingColumns||[]),Ae(A=>A.productSettings.mappingColumnsLoading),$.useEffect(()=>{async function A(){try{let M=[];if(x?.mappings?.length>0){const _=x.mappings.map(N=>N.target_field).filter(N=>N&&typeof N=="string");M=[...new Set(_)],console.log("✅ Using target_fields from existing_mapping as primary Aira columns:",M)}try{const _=await C(To(b));To.fulfilled.match(_)&&Array.isArray(_.payload)&&(_.payload.filter(W=>W&&typeof W=="string").forEach(W=>{M.includes(W)||M.push(W)}),console.log("✅ Merged API columns with existing_mapping:",M))}catch(_){console.warn("⚠️ API fetch failed, using only existing_mapping target_fields:",_)}if(t&&t.length>0){const _=t.map(N=>N.target_field).filter(N=>N&&typeof N=="string"&&!M.includes(N));_.length>0&&(M=[...M,..._],console.log("✅ Added mapping prop fields:",_))}M=M.filter(_=>_&&typeof _=="string"),console.log("✅ Final Aira columns (no undefined):",M),u(M)}catch(M){if(console.error("Error fetching Aira columns:",M),x?.mappings?.length>0){const _=x.mappings.map(W=>W.target_field).filter(W=>W&&typeof W=="string"),N=[...new Set(_)];console.log("✅ Fallback: Using target_fields from existing_mapping:",N),u(N)}else u([])}}(b||x?.mappings?.length>0||t&&t.length>0)&&A()},[b,x,t,C]);const O=$.useMemo(()=>{if(x?.mappings&&x.mappings.length>0){const A=x.mappings.map(M=>M.source_field).filter(M=>M);if(A.length>0)return console.log("✅ Using source_field from existing_mapping as FTP columns:",A),A}return g&&g.length>0?(console.log("✅ Using ftp_columns from API response:",g),g):(console.warn("⚠️ No FTP columns available from existing_mapping or API"),[])},[x,g]),I=$.useMemo(()=>{const A=y.filter(M=>Object.keys(M).length>0);return console.log("✅ Parsed preview data:",A.length,"rows"),A},[y]),F=$.useMemo(()=>{if(x?.mappings&&x.mappings.length>0){const A={};return x.mappings.forEach(M=>{M.source_field&&M.target_field&&(A[M.source_field]=M.target_field)}),console.log("=== FTPSync_2: Initial mappings from existing_mapping ===",A),A}return{}},[x]),L=x?.mappings?.length>0?{...F,...h}:{...h},z=Ge();Ze(z.breakpoints.up("lg"));const k=Ae(A=>A.productSettings.syncData),j=()=>{const A=O.map(W=>({source_field:W||"",target_field:L[W]||""}));if(o&&s){const W=A.filter(B=>B.source_field&&B.target_field),U={...s,tenantId:s.tenantId||s.companyId,type:s.type||k.type||"sftp",entity_type:s.entity_type||k.entity_type||"products",mappings:W};console.log("[FTP Sync – Step 2] JSON object created (settings flow, with mappings):",JSON.stringify({tenantId:U.tenantId,type:U.type,entity_type:U.entity_type,configs:U.configs,mappings:U.mappings},null,2)),l(U),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(U)),e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:U});return}const M=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),_=k.companyId||M.companyId||M.tenantId||"",N={...M,companyId:_,tenantId:_,type:k.type||M.type||"sftp",integration_type:k.integration_type||M.integration_type||"",entity_type:M.entity_type||k.entity_type||"products",configs:k.configs||M.configs||{},ftp_columns:O,preview:I,mappings:A};console.log("[FTP Sync – Step 2] JSON object created (with mappings):",JSON.stringify({tenantId:N.tenantId,type:N.type,entity_type:N.entity_type,configs:N.configs,mappings:N.mappings},null,2)),C(us(N)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),e.onNext&&e.onNext({putjson:N})};return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>n("/ftp-sync-1")}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:CI,activeStep:c.activeStep,showCheckDataBlueTick:c.showCheckDataBlueTick,progressToCheckData:c.progressToCheckData,showSetupFtpBlueTick:c.showSetupFtpBlueTick}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:a.jsxs(Jt,{elevation:0,sx:{mt:4,p:0,borderRadius:4,width:"100%",maxWidth:900},children:[a.jsxs(E,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(E,{children:[a.jsx(P,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),a.jsx(P,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),a.jsxs(E,{children:[a.jsx(Se,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:()=>n("/ftp-sync-1"),children:"Back"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:j,children:"Next"})]})]}),a.jsx(oy,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:f?a.jsx(E,{sx:{p:3,textAlign:"center"},children:"Loading..."}):m?a.jsx(E,{sx:{p:3,color:"red",textAlign:"center"},children:m}):O.length===0?a.jsx(E,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):a.jsxs(ty,{size:"small",children:[a.jsxs(sy,{children:[a.jsxs(vi,{children:[a.jsx(qr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),O.map((A,M)=>a.jsx(qr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:A},A+M))]}),a.jsxs(vi,{children:[a.jsx(qr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),O.map((A,M)=>a.jsx(qr,{sx:{background:"#fafafa",borderBottom:"none"},children:a.jsxs(bn,{value:L[A]||"",onChange:_=>v(N=>({...N,[A]:_.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[a.jsx(Rt,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:a.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),p.map(_=>a.jsx(Rt,{value:_,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:_},_))]})},M))]})]}),a.jsx(ny,{children:I.length>0?I.map((A,M)=>a.jsxs(vi,{children:[a.jsx(qr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:M===0?"Data preview":""}),O.map((_,N)=>a.jsx(qr,{sx:{background:"#fff",borderBottom:"none"},children:A[_]||""},N))]},M)):a.jsx(vi,{children:a.jsx(qr,{colSpan:O.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},_I=["Upload File","Check data","Start Sync"],AI=e=>e.dashboard?.companyId||"",MI=e=>{const{syncFrequency:t="",syncTime:r=""}=e,n=yt(),o=et(),s=Ae(AI),l=n.state?.fromSettingsIcon;$.useEffect(()=>{console.log("=== FTPSync_3: Props received ==="),console.log("syncFrequencyProp:",t),console.log("syncTimeProp:",r),console.log("==================================")},[t,r]);const[c,d]=$.useState(()=>{if(n.state?.putjson){const N=JSON.parse(JSON.stringify(n.state.putjson));return N.mappings&&(N.originalMappings=JSON.parse(JSON.stringify(N.mappings))),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),N}const _=window.localStorage.getItem("ftpSyncPutjson");if(_){const N=JSON.parse(_);return N.mappings&&!N.originalMappings&&(N.originalMappings=JSON.parse(JSON.stringify(N.mappings))),N}return null});$.useEffect(()=>{c&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(c))},[c]);const[p,u]=$.useState(null);$.useEffect(()=>{s&&Tl(s).then(_=>{const N=_&&_.data&&_.data[0];u(N)})},[s]);const h=!!l||!!p,v=_=>{if(!_)return"";const N=_.charAt(0).toUpperCase()+_.slice(1).toLowerCase();return N==="Daily"||N==="Day"?"Daily":N==="Weekly"||N==="Week"?"Weekly":N==="Monthly"||N==="Month"?"Monthly":N},[g,y]=$.useState(()=>{if(t){const N=v(t);return console.log("✅ Initial syncFrequency from prop:",t,"→",N),N}const _=c?.configs?.sync_frequency?v(c.configs.sync_frequency):"";return _?(console.log("✅ Initial syncFrequency from putjson:",c?.configs?.sync_frequency,"→",_),_):(console.log("⚠️ Initial syncFrequency: using default Daily"),"Daily")}),[f,m]=$.useState(r||c&&c.configs?.sync_time||"");$.useEffect(()=>{async function _(){if(s)try{const N=n.state?.fromProductSetting;let W=null;N&&n.state?.integrationData&&(W=n.state.integrationData);const U=W||await Tl(s),B=W||U&&U.data&&U.data[0];if(B){const H=c||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),X={...B,companyId:B.companyId||s,entity_type:B.entity_type||H?.entity_type||"product",mappings:B.mappings||H?.mappings||[]},J=B.configs?.sync_frequency||"",Q=B.configs?.sync_time||"",Y=v(J);d(X),console.log("=== FTPSync_3: Prefilling syncFrequency ==="),console.log("syncFrequencyProp:",t),console.log("apiSyncFrequencyRaw:",J),console.log("apiSyncFrequency (normalized):",Y),console.log("currentPutjson?.configs?.sync_frequency:",H?.configs?.sync_frequency);const K=t?v(t):"";let ee="";if(K)console.log("✅ Using syncFrequencyProp (normalized):",t,"→",K),ee=K,y(K);else if(Y)console.log("✅ Setting syncFrequency from API:",J,"→",Y),ee=Y,y(Y);else if(H?.configs?.sync_frequency){const oe=v(H.configs.sync_frequency);console.log("✅ Using currentPutjson sync_frequency (normalized):",H.configs.sync_frequency,"→",oe),ee=oe,y(oe)}else console.log("⚠️ No syncFrequency found, using default: Daily"),ee="Daily",y("Daily");console.log("Final syncFrequency state:",ee),console.log("==========================================="),r?m(r):Q?m(Q):H?.configs?.sync_time?m(H.configs.sync_time):m(""),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(X))}}catch(N){console.error("Error fetching integration data:",N);const W=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&W?.configs?.sync_frequency?y(v(W.configs.sync_frequency)):t&&y(v(t)),!r&&W?.configs?.sync_time?m(W.configs.sync_time):r&&m(r)}}_()},[s]),$.useEffect(()=>{if(t){const _=v(t);console.log("✅ syncFrequencyProp changed, updating state:",t,"→",_),y(_),c&&c.configs?.sync_frequency!==_&&d(N=>{const W={...N,configs:{...N.configs,sync_frequency:_}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(W)),console.log("✅ Updated putjson.configs.sync_frequency:",_),W})}},[t]),$.useEffect(()=>{r&&(console.log("✅ syncTimeProp changed, updating state:",r),m(r),c&&c.configs?.sync_time!==r&&d(_=>{const N={..._,configs:{..._.configs,sync_time:r}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),console.log("✅ Updated putjson.configs.sync_time:",r),N}))},[r]),$.useEffect(()=>{if(c&&h&&(g||f)){const _=c.configs?.sync_frequency,N=c.configs?.sync_time;(_!==g||N!==f)&&d(W=>{const U={...W,configs:{...W.configs,sync_frequency:g||W.configs?.sync_frequency,sync_time:f||W.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(U)),console.log("✅ Updated putjson with syncFrequency and syncTime:",{sync_frequency:U.configs.sync_frequency,sync_time:U.configs.sync_time}),U})}},[g,f,h]);const x=Ft(),b=Ae(_=>_.productSettings.syncData),w=_=>{const N=_.target.value;y(N),c&&d(W=>{const U={...W,configs:{...W.configs,sync_frequency:N}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(U)),U}),h||x(us({...b,configs:{...b&&b.configs||{},sync_frequency:N,sync_time:f}}))},S=_=>{const N=_.target.value;m(N),c&&d(W=>{const U={...W,configs:{...W.configs,sync_time:N}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(U)),U}),h||x(us({...b,configs:{...b&&b.configs||{},sync_frequency:g,sync_time:N}}))};function C(_){try{const N=new URL(_);return{type:N.protocol.replace(":",""),host:N.hostname,port:N.port,path:N.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[O,I]=$.useState(!1),[F,D]=$.useState(""),[L,z]=$.useState(!1),k=async()=>{const _=n.state?.fromSyncSetting;if(h){if(!c){D("Update failed: missing data."),I(!0);return}c.originalMappings||d(ne=>({...ne,originalMappings:ne.mappings?JSON.parse(JSON.stringify(ne.mappings)):[]}));const re=JSON.parse(JSON.stringify(c.mappings||[])),q=JSON.parse(JSON.stringify(c.originalMappings||[])),ce=c.configs?.sync_frequency,ie=c.configs?.sync_time,ye=JSON.stringify(re)!==JSON.stringify(q),Le=g!==ce,Oe=f!==ie,ke=n.state?.fromProductSetting;if((Le||Oe)&&!ye||_&&(Le||Oe)||ke&&(Le||Oe)){let ne={configs:{}};Le&&(ne.configs.sync_frequency=g),Oe&&(ne.configs.sync_time=f);try{const tt=await x(ps({companyId:c.companyId,data:ne}));if(tt.error){let ot="Update failed. Please try again.";tt.error.response&&tt.error.response.status===500&&(ot="Server error. Please contact support or try again later"),D(ot),I(!0);return}let _e="";Le&&!Oe?_e="SyncFrequency Updated":!Le&&Oe?_e="SyncTime Updated":Le&&Oe&&(_e="SyncFrequency and SyncTime Updated"),D(_e),I(!0),z(!0);const Zt=JSON.parse(JSON.stringify(c.mappings||[]));d(ot=>{const lt={...ot,originalMappings:Zt};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(lt)),lt}),setTimeout(()=>{ke?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):o("/product-sync-setting",{state:{fromSettingsIcon:!0}}),setTimeout(()=>z(!1),2e3)},1500);return}catch{D("Update failed. Please try again."),I(!0),z(!0),setTimeout(()=>z(!1),2e3);return}}const Ce={...c,configs:{...c.configs,sync_frequency:g,sync_time:f}};d(Ce),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce));const Ne={tenantId:Ce.tenantId||Ce.companyId,type:Ce.type,entity_type:Ce.entity_type,configs:{host:Ce.configs.host,port:Number(Ce.configs.port),username:Ce.configs.username,password:Ce.configs.password,path:Ce.configs.path,sync_frequency:g,sync_time:f},mappings:(Ce.mappings||[]).map(ne=>({source_field:ne.source_field,target_field:ne.target_field}))};console.log("[FTP SYNC] JSON object updated:",Ce),console.log("[FTP SYNC] API payload for PUT /ftp/sync/update-details:",Ne);try{if(L)return;console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API...");const ne=await x(Co(Ne));if(Co.rejected.match(ne)){console.error("[FTP SYNC] API call failed:",ne.error),D("Update failed. Please try again."),I(!0);return}console.log("[FTP SYNC] API call successful:",ne.payload),D("Sync Update Successfully"),I(!0),setTimeout(()=>{o("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)}catch(ne){console.error("[FTP SYNC] Error calling API:",ne),D("Update failed. Please try again."),I(!0)}return}const N=b.configs||{},W=C(b.serverAddress||""),U=N.host||W.host,B=N.port!=null?Number(N.port):parseInt(W.port,10),H=(N.path||W.path||"").replace(/^\//,""),X=b.type||W.type||"sftp",J=b.username||N.username||"",Q=b.password||N.password||"",Y=g||N.sync_frequency||"",K=typeof Y=="string"?Y.toLowerCase():Y;let ee=f||N.sync_time||"";if(typeof ee=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(ee.trim())){const[re,q]=ee.trim().split(/\s+/),[ce,ie]=re.split(":").map(Number),ye=q.toUpperCase()==="PM"&&ce!==12?ce+12:q.toUpperCase()==="AM"&&ce===12?0:ce;ee=`${String(ye).padStart(2,"0")}:${String(ie).padStart(2,"0")}`}else typeof ee=="string"&&(ee=ee.trim());const oe=(b.mappings||[]).filter(re=>re.source_field&&re.target_field).map(re=>({source_field:re.source_field,target_field:re.target_field}));if(!s){D("Company ID is required. Please ensure the app is properly configured."),I(!0);return}if(!U||!B||!J||!Q||oe.length===0){D("Please fill all required fields and mappings before saving."),I(!0);return}const ae=b.entity_type||"products",Z={tenantId:s,type:X,entity_type:ae,configs:{host:U,port:Number(B),username:J,password:Q,path:H,sync_frequency:K,sync_time:ee},mappings:oe};console.log("[FTP Sync – Step 3] JSON object for /ftp/sync/save:",JSON.stringify(Z,null,2));try{const re=await x(wo(Z));wo.fulfilled.match(re)?(D("Save and Start Sync Updated Successfully"),I(!0),e.onNext&&e.onNext()):(D(re?.payload||"Save failed. Please try again."),I(!0))}catch{D("Save failed. Please try again."),I(!0)}},[j,A]=$.useState({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1});$.useEffect(()=>{let _,N,W,U;return setTimeout(()=>{A({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1}),_=setTimeout(()=>{A(B=>({...B,progressToCheckData:!0})),N=setTimeout(()=>{A(B=>({...B,showSetupFtpBlueTick:!0})),W=setTimeout(()=>{A(B=>({...B,showCheckDataBlueTick:!0,activeStep:2})),U=setTimeout(()=>{A(B=>({...B,showStartSyncBlueTick:!0}))},700)},700)},700)},700)},0),()=>{_&&clearTimeout(_),N&&clearTimeout(N),W&&clearTimeout(W),U&&clearTimeout(U)}},[]);const M=Ge();return Ze(M.breakpoints.up("lg")),a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>{n.state?.fromProductSetting?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):e.onBack?e.onBack():o("/ftp-sync-2")}}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:_I,activeStep:j.activeStep,showCheckDataBlueTick:j.showCheckDataBlueTick,progressToCheckData:j.progressToCheckData,showSetupFtpBlueTick:j.showSetupFtpBlueTick,showStartSyncBlueTick:j.showStartSyncBlueTick}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:a.jsxs(Jt,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[a.jsxs(E,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),a.jsxs(bn,{size:"small",value:g,onChange:w,sx:{minWidth:100,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},children:[a.jsx(Rt,{value:"Daily",children:"Daily"}),a.jsx(Rt,{value:"Weekly",children:"Weekly"}),a.jsx(Rt,{value:"Monthly",children:"Monthly"})]})]}),a.jsxs(E,{sx:{flex:1},children:[a.jsx(P,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),a.jsx(Zc,{type:"time",size:"small",value:f,onChange:S,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),a.jsxs(E,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[h?null:a.jsx(Se,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:40,fontWeight:500,textTransform:"none",fontSize:11,height:28,bgcolor:"#fff"},onClick:()=>{n.state?.fromProductSetting?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):e.onBack?e.onBack():o("/ftp-sync-2")},children:"Back"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",fontSize:11,height:28,boxShadow:"none",flex:h?1:"initial"},onClick:k,children:h&&(n.state?.fromSyncSetting||n.state?.editMode)?"Save":h?"Update Sync":"Save and Start Sync"})]}),a.jsx(gi,{open:O,autoHideDuration:4e3,onClose:()=>I(!1),message:F,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},$I=["Upload File","Check data","Start Sync"],DI=()=>{const e=Ft(),r=!!Ae(d=>d.productSettings.saveResult),[n,o]=$.useState(r),s=et();$.useEffect(()=>{r&&(o(!0),e($x()))},[r,e]);const l={showCheckDataBlueTick:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0},c=Ge();return Ze(c.breakpoints.up("lg")),a.jsxs(a.Fragment,{children:[a.jsx(gi,{open:n,autoHideDuration:4e3,onClose:()=>o(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(yr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>s("/ftp-sync-3")}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsx(Ta,{steps:$I,showCheckDataBlueTick:l.showCheckDataBlueTick,showSetupFtpBlueTick:l.showSetupFtpBlueTick,showStartSyncBlueTick:l.showStartSyncBlueTick,activeStep:2,progressToCheckData:!0,instantComplete:!0}),a.jsx(E,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:a.jsxs(E,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[a.jsx(E,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:a.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsx(P,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),a.jsx(Se,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>s("/products"),children:"Back to all products"})]})})]})]}),a.jsx(gi,{open:n,autoHideDuration:4e3,onClose:()=>o(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function FI(e){const t=yt(),r=et(),n=t.state?.fromProductSetting?3:0,[o,s]=$.useState(n),l=Ft(),{companyId:c,integrationData:d}=Ae(x=>x.dashboard),p=t.state?.fromSyncStep;$.useEffect(()=>{c&&l(Br(c))},[c,l]);const u=()=>{s(x=>Math.min(x+1,4))},h=()=>{if(o===0&&p!==void 0){r("/product-setting",{state:{fromSyncStep:p,tenantIntegrationMatched:p===3}});return}if(t.state?.fromProductSetting&&o===3){r("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(x=>Math.max(x-1,0))},v=d?.configs||{},g=d?.mappings||d?.dataMappings||[],f=(x=>{if(!x)return"";const b=x.charAt(0).toUpperCase()+x.slice(1).toLowerCase();return b==="Daily"||b==="Day"?"Daily":b==="Weekly"||b==="Week"?"Weekly":b==="Monthly"||b==="Month"?"Monthly":b})(d?.configs?.sync_frequency||""),m=d?.configs?.sync_time||"";switch(o){case 0:return a.jsx(hI,{onNext:u,...e});case 1:return a.jsx(wI,{onNext:u,onBack:h,ftpDetails:v,...e});case 2:return a.jsx(NI,{onNext:u,onBack:h,mapping:g,...e});case 3:return a.jsx(MI,{onNext:u,onBack:h,syncFrequency:f,syncTime:m,...e});case 4:return a.jsx(DI,{onBack:h,...e});default:return null}}const my=[{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M",userImg:"https://randomuser.me/api/portraits/men/32.jpg"},{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M",userImg:"https://randomuser.me/api/portraits/men/32.jpg"},{name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Public",avatar:"M"}],by=Array.from({length:24}).map(()=>({name:"Christmas Super Sale 2025",url:"/christmas-super-sale-2025",views:4567,type:"Unlisted",avatar:"M"}));function zI(){const e=et();return a.jsxs(E,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[a.jsx(yr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/product"},{label:"Settings",to:"/settings"},{label:"Manage Shared Catalogs"}],onBack:()=>e("/")}),a.jsxs(E,{sx:{maxWidth:900,mx:"auto",pt:4},children:[a.jsxs(P,{sx:{fontWeight:600,fontSize:18,mb:2},children:["Public Catalogs ",a.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15},children:my.length})]}),my.map((t,r)=>a.jsxs(Jt,{sx:{p:2,mb:2,borderRadius:3,display:"flex",alignItems:"center",boxShadow:"0 2px 12px #0001"},children:[a.jsxs(E,{sx:{display:"flex",flexDirection:"column",flex:1},children:[a.jsx(P,{sx:{fontWeight:500,fontSize:16},children:t.name}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[a.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#888",fontSize:14},children:t.url}),a.jsxs(P,{sx:{color:"#888",fontSize:14},children:[t.views," views"]})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[a.jsxs(bn,{size:"small",value:t.type,sx:{minWidth:140,border:"2px solid #ffffff",borderRadius:2,fontWeight:500,fontSize:20,height:48,boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:"none"},px:2,display:"flex",alignItems:"center"},IconComponent:n=>a.jsx("svg",{...n,width:"24",height:"24",viewBox:"0 0 24 24",style:{right:12,position:"absolute"},children:a.jsx("path",{d:"M7 10l5 5 5-5",stroke:"#888",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),children:[a.jsx(Rt,{value:"Public",sx:{fontSize:20,fontWeight:500},children:"Public"}),a.jsx(Rt,{value:"Unlisted",sx:{fontSize:20,fontWeight:500},children:"Unlisted"})]}),a.jsx(Wt,{sx:{ml:2},children:a.jsx(yy,{sx:{fontSize:28,color:"#888"}})})]})]},r)),a.jsxs(P,{sx:{fontWeight:600,fontSize:18,mb:2},children:["Unlisted Catalogs ",a.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15},children:by.length})]}),by.map((t,r)=>a.jsxs(Jt,{sx:{p:2,mb:2,borderRadius:3,display:"flex",alignItems:"center",boxShadow:"0 2px 12px #0001"},children:[a.jsxs(E,{sx:{display:"flex",flexDirection:"column",flex:1},children:[a.jsx(P,{sx:{fontWeight:500,fontSize:16},children:t.name}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[a.jsxs("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",children:[a.jsx("path",{d:"M7 17h10M7 13h10M7 9h10M5 7v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2Z",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M8 7v2a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V7",stroke:"#888",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),a.jsx(P,{sx:{color:"#888",fontSize:14},children:t.url}),a.jsxs(P,{sx:{color:"#888",fontSize:14},children:[t.views," views"]})]})]}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[a.jsxs(bn,{size:"small",value:t.type,sx:{minWidth:120,borderRadius:2,fontWeight:500,fontSize:18,height:48,boxShadow:"none",".MuiOutlinedInput-notchedOutline":{border:"none"},px:2},children:[a.jsx(Rt,{value:"Public",sx:{fontSize:18,fontWeight:500},children:"Public"}),a.jsx(Rt,{value:"Unlisted",sx:{fontSize:18,fontWeight:500},children:"Unlisted"})]}),a.jsx(Wt,{sx:{ml:1},children:a.jsx(yy,{sx:{fontSize:28,color:"#888"}})})]})]},r))]})]})}function jI({styles:e={},selectedProducts:t=[],data:r,onSelectProduct:n,categoryName:o}){const s=g=>t.some(y=>y.id===g.id),[l,c]=$.useState(null),[d,p]=$.useState([]),u=(g,y)=>{c(g.currentTarget),p(y)},h=()=>{c(null),p([])},v=!!l;return a.jsxs($t,{sx:{...e.categoryTable},children:[a.jsx(E,{sx:{bgcolor:"#808080",color:"#fff",fontWeight:600,fontSize:19,borderRadius:3,px:3,py:1.7,mb:0,letterSpacing:.5},children:o}),a.jsxs(E,{sx:{display:"flex",alignItems:"center",background:"#f7f8fa",borderBottom:"1px solid #e0e0e0",px:2.5,py:1.2,fontWeight:700,fontSize:16,color:"#666",letterSpacing:.2},children:[a.jsxs(E,{sx:{flex:2,pl:1,display:"flex",alignItems:"center",gap:12},children:[a.jsx(Qe,{checked:r.length>0&&r.every(s),indeterminate:r.some(s)&&!r.every(s),onChange:()=>{r.every(s)?r.forEach(g=>n(g,o,!1)):r.forEach(g=>{s(g)||n(g,o,!0)})},sx:{p:0,mr:1,"& .MuiSvgIcon-root":{fontSize:22,borderRadius:"8px",border:"2px solid #1976d2",background:"#fff",color:"#1976d2",boxShadow:"none"},"&.Mui-checked .MuiSvgIcon-root":{background:"#e3f2fd",color:"#1976d2",border:"2px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{background:"#fff",color:"#1976d2",border:"2px solid #1976d2"}},icon:a.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff"}}),checkedIcon:a.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#e3f2fd",position:"relative"},children:a.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:a.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff",position:"relative"},children:a.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})})}),"Product"]}),a.jsx(E,{sx:{flex:1,textAlign:"center",ml:3},children:"Status"}),a.jsx(E,{sx:{flex:1,ml:6},children:"Price"}),a.jsx(E,{sx:{flex:1,ml:3},children:"Stock"}),a.jsx(E,{sx:{flex:2,ml:3},children:"Offer"})]}),r.map((g,y)=>{let f=[];g.offers&&Array.isArray(g.offers)?f=g.offers:g.offer&&typeof g.offer=="string"&&g.offer.includes(`
481
- `)?f=g.offer.split(`
482
- `):g.offer&&Array.isArray(g.offer)?f=g.offer:g.offer&&(f=[g.offer]);const m=f[0]||"",x=f.length>1?f.slice(1):[];return a.jsxs(E,{sx:{display:"flex",alignItems:"center",px:2,py:2.2,mb:2.2,background:"#fff",borderRadius:3,boxShadow:"0 2px 8px 0 rgba(60,60,60,0.06)",transition:"box-shadow 0.2s, border 0.2s"},children:[a.jsxs(E,{sx:{flex:2,display:"flex",alignItems:"center",gap:2},children:[a.jsx(Qe,{checked:s(g),onChange:()=>n(g,o),sx:{p:0,mr:2}}),g.productImage?a.jsx(ni,{src:g.productImage,alt:g.productName,sx:{width:48,height:48,mr:2,borderRadius:2}}):a.jsx(ni,{sx:{width:48,height:48,mr:2,borderRadius:2,bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:22},children:g.productName&&g.productName[0]}),a.jsxs(E,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[a.jsx(P,{sx:{fontWeight:700,fontSize:18,color:"#333",mb:.2,lineHeight:1.2},children:g.productName}),a.jsxs(P,{sx:{fontSize:15,color:"#555",mb:.2,lineHeight:1.3,display:"flex",alignItems:"center",gap:1},children:[g.productWeight,g.categoryName&&a.jsxs(a.Fragment,{children:[a.jsx("span",{style:{display:"inline-block",margin:"0 6px",fontSize:18,color:"#bbb",lineHeight:1,verticalAlign:"middle"},children:"•"}),g.categoryName]})]}),a.jsxs(P,{sx:{fontSize:15,color:"#bbb",lineHeight:1.1,fontWeight:500},children:["SKU: ",g.sku]})]})]}),a.jsx(E,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",ml:3},children:a.jsx(P,{sx:{bgcolor:g.status===!0?"#dcfce7":"#f9eaea",color:g.status===!0?"#222":"#d32f2f",borderRadius:"12px",px:3,py:1,fontWeight:600,fontSize:16,letterSpacing:.2,display:"inline-block",textAlign:"center",minWidth:90,boxShadow:"none",border:"none",transition:"all 0.2s"},children:g.status===!0?"Active":"No Stock"})}),a.jsxs(E,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:90,ml:6},children:[a.jsx(E,{sx:{display:"flex",alignItems:"center",gap:.5},children:a.jsxs(P,{sx:{fontWeight:700,fontSize:16,color:"#222"},children:["₹",g.price]})}),g.mrp&&a.jsxs(P,{sx:{fontSize:13,color:"#888",textDecoration:"line-through",mb:.2},children:["₹",g.mrp]}),g.discount&&a.jsx(P,{sx:{fontSize:14,color:"#22c55e",fontWeight:700},children:g.discount})]}),a.jsxs(E,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:80,ml:3},children:[a.jsxs(E,{sx:{display:"flex",alignItems:"center",gap:.5},children:[g.stock===0&&a.jsx(Zg,{title:"No stock",children:a.jsx(gI,{sx:{color:"#d32f2f",fontSize:18,mr:.5}})}),a.jsxs(P,{sx:{fontWeight:700,fontSize:16,color:g.stock>0?g.stock<10?"#e65100":"#222":"#d32f2f"},children:[g.stock,g.quantity?a.jsxs("span",{style:{color:"#888",fontWeight:400},children:["/ ",g.quantity]}):null]})]}),a.jsxs(P,{sx:{fontSize:13,color:g.osa===0?"#d32f2f":"#888",fontWeight:500},children:[g.osa,"% on shelf"]})]}),a.jsxs(E,{sx:{flex:2,display:"flex",alignItems:"center",position:"relative",ml:3},children:[a.jsx(P,{sx:{fontSize:15,color:"#222",fontWeight:500,whiteSpace:"pre-line"},children:m}),x.length>0&&a.jsx(a.Fragment,{children:a.jsxs(P,{sx:{ml:1,color:"#888",fontSize:14,cursor:"pointer",textDecoration:"underline",fontWeight:500},onClick:b=>u(b,f),children:["+",x.length," more"]})})]})]},g.id||y)}),a.jsxs(qc,{open:v,anchorEl:l,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[a.jsx(P,{sx:{fontWeight:700,mb:1},children:"Offers"}),d.map((g,y)=>a.jsxs(P,{sx:{fontSize:14,color:"#222",mb:.5},children:[y+1,". ",g]},y))]})]})}const BI=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:r,selectedProducts:n,selectedCategory:o})=>{const s=n||[];return s.length?a.jsxs(E,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",bgcolor:"#18181B",borderRadius:"16px",boxShadow:3,px:3,py:2,display:"flex",alignItems:"center",zIndex:1300,minWidth:400},children:[a.jsx(P,{sx:{color:"#fff",mr:1},children:a.jsxs("b",{children:[s.length," items selected"]})}),a.jsx(Se,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:e,children:"Promo Print"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:t,children:"Create Catalog"}),a.jsx(Se,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:r,children:"OSA Request"})]}):null},LI=()=>{const e=Ft(),t=et(),[r]=$m(),n=r.get("categoryName"),s=Pt().categoriesView,[l,c]=$.useState({category:"all",status:"all",search:"",store:[]}),[d,p]=$.useState([]),[u,h]=$.useState(null),{integrationData:v,companyId:g,loading:y}=Ae(z=>z.dashboard);$.useEffect(()=>{g||e(xo())},[e,g]);const f=$.useMemo(()=>v?.status&&Array.isArray(v?.data)&&v.data.length>0?{matched:!0,error:"",apiResponse:v.data[0],loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[v]),m=Ae(z=>z.dashboard),{products:x=[]}=Ae(z=>z.dashboard),b=$.useMemo(()=>{if(!n||!Array.isArray(x))return[];const z=n.trim();return x.filter(k=>k.categoryName&&k.categoryName.trim().toLowerCase()===z.toLowerCase()).map(k=>({...k,id:k.id||k.sku||k.productName}))},[x,n]),w=b.length>0,S=Array.isArray(x)&&x.length>0,C=z=>{z.preventDefault(),t("/settings",{state:{tenantIntegrationData:f.apiResponse}})},O={},{productsByCategory:I={}}=m||{};Object.values(I).flat().forEach(z=>{z.storeId&&z.storeName&&(O[z.storeId]=z.storeName)});const F=[{id:"all",name:"All Stores"},...Object.entries(O).map(([z,k])=>({id:z,name:k}))],D=z=>{c(z)},L=(z,k)=>{p(j=>{const A=j[k]||[];let M;return A.some(_=>_.id===z.id)?M=A.filter(_=>_.id!==z.id):M=[...A,z],{...j,[k]:M}}),h(k)};return $.useEffect(()=>{g&&(e(Br(g)),e(Lr()))},[e,g]),a.jsxs(a.Fragment,{children:[a.jsx(Yr,{filters:l,onFilterChange:D,styles:s.topBar,stores:F,tenantStatus:f,hasProducts:S}),y||!g?a.jsx(E,{sx:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):n?w?a.jsxs(E,{sx:s.root,children:[a.jsx(hy,{productState:m}),a.jsx(jI,{data:b,styles:s,selectedProducts:d[n]||[],onSelectProduct:L,categoryName:n})]}):a.jsx(Ei,{handleStartSyncing:C,loading:!1,categoryName:n}):a.jsx(Ei,{handleStartSyncing:C,loading:!1}),a.jsx(BI,{onPromoPrint:()=>{},onCreateCatalog:()=>{},onOsaRequest:()=>{},selectedProducts:d[n]||[],selectedCategory:u})]})};function WI({StoresModal:e,storesModalProps:t,onStoreSelect:r}){return a.jsxs(um,{children:[a.jsx(nr,{path:"/",element:a.jsx(aI,{})}),a.jsx(nr,{path:"/home",element:a.jsx(nI,{})}),a.jsx(nr,{path:"/products",element:a.jsx(tI,{StoresModal:e,storesModalProps:t,onStoreSelect:r})}),a.jsx(nr,{path:"/product-setting",element:a.jsx(uI,{})}),a.jsx(nr,{path:"/categories",element:a.jsx(cI,{})}),a.jsx(nr,{path:"/settings",element:a.jsx(fI,{})}),a.jsx(nr,{path:"/products/settings/ftp-sync",element:a.jsx(FI,{})}),a.jsx(nr,{path:"/catalogs/manage-shared",element:a.jsx(zI,{})}),a.jsx(nr,{path:"/category",element:a.jsx(LI,{})})]})}function VI({StoresModal:e,storesModalProps:t,onStoreSelect:r}){return a.jsx(WI,{StoresModal:e,storesModalProps:t,onStoreSelect:r})}const UI=()=>a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:a.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:r="/",StoresModal:n,storesModalProps:o,onStoreSelect:s})=>a.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:a.jsx(Hx,{apiUrl:e,authToken:t,children:a.jsx(ob,{store:Lu,children:a.jsx(db.PersistGate,{loading:a.jsx(UI,{}),persistor:Vx,children:a.jsx(km,{basename:r,children:a.jsx(VI,{StoresModal:n,storesModalProps:o,onStoreSelect:s})})})})})})}));
177
+ `))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([On,s.func]),disableScrollLock:s.bool,elevation:dh,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:oc}),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function lP(e){return de("MuiMenu",e)}ue("MuiMenu",["root","paper","list"]);const cP={vertical:"top",horizontal:"right"},uP={vertical:"top",horizontal:"left"},dP=e=>{const{classes:t}=e;return pe({root:["root"],paper:["paper"],list:["list"]},lP,t)},pP=Y(Nc,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),fP=Y(vg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hP=Y(gg,{name:"MuiMenu",slot:"List"})({outline:0}),Ic=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:p,open:u,PaperProps:h={},PopoverClasses:b,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:v={},slotProps:w={},...S}=r,x=Wl(),E={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:y,TransitionProps:f,variant:m},O=dP(E),N=o&&!l&&u,D=C.useRef(null),A=(z,M)=>{D.current&&D.current.adjustStyleForScrollbar(z,{direction:x?"rtl":"ltr"}),g&&g(z,M)},L=z=>{z.key==="Tab"&&(z.preventDefault(),p&&p(z,"tabKeyDown"))};let _=-1;C.Children.map(i,(z,M)=>{C.isValidElement(z)&&(process.env.NODE_ENV!=="production"&&Zl.isFragment(z)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
178
+ `)),z.props.disabled||(m==="selectedMenu"&&z.props.selected||_===-1)&&(_=M))});const T={slots:v,slotProps:{list:c,transition:f,paper:h,...w}},$=Dh({elementType:v.root,externalSlotProps:w.root,ownerState:E,className:[O.root,a]}),[I,j]=be("paper",{className:O.paper,elementType:fP,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:E}),[P,k]=be("list",{className:ie(O.list,c.className),elementType:hP,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:z=>({...z,onKeyDown:M=>{L(M),z.onKeyDown?.(M)}}),ownerState:E}),B=typeof T.slotProps.transition=="function"?T.slotProps.transition(E):T.slotProps.transition;return d.jsx(pP,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?cP:uP,slots:{root:v.root,paper:I,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:$,paper:j,backdrop:typeof w.backdrop=="function"?w.backdrop(E):w.backdrop,transition:{...B,onEntering:(...z)=>{A(...z),B?.onEntering?.(...z)}}},open:u,ref:n,transitionDuration:y,ownerState:E,...S,classes:b,children:d.jsx(P,{actions:D,autoFocus:o&&(_===-1||l),autoFocusItem:N,variant:m,...k,children:i})})});process.env.NODE_ENV!=="production"&&(Ic.propTypes={anchorEl:s.oneOfType([On,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),list:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,list:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function gP(e){return de("MuiMenuItem",e)}const ts=ue("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),yP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},mP=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,c=pe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},gP,a);return{...a,...c}},bP=Y(Do,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:yP})(ge(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ts.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ts.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ts.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ts.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ts.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rg.inset}`]:{marginLeft:52},[`& .${jr.root}`]:{marginTop:0,marginBottom:0},[`& .${jr.inset}`]:{paddingLeft:36},[`& .${pg.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${pg.root} svg`]:{fontSize:"1.25rem"}}}]}))),Yt=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:b,...y}=r,g=C.useContext(Qo),f=C.useMemo(()=>({dense:a||g.dense||!1,disableGutters:c}),[g.dense,a,c]),m=C.useRef(null);qt(()=>{o&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const v={...r,dense:f.dense,divider:l,disableGutters:c},w=mP(r),S=Ze(m,n);let x;return r.disabled||(x=h!==void 0?h:-1),d.jsx(Qo.Provider,{value:f,children:d.jsx(bP,{ref:S,role:u,tabIndex:x,component:i,focusVisibleClassName:ie(w.focusVisible,p),className:ie(w.root,b),...y,ownerState:v,classes:w})})});process.env.NODE_ENV!=="production"&&(Yt.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function vP(e){return de("MuiNativeSelect",e)}const _c=ue("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),xP=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,i&&"iconOpen",r&&"disabled"]};return pe(l,vP,t)},xg=Y("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${_c.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),SP=Y(xg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_c.multiple}`]:t.multiple}]}})({}),Sg=Y("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${_c.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),wP=Y(Sg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})({}),wg=C.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:c="standard",...p}=t,u={...t,disabled:o,variant:c,error:i},h=xP(u);return d.jsxs(C.Fragment,{children:[d.jsx(SP,{ownerState:u,className:ie(h.select,r),disabled:o,ref:l||n,...p}),t.multiple?null:d.jsx(wP,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(wg.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:gt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var Cg;const CP=Y("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:dt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),EP=Y("legend",{name:"MuiNotchedOutlined",shouldForwardProp:dt})(ge(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Eg(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=o!=null&&o!=="",c={...e,notched:i,withLabel:l};return d.jsx(CP,{"aria-hidden":!0,className:r,ownerState:c,...a,children:d.jsx(EP,{ownerState:c,children:l?d.jsx("span",{children:o}):Cg||(Cg=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Eg.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const TP=e=>{const{classes:t}=e,r=pe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ZE,t);return{...t,...r}},OP=Y(Ki,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Hi})(ge(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${pn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${pn.focused} .${pn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(wt()).map(([n])=>({props:{color:n},style:{[`&.${pn.focused} .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${pn.error} .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${pn.disabled} .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),PP=Y(Eg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ge(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),kP=Y(Gi,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Yi})(ge(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),ra=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:p,slots:u={},slotProps:h={},type:b="text",...y}=r,g=TP(r),f=dn(),m=Ln({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:i,hiddenLabel:m.hiddenLabel,multiline:c,size:m.size,type:b},w=u.root??o.Root??OP,S=u.input??o.Input??kP,[x,E]=be("notchedOutline",{elementType:PP,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&m.required?d.jsxs(C.Fragment,{children:[l," ","*"]}):l}});return d.jsx(Uo,{slots:{root:w,input:S},slotProps:h,renderSuffix:O=>d.jsx(x,{...E,notched:typeof p<"u"?p:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:b,...y,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(ra.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:gt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,notchedOutline:s.oneOfType([s.func,s.object]),root:s.object}),slots:s.shape({input:s.elementType,notchedOutline:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any}),ra.muiName="Input";const NP=Ue(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),IP=Ue(d.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),_P=Y("span",{name:"MuiRadioButtonIcon",shouldForwardProp:dt})({position:"relative",display:"flex"}),AP=Y(NP,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),MP=Y(IP,{name:"MuiRadioButtonIcon"})(ge(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Ac(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return d.jsxs(_P,{className:n.root,ownerState:o,children:[d.jsx(AP,{fontSize:r,className:n.background,ownerState:o}),d.jsx(MP,{fontSize:r,className:n.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Ac.propTypes={checked:s.bool,classes:s.object,fontSize:s.oneOf(["small","medium"])});const Mc=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(Mc.displayName="RadioGroupContext");function $P(){return C.useContext(Mc)}function DP(e){return de("MuiRadio",e)}const Tg=ue("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),FP=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${ne(n)}`,r!=="medium"&&`size${ne(r)}`]};return{...t,...pe(o,DP,t)}},jP=Y(Xi,{shouldForwardProp:e=>dt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ne(n.size)}`],t[`color${ne(n.color)}`]]}})(ge(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Tg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(wt()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Tg.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function RP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const LP=d.jsx(Ac,{checked:!0}),BP=d.jsx(Ac,{}),Og=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:i=LP,color:a="primary",icon:l=BP,name:c,onChange:p,size:u="medium",className:h,disabled:b,disableRipple:y=!1,slots:g={},slotProps:f={},inputProps:m,...v}=r,w=dn();let S=b;w&&typeof S>"u"&&(S=w.disabled),S??=!1;const x={...r,disabled:S,disableRipple:y,color:a,size:u},E=FP(x),O=$P();let N=o;const D=Ql(p,O&&O.onChange);let A=c;O&&(typeof N>"u"&&(N=RP(O.value,r.value)),typeof A>"u"&&(A=O.name));const L=f.input??m,[_,T]=be("root",{ref:n,elementType:jP,className:ie(E.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...v},getSlotProps:$=>({...$,onChange:(I,...j)=>{$.onChange?.(I,...j),D(I,...j)}}),ownerState:x,additionalProps:{type:"radio",icon:C.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:C.cloneElement(i,{fontSize:i.props.fontSize??u}),disabled:S,name:A,checked:N,slots:g,slotProps:{input:typeof L=="function"?L(x):L}}});return d.jsx(_,{...T,classes:E})});process.env.NODE_ENV!=="production"&&(Og.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,inputProps:s.object,inputRef:gt,name:s.string,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function zP(e){return de("MuiRadioGroup",e)}ue("MuiRadioGroup",["root","row","error"]);const WP=e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},zP,t)},Pg=C.forwardRef(function(t,n){const{actions:r,children:o,className:i,defaultValue:a,name:l,onChange:c,value:p,...u}=t,h=C.useRef(null),b=WP(t),[y,g]=Mo({controlled:p,default:a,name:"RadioGroup"});C.useImperativeHandle(r,()=>({focus:()=>{let w=h.current.querySelector("input:not(:disabled):checked");w||(w=h.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const f=Ze(n,h),m=Qn(l),v=C.useMemo(()=>({name:m,onChange(w){g(w.target.value),c&&c(w,w.target.value)},value:y}),[m,c,g,y]);return d.jsx(Mc.Provider,{value:v,children:d.jsx(sg,{role:"radiogroup",ref:f,className:ie(b.root,i),...u,children:o})})});process.env.NODE_ENV!=="production"&&(Pg.propTypes={children:s.node,className:s.string,defaultValue:s.any,name:s.string,onChange:s.func,value:s.any});function kg(e){return de("MuiSelect",e)}const ns=ue("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Ng;const VP=Y(xg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ns.select}`]:t.select},{[`&.${ns.select}`]:t[n.variant]},{[`&.${ns.error}`]:t.error},{[`&.${ns.multiple}`]:t.multiple}]}})({[`&.${ns.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),UP=Y(Sg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})({}),qP=Y("input",{shouldForwardProp:e=>qf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ig(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function HP(e){return e==null||typeof e=="string"&&!e.trim()}const YP=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return pe(l,kg,t)},_g=C.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:b,error:y=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:v={},multiple:w,name:S,onBlur:x,onChange:E,onClose:O,onFocus:N,onKeyDown:D,onMouseDown:A,onOpen:L,open:_,readOnly:T,renderValue:$,required:I,SelectDisplayProps:j={},tabIndex:P,type:k,value:B,variant:z="standard",...M}=t,[V,G]=Mo({controlled:B,default:u,name:"Select"}),[X,ee]=Mo({controlled:_,default:p,name:"Select"}),K=C.useRef(null),Q=C.useRef(null),[Z,oe]=C.useState(null),{current:se}=C.useRef(_!=null),[J,te]=C.useState(),q=Ze(n,f),le=C.useCallback(ce=>{Q.current=ce,ce&&oe(ce)},[]),re=Z?.parentNode;C.useImperativeHandle(q,()=>({focus:()=>{Q.current.focus()},node:K.current,value:V}),[V]),C.useEffect(()=>{p&&X&&Z&&!se&&(te(a?null:re.clientWidth),Q.current.focus())},[Z,a]),C.useEffect(()=>{i&&Q.current.focus()},[i]),C.useEffect(()=>{if(!m)return;const ce=pt(Q.current).getElementById(m);if(ce){const Ee=()=>{getSelection().isCollapsed&&Q.current.focus()};return ce.addEventListener("click",Ee),()=>{ce.removeEventListener("click",Ee)}}},[m]);const he=(ce,Ee)=>{ce?L&&L(Ee):O&&O(Ee),se||(te(a?null:re.clientWidth),ee(ce))},qe=ce=>{A?.(ce),ce.button===0&&(ce.preventDefault(),Q.current.focus(),he(!0,ce))},ke=ce=>{he(!1,ce)},Ce=C.Children.toArray(l),Je=ce=>{const Ee=Ce.find(tt=>tt.props.value===ce.target.value);Ee!==void 0&&(G(Ee.props.value),E&&E(ce,Ee))},We=ce=>Ee=>{let tt;if(Ee.currentTarget.hasAttribute("tabindex")){if(w){tt=Array.isArray(V)?V.slice():[];const Wn=V.indexOf(ce.props.value);Wn===-1?tt.push(ce.props.value):tt.splice(Wn,1)}else tt=ce.props.value;if(ce.props.onClick&&ce.props.onClick(Ee),V!==tt&&(G(tt),E)){const Wn=Ee.nativeEvent||Ee,ua=new Wn.constructor(Wn.type,Wn);Object.defineProperty(ua,"target",{writable:!0,value:{value:tt,name:S}}),E(ua,ce)}w||he(!1,Ee)}},ye=ce=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),he(!0,ce)),D?.(ce))},ae=Z!==null&&X,Re=ce=>{!ae&&x&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:V,name:S}}),x(ce))};delete M["aria-invalid"];let me,Te;const Be=[];let et=!1,Kt=!1;(qi({value:V})||b)&&($?me=$(V):et=!0);const Gt=Ce.map(ce=>{if(!C.isValidElement(ce))return null;process.env.NODE_ENV!=="production"&&Zl.isFragment(ce)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
179
+ `));let Ee;if(w){if(!Array.isArray(V))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Zt(2));Ee=V.some(tt=>Ig(tt,ce.props.value)),Ee&&et&&Be.push(ce.props.children)}else Ee=Ig(V,ce.props.value),Ee&&et&&(Te=ce.props.children);return Ee&&(Kt=!0),C.cloneElement(ce,{"aria-selected":Ee?"true":"false",onClick:We(ce),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(tt)},role:"option",selected:Ee,value:void 0,"data-value":ce.props.value})});process.env.NODE_ENV!=="production"&&C.useEffect(()=>{if(!Kt&&!w&&V!==""){const ce=Ce.map(Ee=>Ee.props.value);console.warn([`MUI: You have provided an out-of-range value \`${V}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ce.filter(Ee=>Ee!=null).map(Ee=>`\`${Ee}\``).join(", ")||'""'}.`].join(`
180
+ `))}},[Kt,Ce,w,S,V]),et&&(w?Be.length===0?me=null:me=Be.reduce((ce,Ee,tt)=>(ce.push(Ee),tt<Be.length-1&&ce.push(", "),ce),[]):me=Te);let kn=J;!a&&se&&Z&&(kn=re.clientWidth);let we;typeof P<"u"?we=P:we=h?null:0;const Jt=j.id||(S?`mui-component-select-${S}`:void 0),it={...t,variant:z,value:V,open:ae,error:y},Nn=YP(it),cs={...v.PaperProps,...typeof v.slotProps?.paper=="function"?v.slotProps.paper(it):v.slotProps?.paper},us={...v.MenuListProps,...typeof v.slotProps?.list=="function"?v.slotProps.list(it):v.slotProps?.list},ca=Qn();return d.jsxs(C.Fragment,{children:[d.jsx(VP,{as:"div",ref:le,tabIndex:we,role:"combobox","aria-controls":ae?ca:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[m,Jt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":I?"true":void 0,"aria-invalid":y?"true":void 0,onKeyDown:ye,onMouseDown:h||T?null:qe,onBlur:Re,onFocus:N,...j,ownerState:it,className:ie(j.className,Nn.select,c),id:Jt,children:HP(me)?Ng||(Ng=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):me}),d.jsx(qP,{"aria-invalid":y,value:Array.isArray(V)?V.join(","):V,name:S,ref:K,"aria-hidden":!0,onChange:Je,tabIndex:-1,disabled:h,className:Nn.nativeInput,autoFocus:i,required:I,...M,ownerState:it}),d.jsx(UP,{as:g,className:Nn.icon,ownerState:it}),d.jsx(Ic,{id:`menu-${S||""}`,anchorEl:re,open:ae,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:ca,...us},paper:{...cs,style:{minWidth:kn,...cs!=null?cs.style:null}}},children:Gt})]})});process.env.NODE_ENV!=="production"&&(_g.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:gt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,required:s.bool,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const KP=e=>{const{classes:t}=e,r=pe({root:["root"]},kg,t);return{...t,...r}},$c={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>dt(e)&&e!=="variant"},GP=Y(na,$c)(""),JP=Y(ra,$c)(""),XP=Y(ta,$c)(""),Rr=C.forwardRef(function(t,n){const r=fe({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:p=!1,IconComponent:u=tT,id:h,input:b,inputProps:y,label:g,labelId:f,MenuProps:m,multiple:v=!1,native:w=!1,onClose:S,onOpen:x,open:E,renderValue:O,SelectDisplayProps:N,variant:D="outlined",...A}=r,L=w?wg:_g,_=dn(),T=Ln({props:r,muiFormControl:_,states:["variant","error"]}),$=T.variant||D,I={...r,variant:$,classes:a},j=KP(I),{root:P,...k}=j,B=b||{standard:d.jsx(GP,{ownerState:I}),outlined:d.jsx(JP,{label:g,ownerState:I}),filled:d.jsx(XP,{ownerState:I})}[$],z=Ze(n,sr(B));return d.jsx(C.Fragment,{children:C.cloneElement(B,{inputComponent:L,inputProps:{children:i,error:T.error,IconComponent:u,variant:$,type:void 0,multiple:v,...w?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:p,labelId:f,MenuProps:m,onClose:S,onOpen:x,open:E,renderValue:O,SelectDisplayProps:{id:h,...N}},...y,classes:y?ut(k,y.classes):k,...b?b.props.inputProps:{}},...(v&&w||p)&&$==="outlined"?{notched:!0}:{},ref:z,className:ie(B.props.className,l,j.root),...!b&&{variant:$},...A})})});process.env.NODE_ENV!=="production"&&(Rr.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])}),Rr.muiName="Select";function QP(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=nr();C.useEffect(()=>{if(!o)return;function v(w){w.defaultPrevented||w.key==="Escape"&&r?.(w,"escapeKeyDown")}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[o,r]);const l=Ft((v,w)=>{r?.(v,w)}),c=Ft(v=>{!r||v==null||a.start(v,()=>{l(null,"timeout")})});C.useEffect(()=>(o&&c(t),a.clear),[o,t,c,a]);const p=v=>{r?.(v,"clickaway")},u=a.clear,h=C.useCallback(()=>{t!=null&&c(i??t*.5)},[t,i,c]),b=v=>w=>{const S=v.onBlur;S?.(w),h()},y=v=>w=>{const S=v.onFocus;S?.(w),u()},g=v=>w=>{const S=v.onMouseEnter;S?.(w),u()},f=v=>w=>{const S=v.onMouseLeave;S?.(w),h()};return C.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,o,h,u]),{getRootProps:(v={})=>{const w={...Mi(e),...Mi(v)};return{role:"presentation",...v,...w,onBlur:b(w),onFocus:y(w),onMouseEnter:g(w),onMouseLeave:f(w)}},onClickAway:p}}function ZP(e){return de("MuiSnackbarContent",e)}ue("MuiSnackbarContent",["root","message","action"]);const e2=e=>{const{classes:t}=e;return pe({root:["root"],action:["action"],message:["message"]},ZP,t)},t2=Y(an,{name:"MuiSnackbarContent",slot:"Root"})(ge(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Bl(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Bl(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),n2=Y("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),r2=Y("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ag=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:l="alert",...c}=r,p=r,u=e2(p);return d.jsxs(t2,{role:l,elevation:6,className:ie(u.root,i),ownerState:p,ref:n,...c,children:[d.jsx(n2,{className:u.message,ownerState:p,children:a}),o?d.jsx(r2,{className:u.action,ownerState:p,children:o}):null]})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={action:s.node,classes:s.object,className:s.string,message:s.node,role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function o2(e){return de("MuiSnackbar",e)}ue("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const s2=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ne(n.vertical)}${ne(n.horizontal)}`]};return pe(r,o2,t)},i2=Y("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ne(n.anchorOrigin.vertical)}${ne(n.anchorOrigin.horizontal)}`]]}})(ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),rs=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiSnackbar"}),o=Nt(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:b,ContentProps:y,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:v,onFocus:w,onMouseEnter:S,onMouseLeave:x,open:E,resumeHideDuration:O,slots:N={},slotProps:D={},TransitionComponent:A,transitionDuration:L=i,TransitionProps:{onEnter:_,onExited:T,...$}={},...I}=r,j={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:A,transitionDuration:L},P=s2(j),{getRootProps:k,onClickAway:B}=QP(j),[z,M]=C.useState(!0),V=le=>{M(!0),T&&T(le)},G=(le,re)=>{M(!1),_&&_(le,re)},X={slots:{transition:A,...N},slotProps:{content:y,clickAwayListener:b,transition:$,...D}},[ee,K]=be("root",{ref:n,className:[P.root,h],elementType:i2,getSlotProps:k,externalForwardedProps:{...X,...I},ownerState:j}),[Q,{ownerState:Z,...oe}]=be("clickAwayListener",{elementType:Qi,externalForwardedProps:X,getSlotProps:le=>({onClickAway:(...re)=>{const he=re[0];le.onClickAway?.(...re),!he?.defaultMuiPrevented&&B(...re)}}),ownerState:j}),[se,J]=be("content",{elementType:Ag,shouldForwardComponentProp:!0,externalForwardedProps:X,additionalProps:{message:f,action:a},ownerState:j}),[te,q]=be("transition",{elementType:Fr,externalForwardedProps:X,getSlotProps:le=>({onEnter:(...re)=>{le.onEnter?.(...re),G(...re)},onExited:(...re)=>{le.onExited?.(...re),V(...re)}}),additionalProps:{appear:!0,in:E,timeout:L,direction:l==="top"?"down":"up"},ownerState:j});return!E&&z?null:d.jsx(Q,{...oe,...N.clickAwayListener&&{ownerState:Z},children:d.jsx(ee,{...K,children:d.jsx(te,{...q,children:u||d.jsx(se,{...J})})})})});process.env.NODE_ENV!=="production"&&(rs.propTypes={action:s.node,anchorOrigin:s.shape({horizontal:s.oneOf(["center","left","right"]).isRequired,vertical:s.oneOf(["bottom","top"]).isRequired}),autoHideDuration:s.number,children:s.element,classes:s.object,className:s.string,ClickAwayListenerProps:s.object,ContentProps:s.object,disableWindowBlurListener:s.bool,key:()=>null,message:s.node,onBlur:s.func,onClose:s.func,onFocus:s.func,onMouseEnter:s.func,onMouseLeave:s.func,open:s.bool,resumeHideDuration:s.number,slotProps:s.shape({clickAwayListener:s.oneOfType([s.func,s.object]),content:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({clickAwayListener:s.elementType,content:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function a2(e){return de("MuiTooltip",e)}const Ge=ue("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function l2(e){return Math.round(e*1e5)/1e5}const c2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ne(i.split("-")[0])}`],arrow:["arrow"]};return pe(a,a2,t)},u2=Y(bc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ge(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ge.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ge.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ge.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ge.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ge.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ge.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ge.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ge.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),d2=Y("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ne(n.placement.split("-")[0])}`]]}})(ge(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ge.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ge.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ge.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${l2(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ge.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ge.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),p2=Y("span",{name:"MuiTooltip",slot:"Arrow"})(ge(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let oa=!1;const Mg=new Ii;let os={x:0,y:0};function sa(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const $g=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:l={},componentsProps:c={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:b=!1,disableTouchListener:y=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:v=!1,id:w,leaveDelay:S=0,leaveTouchDelay:x=1500,onClose:E,onOpen:O,open:N,placement:D="bottom",PopperComponent:A,PopperProps:L={},slotProps:_={},slots:T={},title:$,TransitionComponent:I,TransitionProps:j,...P}=r,k=C.isValidElement(i)?i:d.jsx("span",{children:i}),B=Nt(),z=Wl(),[M,V]=C.useState(),[G,X]=C.useState(null),ee=C.useRef(!1),K=b||v,Q=nr(),Z=nr(),oe=nr(),se=nr(),[J,te]=Mo({controlled:N,default:!1,name:"Tooltip",state:"open"});let q=J;if(process.env.NODE_ENV!=="production"){const{current:xe}=C.useRef(N!==void 0);C.useEffect(()=>{M&&M.disabled&&!xe&&$!==""&&M.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
181
+ `))},[$,M,xe])}const le=Qn(w),re=C.useRef(),he=Ft(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),se.clear()});C.useEffect(()=>he,[he]);const qe=xe=>{Mg.clear(),oa=!0,te(!0),O&&!q&&O(xe)},ke=Ft(xe=>{Mg.start(800+S,()=>{oa=!1}),te(!1),E&&q&&E(xe),Q.start(B.transitions.duration.shortest,()=>{ee.current=!1})}),Ce=xe=>{ee.current&&xe.type!=="touchstart"||(M&&M.removeAttribute("title"),Z.clear(),oe.clear(),g||oa&&f?Z.start(oa?f:g,()=>{qe(xe)}):qe(xe))},Je=xe=>{Z.clear(),oe.start(S,()=>{ke(xe)})},[,We]=C.useState(!1),ye=xe=>{$i(xe.target)||(We(!1),Je(xe))},ae=xe=>{M||V(xe.currentTarget),$i(xe.target)&&(We(!0),Ce(xe))},Re=xe=>{ee.current=!0;const Vn=k.props;Vn.onTouchStart&&Vn.onTouchStart(xe)},me=xe=>{Re(xe),oe.clear(),Q.clear(),he(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.start(m,()=>{document.body.style.WebkitUserSelect=re.current,Ce(xe)})},Te=xe=>{k.props.onTouchEnd&&k.props.onTouchEnd(xe),he(),oe.start(x,()=>{ke(xe)})};C.useEffect(()=>{if(!q)return;function xe(Vn){Vn.key==="Escape"&&ke(Vn)}return document.addEventListener("keydown",xe),()=>{document.removeEventListener("keydown",xe)}},[ke,q]);const Be=Ze(sr(k),V,n);!$&&$!==0&&(q=!1);const et=C.useRef(),Kt=xe=>{const Vn=k.props;Vn.onMouseMove&&Vn.onMouseMove(xe),os={x:xe.clientX,y:xe.clientY},et.current&&et.current.update()},Gt={},kn=typeof $=="string";p?(Gt.title=!q&&kn&&!h?$:null,Gt["aria-describedby"]=q?le:null):(Gt["aria-label"]=kn?$:null,Gt["aria-labelledby"]=q&&!kn?le:null);const we={...Gt,...P,...k.props,className:ie(P.className,k.props.className),onTouchStart:Re,ref:Be,...v?{onMouseMove:Kt}:{}};process.env.NODE_ENV!=="production"&&(we["data-mui-internal-clone-element"]=!0,C.useEffect(()=>{M&&!M.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
182
+ `))},[M]));const Jt={};y||(we.onTouchStart=me,we.onTouchEnd=Te),h||(we.onMouseOver=sa(Ce,we.onMouseOver),we.onMouseLeave=sa(Je,we.onMouseLeave),K||(Jt.onMouseOver=Ce,Jt.onMouseLeave=Je)),u||(we.onFocus=sa(ae,we.onFocus),we.onBlur=sa(ye,we.onBlur),K||(Jt.onFocus=ae,Jt.onBlur=ye)),process.env.NODE_ENV!=="production"&&k.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${k.props.title}\` or the Tooltip component.`].join(`
183
+ `));const it={...r,isRtl:z,arrow:o,disableInteractive:K,placement:D,PopperComponentProp:A,touch:ee.current},Nn=typeof _.popper=="function"?_.popper(it):_.popper,cs=C.useMemo(()=>{let xe=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return L.popperOptions?.modifiers&&(xe=xe.concat(L.popperOptions.modifiers)),Nn?.popperOptions?.modifiers&&(xe=xe.concat(Nn.popperOptions.modifiers)),{...L.popperOptions,...Nn?.popperOptions,modifiers:xe}},[G,L.popperOptions,Nn?.popperOptions]),us=c2(it),ca=typeof _.transition=="function"?_.transition(it):_.transition,ce={slots:{popper:l.Popper,transition:l.Transition??I,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:_.arrow??c.arrow,popper:{...L,...Nn??c.popper},tooltip:_.tooltip??c.tooltip,transition:{...j,...ca??c.transition}}},[Ee,tt]=be("popper",{elementType:u2,externalForwardedProps:ce,ownerState:it,className:ie(us.popper,L?.className)}),[Wn,ua]=be("transition",{elementType:Fr,externalForwardedProps:ce,ownerState:it}),[xN,SN]=be("tooltip",{elementType:d2,className:us.tooltip,externalForwardedProps:ce,ownerState:it}),[wN,CN]=be("arrow",{elementType:p2,className:us.arrow,externalForwardedProps:ce,ownerState:it,ref:X});return d.jsxs(C.Fragment,{children:[C.cloneElement(k,we),d.jsx(Ee,{as:A??bc,placement:D,anchorEl:v?{getBoundingClientRect:()=>({top:os.y,left:os.x,right:os.x,bottom:os.y,width:0,height:0})}:M,popperRef:et,open:M?q:!1,id:le,transition:!0,...Jt,...tt,popperOptions:cs,children:({TransitionProps:xe})=>d.jsx(Wn,{timeout:B.transitions.duration.shorter,...xe,...ua,children:d.jsxs(xN,{...SN,children:[$,o?d.jsx(wN,{...CN}):null]})})})]})});process.env.NODE_ENV!=="production"&&($g.propTypes={arrow:s.bool,children:ar.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),tooltip:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});function f2(e){return de("MuiSwitch",e)}const yt=ue("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),h2=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l={root:["root",n&&`edge${ne(n)}`,`size${ne(r)}`],switchBase:["switchBase",`color${ne(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=pe(l,f2,t);return{...t,...c}},g2=Y("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ne(n.edge)}`],t[`size${ne(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${yt.thumb}`]:{width:16,height:16},[`& .${yt.switchBase}`]:{padding:4,[`&.${yt.checked}`]:{transform:"translateX(16px)"}}}}]}),y2=Y(Xi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${yt.input}`]:t.input},n.color!=="default"&&t[`color${ne(n.color)}`]]}})(ge(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${yt.checked}`]:{transform:"translateX(20px)"},[`&.${yt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${yt.checked} + .${yt.track}`]:{opacity:.5},[`&.${yt.disabled} + .${yt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${yt.input}`]:{left:"-100%",width:"300%"}})),ge(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(wt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${yt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${yt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${yt.checked} + .${yt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),m2=Y("span",{name:"MuiSwitch",slot:"Track"})(ge(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),b2=Y("span",{name:"MuiSwitch",slot:"Thumb"})(ge(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Dc=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:l="medium",sx:c,slots:p={},slotProps:u={},...h}=r,b={...r,color:i,edge:a,size:l},y=h2(b),g={slots:p,slotProps:u},[f,m]=be("root",{className:ie(y.root,o),elementType:g2,externalForwardedProps:g,ownerState:b,additionalProps:{sx:c}}),[v,w]=be("thumb",{className:y.thumb,elementType:b2,externalForwardedProps:g,ownerState:b}),S=d.jsx(v,{...w}),[x,E]=be("track",{className:y.track,elementType:m2,externalForwardedProps:g,ownerState:b});return d.jsxs(f,{...m,children:[d.jsx(y2,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:b,...h,classes:{...y,root:y.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(b):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(b):u.input}}}),d.jsx(x,{...E})]})});process.env.NODE_ENV!=="production"&&(Dc.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node,id:s.string,inputProps:s.object,inputRef:gt,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),switchBase:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType,switchBase:s.elementType,thumb:s.elementType,track:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});const Fc=C.createContext();process.env.NODE_ENV!=="production"&&(Fc.displayName="TableContext");function v2(e){return de("MuiTable",e)}ue("MuiTable",["root","stickyHeader"]);const x2=e=>{const{classes:t,stickyHeader:n}=e;return pe({root:["root",n&&"stickyHeader"]},v2,t)},S2=Y("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ge(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Dg="table",Fg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTable"}),{className:o,component:i=Dg,padding:a="normal",size:l="medium",stickyHeader:c=!1,...p}=r,u={...r,component:i,padding:a,size:l,stickyHeader:c},h=x2(u),b=C.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return d.jsx(Fc.Provider,{value:b,children:d.jsx(S2,{as:i,role:i===Dg?null:"table",ref:n,className:ie(h.root,o),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(Fg.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,padding:s.oneOf(["checkbox","none","normal"]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),stickyHeader:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const ss=C.createContext();process.env.NODE_ENV!=="production"&&(ss.displayName="Tablelvl2Context");function w2(e){return de("MuiTableBody",e)}ue("MuiTableBody",["root"]);const C2=e=>{const{classes:t}=e;return pe({root:["root"]},w2,t)},E2=Y("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),T2={variant:"body"},jg="tbody",Rg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTableBody"}),{className:o,component:i=jg,...a}=r,l={...r,component:i},c=C2(l);return d.jsx(ss.Provider,{value:T2,children:d.jsx(E2,{className:ie(c.root,o),as:i,ref:n,role:i===jg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function O2(e){return de("MuiTableCell",e)}const P2=ue("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),k2=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ne(r)}`,o!=="normal"&&`padding${ne(o)}`,`size${ne(i)}`]};return pe(l,O2,t)},N2=Y("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ne(n.size)}`],n.padding!=="normal"&&t[`padding${ne(n.padding)}`],n.align!=="inherit"&&t[`align${ne(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ge(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
184
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${P2.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Bn=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:c,size:p,sortDirection:u,variant:h,...b}=r,y=C.useContext(Fc),g=C.useContext(ss),f=g&&g.variant==="head";let m;a?m=a:m=f?"th":"td";let v=c;m==="td"?v=void 0:!v&&f&&(v="col");const w=h||g&&g.variant,S={...r,align:o,component:m,padding:l||(y&&y.padding?y.padding:"normal"),size:p||(y&&y.size?y.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&y&&y.stickyHeader,variant:w},x=k2(S);let E=null;return u&&(E=u==="asc"?"ascending":"descending"),d.jsx(N2,{as:m,ref:n,className:ie(x.root,i),"aria-sort":E,scope:v,ownerState:S,...b})});process.env.NODE_ENV!=="production"&&(Bn.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,component:s.elementType,padding:s.oneOf(["checkbox","none","normal"]),scope:s.string,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sortDirection:s.oneOf(["asc","desc",!1]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body","footer","head"]),s.string])});function I2(e){return de("MuiTableContainer",e)}ue("MuiTableContainer",["root"]);const _2=e=>{const{classes:t}=e;return pe({root:["root"]},I2,t)},A2=Y("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Lg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=r,l={...r,component:i},c=_2(l);return d.jsx(A2,{ref:n,as:i,className:ie(c.root,o),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Lg.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function M2(e){return de("MuiTableHead",e)}ue("MuiTableHead",["root"]);const $2=e=>{const{classes:t}=e;return pe({root:["root"]},M2,t)},D2=Y("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),F2={variant:"head"},Bg="thead",zg=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTableHead"}),{className:o,component:i=Bg,...a}=r,l={...r,component:i},c=$2(l);return d.jsx(ss.Provider,{value:F2,children:d.jsx(D2,{as:i,className:ie(c.root,o),ref:n,role:i===Bg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(zg.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function j2(e){return de("MuiTableRow",e)}const Wg=ue("MuiTableRow",["root","selected","hover","head","footer"]),R2=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return pe({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},j2,t)},L2=Y("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ge(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Wg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wg.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Vg="tr",is=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTableRow"}),{className:o,component:i=Vg,hover:a=!1,selected:l=!1,...c}=r,p=C.useContext(ss),u={...r,component:i,hover:a,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=R2(u);return d.jsx(L2,{as:i,ref:n,className:ie(h.root,o),role:i===Vg?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(is.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,hover:s.bool,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function B2(e){return de("MuiTextField",e)}ue("MuiTextField",["root"]);const z2={standard:na,filled:ta,outlined:ra},W2=e=>{const{classes:t}=e;return pe({root:["root"]},B2,t)},V2=Y(og,{name:"MuiTextField",slot:"Root"})({}),jc=C.forwardRef(function(t,n){const r=fe({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:b,fullWidth:y=!1,helperText:g,id:f,InputLabelProps:m,inputProps:v,InputProps:w,inputRef:S,label:x,maxRows:E,minRows:O,multiline:N=!1,name:D,onBlur:A,onChange:L,onFocus:_,placeholder:T,required:$=!1,rows:I,select:j=!1,SelectProps:P,slots:k={},slotProps:B={},type:z,value:M,variant:V="outlined",...G}=r,X={...r,autoFocus:i,color:c,disabled:u,error:h,fullWidth:y,multiline:N,required:$,select:j,variant:V},ee=W2(X);process.env.NODE_ENV!=="production"&&j&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const K=Qn(f),Q=g&&K?`${K}-helper-text`:void 0,Z=x&&K?`${K}-label`:void 0,oe=z2[V],se={slots:k,slotProps:{input:w,inputLabel:m,htmlInput:v,formHelperText:b,select:P,...B}},J={},te=se.slotProps.inputLabel;V==="outlined"&&(te&&typeof te.shrink<"u"&&(J.notched=te.shrink),J.label=x),j&&((!P||!P.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const[q,le]=be("root",{elementType:V2,shouldForwardComponentProp:!0,externalForwardedProps:{...se,...G},ownerState:X,className:ie(ee.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:y,required:$,color:c,variant:V}}),[re,he]=be("input",{elementType:oe,externalForwardedProps:se,additionalProps:J,ownerState:X}),[qe,ke]=be("inputLabel",{elementType:ug,externalForwardedProps:se,ownerState:X}),[Ce,Je]=be("htmlInput",{elementType:"input",externalForwardedProps:se,ownerState:X}),[We,ye]=be("formHelperText",{elementType:lg,externalForwardedProps:se,ownerState:X}),[ae,Re]=be("select",{elementType:Rr,externalForwardedProps:se,ownerState:X}),me=d.jsx(re,{"aria-describedby":Q,autoComplete:o,autoFocus:i,defaultValue:p,fullWidth:y,multiline:N,name:D,rows:I,maxRows:E,minRows:O,type:z,value:M,id:K,inputRef:S,onBlur:A,onChange:L,onFocus:_,placeholder:T,inputProps:Je,slots:{input:k.htmlInput?Ce:void 0},...he});return d.jsxs(q,{...le,children:[x!=null&&x!==""&&d.jsx(qe,{htmlFor:K,id:Z,...ke,children:x}),j?d.jsx(ae,{"aria-describedby":Q,id:K,labelId:Z,value:M,input:me,...Re,children:a}):me,g&&d.jsx(We,{id:Q,...ye,children:g})]})});process.env.NODE_ENV!=="production"&&(jc.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:gt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,root:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const ia=Tf({themeId:mo});function Rc(){return Rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rc.apply(this,arguments)}function U2(e,t){if(e==null)return{};var n=q2(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Lc=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=U2(e,["color","size"]);return R.createElement("svg",Rc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),R.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),R.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),R.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});Lc.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},Lc.displayName="AlignLeft";function Bc(){return Bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bc.apply(this,arguments)}function H2(e,t){if(e==null)return{};var n=Y2(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var zc=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=H2(e,["color","size"]);return R.createElement("svg",Bc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),R.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});zc.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},zc.displayName="Bell";function Wc(){return Wc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wc.apply(this,arguments)}function K2(e,t){if(e==null)return{};var n=G2(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function G2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var aa=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=K2(e,["color","size"]);return R.createElement("svg",Wc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"6 9 12 15 18 9"}))});aa.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},aa.displayName="ChevronDown";function Vc(){return Vc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vc.apply(this,arguments)}function J2(e,t){if(e==null)return{};var n=X2(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function X2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Uc=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=J2(e,["color","size"]);return R.createElement("svg",Vc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("circle",{cx:"12",cy:"12",r:"1"}),R.createElement("circle",{cx:"12",cy:"5",r:"1"}),R.createElement("circle",{cx:"12",cy:"19",r:"1"}))});Uc.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},Uc.displayName="MoreVertical";function qc(){return qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qc.apply(this,arguments)}function Q2(e,t){if(e==null)return{};var n=Z2(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Hc=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=Q2(e,["color","size"]);return R.createElement("svg",qc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("circle",{cx:"11",cy:"11",r:"8"}),R.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Hc.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},Hc.displayName="Search";function Yc(){return Yc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yc.apply(this,arguments)}function ek(e,t){if(e==null)return{};var n=tk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Kc=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=ek(e,["color","size"]);return R.createElement("svg",Yc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("circle",{cx:"12",cy:"12",r:"3"}),R.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});Kc.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},Kc.displayName="Settings";function Gc(){return Gc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gc.apply(this,arguments)}function nk(e,t){if(e==null)return{};var n=rk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Jc=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=nk(e,["color","size"]);return R.createElement("svg",Gc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),R.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),R.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});Jc.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},Jc.displayName="ShoppingBag";function Xc(){return Xc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xc.apply(this,arguments)}function ok(e,t){if(e==null)return{};var n=sk(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Qc=R.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,i=o===void 0?24:o,a=ok(e,["color","size"]);return R.createElement("svg",Xc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}))});Qc.propTypes={color:s.string,size:s.oneOfType([s.string,s.number])},Qc.displayName="Star";function fn(){const t={theme:R.useMemo(()=>Jl({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),productsyncsetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",px:0,py:0,mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{maxWidth:520,mx:"auto",mb:4},sectionTitle:{fontSize:"15px",fontWeight:600,color:"#222",mb:1.5},sectionCount:{fontSize:"13px",color:"#aaa",fontWeight:400},card:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"0 1px 2px rgba(0,0,0,0.03)",border:"1px solid #e0e0e0",cursor:"pointer",transition:"border 0.2s, box-shadow 0.2s, background 0.2s","&:hover":{border:"1.5px solid #1976D2",background:"#f5faff",boxShadow:"0 2px 8px rgba(25, 118, 210, 0.08)"}},cardBlue:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#f3f8ff",border:"1px solid #2D64B8",borderRadius:2,px:3,py:2,mb:1.5,boxShadow:"none",cursor:"pointer"},cardLeft:{display:"flex",alignItems:"center",gap:2},cardTitle:{fontSize:"15px",fontWeight:600,color:"#222"},cardSubtitle:{fontSize:"13px",color:"#888"},ftpIcon:{width:24,height:24,bgcolor:"#2D64B8",borderRadius:1,mr:2}},flexBetween:{display:"flex",justifyContent:"space-between",alignItems:"center"},flexCenter:{display:"flex",justifyContent:"center",alignItems:"center"},topBar:{root:{bgcolor:"background.paper",marginBottom:"20px"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,maxWidth:"100%"},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},productCard:{root:{borderBottom:1,borderColor:"divider",p:"0.25rem 0.25rem",m:"4px",bgcolor:"background.paper",transition:"all 0.3s ease",borderRadius:1,width:"100%",maxWidth:1100,mx:"auto"},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:3},image:{width:50,height:50,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",overflow:"hidden",flexShrink:0},name:{fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:600,letterSpacing:"0px",color:"#454545",width:"166px",display:"-webkit-box",WebkitLineClamp:2,lineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{width:"30%",px:2.5,py:.5,mr:2,borderRadius:.5,fontSize:"0.8rem",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(250px, 1fr) 100px 150px 120px 160px",gap:2,alignItems:"center",px:3},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(400px, 1fr) 120px 180px",gap:5,alignItems:"center",px:3},listHeader:{root:{bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"0.85rem",color:"#6b7280",width:"100%",maxWidth:1100,mx:"auto"}},header:{container:{display:"flex",gap:3,my:1,width:"100%",px:3,maxWidth:1e3,mx:"auto"},statCard:{bgcolor:"background.paper",borderRadius:2,p:3,flex:1,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.05)"},bigNumber:{fontSize:"1.8rem",fontWeight:700,color:"#000",mb:.5}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:30,zIndex:1200,animation:"slideUp 0.3s ease-out","@keyframes slideUp":{from:{transform:"translate(-50%, 100%)",opacity:0},to:{transform:"translate(-50%, 0)",opacity:1}}},inner:{bgcolor:"#111",color:"white",px:2,py:1,borderRadius:2,display:"flex",alignItems:"center",gap:1.5,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",justifyContent:"space-between"},count:{fontWeight:600,fontSize:"0.9rem",whiteSpace:"nowrap"},divider:{width:1,height:24,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"0.85rem",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}},btnPrimary:{"&:hover":{bgcolor:"#2563eb"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,height:120,textAlign:"center",bgcolor:"#FFFFFF",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:50,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.5},percentText:{fontFamily:"Inter, sans-serif",fontSize:"22px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,letterSpacing:"0px",display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2,letterSpacing:"0px"},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",minHeight:14}},design2:{topSection:{minHeight:60},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:600,color:"#000000",mt:.5,lineHeight:1.3,letterSpacing:"0px"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"}},design3:{topSection:{minHeight:20},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px"},middleSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"},bottomSection:{minHeight:30},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSetting:{wrapper:{minHeight:"100vh",bgcolor:"#f5f7fa",mx:-1},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},headerLeft:{display:"flex",alignItems:"center",gap:2},backButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},backText:{fontSize:"14px",color:"inherit"},divider:{height:20,alignSelf:"center"},breadcrumb:{display:"flex",alignItems:"center",gap:.5},breadcrumbText:{fontSize:"14px",color:"#666"},breadcrumbActive:{fontSize:"14px",fontWeight:600,color:"#000"},headerRight:{display:"flex",alignItems:"center",gap:1.5},bellButton:{color:"#666"},avatar:{width:32,height:32,borderRadius:"25%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},content:{maxWidth:600,mx:"auto",px:4,py:3},section:{mb:3},sectionHeader:{display:"flex",alignItems:"center",gap:.5,mb:1.5},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#333"},sectionCount:{fontSize:"12px",color:"#999"},settingCard:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},settingCardHover:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,"&:hover":{bgcolor:"#fafafa"}},settingCardInner:{display:"flex",alignItems:"center",gap:1.5},settingIcon:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},settingTitle:{fontSize:"14px",fontWeight:700,color:"#000"},settingSubtitle:{fontSize:"12px",color:"#888"},syncHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},syncNowButton:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888"},syncNowText:{fontSize:"12px"},setupSyncCard:{display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:2,bgcolor:"#fff",border:"1px solid #e8e8e8",px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},switch:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}},productSync:{wrapper:{minHeight:"100vh",background:"#f7f8fa",padding:0,marginTop:0,marginBottom:0,marginRight:-8,marginLeft:-5},width:"100%",padding:"10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,marginBottom:0,background:"#fff",outline:"none",boxSizing:"border-box"},passwordInput:{width:"100%",padding:"10px 38px 10px 12px",border:"1px solid #d1d5db",borderRadius:8,fontSize:15,background:"#fff",outline:"none",boxSizing:"border-box"},backButton:{background:"#fff",color:"#2563eb",border:"1px solid #2563eb",borderRadius:8,padding:"10px 32px",fontWeight:600,fontSize:16,cursor:"pointer",marginRight:8}},n={root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:0,boxShadow:"none",background:"#fff",p:0,mb:3},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"#222",fontSize:16,pb:2,borderBottom:"1px solid #f0f0f0",background:"#f7f8fa",borderTopLeftRadius:0,borderTopRightRadius:0},categoryTableHeaderCell:{flex:2,marginLeft:7},categoryTableRow:()=>({display:"flex",alignItems:"center",py:3,borderBottom:"1px solid #f0f0f0",background:"#fff",borderRadius:0,transition:"background 0.2s",boxShadow:"none",marginLeft:7}),categoryNameCell:{flex:2},categoryName:{fontWeight:700,fontSize:18,color:"#222"},categoryProducts:{fontSize:14,color:"#888",mt:.5},categoryUpdated:{fontSize:13,color:"#aaa",mt:.5},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:16,color:"#222",fontWeight:600}),categoryOSA:()=>({fontSize:14,color:"#e53935",mt:.5}),categoryImagesCell:{flex:2,display:"flex",gap:1.5},categoryImage:{width:48,height:48,borderRadius:8,border:"1px solid #eee",objectFit:"cover",background:"#f5f5f5"},categoryViewCell:{flex:1},categoryViewButton:{background:"none",color:"#444",fontWeight:400,fontSize:18,textTransform:"none",p:0,boxShadow:"none",justifyContent:"flex-end","&:hover":{background:"none",boxShadow:"none"}}};return t.categoriesView=n,t}const as=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:o,storesModalProps:i,onStoreSelect:a,showBackButton:l=!1,hideViewSwitch:c=!1,isHomeDefault:p=!1,tenantStatus:u={matched:!0}})=>{const h=at();Nt();const b=fn(),[y,g]=R.useState("OSA"),[f,m]=R.useState(null),v=!!f,[w,S]=R.useState(!1),x=Array.isArray(e?.store)?e.store:[],E=()=>{m(null)},[O,N]=R.useState(x),D=P=>{let k=[...O];P==="all"?O.includes("all")?k=[]:k=["all"]:O.includes(P)?k=O.filter(B=>B!==P&&B!=="all"):(k=O.filter(B=>B!=="all"),k.push(P)),N(k)},A=P=>{o?S(!0):(N(x),m(P.currentTarget))},L=()=>{t({...e,store:O}),m(null)},_=P=>{a?a(P):t({...e,store:P}),S(!1)},T=()=>{S(!1)},I=b.topBar||{},j=I&&I.viewSwitch||{};return d.jsxs(d.Fragment,{children:[d.jsx(F,{sx:I.root,children:d.jsxs(F,{sx:I.inner,children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",marginBottom:"20px"},children:[l&&d.jsxs(ze,{variant:"text",size:"small",sx:{minWidth:0,px:2,color:"#222",fontWeight:400,fontSize:15,textTransform:"none",display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none","&:hover":{background:"none",boxShadow:"none"}},disableRipple:!0,onClick:()=>h("/home"),children:[d.jsx("span",{style:{fontSize:20,fontWeight:400,color:"#222",marginRight:6},children:"<"}),d.jsx("span",{style:{fontSize:15,fontWeight:400,color:"#222"},children:"Back"})]}),d.jsxs(F,{sx:I.searchBox,children:[d.jsx(Hc,{size:18,style:{position:"absolute",left:0,color:"#888"}}),d.jsx(Uo,{placeholder:"Search Products",value:e.search,onChange:P=>t({...e,search:P.target.value}),sx:{...I.searchInput||{},pl:3.5}})]})]}),d.jsxs(F,{sx:I.controlGroup,children:[d.jsxs(F,{sx:{display:"flex",gap:1},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"6px",px:1.5,minWidth:80,cursor:"pointer",gap:1,...I.btn||{}},onClick:A,tabIndex:0,"aria-label":"Select stores",children:[d.jsx(Jc,{size:18,style:{color:"#555",marginRight:4}}),d.jsx(H,{sx:{fontWeight:700,fontSize:15,color:"#222",mr:.5},children:x.length===0||x.includes("all")?"All Stores":`${x.length} Stores`}),d.jsx(H,{sx:{fontWeight:400,fontSize:15,color:"#888",ml:.5},children:` ${n.filter(P=>P.id!=="all").length} stores`}),d.jsx(aa,{size:16,color:"#888",style:{marginLeft:2}})]}),d.jsxs(Ic,{anchorEl:f,open:v,onClose:E,PaperProps:{style:{minWidth:180}},children:[d.jsxs(Yt,{onClick:()=>D("all"),children:[d.jsx(Dr,{checked:O.includes("all")}),d.jsx(Pc,{primary:"All Stores"})]}),d.jsx(ot,{}),n.filter(P=>P.id!=="all").map(P=>d.jsxs(Yt,{onClick:()=>D(P.id),children:[d.jsx(Dr,{checked:O.includes(P.id)}),d.jsx(Pc,{primary:P.name})]},P.id)),d.jsx(ot,{}),d.jsx(F,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:d.jsx(ze,{variant:"contained",size:"small",onClick:L,children:"Apply"})})]}),d.jsxs(F,{sx:I.btn,onClick:r,children:[d.jsx(H,{variant:"body2",children:p?"MTD":"Filters"}),d.jsx(aa,{size:14,color:"#888"})]}),d.jsxs(F,{sx:I.btn,children:[d.jsx(H,{variant:"body2",children:"Sort"}),d.jsx(Lc,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),!c&&d.jsxs(F,{sx:{display:"flex",gap:1.5},children:[d.jsx(F,{component:"button",onClick:()=>g("OSA"),sx:{...j.opt||{},...y==="OSA"&&j.active},children:"OSA"}),d.jsx(F,{component:"button",onClick:()=>g("Catalogs"),sx:{...j.opt||{},...y==="Catalogs"&&j.active},children:"Catalogs"})]}),!c&&d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),d.jsxs(F,{sx:{display:"flex",gap:1,alignItems:"center"},children:[!c&&d.jsxs(d.Fragment,{children:[d.jsx(F,{component:"button",sx:{...I.iconOnly,cursor:u.loading?"not-allowed":"pointer",opacity:u.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:u.loading?"none":"auto"},title:u.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{u.loading||h("/product-setting",{state:{tenantIntegrationMatched:!!u.matched}})},children:d.jsx(Kc,{size:20})}),d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}})]}),d.jsx(F,{component:"button",sx:I.iconOnly,title:"More",children:d.jsx(Uc,{size:20})})]}),d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[d.jsx(F,{component:"button",sx:I.iconOnly,title:"Notifications",children:d.jsx(zc,{size:20})}),d.jsx(F,{component:"button",sx:I.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:d.jsx(Qc,{size:20})})]})]})]})}),o&&(()=>{const{open:P,onClose:k,onStoreSelect:B,...z}=i||{};return d.jsx(o,{open:w,onClose:T,onStoreSelect:_,selectedStores:x,...z})})()]})},Ug=[{key:"storeId",label:"Store ID",type:"number"},{key:"productId",label:"Product ID",type:"number"},{key:"categoryId",label:"Category ID",type:"number"},{key:"status",label:"Status",type:"boolean"},{key:"minPrice",label:"Min Price",type:"number"},{key:"maxPrice",label:"Max Price",type:"number"},{key:"inStock",label:"In Stock",type:"boolean"}];function ik({open:e,filters:t,onChange:n,onClose:r,onApply:o}){const i=(a,l)=>{let c=l;const p=Ug.find(u=>u.key===a);p&&p.type==="number"&&(c=l===""?void 0:Number(l)),p&&p.type==="boolean"&&(c=!!l),n({...t,[a]:c})};return d.jsxs(Zh,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,children:[d.jsx(ng,{children:"Filter Products"}),d.jsx(tg,{children:d.jsx(F,{display:"flex",flexDirection:"column",gap:2,children:Ug.map(a=>d.jsx(F,{children:a.type==="boolean"?d.jsx(Ec,{control:d.jsx(Dr,{checked:!!t[a.key],onChange:l=>i(a.key,l.target.checked)}),label:a.label}):d.jsx(jc,{label:a.label,type:"number",value:t[a.key]||"",onChange:l=>i(a.key,l.target.value),fullWidth:!0,size:"small"})},a.key))})}),d.jsxs(eg,{children:[d.jsx(ze,{onClick:r,children:"Cancel"}),d.jsx(ze,{variant:"contained",onClick:o,children:"Apply"})]})]})}function ak({StoresModal:e,storesModalProps:t,onStoreSelect:n}){const r=fn(),o=bt(),i=o.state?.filters||{category:"",status:"",search:"",store:[]},[a,l]=R.useState(i),[c,p]=R.useState(!1),[u,h]=R.useState(a),y=Me(O=>O.dashboard)?.products||[],g=y.reduce((O,N)=>(N?.id&&(O[N.id]=N),O),{}),f=y.map(O=>O?.id).filter(Boolean);console.log(f,"productIds we get at page");const m=Mt();R.useEffect(()=>{m($n())},[m]),R.useEffect(()=>{o.state?.filters&&setTimeout(()=>{l(o.state.filters)},0)},[o.state]),R.useEffect(()=>{Array.isArray(f)},[f,a,g]);const v=O=>{l(O)},w=()=>{h(a),p(!0)},S={};Object.values(g).forEach(O=>{O.storeId&&O.storeName&&(S[O.storeId]=O.storeName)});const x=[{id:"all",name:"All Stores"},...Object.entries(S).map(([O,N])=>({id:O,name:N}))],E=o.state&&o.state.tenantStatus||{matched:!0};return d.jsxs("div",{className:"app-container",children:[d.jsx(as,{styles:r,onFilterChange:v,filters:a,stores:x,onOpenFilterModal:w,StoresModal:e,storesModalProps:t,onStoreSelect:n,showBackButton:!0,tenantStatus:E}),d.jsx("div",{className:"product-main-container"}),d.jsx(ik,{open:c,filters:u,onChange:h,onClose:()=>p(!1),onApply:()=>{l(u),p(!1)}})]})}const lk=Ue(d.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),ck=e=>d.jsx(Ao,{...e,viewBox:"0 0 24 24",children:d.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),uk=()=>{const e=at(),t=Mt(),n=fn(),{metrics:r,loading:o}=Me(E=>E.dashboard),[i,a]=R.useState({search:"",store:[],category:"all",status:"all"}),l=E=>a(E),[c,p]=R.useState(new Date);R.useEffect(()=>{t(Ys())},[t]),R.useEffect(()=>{const E=setInterval(()=>{p(new Date)},6e4);return()=>clearInterval(E)},[]);const u=c.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=c.getDate(),b=c.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),y=r?.activeProducts||0,g=r?.activeCatalogues||0,f=r?.osa||{},m=E=>!E||E===0?"0":E>=1e3?(E/1e3).toFixed(0)+"K":E.toString(),v=f?.availableProducts||0,w=f?.totalRequests||0,S=f?.availabilityPercentage||0,x=w>0?100-S:0;return d.jsxs(d.Fragment,{children:[d.jsx(as,{styles:n.topBar,filters:i,onFilterChange:l,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),d.jsxs(F,{sx:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[d.jsx(_t,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:d.jsxs(Yh,{sx:{p:1},children:[d.jsx(H,{variant:"body2",color:"text.secondary",children:u}),d.jsx(H,{variant:"h6",fontWeight:400,color:"#000000",children:h}),d.jsx(H,{variant:"caption",color:"text.secondary",children:b})]})}),d.jsxs(F,{children:[d.jsxs(H,{variant:"h6",fontWeight:700,children:["Hi Ashok ",d.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),d.jsx(H,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),d.jsx(F,{sx:{mt:2},children:d.jsxs(_t,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(ck,{sx:{fontSize:24,color:"#000000"}}),d.jsxs(H,{variant:"h6",fontWeight:700,children:["Products ",d.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:o?"...":y})]})]}),d.jsxs(H,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/categories"),children:["Report ",">"]})]}),d.jsxs(F,{sx:{display:"flex",gap:2},children:[d.jsxs(_t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(H,{variant:"body2",color:"#454545",children:"Active Products"}),d.jsx(H,{variant:"h6",fontWeight:700,children:o?"...":y}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(lk,{sx:{fontSize:16,color:"#4caf50"}}),d.jsx(H,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),d.jsxs(_t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(H,{variant:"body2",color:"#454545",children:"Active Catalogs"}),d.jsx(H,{variant:"h6",fontWeight:700,children:o?"...":g}),d.jsx(H,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),d.jsxs(_t,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(H,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),d.jsxs(H,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[o?"...":`${S}%`,d.jsx(H,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:o?"":`${m(v)}/${m(w)}`})]}),d.jsx(H,{variant:"caption",color:"error",children:o?"":`${x.toFixed(0)}% missing`})]})]})]})})]})]})};function ls({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:o=!1}){const i=at(),a=fn(),[l]=R.useState({matched:!1,error:"",apiResponse:null,loading:!1});let c=a&&a.emptyProduct?a.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const u=Me(y=>y?.dashboard)?.products||[],h=t||(()=>i("/product-setting")),b=!r&&!e&&Array.isArray(u)&&u.length===0;return d.jsx(F,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:d.jsx(F,{sx:c.wrapper,children:d.jsxs(F,{sx:c.card,children:[d.jsxs(F,{sx:c.iconContainer,children:[d.jsxs(F,{sx:c.sparkleContainer,children:[d.jsx(F,{sx:c.sparkleLeft}),d.jsx(F,{sx:c.sparkleCenter}),d.jsx(F,{sx:c.sparkleRight})]}),d.jsx(F,{sx:c.inboxIcon,children:d.jsx(F,{sx:c.notch})})]}),d.jsx(H,{sx:c.title,children:r?"Session Expired":n?`No Products in ${n}`:"No Products"}),d.jsx(H,{sx:c.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":n&&!b?`No products found in the "${n}" category.`:b?"No products found in store inventory. Start syncing to add products.":l.matched?"Active integrations fetched successfully":l.error?l.error:"No active integration found for this tenant id"}),!e&&!r&&b&&!o&&d.jsx(H,{component:"a",href:"#",sx:c.actionLink,onClick:y=>{y.preventDefault(),h()},children:"Start Syncing Products"})]})})})}const qg=Ue(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Hg=Ue(d.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),Yg=({productState:e})=>d.jsxs(F,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[d.jsx(Zc,{title:"Categories",titleValue:e.homePageCardSummary?.totalCategories||0,subtitle:"Products",subtitleValue:e.homePageCardSummary?.totalProducts||0,recentText:e.homePageCardSummary?.lastSync?`Sync ${e.homePageCardSummary.lastSync}`:"",tickMarkRequired:!0,btnLabel:"History"}),d.jsx(Zc,{title:"Active Catalogs",titleValue:"34",recentText:"4 public links",linkRequired:!0,btnLabel:"Manage"}),d.jsx(Zc,{title:"On Shelf Yesterday",titleValue:"78%",thirdVaue:"78/100X",recentText:"22% mising",btnLabel:"Report"})]});function Zc({title:e="",subtitle:t="",titleValue:n="",thirdVaue:r="",subtitleValue:o="",recentText:i="",btnLabel:a="",tickMarkRequired:l=!1,linkRequired:c=!1}){return d.jsxs(_t,{sx:{flex:1,minWidth:250,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",mb:1},children:[e&&d.jsxs(F,{sx:{flex:1,textAlign:"center"},children:[d.jsx(H,{variant:"body2",color:"text.secondary",children:e}),d.jsx(H,{variant:"h5",fontWeight:500,children:n}),d.jsx(H,{variant:"caption",color:"text.secondary",children:r})]}),t&&d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),t&&d.jsxs(F,{sx:{flex:1,textAlign:"center"},children:[d.jsx(H,{variant:"body2",color:"text.secondary",children:t}),d.jsx(H,{variant:"h5",fontWeight:500,children:o})]})]}),d.jsx(ot,{}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",mt:1},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",flex:1},children:[l&&d.jsx(qg,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),c&&d.jsx(Hg,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),d.jsx(H,{variant:"caption",color:"text.secondary",children:i})]}),a&&d.jsxs(ze,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:[a," >"]})]})]})}function dk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var pk=function(t){var n=t.size,r=n===void 0?24:n,o=t.className,i=o===void 0?"":o,a=t.fill,l=a===void 0?"none":a,c=dk(t,["size","className","fill"]);return R.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 24 24",fill:l,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-chevron-right ".concat(i)},c),R.createElement("g",null,R.createElement("polyline",{points:"9 18 15 12 9 6"})))};function fk({categoryData:e=[],styles:t={},onView:n}){return console.log("Table.jsx categoryData:",e),d.jsxs(_t,{sx:t.categoryTable,children:[d.jsxs(F,{sx:t.categoryTableHeader,children:[d.jsx(F,{sx:t.categoryTableHeaderCell,children:"Category"}),d.jsx(F,{sx:t.categoryTableHeaderCell,children:"Stock / OSA"}),d.jsx(F,{sx:t.categoryTableHeaderCell,children:"Products"}),d.jsx(F,{sx:t.categoryTableHeaderCell})]}),e.map((r,o)=>d.jsxs(F,{sx:t.categoryTableRow(o),children:[d.jsxs(F,{sx:t.categoryNameCell,children:[d.jsx(H,{sx:t.categoryName,children:r.name}),d.jsxs(H,{sx:t.categoryProducts,children:[r.products," Products"]}),d.jsxs(H,{sx:t.categoryUpdated,children:["Updated ",r.updated]})]}),d.jsxs(F,{sx:t.categoryStockCell,children:[d.jsx(H,{sx:t.categoryStock(o),children:r.stock}),d.jsx(H,{sx:t.categoryOSA(o),children:r.osa})]}),d.jsx(F,{sx:t.categoryImagesCell,children:r.images.map((i,a)=>d.jsx(Ho,{src:i,alt:r.name+" product",sx:t.categoryImage},a))}),d.jsx(F,{sx:t.categoryViewCell,children:d.jsxs(ze,{variant:"contained",color:"primary",sx:t.categoryViewButton,onClick:()=>n&&n(r),children:["View",d.jsx(pk,{size:20,style:{marginLeft:6}})]})})]},r.name))]})}const hk=()=>{const e=Mt(),t=at(),r=fn().categoriesView,[o,i]=R.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:a,companyId:l,loading:c,error:p}=Me(L=>L.dashboard),u=R.useMemo(()=>a&&typeof a=="object"&&Object.keys(a).length>0?{matched:!0,error:"",apiResponse:a,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[a]),h=Me(L=>L.dashboard),{categorySummary:b=[],products:y=[]}=h||{},g=b,f=Array.isArray(y)&&y.length>0,m=()=>{u.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},v={},{productsByCategory:w={}}=h||{};Object.values(w).flat().forEach(L=>{L.storeId&&L.storeName&&(v[L.storeId]=L.storeName)});const S=[{id:"all",name:"All Stores"},...Object.entries(v).map(([L,_])=>({id:L,name:_}))],x=L=>{i(L)},[E,O]=R.useState(!1);R.useEffect(()=>{!l&&!E?e(lo()).finally(()=>{O(!0)}):l&&queueMicrotask(()=>O(!0))},[e,l,E]);const N=R.useRef(null);R.useEffect(()=>{l&&l!==N.current&&(N.current=l,e(Qt(l)),e($n()))},[e,l]);const D=L=>{t(`/category?categoryName=${encodeURIComponent(L.name)}`)},A=E&&p&&!l;return d.jsxs(d.Fragment,{children:[!A&&d.jsx(as,{filters:o,onFilterChange:x,styles:r.topBar,stores:S,tenantStatus:u,hasProducts:f}),A?d.jsx(ls,{handleStartSyncing:m,loading:!1,sessionExpired:!0}):!E&&!l?d.jsx(ls,{handleStartSyncing:m,loading:!0,sessionExpired:!1}):f?d.jsxs(F,{sx:r.root,children:[d.jsx(Yg,{productState:h}),d.jsx(fk,{categoryData:g,styles:r,onView:D})]}):d.jsx(ls,{handleStartSyncing:m,loading:c,sessionExpired:!1,hasIntegration:u.matched})]})},gk=[{name:"Bakery",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg","https://www.bbassets.com/media/uploads/p/l/40091805_5-britannia-atta-bread.jpg"]},{name:"Biscuits",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg","https://www.bbassets.com/media/uploads/p/l/40283779_10-cadbury-chocobakes-choco-chip-cookies-delicious-treat.jpg"]},{name:"Drinks",products:45,stock:"20/5,600",osa:"5% on shelf",updated:"2 days ago",images:["https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL","https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQ2mbJAPrKlGS8rCZETNr0ZPaOq0XcV1o2FG2jeOeN95W7nu3FL"]},{name:"Pulses",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg","https://m.media-amazon.com/images/I/41fbvIDRYXL._SY300_SX300_QL70_FMwebp_.jpg"]},{name:"Snacks",products:45,stock:"4500/5,600",osa:"96% on shelf",updated:"2 days ago",images:["https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg","https://images-eu.ssl-images-amazon.com/images/I/81oQOYKZHxL._AC_UL900_SR615,900_.jpg"]}],yk=()=>{const t=fn().categoriesView,[n,r]=R.useState({category:"all",status:"all",search:"",store:[]}),o=Mt(),l=(Me(h=>h.dashboard)?.products||[]).reduce((h,b)=>(b?.id&&(h[b.id]=b),h),{});R.useEffect(()=>{o($n())},[o]);const c={};Object.values(l).forEach(h=>{h.storeId&&h.storeName&&(c[h.storeId]=h.storeName)});const p=[{id:"all",name:"All Stores"},...Object.entries(c).map(([h,b])=>({id:h,name:b}))],u=h=>{r(h)};return d.jsxs(d.Fragment,{children:[d.jsx(as,{filters:n,onFilterChange:u,styles:t.topBar,stores:p}),d.jsxs(F,{sx:t.root,children:[d.jsxs(F,{sx:{display:"flex",gap:2,mb:3},children:[d.jsxs(_t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",mb:1},children:[d.jsxs(F,{sx:{flex:1,textAlign:"center"},children:[d.jsx(H,{variant:"body2",color:"text.secondary",children:"Categories"}),d.jsx(H,{variant:"h5",fontWeight:500,children:"45"})]}),d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),d.jsxs(F,{sx:{flex:1,textAlign:"center"},children:[d.jsx(H,{variant:"body2",color:"text.secondary",children:"Products"}),d.jsx(H,{variant:"h5",fontWeight:500,children:"234"})]})]}),d.jsx(ot,{}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",mt:1},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",flex:1},children:[d.jsx(qg,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),d.jsx(H,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]}),d.jsx(ze,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"History >"})]})]}),d.jsxs(_t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[d.jsxs(F,{sx:{textAlign:"center",mb:1},children:[d.jsx(H,{variant:"body2",color:"text.secondary",children:"Active Catalogs"}),d.jsx(H,{variant:"h5",fontWeight:500,children:"34"})]}),d.jsx(ot,{}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",mt:1},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",flex:1},children:[d.jsx(Hg,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),d.jsx(H,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),d.jsx(ze,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Manage >"})]})]}),d.jsxs(_t,{sx:{flex:1,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5,minWidth:220},children:[d.jsxs(F,{sx:{textAlign:"center",mb:1},children:[d.jsx(H,{variant:"body2",color:"text.secondary",children:"On Shelf Yesterday"}),d.jsx(H,{variant:"h5",fontWeight:500,children:"78%"}),d.jsx(H,{variant:"caption",color:"text.secondary",children:"78/100X"})]}),d.jsx(ot,{}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",mt:1},children:[d.jsx(F,{sx:{flex:1},children:d.jsx(H,{variant:"caption",color:"#ef4444",fontWeight:500,children:"22% missing"})}),d.jsx(ze,{variant:"text",size:"small",sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:"Report >"})]})]})]}),d.jsxs(_t,{sx:t.categoryTable,children:[d.jsxs(F,{sx:t.categoryTableHeader,children:[d.jsx(F,{sx:t.categoryTableHeaderCell,children:"Category"}),d.jsx(F,{sx:t.categoryTableHeaderCell,children:"Stock / OSA"}),d.jsx(F,{sx:t.categoryTableHeaderCell,children:"Products"}),d.jsx(F,{sx:t.categoryTableHeaderCell})]}),gk.map((h,b)=>d.jsxs(F,{sx:t.categoryTableRow(b),children:[d.jsxs(F,{sx:t.categoryNameCell,children:[d.jsx(H,{sx:t.categoryName,children:h.name}),d.jsxs(H,{sx:t.categoryProducts,children:[h.products," Products"]}),d.jsxs(H,{sx:t.categoryUpdated,children:["Updated ",h.updated]})]}),d.jsxs(F,{sx:t.categoryStockCell,children:[d.jsx(H,{sx:t.categoryStock(b),children:h.stock}),d.jsx(H,{sx:t.categoryOSA(b),children:h.osa})]}),d.jsx(F,{sx:t.categoryImagesCell,children:h.images.map((y,g)=>d.jsx(Ho,{src:y,alt:h.name+" product",sx:t.categoryImage},g))}),d.jsx(F,{sx:t.categoryViewCell,children:d.jsx(ze,{variant:"contained",color:"primary",sx:t.categoryViewButton,children:"View"})})]},h.name))]})]})]})};const mk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Kg=e=>{const t=bk(e);return t.charAt(0).toUpperCase()+t.slice(1)},Gg=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),vk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var xk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Sk=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...l},c)=>R.createElement("svg",{ref:c,...xk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Gg("lucide",o),...!i&&!vk(l)&&{"aria-hidden":"true"},...l},[...a.map(([p,u])=>R.createElement(p,u)),...Array.isArray(i)?i:[i]]));const cr=(e,t)=>{const n=R.forwardRef(({className:r,...o},i)=>R.createElement(Sk,{ref:i,iconNode:t,className:Gg(`lucide-${mk(Kg(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Kg(e),n};const wk=cr("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const Ck=cr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Ek=cr("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const Jg=cr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const mt=cr("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const eu=cr("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);const Tk=cr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function st({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:o,selected:i,highlightStyle:a={},action:l,disabled:c=!1,customStyle:p={}}){const h={card:{...{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,cursor:o&&!c?"pointer":"default",minHeight:60,opacity:c?.5:1,...i?a:{}},...p},cardInner:{display:"flex",alignItems:"center",flex:1},icon:{display:"flex",alignItems:"center",mr:2},title:{fontWeight:700,fontSize:15,color:c?"#999":"#222",lineHeight:1.2},subtitle:{color:c?"#bbb":"#888",fontSize:13,fontWeight:400,mt:.5,lineHeight:1.3}};return d.jsxs(F,{onClick:c?void 0:o,sx:{...h.card,...p||{}},children:[e&&d.jsx(F,{sx:h.icon,children:e}),d.jsxs(F,{sx:h.cardInner,children:[d.jsxs(F,{children:[d.jsx(H,{sx:h.title,children:t}),n&&d.jsx(H,{sx:h.subtitle,children:r?`${r} ${n}`:n})]}),l&&d.jsx(F,{sx:{ml:"auto"},children:l})]})]})}function Ok({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:o=0,syncMethod:i="",onSetupSync:a=()=>{},onSyncNow:l=()=>{},integrationData:c={},...p}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=at();c?.configs;const b=c?.configs?.sync_frequency||"Daily",y=c?.configs?.sync_time||"10:00 AM",g=c?.type||i||"FTP";return o===3?d.jsxs(F,{sx:{maxWidth:600,mx:"auto",mt:4},children:[d.jsxs(H,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u}),d.jsx(st,{icon:d.jsx(eu,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:d.jsx(Dc,{checked:e,onChange:f=>t&&t(f.target.checked)})}),d.jsxs(H,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),d.jsx("span",{style:{float:"right",color:"#1976d2",fontWeight:500,fontSize:15,cursor:"pointer"},onClick:l,children:"Sync Now"})]}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync Method",subtitle:g,highlightStyle:u,disabled:!0}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),d.jsxs(F,{sx:{display:"flex",gap:2},children:[d.jsx(F,{sx:{flex:1},children:d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:b,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),d.jsx(F,{sx:{flex:1},children:d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync Time",subtitle:y,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]}):d.jsxs(F,{sx:{maxWidth:600,mx:"auto",mt:4},children:[d.jsxs(H,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u}),d.jsx(st,{icon:d.jsx(eu,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:d.jsx(Dc,{checked:e,onChange:f=>t&&t(f.target.checked)})}),d.jsxs(H,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),d.jsx("span",{style:{float:"right",color:o===0?"#bbb":"#1976d2",fontWeight:500,fontSize:15,cursor:o===0?"not-allowed":"pointer",opacity:o===0?.5:1},onClick:o===0?void 0:l,children:"Sync Now"})]}),o===0&&d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u}),o===1&&d.jsxs(d.Fragment,{children:[d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync Method",subtitle:g,highlightStyle:u}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})},highlightStyle:u})]}),o===3&&d.jsxs(d.Fragment,{children:[d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync Method",subtitle:i||"FTP",highlightStyle:u,disabled:!0}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),d.jsxs(F,{sx:{display:"flex",gap:2},children:[d.jsx(F,{sx:{flex:1},children:d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:"Daily",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),d.jsx(F,{sx:{flex:1},children:d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync Time",subtitle:"10:00 AM",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),d.jsx(st,{icon:d.jsx(mt,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]})]})}const zn=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=fn(),o=(a=15)=>!n||!Array.isArray(n)||n.length===0?null:d.jsx(F,{sx:{display:"flex",alignItems:"center"},children:n.map((l,c)=>d.jsxs(R.Fragment,{children:[c>0&&d.jsx(Jg,{size:a-2,color:"#bbb",style:{margin:"0 7px"}}),d.jsx(H,{sx:{color:c===n.length-1?"#111":"#888",fontWeight:c===n.length-1?700:500,fontSize:a},children:l.label})]},l.label))}),i=r;return d.jsxs(F,{sx:i.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:56,px:2,borderBottom:"1px solid #eee",mb:0},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center"},children:[d.jsxs(F,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:2},children:[d.jsx(Ek,{size:18}),d.jsx(H,{sx:{ml:1,color:"#888",fontWeight:500},children:"Back"})]}),d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24}}),n&&n.length>0?o(16):d.jsxs(d.Fragment,{children:[d.jsx(H,{sx:{color:"#888",fontWeight:500,mr:1},children:"Products"}),d.jsx(Jg,{size:16,color:"#bbb",style:{margin:"0 8px"}}),d.jsx(H,{sx:{fontWeight:600},children:e})]})]}),d.jsxs(F,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(ot,{orientation:"vertical",flexItem:!0,sx:{height:24,mx:3}}),d.jsx(ln,{size:"small",sx:{color:"#888",mx:1},children:d.jsx(wk,{size:20})}),d.jsx(F,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"30%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:d.jsx(eu,{size:16,color:"#fff"})})]})]})};function Pk({open:e,onClose:t,onSave:n}){Nt();const r=fn(),[o,i]=R.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=h=>i(h.target.value),c=()=>{n&&n(o),t()},p=()=>{},u=r.productSettingModal;return d.jsx(Go,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:d.jsxs(F,{sx:u.container,children:[d.jsxs(F,{sx:u.header,children:[d.jsx(H,{sx:u.headerTitle,children:"Sync Method"}),d.jsx(ln,{onClick:t,size:"small",sx:u.closeButton,children:d.jsx(Tk,{size:20})})]}),d.jsxs(F,{sx:u.content,children:[d.jsx(Pg,{value:o,onChange:l,children:a.map(h=>d.jsx(Ec,{value:h.value,control:d.jsx(Og,{icon:d.jsx(F,{sx:u.radioIcon}),checkedIcon:d.jsx(Ck,{size:18,color:"#000"}),sx:u.radioChecked}),label:d.jsx(H,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...o===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),d.jsxs(F,{sx:u.upgradeSection,children:[d.jsx(H,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),d.jsx(H,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),d.jsx(F,{sx:u.footer,children:d.jsx(ze,{fullWidth:!0,variant:"contained",onClick:c,sx:u.saveButton,children:"Save"})})]})})}const kk=({isOpen:e,onClose:t,onConfirm:n})=>{const r=fn();let o;return o=r.productSettingModal,d.jsx(Go,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:o.modal,children:d.jsxs(F,{sx:o.container,children:[d.jsx(F,{sx:o.header,children:d.jsx(H,{sx:{...o.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),d.jsxs(F,{sx:{...o.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[d.jsx(ze,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),d.jsx(ze,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function Nk(){const e=bt(),t=at(),n=Mt(),{companyId:r,integrationData:o,loading:i}=Me($=>$?.dashboard||{}),[a,l]=R.useState(!0),[c,p]=R.useState(),[u,h]=R.useState(0),[b,y]=R.useState(""),[g,f]=R.useState(!1),[m,v]=R.useState(!1),[w,S]=R.useState(!1),[x,E]=R.useState(""),O=R.useRef(null),N=R.useRef(!1);R.useEffect(()=>{const $=e.state?.tenantIntegrationMatched===!0;r&&r!==O.current&&!i&&(o&&(o?.id||o?.channelId||o?.configs||typeof o=="object"&&Object.keys(o).length>0)?O.current=r:(O.current=r,n(Qt(r)))),$&&r&&!i&&!N.current&&(console.log("[ProductSetting] Refreshing integration data after PATCH update..."),N.current=!0,n(Qt(r))),$||(N.current=!1)},[r,n,i,o,e.state]),R.useEffect(()=>{let $=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&($=e.state.tenantIntegrationMatched);const I=o&&(o?.id||o?.channelId||o?.configs||Array.isArray(o?.data)&&o.data.length>0||typeof o=="object"&&Object.keys(o).length>0),j=e.state?.fromSyncStep===1?1:$===!0||I?3:0;queueMicrotask(()=>h(j))},[e.state,o]);const D=()=>f(!0),A=$=>{y($),h(1),f(!1)},L=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},_=async()=>{const $=o?.channelId||o?.id;if(!$){E("Channel ID not found"),S(!0),v(!1);return}v(!1);try{const I=await n(po($));if(po.fulfilled.match(I)){const j=I.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";E(j),S(!0),j==="Sync started successfully"&&setTimeout(()=>{n(Qt(r)),n($n()),t("/")},2500)}else E("Sync not started successfully"),S(!0)}catch{E("Sync not started successfully"),S(!0)}},T=()=>{u===1?(h(0),y("")):t("/")};return d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(zn,{breadcrumbRight:"Settings",onBack:T}),d.jsx(Pk,{open:g,onClose:()=>f(!1),onSave:A}),d.jsx(kk,{isOpen:m,onClose:()=>v(!1),onConfirm:_}),d.jsx(rs,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:x,anchorOrigin:{vertical:"top",horizontal:"center"}}),d.jsx(Ok,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:c,setSelectedCard:p,syncStep:u,syncMethod:b,integrationData:o,onSetupSync:D,onSetupFTP:L,onSyncNow:()=>v(!0)})]})}const Xg=["Setup FTP","Check data","Start Sync"],Ik=e=>{const{onBack:t}=e,n=bt(),r=at();n.state?.tenantIntegrationData;const o=n.state?.fromSyncStep,i=()=>{t?t():o!==void 0?r("/product-setting",{state:{fromSyncStep:o,tenantIntegrationMatched:o===3}}):r("/product-setting")};return d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(zn,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:i}),d.jsxs(F,{sx:{maxWidth:800,mx:"auto",pt:4},children:[d.jsx(F,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:4,mb:2},children:Xg.map((a,l)=>d.jsx("span",{style:{fontWeight:l===0?700:400,color:"#222",fontSize:16,flex:1,textAlign:l===0?"left":l===Xg.length-1?"right":"center"},children:a},a))}),d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,minWidth:600,bgcolor:"#fff"},children:d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:d.jsxs(an,{elevation:0,sx:{mt:4,p:4,borderRadius:4,background:"#fafafa",minWidth:400,maxWidth:420},children:[d.jsx(H,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Setup Instructions"}),d.jsxs("ol",{style:{color:"#222",fontSize:16,margin:0,paddingLeft:20,marginBottom:24},children:[d.jsx("li",{children:"Directory should have just one file"}),d.jsx("li",{children:"File format must be in CSV (comma separated)"}),d.jsx("li",{children:"File structure should be flat"})]}),d.jsx(F,{sx:{display:"flex",justifyContent:"flex-end"},children:d.jsx(ze,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})})]})]})},_k=Ue(d.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),Ak=Ue(d.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Mk=Ue(d.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),$k=Ue(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Dk=Ue(d.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),Fk=Ue(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),jk=Ue(d.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Rk=Ue([d.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-1 18H5V9h14zm1-13H4V4h16z"},"0"),d.jsx("path",{d:"M9 12h6v2H9z"},"1")],"Inventory2Outlined"),Lk=Ue(d.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),Bk=Ue(d.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),zk=Ue(d.jsx("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline"),Wk=Ue(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),Vk=Ue(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Uk=Ue(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),qk=({active:e,completed:t,showBlue:n})=>d.jsx(F,{sx:{width:24,height:24,borderRadius:"50%",border:`2px solid ${n?"#2563eb":"#bbb"}`,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff"},children:n?d.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2563eb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):e||t?d.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})}):d.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#bbb",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),la=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:o=!1,showStartSyncBlueTick:i=!1,instantComplete:a=!1})=>{Nt();const[l,c]=R.useState(0),[p,u]=R.useState(!1),h=R.useRef(null),[b,y]=R.useState(0),[g,f]=R.useState(0),[m,v]=R.useState(0);return R.useEffect(()=>{if(a){setTimeout(()=>{c(1),u(!0)},0);return}if(setTimeout(()=>{c(0),u(!1)},0),r){const w=setTimeout(()=>{c(1),setTimeout(()=>u(!0),600)},100);return()=>clearTimeout(w)}else{const w=setTimeout(()=>{c(1),setTimeout(()=>u(!0),600)},100);return()=>clearTimeout(w)}},[t,e.length,r,a]),R.useEffect(()=>{if(h.current){const w=h.current.querySelector(".stepper-icon-0"),S=h.current.querySelector(".stepper-icon-1"),x=h.current.querySelector(`.stepper-icon-${e.length-1}`);if(w&&S&&x){const E=w.getBoundingClientRect(),O=S.getBoundingClientRect(),N=x.getBoundingClientRect(),D=h.current.getBoundingClientRect(),A=E.left+E.width/2-D.left;y(A),f((O.left+O.width/2-D.left-A)*.4),v(N.left+N.width/2-D.left-A)}}},[e.length,l]),d.jsxs(F,{sx:{width:"100%",p:"24px 0 0 0"},children:[d.jsx(F,{ref:h,sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",px:4},children:e.map((w,S)=>d.jsxs(F,{className:`stepper-icon-${S}`,sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[d.jsx(qk,{active:S===t,completed:S<t,showBlue:S===0&&o||S===1&&n&&p||S===2&&i}),d.jsx("span",{style:{fontWeight:S===t?700:400,color:"#222",fontSize:16,marginTop:8},children:w})]},w))}),d.jsxs(F,{sx:{position:"relative",width:"100%",height:6,mt:1.5,mb:0,px:4},children:[d.jsx(F,{sx:{position:"absolute",left:b,top:0,width:m,height:4,bgcolor:"#f2f2f2",borderRadius:2,transition:"left 0.30s, width 0.30s"}}),d.jsx(F,{sx:{position:"absolute",left:b,top:0,height:4,borderRadius:2,bgcolor:"#219653",width:i?l?m:0:r?l?m*.5:0:l?g:0,transition:"width 0.7s cubic-bezier(.47,1.64,.41,.8), left 0.4s"}})]})]})},Hk=["Setup FTP","Check data","Start Sync"],Yk=e=>e.dashboard?.companyId||"";function Kk(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const Gk=e=>{const{ftpDetails:t={}}=e,[n,r]=R.useState(null),o=bt(),i=at(),a=Me(Yk),l=1,[c,p]=R.useState(!1),[u,h]=R.useState(0);R.useEffect(()=>{let _,T;return setTimeout(()=>{h(0),p(!1),_=setTimeout(()=>{h(1),T=setTimeout(()=>p(!0),600)},100)},0),()=>{_&&clearTimeout(_),T&&clearTimeout(T)}},[]);const[b,y]=R.useState(!1),g=localStorage.getItem("selectedSyncMethod")||"sftp",[f,m]=R.useState(`${g}:`),[v,w]=R.useState(""),[S,x]=R.useState(""),E=Mt(),O=Me(_=>_.productSettings?.loading||!1),N=Me(_=>_.productSettings?.error||null),D=Nt();ia(D.breakpoints.up("lg"));const A=Me(_=>_.productSettings.syncData);R.useEffect(()=>{const _=o.state?.ftpConfig,T=o.state?.tenantIntegrationData;if(A&&A.serverAddress){setTimeout(()=>{m(A.serverAddress||""),w(A.configs&&A.configs.username||""),x(A.configs&&A.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const $=t.type||"sftp",I=t.host||"",j=t.port||"",P=t.path||"",k=`${$}://${I}${j?`:${j}`:""}${P?`/${P}`:""}`;setTimeout(()=>{m(k),w(t.username||""),x(t.password||"")},0);return}if(T&&T.configs){const $=T.configs,I=$.type||T.type||"sftp",j=$.host||"",P=$.port||"",k=$.path||"",B=`${I}://${j}:${P}/${k}`,z=$.username||"",M=$.password||"";setTimeout(()=>{m(B),w(z),x(M)},0);return}if(_){const I=`${_.type||"sftp"}://${_.host}:${_.port}/${_.path}`,j=_.username||"",P=_.password||"";setTimeout(()=>{m(I),w(j),x(P)},0)}},[o.state,A,t]);const L=async()=>{if(!a){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:_,host:T,port:$,path:I}=Kk(f),j=await E(co({serverAddress:f,username:v,password:S,companyId:a}));if(!co.fulfilled.match(j))return;const P=j.payload;if(o.state?.fromSettingsIcon){const z=P?.entity_type||n?.entity_type||"products",M={...n||{},companyId:a,tenantId:a,type:_,configs:{host:T,port:Number($),path:I,username:v,password:S,sync_frequency:n?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:n?.configs?.sync_time||t?.sync_time||""},entity_type:z,mappings:n?.mappings||P?.existing_mapping?.mappings||[]};console.log("========================================"),console.log("[FTP Sync – Step 1] JSON object created (settings flow):"),console.log("========================================"),console.log(JSON.stringify(M,null,2)),console.log("========================================"),r(M),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),i("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:M}});return}const k=P?.entity_type||"",B={tenantId:a,type:_,configs:{host:T,port:Number($),path:I,username:v,password:S,sync_frequency:"",sync_time:""},entity_type:k||"products",mappings:P?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(B,null,2)),E(Gs(B)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),e.onNext&&e.onNext({putjson:B})};return d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(zn,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),d.jsxs(F,{sx:{maxWidth:800,mx:"auto",pt:4},children:[d.jsx(la,{steps:Hk,activeStep:l,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:c,animateSetupFtp:!0}),d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:600,minWidth:600,bgcolor:"#fff",mt:4},children:d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:d.jsx(F,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:440,maxWidth:480},children:d.jsxs(F,{sx:{background:"#f5f5f5",borderRadius:4,p:4},children:[d.jsx(H,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),d.jsxs(F,{component:"form",autoComplete:"off",sx:{width:"90%"},children:[d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),d.jsx("input",{type:"text",value:f,onChange:_=>m(_.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),d.jsx("input",{type:"text",value:v,onChange:_=>w(_.target.value),placeholder:"Enter username",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),d.jsxs("div",{style:{marginBottom:16,position:"relative"},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),d.jsx("input",{type:b?"text":"password",value:S,onChange:_=>x(_.target.value),placeholder:"Enter password",style:{width:"82%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 44px 12px 14px",fontSize:16,marginBottom:0}}),d.jsx(ln,{"aria-label":"toggle password visibility",onClick:()=>y(_=>!_),edge:"end",tabIndex:-1,style:{position:"absolute",right:24,top:"65%",transform:"translateY(-50%)",zIndex:2},children:b?d.jsx(Uk,{}):d.jsx(Vk,{})})]}),d.jsxs(F,{sx:{display:"flex",mt:3,justifyContent:"flex-end",gap:2},children:[d.jsx(ze,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),d.jsx(ze,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:L,disabled:O,children:O?"Loading...":"Next"})]}),N&&d.jsx(H,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})})]})]})},Jk=["Setup FTP","Check data","Start Sync"],Xk=e=>e.productSettings.ftpColumns||[],Qk=e=>e.productSettings.preview||[],Zk=e=>e.productSettings.loading,eN=e=>e.productSettings.error,tN=e=>e.productSettings.existingMapping,nN=e=>e.productSettings.entity_type||"products",rN=e=>{const{mapping:t=[],onBack:n,onNext:r}=e,o=bt(),i=at(),a=o.state?.fromSettingsIcon,[l,c]=R.useState(()=>{if(o.state?.putjson)return console.log("========================================"),console.log("[FTP Sync – Step 2] Loaded JSON object from navigation state:"),console.log("========================================"),console.log(JSON.stringify(o.state.putjson,null,2)),console.log("========================================"),o.state.putjson;const P=window.localStorage.getItem("ftpSyncPutjson");if(P){const k=JSON.parse(P);return console.log("========================================"),console.log("[FTP Sync – Step 2] Loaded JSON object from localStorage:"),console.log("========================================"),console.log(JSON.stringify(k,null,2)),console.log("========================================"),k}return t.length>0?{mappings:t}:null}),[p,u]=R.useState({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0}),[h,b]=R.useState([]),[y,g]=R.useState({});R.useEffect(()=>{let P;return setTimeout(()=>{u({activeStep:1,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!0}),P=setTimeout(()=>{u({activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0})},400)},0),()=>{P&&clearTimeout(P)}},[]);const f=Me(Xk),m=Me(Qk),v=Me(Zk),w=Me(eN),S=Me(tN),x=Me(nN),E=R.useRef(v);R.useEffect(()=>{v&&!E.current&&queueMicrotask(()=>g({})),E.current=v},[v]);const O=R.useRef(!1);R.useLayoutEffect(()=>{S==null||!S?.mappings||S.mappings.length===0?O.current||(O.current=!0,queueMicrotask(()=>g({}))):O.current=!1},[S]),R.useEffect(()=>{console.log("=== FTPSync_2: Redux State ==="),console.log("ftpColumns:",f),console.log("preview:",m),console.log("existingMapping:",S),console.log("entityType:",x),console.log("loading:",v),console.log("error:",w),console.log("================================")},[f,m,S,x,v,w]);const N=Mt();Me(P=>P.productSettings.mappingColumns||[]),Me(P=>P.productSettings.mappingColumnsLoading),R.useEffect(()=>{async function P(){try{let k=[];if(S?.mappings?.length>0){const B=S.mappings.map(z=>z.target_field).filter(z=>z&&typeof z=="string");k=[...new Set(B)],console.log("✅ Using target_fields from existing_mapping as primary Aira columns:",k)}try{const B=await N(fo(x));fo.fulfilled.match(B)&&Array.isArray(B.payload)&&(B.payload.filter(M=>M&&typeof M=="string").forEach(M=>{k.includes(M)||k.push(M)}),console.log("✅ Merged API columns with existing_mapping:",k))}catch(B){console.warn("⚠️ API fetch failed, using only existing_mapping target_fields:",B)}if(t&&t.length>0){const B=t.map(z=>z.target_field).filter(z=>z&&typeof z=="string"&&!k.includes(z));B.length>0&&(k=[...k,...B],console.log("✅ Added mapping prop fields:",B))}k=k.filter(B=>B&&typeof B=="string"),console.log("✅ Final Aira columns (no undefined):",k),b(k)}catch(k){if(console.error("Error fetching Aira columns:",k),S?.mappings?.length>0){const B=S.mappings.map(M=>M.target_field).filter(M=>M&&typeof M=="string"),z=[...new Set(B)];console.log("✅ Fallback: Using target_fields from existing_mapping:",z),b(z)}else b([])}}(x||S?.mappings?.length>0||t&&t.length>0)&&P()},[x,S,t,N]);const D=R.useMemo(()=>{if(S?.mappings&&S.mappings.length>0){const P=S.mappings.map(k=>k.source_field).filter(k=>k);if(P.length>0)return console.log("✅ Using source_field from existing_mapping as FTP columns:",P),P}return f&&f.length>0?(console.log("✅ Using ftp_columns from API response:",f),f):(console.warn("⚠️ No FTP columns available from existing_mapping or API"),[])},[S,f]),A=R.useMemo(()=>{const P=m.filter(k=>Object.keys(k).length>0);return console.log("✅ Parsed preview data:",P.length,"rows"),P},[m]),L=R.useMemo(()=>{if(S?.mappings&&S.mappings.length>0){const P={};return S.mappings.forEach(k=>{k.source_field&&k.target_field&&(P[k.source_field]=k.target_field)}),console.log("=== FTPSync_2: Initial mappings from existing_mapping ===",P),P}return{}},[S]),_=S?.mappings?.length>0,T=_?{...L,...y}:{...y},$=Nt();ia($.breakpoints.up("lg"));const I=Me(P=>P.productSettings.syncData),j=()=>{console.log("========================================"),console.log("[FTP Sync – Step 2] handleNext called - Current state:"),console.log("========================================"),console.log("parsedFtpColumns (source fields):",D),console.log("selectedAira (target fields):",T),console.log("userMappings:",y),console.log("initialMappings:",L),console.log("hasExistingMappingFromApi:",_),console.log("========================================");const P=D.map(M=>({source_field:M||"",target_field:T[M]||""})).filter(M=>M.source_field&&M.target_field);if(console.log("========================================"),console.log("[FTP Sync – Step 2] Mappings built:"),console.log("========================================"),console.log("Total mappings before filter:",D.length),console.log("Total mappings after filter:",P.length),P.length===0){console.warn("⚠️ WARNING: No mappings found! Please select at least one mapping."),console.log("Available FTP columns:",D),console.log("Selected Aira columns:",T),alert("Please select at least one column mapping before proceeding.");return}if(console.log("========================================"),a&&l){const M={...l,tenantId:l.tenantId||l.companyId,type:l.type||I.type||"sftp",entity_type:l.entity_type||I.entity_type||"products",mappings:P};console.log("========================================"),console.log("[FTP Sync – Step 2] JSON object updated (settings flow, with mappings):"),console.log("========================================"),console.log("Mappings stored:"),P.forEach((V,G)=>{console.log(` ${G+1}. source_field: "${V.source_field}" → target_field: "${V.target_field}"`)}),console.log("Full JSON object:"),console.log(JSON.stringify({tenantId:M.tenantId,type:M.type,entity_type:M.entity_type,configs:M.configs,mappings:M.mappings},null,2)),console.log("========================================"),c(M),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),r?r({fromSettingsIcon:!0,putjson:M}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:M});return}const k=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),B=I.companyId||k.companyId||k.tenantId||"",z={...k,companyId:B,tenantId:B,type:I.type||k.type||"sftp",integration_type:I.integration_type||k.integration_type||"",entity_type:k.entity_type||I.entity_type||"products",configs:I.configs||k.configs||{},ftp_columns:D,preview:A,mappings:P};console.log("========================================"),console.log("[FTP Sync – Step 2] JSON object updated (with mappings):"),console.log("========================================"),console.log("Mappings stored:"),P.forEach((M,V)=>{console.log(` ${V+1}. source_field: "${M.source_field}" → target_field: "${M.target_field}"`)}),console.log("Full JSON object:"),console.log(JSON.stringify({tenantId:z.tenantId,type:z.type,entity_type:z.entity_type,configs:z.configs,mappings:z.mappings},null,2)),console.log("========================================"),N(Gs(z)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),r?r({putjson:z}):e.onNext&&e.onNext({putjson:z})};return d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(zn,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>i("/products/settings/ftp-sync",{state:{step:1}}))}),d.jsxs(F,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(la,{steps:Jk,activeStep:p.activeStep,showCheckDataBlueTick:p.showCheckDataBlueTick,progressToCheckData:p.progressToCheckData,showSetupFtpBlueTick:p.showSetupFtpBlueTick}),d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:d.jsxs(an,{elevation:0,sx:{mt:4,p:0,borderRadius:4,width:"100%",maxWidth:900},children:[d.jsxs(F,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(F,{children:[d.jsx(H,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),d.jsx(H,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),d.jsxs(F,{children:[d.jsx(ze,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>i("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),d.jsx(ze,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:j,children:"Next"})]})]}),d.jsx(Lg,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:v?d.jsx(F,{sx:{p:3,textAlign:"center"},children:"Loading..."}):w?d.jsx(F,{sx:{p:3,color:"red",textAlign:"center"},children:w}):D.length===0?d.jsx(F,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):d.jsxs(Fg,{size:"small",children:[d.jsxs(zg,{children:[d.jsxs(is,{children:[d.jsx(Bn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),D.map((P,k)=>d.jsx(Bn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:P},P+k))]}),d.jsxs(is,{children:[d.jsx(Bn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),D.map((P,k)=>d.jsx(Bn,{sx:{background:"#fafafa",borderBottom:"none"},children:d.jsxs(Rr,{value:T[P]||"",onChange:B=>g(z=>({...z,[P]:B.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[d.jsx(Yt,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:d.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),h.map(B=>d.jsx(Yt,{value:B,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:B},B))]})},k))]})]}),d.jsx(Rg,{children:A.length>0?A.map((P,k)=>d.jsxs(is,{children:[d.jsx(Bn,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:k===0?"Data preview":""}),D.map((B,z)=>d.jsx(Bn,{sx:{background:"#fff",borderBottom:"none"},children:P[B]||""},z))]},k)):d.jsx(is,{children:d.jsx(Bn,{colSpan:D.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},oN=["Upload File","Check data","Start Sync"],sN=e=>e.dashboard?.companyId||"",iN=e=>{const{syncFrequency:t="",syncTime:n=""}=e,r=bt(),o=at(),i=Me(sN),a=r.state?.fromSettingsIcon;R.useEffect(()=>{console.log("=== FTPSync_3: Props received ==="),console.log("syncFrequencyProp:",t),console.log("syncTimeProp:",n),console.log("==================================")},[t,n]);const[l,c]=R.useState(()=>{if(r.state?.putjson){const k=JSON.parse(JSON.stringify(r.state.putjson));return k.mappings&&(k.originalMappings=JSON.parse(JSON.stringify(k.mappings))),k.configs?.sync_frequency&&!k.originalSyncFrequency&&(k.originalSyncFrequency=k.configs.sync_frequency),k.configs?.sync_time&&!k.originalSyncTime&&(k.originalSyncTime=k.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),console.log("========================================"),console.log("[FTP Sync – Step 3] Loaded JSON object from navigation state:"),console.log("========================================"),console.log(JSON.stringify(k,null,2)),console.log("========================================"),k}const P=window.localStorage.getItem("ftpSyncPutjson");if(P){const k=JSON.parse(P);return k.mappings&&!k.originalMappings&&(k.originalMappings=JSON.parse(JSON.stringify(k.mappings))),k.configs?.sync_frequency&&!k.originalSyncFrequency&&(k.originalSyncFrequency=k.configs.sync_frequency),k.configs?.sync_time&&!k.originalSyncTime&&(k.originalSyncTime=k.configs.sync_time),console.log("========================================"),console.log("[FTP Sync – Step 3] Loaded JSON object from localStorage:"),console.log("========================================"),console.log(JSON.stringify(k,null,2)),console.log("========================================"),k}return null});R.useEffect(()=>{l&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(l))},[l]);const[p,u]=R.useState(null),[h,b]=R.useState(null);R.useEffect(()=>{const P=r.state?.fromProductSetting;if(i&&!P)pp(i).then(k=>{const B=k&&k.data&&k.data[0];if(u(B),B){const z=B.id||B.channelId||null;b(z)}});else if(P&&r.state?.integrationData){const k=r.state.integrationData;u(k);const B=k.id||k.channelId||null;B&&b(B)}},[i,r.state]);const y=!!a||!!p,g=P=>{if(!P)return"";const k=P.charAt(0).toUpperCase()+P.slice(1).toLowerCase();return k==="Daily"||k==="Day"?"Daily":k==="Weekly"||k==="Week"?"Weekly":k==="Monthly"||k==="Month"?"Monthly":k},[f,m]=R.useState(()=>{if(t){const k=g(t);return console.log("✅ Initial syncFrequency from prop:",t,"→",k),k}const P=l?.configs?.sync_frequency?g(l.configs.sync_frequency):"";return P?(console.log("✅ Initial syncFrequency from putjson:",l?.configs?.sync_frequency,"→",P),P):(console.log("⚠️ Initial syncFrequency: using default Daily"),"Daily")}),[v,w]=R.useState(n||l&&l.configs?.sync_time||"");R.useEffect(()=>{async function P(){if(i)try{const k=r.state?.fromProductSetting;let B=null;k&&r.state?.integrationData&&(B=r.state.integrationData,console.log("[FTP SYNC] Using integrationData from location.state (from ProductSetting)"));const z=B||await pp(i),M=B||z&&z.data&&z.data[0];if(M){const V=M.id||M.channelId||null;V&&b(V);const G=l||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),X={...M,companyId:M.companyId||i,entity_type:M.entity_type||G?.entity_type||"product",mappings:M.mappings||G?.mappings||[]},ee=M.configs?.sync_frequency||"",K=M.configs?.sync_time||"",Q=g(ee);if(c(X),k){if(console.log("=== FTPSync_3: From ProductSetting - Using props as source ==="),console.log("syncFrequencyProp:",t),console.log("syncTimeProp:",n),t){const Z=g(t);console.log("✅ Setting syncFrequency from prop:",t,"→",Z),m(Z)}n&&(console.log("✅ Setting syncTime from prop:",n),w(n)),c(Z=>({...Z,...X,originalSyncFrequency:t?g(t):Z.originalSyncFrequency||Q,originalSyncTime:n||Z.originalSyncTime||K,configs:{...X.configs,sync_frequency:t?g(t).toLowerCase():X.configs?.sync_frequency,sync_time:n||X.configs?.sync_time}}))}else{console.log("=== FTPSync_3: Prefilling syncFrequency ==="),console.log("syncFrequencyProp:",t),console.log("apiSyncFrequencyRaw:",ee),console.log("apiSyncFrequency (normalized):",Q),console.log("currentPutjson?.configs?.sync_frequency:",G?.configs?.sync_frequency);const Z=t?g(t):"";let oe="";if(Z)console.log("✅ Using syncFrequencyProp (normalized):",t,"→",Z),oe=Z,m(Z);else if(Q)console.log("✅ Setting syncFrequency from API:",ee,"→",Q),oe=Q,m(Q);else if(G?.configs?.sync_frequency){const se=g(G.configs.sync_frequency);console.log("✅ Using currentPutjson sync_frequency (normalized):",G.configs.sync_frequency,"→",se),oe=se,m(se)}else console.log("⚠️ No syncFrequency found, using default: Daily"),oe="Daily",m("Daily");console.log("Final syncFrequency state:",oe),console.log("==========================================="),n?w(n):K?w(K):G?.configs?.sync_time?w(G.configs.sync_time):w(""),c(X),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(X))}}}catch(k){console.error("Error fetching integration data:",k);const B=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&B?.configs?.sync_frequency?m(g(B.configs.sync_frequency)):t&&m(g(t)),!n&&B?.configs?.sync_time?w(B.configs.sync_time):n&&w(n)}}P()},[i]),R.useEffect(()=>{if(t){const P=g(t);console.log("✅ syncFrequencyProp changed, updating state:",t,"→",P),m(P),l&&l.configs?.sync_frequency!==P&&c(k=>{const B={...k,configs:{...k.configs,sync_frequency:P}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(B)),console.log("✅ Updated putjson.configs.sync_frequency:",P),B})}},[t]),R.useEffect(()=>{n&&(console.log("✅ syncTimeProp changed, updating state:",n),w(n),l&&l.configs?.sync_time!==n&&c(P=>{const k={...P,configs:{...P.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),console.log("✅ Updated putjson.configs.sync_time:",n),k}))},[n]),R.useEffect(()=>{if(l&&y&&(f||v)){const P=l.configs?.sync_frequency,k=l.configs?.sync_time;(P!==f||k!==v)&&c(B=>{const z={...B,configs:{...B.configs,sync_frequency:f||B.configs?.sync_frequency,sync_time:v||B.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),console.log("========================================"),console.log("[FTP Sync – Step 3] Updated JSON object with sync_frequency and sync_time:"),console.log("========================================"),console.log(` sync_frequency: "${z.configs.sync_frequency}"`),console.log(` sync_time: "${z.configs.sync_time}"`),console.log("Full JSON object:"),console.log(JSON.stringify(z,null,2)),console.log("========================================"),z})}},[f,v,y]);const S=Mt(),x=Me(P=>P.productSettings.syncData),E=P=>{const k=P.target.value;m(k),l&&c(B=>{const z={...B,configs:{...B.configs,sync_frequency:k}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),console.log("========================================"),console.log("[FTP Sync – Step 3] User changed sync_frequency:"),console.log("========================================"),console.log(` Old value: "${B.configs?.sync_frequency||""}"`),console.log(` New value: "${k}"`),console.log("========================================"),z}),y||S(Gs({...x,configs:{...x&&x.configs||{},sync_frequency:k,sync_time:v}}))},O=P=>{const k=P.target.value;w(k),l&&c(B=>{const z={...B,configs:{...B.configs,sync_time:k}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),console.log("========================================"),console.log("[FTP Sync – Step 3] User changed sync_time:"),console.log("========================================"),console.log(` Old value: "${B.configs?.sync_time||""}"`),console.log(` New value: "${k}"`),console.log("========================================"),z}),y||S(Gs({...x,configs:{...x&&x.configs||{},sync_frequency:f,sync_time:k}}))};function N(P){try{const k=new URL(P);return{type:k.protocol.replace(":",""),host:k.hostname,port:k.port,path:k.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[D,A]=R.useState(!1),[L,_]=R.useState(""),T=async()=>{const P=r.state?.fromProductSetting;if(y){if(!l){_("Update failed: missing data."),A(!0);return}let te={...l};l.originalMappings||(te.originalMappings=l.mappings?JSON.parse(JSON.stringify(l.mappings)):[],c(te)),!l.originalSyncFrequency&&l.configs?.sync_frequency&&(te.originalSyncFrequency=l.configs.sync_frequency||"",c(te)),!l.originalSyncTime&&l.configs?.sync_time&&(te.originalSyncTime=l.configs.sync_time||"",c(te));const q=JSON.parse(JSON.stringify(l.mappings||[])),le=JSON.parse(JSON.stringify(l.originalMappings||[]));let re,he;P?(re=t?g(t):"",he=n||"",console.log("[FTP SYNC] 🔵 Comparing against props (from ProductSetting):",{syncFrequencyProp:t,syncTimeProp:n,originalSyncFrequency:re,originalSyncTime:he,currentSyncFrequency:f,currentSyncTime:v})):(re=l.originalSyncFrequency||l.configs?.sync_frequency||"",he=l.originalSyncTime||l.configs?.sync_time||"",re=g(re),console.log("[FTP SYNC] 🔵 Comparing against putjson (not from ProductSetting):",{originalSyncFrequency:re,originalSyncTime:he,currentSyncFrequency:f,currentSyncTime:v}));const qe=P?!1:JSON.stringify(q)!==JSON.stringify(le),ke=f!==re,Ce=v!==he;console.log("=== API Selection Logic Debug ==="),console.log("fromProductSetting:",P),console.log("syncFrequencyProp:",t),console.log("syncTimeProp:",n),console.log("Current syncFrequency:",f),console.log("Original syncFrequency:",re),console.log("Current syncTime:",v),console.log("Original syncTime:",he),console.log("freqChanged:",ke),console.log("timeChanged:",Ce),console.log("mappingsChanged:",qe),console.log("Current mappings:",q),console.log("Original mappings:",le),console.log("================================");const Je=(ke||Ce)&&!qe,We=qe;if(console.log("[FTP SYNC] API Decision:",{shouldUsePatch:Je,shouldUsePut:We,freqChanged:ke,timeChanged:Ce,mappingsChanged:qe}),Je){console.log("[FTP SYNC] ✅ Using PATCH API - Only sync frequency/time changed (NO mapping changes)");const ye=h||l?.id||l?.channelId||r.state?.integrationData?.id||r.state?.integrationData?.channelId;if(!ye){console.error("[FTP SYNC] ❌ Error: channelId is required for PATCH API"),_("Channel ID is missing. Please try again."),A(!0);return}const ae={configs:{}};ke&&(ae.configs.sync_frequency=f.toLowerCase()),Ce&&(ae.configs.sync_time=v),console.log("[FTP SYNC] PATCH API Call:",{endpoint:`PATCH /integrations/${ye}`,payload:JSON.stringify(ae,null,2)});try{const Re=await S(ho({channelId:ye,data:ae}));if(Re.error||ho.rejected.match(Re)){const Be=Re.payload||Re.error?.message||"Update failed. Please try again.";console.error("[FTP SYNC] ❌ PATCH API call failed:",{error:Re.error,payload:Re.payload}),_(Be),A(!0);return}let me="";ke&&!Ce?me="SyncFrequency Updated":!ke&&Ce?me="SyncTime Updated":ke&&Ce&&(me="SyncTime and SyncFrequency Updated"),console.log("[FTP SYNC] ✅ PATCH API call successful:",Re.payload),_(me),A(!0),c(Be=>{const et={...Be,configs:{...Be.configs,sync_frequency:f.toLowerCase(),sync_time:v},originalSyncFrequency:f,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(et)),et});const Te=r.state?.fromProductSetting;Te&&i&&(console.log("[FTP SYNC] Refreshing integration data before navigating back..."),await S(Qt(i))),setTimeout(()=>{Te?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):o("/product-sync-setting",{state:{fromSettingsIcon:!0}})},1500);return}catch(Re){console.error("[FTP SYNC] ❌ PATCH API error:",Re);const me=Re?.message||Re?.response?.data?.message||"Update failed. Please try again.";_(me),A(!0);return}}if(We){console.log("[FTP SYNC] ✅ Using PUT API - Mappings changed (with or without freq/time changes)");const ye={...l,configs:{...l.configs,sync_frequency:f.toLowerCase(),sync_time:v}};c(ye),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ye));const ae=ye.tenantId||ye.companyId;if(!ye.configs){console.error("[FTP SYNC] Error: configs object is missing from putjson"),_("Configuration error. Please try again."),A(!0);return}const Re=ye.entity_type||l?.entity_type;if(!Re){console.error("[FTP SYNC] Error: entity_type is missing from putjson"),_("Entity type is missing. Please try again."),A(!0);return}const me={tenantId:ae,type:ye.type,entity_type:Re,configs:{host:ye.configs.host||"",port:ye.configs.port?Number(ye.configs.port):0,username:ye.configs.username||"",password:ye.configs.password||"",path:ye.configs.path||"",sync_frequency:f.toLowerCase()||"",sync_time:v||""},mappings:(ye.mappings||[]).map(Te=>({source_field:Te.source_field,target_field:Te.target_field}))};if(!me.tenantId){console.error("[FTP SYNC] Error: tenantId is required"),_("Tenant ID is missing. Please try again."),A(!0);return}if(!me.type){console.error("[FTP SYNC] Error: type is required"),_("Sync type is missing. Please try again."),A(!0);return}if(!me.entity_type){console.error("[FTP SYNC] Error: entity_type is required"),_("Entity type is missing. Please try again."),A(!0);return}console.log("========================================"),console.log("[FTP Sync – Step 3] Final JSON object for PUT /ftp/sync/update-details:"),console.log("========================================"),console.log("Configs:"),console.log(` host: "${me.configs.host}"`),console.log(` port: ${me.configs.port}`),console.log(` username: "${me.configs.username}"`),console.log(` password: "${me.configs.password?"***":""}"`),console.log(` path: "${me.configs.path}"`),console.log(` sync_frequency: "${me.configs.sync_frequency}"`),console.log(` sync_time: "${me.configs.sync_time}"`),console.log("Mappings:"),me.mappings.forEach((Te,Be)=>{console.log(` ${Be+1}. source_field: "${Te.source_field}" → target_field: "${Te.target_field}"`)}),console.log("Full JSON object:"),console.log(JSON.stringify(me,null,2)),console.log("========================================");try{console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API...");const Te=await S(br(me));if(br.rejected.match(Te)){const Be=Te.payload||Te.error?.message||"Update failed. Please try again.";console.error("[FTP SYNC] PUT API call failed:",{error:Te.error,payload:Te.payload,type:Te.type}),_(Be),A(!0);return}br.fulfilled.match(Te)?(console.log("[FTP SYNC] ✅ PUT API call successful:",Te.payload),c(Be=>{const et={...Be,originalSyncFrequency:f,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(Be.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(et)),et}),_("Sync Update Successfully"),A(!0),setTimeout(()=>{o("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(console.warn("[FTP SYNC] Unexpected result state:",Te),_("Update failed. Please try again."),A(!0))}catch(Te){console.error("[FTP SYNC] PUT API error:",Te);const Be=Te?.message||Te?.response?.data?.message||"Update failed. Please try again.";_(Be),A(!0)}}else _("No changes detected."),A(!0);return}const k=x.configs||{},B=N(x.serverAddress||""),z=k.host||B.host,M=k.port!=null?Number(k.port):parseInt(B.port,10),V=(k.path||B.path||"").replace(/^\//,""),G=x.type||B.type||"sftp",X=x.username||k.username||"",ee=x.password||k.password||"",K=f||k.sync_frequency||"",Q=typeof K=="string"?K.toLowerCase():K;let Z=v||k.sync_time||"";if(typeof Z=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(Z.trim())){const[te,q]=Z.trim().split(/\s+/),[le,re]=te.split(":").map(Number),he=q.toUpperCase()==="PM"&&le!==12?le+12:q.toUpperCase()==="AM"&&le===12?0:le;Z=`${String(he).padStart(2,"0")}:${String(re).padStart(2,"0")}`}else typeof Z=="string"&&(Z=Z.trim());const oe=(x.mappings||[]).filter(te=>te.source_field&&te.target_field).map(te=>({source_field:te.source_field,target_field:te.target_field}));if(!i){_("Company ID is required. Please ensure the app is properly configured."),A(!0);return}if(!z||!M||!X||!ee||oe.length===0){_("Please fill all required fields and mappings before saving."),A(!0);return}const se=x.entity_type||"products",J={tenantId:i,type:G,entity_type:se,configs:{host:z,port:Number(M),username:X,password:ee,path:V,sync_frequency:Q,sync_time:Z},mappings:oe};console.log("========================================"),console.log("[FTP Sync – Step 3] Final JSON object for /ftp/sync/save:"),console.log("========================================"),console.log("Configs:"),console.log(` host: "${J.configs.host}"`),console.log(` port: ${J.configs.port}`),console.log(` username: "${J.configs.username}"`),console.log(` password: "${J.configs.password?"***":""}"`),console.log(` path: "${J.configs.path}"`),console.log(` sync_frequency: "${J.configs.sync_frequency}"`),console.log(` sync_time: "${J.configs.sync_time}"`),console.log("Mappings:"),J.mappings.forEach((te,q)=>{console.log(` ${q+1}. source_field: "${te.source_field}" → target_field: "${te.target_field}"`)}),console.log("Full JSON object:"),console.log(JSON.stringify(J,null,2)),console.log("========================================");try{const te=await S(uo(J));uo.fulfilled.match(te)?(_("Save and Start Sync Updated Successfully"),A(!0),e.onNext&&e.onNext()):(_(te?.payload||"Save failed. Please try again."),A(!0))}catch{_("Save failed. Please try again."),A(!0)}},[$,I]=R.useState({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1});R.useEffect(()=>{let P,k,B,z;return setTimeout(()=>{I({activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1}),P=setTimeout(()=>{I(M=>({...M,progressToCheckData:!0})),k=setTimeout(()=>{I(M=>({...M,showSetupFtpBlueTick:!0})),B=setTimeout(()=>{I(M=>({...M,showCheckDataBlueTick:!0,activeStep:2})),z=setTimeout(()=>{I(M=>({...M,showStartSyncBlueTick:!0}))},700)},700)},700)},700)},0),()=>{P&&clearTimeout(P),k&&clearTimeout(k),B&&clearTimeout(B),z&&clearTimeout(z)}},[]);const j=Nt();return ia(j.breakpoints.up("lg")),d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(zn,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:()=>{e.onBack?e.onBack():r.state?.fromProductSetting?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):o("/products/settings/ftp-sync",{state:{step:2}})}}),d.jsxs(F,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(la,{steps:oN,activeStep:$.activeStep,showCheckDataBlueTick:$.showCheckDataBlueTick,progressToCheckData:$.progressToCheckData,showSetupFtpBlueTick:$.showSetupFtpBlueTick,showStartSyncBlueTick:$.showStartSyncBlueTick}),d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:d.jsxs(an,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[d.jsxs(F,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[d.jsxs(F,{sx:{flex:1},children:[d.jsx(H,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),d.jsxs(Rr,{size:"small",value:f,onChange:E,sx:{minWidth:100,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},children:[d.jsx(Yt,{value:"Daily",children:"Daily"}),d.jsx(Yt,{value:"Weekly",children:"Weekly"}),d.jsx(Yt,{value:"Monthly",children:"Monthly"})]})]}),d.jsxs(F,{sx:{flex:1},children:[d.jsx(H,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),d.jsx(jc,{type:"time",size:"small",value:v,onChange:O,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),d.jsxs(F,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[y?null:d.jsx(ze,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:40,fontWeight:500,textTransform:"none",fontSize:11,height:28,bgcolor:"#fff"},onClick:()=>{e.onBack?e.onBack():r.state?.fromProductSetting?o("/product-setting",{state:{tenantIntegrationMatched:!0}}):o("/products/settings/ftp-sync",{state:{step:2}})},children:"Back"}),d.jsx(ze,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:80,fontWeight:500,textTransform:"none",fontSize:11,height:28,boxShadow:"none",flex:y?1:"initial"},onClick:T,children:y&&(r.state?.fromSyncSetting||r.state?.editMode)?"Save":y?"Update Sync":"Save and Start Sync"})]}),d.jsx(rs,{open:D,autoHideDuration:4e3,onClose:()=>A(!1),message:L,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},aN=["Upload File","Check data","Start Sync"],lN=e=>{const{onBack:t}=e,n=Mt(),o=!!Me(u=>u.productSettings.saveResult),[i,a]=R.useState(o),l=at();R.useEffect(()=>{o&&(a(!0),n(ix()))},[o,n]);const c={showCheckDataBlueTick:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0},p=Nt();return ia(p.breakpoints.up("lg")),d.jsxs(d.Fragment,{children:[d.jsx(rs,{open:i,autoHideDuration:4e3,onClose:()=>a(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(zn,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>l("/products/settings/ftp-sync",{state:{step:3}}))}),d.jsxs(F,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(la,{steps:aN,showCheckDataBlueTick:c.showCheckDataBlueTick,showSetupFtpBlueTick:c.showSetupFtpBlueTick,showStartSyncBlueTick:c.showStartSyncBlueTick,activeStep:2,progressToCheckData:!0,instantComplete:!0}),d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:d.jsxs(F,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[d.jsx(F,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:d.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),d.jsx(H,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),d.jsx(ze,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>l("/"),children:"Back to all products"})]})})]})]}),d.jsx(rs,{open:i,autoHideDuration:4e3,onClose:()=>a(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function cN(e){const t=bt(),n=at(),r=t.state?.fromProductSetting?3:0,[o,i]=R.useState(r),a=Mt(),{companyId:l,integrationData:c}=Me(v=>v.dashboard),p=t.state?.fromSyncStep;R.useEffect(()=>{const v=t.state?.fromProductSetting;l&&!v&&a(Qt(l))},[l,a,t.state]);const u=()=>{i(v=>Math.min(v+1,4))},h=()=>{if(o===0&&p!==void 0){n("/product-setting",{state:{fromSyncStep:p,tenantIntegrationMatched:p===3}});return}if(t.state?.fromProductSetting&&o===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}i(v=>Math.max(v-1,0))},b=c?.configs||{},y=c?.mappings||c?.dataMappings||[],f=(v=>{if(!v)return"";const w=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();return w==="Daily"||w==="Day"?"Daily":w==="Weekly"||w==="Week"?"Weekly":w==="Monthly"||w==="Month"?"Monthly":w})(c?.configs?.sync_frequency||""),m=c?.configs?.sync_time||"";switch(o){case 0:return d.jsx(Ik,{onNext:u,onBack:h,...e});case 1:return d.jsx(Gk,{onNext:u,onBack:h,ftpDetails:b,...e});case 2:return d.jsx(rN,{onNext:u,onBack:h,mapping:y,...e});case 3:return d.jsx(iN,{onNext:u,onBack:h,syncFrequency:f,syncTime:m,...e});case 4:return d.jsx(lN,{onBack:h,...e});default:return null}}function uN(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:o=10,statusById:i={},getStatus:a,onBack:l,onPageChange:c,onRowsPerPageChange:p,onEdit:u,onDelete:h}=e,b=t,y=Math.max(0,Number(n)||0),g=Math.max(0,Math.ceil(y/Math.max(1,o))-1);return d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[d.jsx(zn,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:l}),d.jsxs(F,{sx:{maxWidth:900,mx:"auto",pt:4,pb:4},children:[d.jsxs(H,{sx:{fontWeight:700,fontSize:20,color:"#111",mb:3},children:["All Catalogs"," ",d.jsx(F,{component:"span",sx:{fontWeight:400,color:"#888",fontSize:18,ml:.5},children:n})]}),b.map(f=>d.jsxs(an,{elevation:0,sx:{p:2.5,mb:2,borderRadius:2,bgcolor:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"flex-start",gap:2,flex:1,minWidth:0},children:[d.jsx(Wk,{sx:{color:"#666",fontSize:24,mt:.25}}),d.jsxs(F,{sx:{minWidth:0},children:[d.jsx(H,{sx:{fontWeight:700,fontSize:16,color:"#111"},children:f.name}),d.jsx(H,{sx:{color:"#888",fontSize:14,mt:.25},children:f.slug}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:2,mt:1,flexWrap:"wrap"},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(Rk,{sx:{fontSize:18,color:"#888"}}),d.jsxs(H,{sx:{fontSize:14,color:"#555"},children:[f.productsCount," Products"]})]}),d.jsx(F,{sx:{display:"flex",alignItems:"center",gap:.75}})]}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:2,mt:.5,flexWrap:"wrap"},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(zk,{sx:{fontSize:18,color:"#888"}}),d.jsxs(H,{sx:{fontSize:14,color:"#555"},children:["By ",f.createdBy]})]}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(_k,{sx:{fontSize:18,color:"#888"}}),d.jsx(H,{sx:{fontSize:14,color:"#555"},children:f.date})]})]})]})]}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:1.5,flexShrink:0,ml:2},children:[d.jsx(F,{sx:{minWidth:100,height:36,display:"flex",alignItems:"center",justifyContent:"center",px:.025,bgcolor:"#e8f5e9",color:"#2e7d32",fontWeight:600,fontSize:18,borderRadius:1.5},children:typeof a=="function"?a(f):i[f.id]??f.status??"Active"}),d.jsx(ln,{size:"small",sx:{color:"#666"},"aria-label":"Edit catalog",onClick:()=>typeof u=="function"?u(f):null,children:d.jsx(Dk,{sx:{fontSize:22}})}),d.jsx(ln,{size:"small",sx:{color:"#666"},"aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(f):null,children:d.jsx($k,{sx:{fontSize:22}})})]})]},f.id)),d.jsxs(F,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:2,mt:4,flexWrap:"wrap"},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[d.jsx(H,{sx:{fontSize:14,color:"#555"},children:"Results per page"}),d.jsxs(Rr,{size:"small",value:o,onChange:f=>typeof p=="function"?p(f):null,IconComponent:Lk,sx:{minWidth:56,height:36,fontSize:14,"& .MuiSelect-select":{py:1}},children:[d.jsx(Yt,{value:5,children:"5"}),d.jsx(Yt,{value:10,children:"10"}),d.jsx(Yt,{value:25,children:"25"})]})]}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(ln,{size:"small",onClick:()=>typeof c=="function"?c(0):null,disabled:r===0,"aria-label":"First page",children:d.jsx(jk,{})}),d.jsx(ln,{size:"small",onClick:()=>typeof c=="function"?c(Math.max(0,r-1)):null,disabled:r===0,"aria-label":"Previous page",children:d.jsx(Ak,{})}),d.jsx(H,{sx:{fontSize:14,color:"#555",px:1.5},children:y===0?"0-0 of 0":`${r*o+1}-${Math.min((r+1)*o,y)} of ${y}`}),d.jsx(ln,{size:"small",onClick:()=>typeof c=="function"?c(r+1):null,disabled:r>=g,"aria-label":"Next page",children:d.jsx(Mk,{})}),d.jsx(ln,{size:"small",onClick:()=>typeof c=="function"?c(g):null,disabled:r>=g,"aria-label":"Last page",children:d.jsx(Bk,{})})]})]})]})]})}function dN(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function pN(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:dN(e.createdAt??e.date),status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function fN(e){const t=at(),n=Mt(),{sharedCatalogues:r=[],sharedCataloguesTotal:o=0,sharedCataloguesLoading:i=!1,sharedCataloguesError:a=null}=Me(E=>E.productSettings??{}),[l,c]=R.useState(0),[p,u]=R.useState(10),[h,b]=R.useState({});R.useEffect(()=>{n(Ks({page:l+1,limit:p}))},[n,l,p]);const y=R.useMemo(()=>Array.isArray(r)?r.map(pN).filter(Boolean):[],[r]),g=o,f=E=>c(E),m=E=>{const O=Number(E.target.value);u(O),c(0)},v=(E,O)=>{b(N=>({...N,[E]:O}))},w=E=>h[E.id]??E.status,S=()=>t(-1),x=d.jsx(zn,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:S});return i&&y.length===0?d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[x,d.jsx(F,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:d.jsx(Fi,{})})]}):a&&y.length===0?d.jsxs(F,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[x,d.jsx(F,{sx:{textAlign:"center",py:4},children:d.jsx(H,{color:"error",children:a})})]}):d.jsx(uN,{catalogs:y,totalCount:g,page:l,rowsPerPage:p,statusById:h,getStatus:w,onBack:S,onPageChange:f,onRowsPerPageChange:m,onStatusChange:v,...e})}function hN({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:o}){const i=y=>t.some(g=>g.id===y.id),[a,l]=R.useState(null),[c,p]=R.useState([]),u=(y,g)=>{l(y.currentTarget),p(g)},h=()=>{l(null),p([])},b=!!a;return d.jsxs(_t,{sx:{...e.categoryTable},children:[d.jsx(F,{sx:{bgcolor:"#808080",color:"#fff",fontWeight:600,fontSize:19,borderRadius:3,px:3,py:1.7,mb:0,letterSpacing:.5},children:o}),d.jsxs(F,{sx:{display:"flex",alignItems:"center",background:"#f7f8fa",borderBottom:"1px solid #e0e0e0",px:2.5,py:1.2,fontWeight:700,fontSize:16,color:"#666",letterSpacing:.2},children:[d.jsxs(F,{sx:{flex:2,pl:1,display:"flex",alignItems:"center",gap:12},children:[d.jsx(Dr,{checked:n.length>0&&n.every(i),indeterminate:n.some(i)&&!n.every(i),onChange:()=>{n.every(i)?n.forEach(y=>r(y,o,!1)):n.forEach(y=>{i(y)||r(y,o,!0)})},sx:{p:0,mr:1,"& .MuiSvgIcon-root":{fontSize:22,borderRadius:"8px",border:"2px solid #1976d2",background:"#fff",color:"#1976d2",boxShadow:"none"},"&.Mui-checked .MuiSvgIcon-root":{background:"#e3f2fd",color:"#1976d2",border:"2px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{background:"#fff",color:"#1976d2",border:"2px solid #1976d2"}},icon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff"}}),checkedIcon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#e3f2fd",position:"relative"},children:d.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff",position:"relative"},children:d.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})})}),"Product"]}),d.jsx(F,{sx:{flex:1,textAlign:"center",ml:3},children:"Status"}),d.jsx(F,{sx:{flex:1,ml:6},children:"Price"}),d.jsx(F,{sx:{flex:1,ml:3},children:"Stock"}),d.jsx(F,{sx:{flex:2,ml:3},children:"Offer"})]}),n.map((y,g)=>{let f=[];y.offers&&Array.isArray(y.offers)?f=y.offers:y.offer&&typeof y.offer=="string"&&y.offer.includes(`
185
+ `)?f=y.offer.split(`
186
+ `):y.offer&&Array.isArray(y.offer)?f=y.offer:y.offer&&(f=[y.offer]);const m=f[0]||"",v=f.length>1?f.slice(1):[];return d.jsxs(F,{sx:{display:"flex",alignItems:"center",px:2,py:2.2,mb:2.2,background:"#fff",borderRadius:3,boxShadow:"0 2px 8px 0 rgba(60,60,60,0.06)",transition:"box-shadow 0.2s, border 0.2s"},children:[d.jsxs(F,{sx:{flex:2,display:"flex",alignItems:"center",gap:2},children:[d.jsx(Dr,{checked:i(y),onChange:()=>r(y,o),sx:{p:0,mr:2}}),y.productImage?d.jsx(Ho,{src:y.productImage,alt:y.productName,sx:{width:48,height:48,mr:2,borderRadius:2}}):d.jsx(Ho,{sx:{width:48,height:48,mr:2,borderRadius:2,bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:22},children:y.productName&&y.productName[0]}),d.jsxs(F,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[d.jsx(H,{sx:{fontWeight:700,fontSize:18,color:"#333",mb:.2,lineHeight:1.2},children:y.productName}),d.jsxs(H,{sx:{fontSize:15,color:"#555",mb:.2,lineHeight:1.3,display:"flex",alignItems:"center",gap:1},children:[y.productWeight,y.categoryName&&d.jsxs(d.Fragment,{children:[d.jsx("span",{style:{display:"inline-block",margin:"0 6px",fontSize:18,color:"#bbb",lineHeight:1,verticalAlign:"middle"},children:"•"}),y.categoryName]})]}),d.jsxs(H,{sx:{fontSize:15,color:"#bbb",lineHeight:1.1,fontWeight:500},children:["SKU: ",y.sku]})]})]}),d.jsx(F,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",ml:3},children:d.jsx(H,{sx:{bgcolor:y.status===!0?"#dcfce7":"#f9eaea",color:y.status===!0?"#222":"#d32f2f",borderRadius:"12px",px:3,py:1,fontWeight:600,fontSize:16,letterSpacing:.2,display:"inline-block",textAlign:"center",minWidth:90,boxShadow:"none",border:"none",transition:"all 0.2s"},children:y.status===!0?"Active":"No Stock"})}),d.jsxs(F,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:90,ml:6},children:[d.jsx(F,{sx:{display:"flex",alignItems:"center",gap:.5},children:d.jsxs(H,{sx:{fontWeight:700,fontSize:16,color:"#222"},children:["₹",y.price]})}),y.mrp&&d.jsxs(H,{sx:{fontSize:13,color:"#888",textDecoration:"line-through",mb:.2},children:["₹",y.mrp]}),y.discount&&d.jsx(H,{sx:{fontSize:14,color:"#22c55e",fontWeight:700},children:y.discount})]}),d.jsxs(F,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:80,ml:3},children:[d.jsxs(F,{sx:{display:"flex",alignItems:"center",gap:.5},children:[y.stock===0&&d.jsx($g,{title:"No stock",children:d.jsx(Fk,{sx:{color:"#d32f2f",fontSize:18,mr:.5}})}),d.jsxs(H,{sx:{fontWeight:700,fontSize:16,color:y.stock>0?y.stock<10?"#e65100":"#222":"#d32f2f"},children:[y.stock,y.quantity?d.jsxs("span",{style:{color:"#888",fontWeight:400},children:["/ ",y.quantity]}):null]})]}),d.jsxs(H,{sx:{fontSize:13,color:y.osa===0?"#d32f2f":"#888",fontWeight:500},children:[y.osa,"% on shelf"]})]}),d.jsxs(F,{sx:{flex:2,display:"flex",alignItems:"center",position:"relative",ml:3},children:[d.jsx(H,{sx:{fontSize:15,color:"#222",fontWeight:500,whiteSpace:"pre-line"},children:m}),v.length>0&&d.jsx(d.Fragment,{children:d.jsxs(H,{sx:{ml:1,color:"#888",fontSize:14,cursor:"pointer",textDecoration:"underline",fontWeight:500},onClick:w=>u(w,f),children:["+",v.length," more"]})})]})]},y.id||g)}),d.jsxs(Nc,{open:b,anchorEl:a,onClose:h,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[d.jsx(H,{sx:{fontWeight:700,mb:1},children:"Offers"}),c.map((y,g)=>d.jsxs(H,{sx:{fontSize:14,color:"#222",mb:.5},children:[g+1,". ",y]},g))]})]})}const gN=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategory:o})=>{const i=r||[];return i.length?d.jsxs(F,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",bgcolor:"#18181B",borderRadius:"16px",boxShadow:3,px:3,py:2,display:"flex",alignItems:"center",zIndex:1300,minWidth:400},children:[d.jsx(H,{sx:{color:"#fff",mr:1},children:d.jsxs("b",{children:[i.length," items selected"]})}),d.jsx(ze,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:e,children:"Promo Print"}),d.jsx(ze,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:t,children:"Create Catalog"}),d.jsx(ze,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:n,children:"OSA Request"})]}):null},yN=()=>{const e=Mt(),t=at(),[n]=fm(),r=n.get("categoryName"),i=fn().categoriesView,[a,l]=R.useState({category:"all",status:"all",search:"",store:[]}),[c,p]=R.useState([]),[u,h]=R.useState(null),{integrationData:b,companyId:y,loading:g}=Me(_=>_.dashboard);R.useEffect(()=>{y||e(lo())},[e,y]);const f=R.useMemo(()=>b&&typeof b=="object"&&Object.keys(b).length>0?{matched:!0,error:"",apiResponse:b,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[b]),m=Me(_=>_.dashboard),{products:v=[]}=Me(_=>_.dashboard),w=R.useMemo(()=>{if(!r||!Array.isArray(v))return[];const _=r.trim();return v.filter(T=>T.categoryName&&T.categoryName.trim().toLowerCase()===_.toLowerCase()).map(T=>({...T,id:T.id||T.sku||T.productName}))},[v,r]),S=w.length>0,x=Array.isArray(v)&&v.length>0,E=_=>{_.preventDefault(),t("/settings",{state:{tenantIntegrationData:f.apiResponse}})},O={},{productsByCategory:N={}}=m||{};Object.values(N).flat().forEach(_=>{_.storeId&&_.storeName&&(O[_.storeId]=_.storeName)});const D=[{id:"all",name:"All Stores"},...Object.entries(O).map(([_,T])=>({id:_,name:T}))],A=_=>{l(_)},L=(_,T)=>{p($=>{const I=$[T]||[];let j;return I.some(P=>P.id===_.id)?j=I.filter(P=>P.id!==_.id):j=[...I,_],{...$,[T]:j}}),h(T)};return R.useEffect(()=>{y&&(e(Qt(y)),e($n()))},[e,y]),d.jsxs(d.Fragment,{children:[d.jsx(as,{filters:a,onFilterChange:A,styles:i.topBar,stores:D,tenantStatus:f,hasProducts:x}),g||!y?d.jsx(F,{sx:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):r?S?d.jsxs(F,{sx:i.root,children:[d.jsx(Yg,{productState:m}),d.jsx(hN,{data:w,styles:i,selectedProducts:c[r]||[],onSelectProduct:L,categoryName:r})]}):d.jsx(ls,{handleStartSyncing:E,loading:!1,categoryName:r}):d.jsx(ls,{handleStartSyncing:E,loading:!1}),d.jsx(gN,{onPromoPrint:()=>{},onCreateCatalog:()=>{},onOsaRequest:()=>{},selectedProducts:c[r]||[],selectedCategory:u})]})};function mN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return d.jsxs(qy,{children:[d.jsx(yn,{path:"/",element:d.jsx(hk,{})}),d.jsx(yn,{path:"/home",element:d.jsx(uk,{})}),d.jsx(yn,{path:"/products",element:d.jsx(ak,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}),d.jsx(yn,{path:"/product-setting",element:d.jsx(Nk,{})}),d.jsx(yn,{path:"/categories",element:d.jsx(yk,{})}),d.jsx(yn,{path:"/products/settings/ftp-sync",element:d.jsx(cN,{})}),d.jsx(yn,{path:"/catalogs/manage-shared",element:d.jsx(fN,{})}),d.jsx(yn,{path:"/category",element:d.jsx(yN,{})})]})}function bN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return d.jsx(mN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const vN=()=>d.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:d.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:o,onStoreSelect:i})=>d.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:d.jsx(yx,{apiUrl:e,authToken:t,children:d.jsx(jm,{store:mp,children:d.jsx(Vm.PersistGate,{loading:d.jsx(vN,{}),persistor:hx,children:d.jsx(im,{basename:n,children:d.jsx(bN,{StoresModal:r,storesModalProps:o,onStoreSelect:i})})})})})})}));
483
187
  //# sourceMappingURL=product-app.umd.js.map