var al=Object.defineProperty;var il=(e,t,n)=>t in e?al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ht=(e,t,n)=>il(e,typeof t!="symbol"?t+"":t,n);import{r as d,t as Ln,j as m,U as ve,K as vo,$ as Zt,S as sl}from"./app-D_lWdAF1.js";import{a as Re,b as re,u as oe,S as st,c as z,d as cl,e as ll,B as ul,f as xi,A as dl}from"./app-logo-icon-B18IWF-o.js";import{d as $t,e as Ne,a as j,u as qn,c as qe,P as He,f as fl,b as pl}from"./index--DsFJTFe.js";import{P as X,d as wi,R as ml,r as hl}from"./index-DKsctv8k.js";/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gl=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],vl=Re("BookOpen",gl);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yl=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bl=Re("ChevronRight",yl);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xl=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],wl=Re("ChevronsUpDown",xl);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cl=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Sl=Re("Folder",Cl);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const El=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Rl=Re("LayoutGrid",El);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Al=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],Tl=Re("LogOut",Al);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pl=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Ml=Re("PanelLeft",Pl);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kl=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],la=Re("Receipt",kl);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ol=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Il=Re("Settings",Ol);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _l=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],ua=Re("Users",_l);/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$l=Re("X",Nl);function Kr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],s=t[a];if(!s)r[a]=i||{};else if(!i)r[a]=s;else{r[a]={...s};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const l=c;r[a][l]=Kr(i[l],s[l],n)}}}else a==="className"&&n&&t.className?r.className=re(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[a]===void 0&&(r[a]=e[a])}return r}function Bt(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let c=0;c<a.length;c+=1){const l=a[c];l&&(i+=(s===!0?"":" ")+t(l),s=!1,n&&n[l]&&(i+=" "+n[l]))}r[o]=i}return r}function ct(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.`}function Dl(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function yo(e,t=0,n=1){return Dl(e,t,n)}function jl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ke(e){if(e.type)return e;if(e.charAt(0)==="#")return Ke(jl(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(ct(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(ct(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const Ll=e=>{const t=Ke(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Kt=(e,t)=>{try{return Ll(e)}catch{return e}};function Zn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<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 Ci(e){e=Ke(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(l,p=(l+n/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let s="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Zn({type:s,values:c})}function Yr(e){e=Ke(e);let t=e.type==="hsl"||e.type==="hsla"?Ke(Ci(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 Fl(e,t){const n=Yr(e),r=Yr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Qt(e,t){return e=Ke(e),t=yo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Zn(e)}function Cn(e,t,n){try{return Qt(e,t)}catch{return e}}function Jt(e,t){if(e=Ke(e),t=yo(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 Zn(e)}function U(e,t,n){try{return Jt(e,t)}catch{return e}}function en(e,t){if(e=Ke(e),t=yo(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 Zn(e)}function K(e,t,n){try{return en(e,t)}catch{return e}}function Bl(e,t=.15){return Yr(e)>.5?Jt(e,t):en(e,t)}function Sn(e,t,n){try{return Bl(e,t)}catch{return e}}const da=e=>e,zl=()=>{let e=da;return{configure(t){e=t},generate(t){return e(t)},reset(){e=da}}},Wl=zl();function ne(e){if(typeof e!="string")throw new Error(ct(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Mr={exports:{}},G={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var fa;function Vl(){if(fa)return G;fa=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"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(u){if(typeof u=="object"&&u!==null){var b=u.$$typeof;switch(b){case e:switch(u=u.type,u){case n:case o:case r:case c:case l:case g:return u;default:switch(u=u&&u.$$typeof,u){case i:case s:case f:case p:return u;case a:return u;default:return b}}case t:return b}}}return G.ContextConsumer=a,G.ContextProvider=i,G.Element=e,G.ForwardRef=s,G.Fragment=n,G.Lazy=f,G.Memo=p,G.Portal=t,G.Profiler=o,G.StrictMode=r,G.Suspense=c,G.SuspenseList=l,G.isContextConsumer=function(u){return v(u)===a},G.isContextProvider=function(u){return v(u)===i},G.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===e},G.isForwardRef=function(u){return v(u)===s},G.isFragment=function(u){return v(u)===n},G.isLazy=function(u){return v(u)===f},G.isMemo=function(u){return v(u)===p},G.isPortal=function(u){return v(u)===t},G.isProfiler=function(u){return v(u)===o},G.isStrictMode=function(u){return v(u)===r},G.isSuspense=function(u){return v(u)===c},G.isSuspenseList=function(u){return v(u)===l},G.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===n||u===o||u===r||u===c||u===l||typeof u=="object"&&u!==null&&(u.$$typeof===f||u.$$typeof===p||u.$$typeof===i||u.$$typeof===a||u.$$typeof===s||u.$$typeof===y||u.getModuleId!==void 0)},G.typeOf=v,G}var pa;function Hl(){return pa||(pa=1,Mr.exports=Vl()),Mr.exports}var Si=Hl();function Be(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 Ei(e){if(d.isValidElement(e)||Si.isValidElementType(e)||!Be(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ei(e[n])}),t}function me(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Be(e)&&Be(t)&&Object.keys(t).forEach(o=>{d.isValidElement(t[o])||Si.isValidElementType(t[o])?r[o]=t[o]:Be(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Be(e[o])?r[o]=me(e[o],t[o],n):n.clone?r[o]=Be(t[o])?Ei(t[o]):t[o]:r[o]=t[o]}),r}function qt(e,t){return t?me(e,t,{clone:!1}):e}function ma(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,s;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((s=o.match(a))==null?void 0:s[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function Gl(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Ul(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function Kl(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...s)=>t(e.breakpoints.up(...s),i),a.down=(...s)=>t(e.breakpoints.down(...s),i),a.between=(...s)=>t(e.breakpoints.between(...s),i),a.only=(...s)=>t(e.breakpoints.only(...s),i),a.not=(...s)=>{const c=t(e.breakpoints.not(...s),i);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=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const Qn={xs:0,sm:600,md:900,lg:1200,xl:1536},ha={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qn[e]}px)`},Yl={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qn[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ze(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||ha;return t.reduce((i,s,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||ha;return Object.keys(t).reduce((i,s)=>{if(Gl(a.keys,s)){const c=Ul(r.containerQueries?r:Yl,s);c&&(i[c]=n(t[s],s))}else if(Object.keys(a.values||Qn).includes(s)){const c=a.up(s);i[c]=n(t[s],s)}else{const c=s;i[c]=t[c]}return i},{})}return n(t)}function Xl(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function ga(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Jn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Fn(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Jn(e,n)||r,t&&(o=t(o,r,e)),o}function ee(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const s=i[t],c=i.theme,l=Jn(c,r)||{};return ze(i,s,f=>{let g=Fn(l,o,f);return f===g&&typeof f=="string"&&(g=Fn(l,o,`${t}${f==="default"?"":ne(f)}`,f)),n===!1?g:{[n]:g}})};return a.propTypes={},a.filterProps=[t],a}function ql(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Zl={m:"margin",p:"padding"},Ql={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},va={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jl=ql(e=>{if(e.length>2)if(va[e])e=va[e];else return[e];const[t,n]=e.split(""),r=Zl[t],o=Ql[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),bo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...bo,...xo];function un(e,t,n,r){const o=Jn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:()=>{}}function wo(e){return un(e,"spacing",8)}function dn(e,t){return typeof t=="string"||t==null?t:e(t)}function eu(e,t){return n=>e.reduce((r,o)=>(r[o]=dn(t,n),r),{})}function tu(e,t,n,r){if(!t.includes(n))return null;const o=Jl(n),a=eu(o,r),i=e[n];return ze(e,i,a)}function Ri(e,t){const n=wo(e.theme);return Object.keys(e).map(r=>tu(e,t,r,n)).reduce(qt,{})}function Q(e){return Ri(e,bo)}Q.propTypes={};Q.filterProps=bo;function J(e){return Ri(e,xo)}J.propTypes={};J.filterProps=xo;function er(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?qt(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function be(e){return typeof e!="number"?e:`${e}px solid`}function we(e,t){return ee({prop:e,themeKey:"borders",transform:t})}const nu=we("border",be),ru=we("borderTop",be),ou=we("borderRight",be),au=we("borderBottom",be),iu=we("borderLeft",be),su=we("borderColor"),cu=we("borderTopColor"),lu=we("borderRightColor"),uu=we("borderBottomColor"),du=we("borderLeftColor"),fu=we("outline",be),pu=we("outlineColor"),tr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=un(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:dn(t,r)});return ze(e,e.borderRadius,n)}return null};tr.propTypes={};tr.filterProps=["borderRadius"];er(nu,ru,ou,au,iu,su,cu,lu,uu,du,tr,fu,pu);const nr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=un(e.theme,"spacing",8),n=r=>({gap:dn(t,r)});return ze(e,e.gap,n)}return null};nr.propTypes={};nr.filterProps=["gap"];const rr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=un(e.theme,"spacing",8),n=r=>({columnGap:dn(t,r)});return ze(e,e.columnGap,n)}return null};rr.propTypes={};rr.filterProps=["columnGap"];const or=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=un(e.theme,"spacing",8),n=r=>({rowGap:dn(t,r)});return ze(e,e.rowGap,n)}return null};or.propTypes={};or.filterProps=["rowGap"];const mu=ee({prop:"gridColumn"}),hu=ee({prop:"gridRow"}),gu=ee({prop:"gridAutoFlow"}),vu=ee({prop:"gridAutoColumns"}),yu=ee({prop:"gridAutoRows"}),bu=ee({prop:"gridTemplateColumns"}),xu=ee({prop:"gridTemplateRows"}),wu=ee({prop:"gridTemplateAreas"}),Cu=ee({prop:"gridArea"});er(nr,rr,or,mu,hu,gu,vu,yu,bu,xu,wu,Cu);function kt(e,t){return t==="grey"?t:e}const Su=ee({prop:"color",themeKey:"palette",transform:kt}),Eu=ee({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:kt}),Ru=ee({prop:"backgroundColor",themeKey:"palette",transform:kt});er(Su,Eu,Ru);function pe(e){return e<=1&&e!==0?`${e*100}%`:e}const Au=ee({prop:"width",transform:pe}),Co=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,s,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||Qn[n];return r?((c=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:pe(n)}};return ze(e,e.maxWidth,t)}return null};Co.filterProps=["maxWidth"];const Tu=ee({prop:"minWidth",transform:pe}),Pu=ee({prop:"height",transform:pe}),Mu=ee({prop:"maxHeight",transform:pe}),ku=ee({prop:"minHeight",transform:pe});ee({prop:"size",cssProperty:"width",transform:pe});ee({prop:"size",cssProperty:"height",transform:pe});const Ou=ee({prop:"boxSizing"});er(Au,Co,Tu,Pu,Mu,ku,Ou);const ar={border:{themeKey:"borders",transform:be},borderTop:{themeKey:"borders",transform:be},borderRight:{themeKey:"borders",transform:be},borderBottom:{themeKey:"borders",transform:be},borderLeft:{themeKey:"borders",transform:be},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:be},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tr},color:{themeKey:"palette",transform:kt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:kt},backgroundColor:{themeKey:"palette",transform:kt},p:{style:J},pt:{style:J},pr:{style:J},pb:{style:J},pl:{style:J},px:{style:J},py:{style:J},padding:{style:J},paddingTop:{style:J},paddingRight:{style:J},paddingBottom:{style:J},paddingLeft:{style:J},paddingX:{style:J},paddingY:{style:J},paddingInline:{style:J},paddingInlineStart:{style:J},paddingInlineEnd:{style:J},paddingBlock:{style:J},paddingBlockStart:{style:J},paddingBlockEnd:{style:J},m:{style:Q},mt:{style:Q},mr:{style:Q},mb:{style:Q},ml:{style:Q},mx:{style:Q},my:{style:Q},margin:{style:Q},marginTop:{style:Q},marginRight:{style:Q},marginBottom:{style:Q},marginLeft:{style:Q},marginX:{style:Q},marginY:{style:Q},marginInline:{style:Q},marginInlineStart:{style:Q},marginInlineEnd:{style:Q},marginBlock:{style:Q},marginBlockStart:{style:Q},marginBlockEnd:{style:Q},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:nr},rowGap:{style:or},columnGap:{style:rr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pe},maxWidth:{style:Co},minWidth:{transform:pe},height:{transform:pe},maxHeight:{transform:pe},minHeight:{transform:pe},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 Iu(...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 _u(e,t){return typeof e=="function"?e(t):e}function Nu(){function e(n,r,o,a){const i={[n]:r,theme:o},s=a[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:p,style:f}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const g=Jn(o,l)||{};return f?f(i):ze(i,r,v=>{let u=Fn(g,p,v);return v===u&&typeof v=="string"&&(u=Fn(g,p,`${n}${v==="default"?"":ne(v)}`,v)),c===!1?u:{[c]:u}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??ar;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const p=Xl(o.breakpoints),f=Object.keys(p);let g=p;return Object.keys(l).forEach(y=>{const v=_u(l[y],o);if(v!=null)if(typeof v=="object")if(i[y])g=qt(g,e(y,v,o,i));else{const u=ze({theme:o},v,b=>({[y]:b}));Iu(u,v)?g[y]=t({sx:v,theme:o,nested:!0}):g=qt(g,u)}else g=qt(g,e(y,v,o,i))}),!a&&o.modularCssLayers?{"@layer sx":ma(o,ga(f,g))}:ma(o,ga(f,g))}return Array.isArray(r)?r.map(s):s(r)}return t}const Dt=Nu();Dt.filterProps=["sx"];function Bn(){return Bn=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},Bn.apply(null,arguments)}function $u(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 Du(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 ju=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),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(Du(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=$u(o);try{a.insertRule(r,a.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}(),ie="-ms-",zn="-moz-",W="-webkit-",Ai="comm",So="rule",Eo="decl",Lu="@import",Ti="@keyframes",Fu="@layer",Bu=Math.abs,ir=String.fromCharCode,zu=Object.assign;function Wu(e,t){return ae(e,0)^45?(((t<<2^ae(e,0))<<2^ae(e,1))<<2^ae(e,2))<<2^ae(e,3):0}function Pi(e){return e.trim()}function Vu(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,n){return e.replace(t,n)}function Xr(e,t){return e.indexOf(t)}function ae(e,t){return e.charCodeAt(t)|0}function tn(e,t,n){return e.slice(t,n)}function Pe(e){return e.length}function Ro(e){return e.length}function En(e,t){return t.push(e),e}function Hu(e,t){return e.map(t).join("")}var sr=1,jt=1,Mi=0,ue=0,te=0,zt="";function cr(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:sr,column:jt,length:i,return:""}}function Gt(e,t){return zu(cr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Gu(){return te}function Uu(){return te=ue>0?ae(zt,--ue):0,jt--,te===10&&(jt=1,sr--),te}function he(){return te=ue<Mi?ae(zt,ue++):0,jt++,te===10&&(jt=1,sr++),te}function Ie(){return ae(zt,ue)}function kn(){return ue}function fn(e,t){return tn(zt,e,t)}function nn(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 ki(e){return sr=jt=1,Mi=Pe(zt=e),ue=0,[]}function Oi(e){return zt="",e}function On(e){return Pi(fn(ue-1,qr(e===91?e+2:e===40?e+1:e)))}function Ku(e){for(;(te=Ie())&&te<33;)he();return nn(e)>2||nn(te)>3?"":" "}function Yu(e,t){for(;--t&&he()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return fn(e,kn()+(t<6&&Ie()==32&&he()==32))}function qr(e){for(;he();)switch(te){case e:return ue;case 34:case 39:e!==34&&e!==39&&qr(te);break;case 40:e===41&&qr(e);break;case 92:he();break}return ue}function Xu(e,t){for(;he()&&e+te!==57;)if(e+te===84&&Ie()===47)break;return"/*"+fn(t,ue-1)+"*"+ir(e===47?e:he())}function qu(e){for(;!nn(Ie());)he();return fn(e,ue)}function Zu(e){return Oi(In("",null,null,null,[""],e=ki(e),0,[0],e))}function In(e,t,n,r,o,a,i,s,c){for(var l=0,p=0,f=i,g=0,y=0,v=0,u=1,b=1,x=1,S=0,E="",C=o,w=a,T=r,A=E;b;)switch(v=S,S=he()){case 40:if(v!=108&&ae(A,f-1)==58){Xr(A+=V(On(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=On(S);break;case 9:case 10:case 13:case 32:A+=Ku(v);break;case 92:A+=Yu(kn()-1,7);continue;case 47:switch(Ie()){case 42:case 47:En(Qu(Xu(he(),kn()),t,n),c);break;default:A+="/"}break;case 123*u:s[l++]=Pe(A)*x;case 125*u:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+p:x==-1&&(A=V(A,/\f/g,"")),y>0&&Pe(A)-f&&En(y>32?ba(A+";",r,n,f-1):ba(V(A," ","")+";",r,n,f-2),c);break;case 59:A+=";";default:if(En(T=ya(A,t,n,l,p,o,s,E,C=[],w=[],f),a),S===123)if(p===0)In(A,t,T,T,C,a,f,s,w);else switch(g===99&&ae(A,3)===110?100:g){case 100:case 108:case 109:case 115:In(e,T,T,r&&En(ya(e,T,T,0,0,o,s,E,o,C=[],f),w),o,w,f,s,r?C:w);break;default:In(A,T,T,T,[""],w,0,s,w)}}l=p=y=0,u=x=1,E=A="",f=i;break;case 58:f=1+Pe(A),y=v;default:if(u<1){if(S==123)--u;else if(S==125&&u++==0&&Uu()==125)continue}switch(A+=ir(S),S*u){case 38:x=p>0?1:(A+="\f",-1);break;case 44:s[l++]=(Pe(A)-1)*x,x=1;break;case 64:Ie()===45&&(A+=On(he())),g=Ie(),p=f=Pe(E=A+=qu(kn())),S++;break;case 45:v===45&&Pe(A)==2&&(u=0)}}return a}function ya(e,t,n,r,o,a,i,s,c,l,p){for(var f=o-1,g=o===0?a:[""],y=Ro(g),v=0,u=0,b=0;v<r;++v)for(var x=0,S=tn(e,f+1,f=Bu(u=i[v])),E=e;x<y;++x)(E=Pi(u>0?g[x]+" "+S:V(S,/&\f/g,g[x])))&&(c[b++]=E);return cr(e,t,n,o===0?So:s,c,l,p)}function Qu(e,t,n){return cr(e,t,n,Ai,ir(Gu()),tn(e,2,-2),0)}function ba(e,t,n,r){return cr(e,t,n,Eo,tn(e,0,r),tn(e,r+1,-1),r)}function Ot(e,t){for(var n="",r=Ro(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ju(e,t,n,r){switch(e.type){case Fu:if(e.children.length)break;case Lu:case Eo:return e.return=e.return||e.value;case Ai:return"";case Ti:return e.return=e.value+"{"+Ot(e.children,r)+"}";case So:e.value=e.props.join(",")}return Pe(n=Ot(e.children,r))?e.return=e.value+"{"+n+"}":""}function ed(e){var t=Ro(e);return function(n,r,o,a){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,a)||"";return i}}function td(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ii(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nd=function(t,n,r){for(var o=0,a=0;o=a,a=Ie(),o===38&&a===12&&(n[r]=1),!nn(a);)he();return fn(t,ue)},rd=function(t,n){var r=-1,o=44;do switch(nn(o)){case 0:o===38&&Ie()===12&&(n[r]=1),t[r]+=nd(ue-1,n,r);break;case 2:t[r]+=On(o);break;case 4:if(o===44){t[++r]=Ie()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ir(o)}while(o=he());return t},od=function(t,n){return Oi(rd(ki(t),n))},xa=new WeakMap,ad=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&&!xa.get(r))&&!o){xa.set(t,!0);for(var a=[],i=od(n,a),s=r.props,c=0,l=0;c<i.length;c++)for(var p=0;p<s.length;p++,l++)t.props[l]=a[c]?i[c].replace(/&\f/g,s[p]):s[p]+" "+i[c]}}},id=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function _i(e,t){switch(Wu(e,t)){case 5103:return W+"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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+zn+e+ie+e+e;case 6828:case 4268:return W+e+ie+e+e;case 6165:return W+e+ie+"flex-"+e+e;case 5187:return W+e+V(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return W+e+ie+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return W+e+ie+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+ie+V(e,"shrink","negative")+e;case 5292:return W+e+ie+V(e,"basis","preferred-size")+e;case 6060:return W+"box-"+V(e,"-grow","")+W+e+ie+V(e,"grow","positive")+e;case 4554:return W+V(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,W+"$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(Pe(e)-1-t>6)switch(ae(e,t+1)){case 109:if(ae(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+zn+(ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xr(e,"stretch")?_i(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ae(e,t+1)!==115)break;case 6444:switch(ae(e,Pe(e)-3-(~Xr(e,"!important")&&10))){case 107:return V(e,":",":"+W)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(ae(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(ae(e,t+11)){case 114:return W+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+ie+e+e}return e}var sd=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Eo:t.return=_i(t.value,t.length);break;case Ti:return Ot([Gt(t,{value:V(t.value,"@","@"+W)})],o);case So:if(t.length)return Hu(t.props,function(a){switch(Vu(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ot([Gt(t,{props:[V(a,/:(read-\w+)/,":"+zn+"$1")]})],o);case"::placeholder":return Ot([Gt(t,{props:[V(a,/:(plac\w+)/,":"+W+"input-$1")]}),Gt(t,{props:[V(a,/:(plac\w+)/,":"+zn+"$1")]}),Gt(t,{props:[V(a,/:(plac\w+)/,ie+"input-$1")]})],o)}return""})}},cd=[sd],ld=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(u){var b=u.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(u),u.setAttribute("data-s",""))})}var o=t.stylisPlugins||cd,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(u){for(var b=u.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)a[b[x]]=!0;s.push(u)});var c,l=[ad,id];{var p,f=[Ju,td(function(u){p.insert(u)})],g=ed(l.concat(o,f)),y=function(b){return Ot(Zu(b),g)};c=function(b,x,S,E){p=S,y(b?b+"{"+x.styles+"}":x.styles),E&&(v.inserted[x.name]=!0)}}var v={key:n,sheet:new ju({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return v.sheet.hydrate(s),v},kr={exports:{}},H={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wa;function ud(){if(wa)return H;wa=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,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case l:case r:case a:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case s:case p:case v:case y:case i:return w;default:return T}}case n:return T}}}function C(w){return E(w)===l}return H.AsyncMode=c,H.ConcurrentMode=l,H.ContextConsumer=s,H.ContextProvider=i,H.Element=t,H.ForwardRef=p,H.Fragment=r,H.Lazy=v,H.Memo=y,H.Portal=n,H.Profiler=a,H.StrictMode=o,H.Suspense=f,H.isAsyncMode=function(w){return C(w)||E(w)===c},H.isConcurrentMode=C,H.isContextConsumer=function(w){return E(w)===s},H.isContextProvider=function(w){return E(w)===i},H.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},H.isForwardRef=function(w){return E(w)===p},H.isFragment=function(w){return E(w)===r},H.isLazy=function(w){return E(w)===v},H.isMemo=function(w){return E(w)===y},H.isPortal=function(w){return E(w)===n},H.isProfiler=function(w){return E(w)===a},H.isStrictMode=function(w){return E(w)===o},H.isSuspense=function(w){return E(w)===f},H.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===a||w===o||w===f||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===y||w.$$typeof===i||w.$$typeof===s||w.$$typeof===p||w.$$typeof===b||w.$$typeof===x||w.$$typeof===S||w.$$typeof===u)},H.typeOf=E,H}var Ca;function dd(){return Ca||(Ca=1,kr.exports=ud()),kr.exports}var Or,Sa;function fd(){if(Sa)return Or;Sa=1;var e=dd(),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},a={};a[e.ForwardRef]=r,a[e.Memo]=o;function i(v){return e.isMemo(v)?o:a[v.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,g=Object.prototype;function y(v,u,b){if(typeof u!="string"){if(g){var x=f(u);x&&x!==g&&y(v,x,b)}var S=c(u);l&&(S=S.concat(l(u)));for(var E=i(v),C=i(u),w=0;w<S.length;++w){var T=S[w];if(!n[T]&&!(b&&b[T])&&!(C&&C[T])&&!(E&&E[T])){var A=p(u,T);try{s(v,T,A)}catch{}}}}return v}return Or=y,Or}fd();var pd=!0;function Ni(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ao=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||pd===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},To=function(t,n,r){Ao(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function md(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 hd={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},gd=/[A-Z]|^ms/g,vd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$i=function(t){return t.charCodeAt(1)===45},Ea=function(t){return t!=null&&typeof t!="boolean"},Ir=Ii(function(e){return $i(e)?e:e.replace(gd,"-$&").toLowerCase()}),Ra=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(vd,function(r,o,a){return Me={name:o,styles:a,next:Me},o})}return hd[t]!==1&&!$i(t)&&typeof n=="number"&&n!==0?n+"px":n};function rn(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 Me={name:o.name,styles:o.styles,next:Me},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Me={name:i.name,styles:i.styles,next:Me},i=i.next;var s=a.styles+";";return s}return yd(e,t,n)}case"function":{if(e!==void 0){var c=Me,l=n(e);return Me=c,rn(e,t,l)}break}}var p=n;if(t==null)return p;var f=t[p];return f!==void 0?f:p}function yd(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=rn(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?r+=a+"{"+t[s]+"}":Ea(s)&&(r+=Ir(a)+":"+Ra(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var c=0;c<i.length;c++)Ea(i[c])&&(r+=Ir(a)+":"+Ra(a,i[c])+";");else{var l=rn(e,t,i);switch(a){case"animation":case"animationName":{r+=Ir(a)+":"+l+";";break}default:r+=a+"{"+l+"}"}}}return r}var Aa=/label:\s*([^\s;{]+)\s*(;|$)/g,Me;function pn(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="";Me=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=rn(n,t,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=rn(n,t,e[s]),r){var c=a;o+=c[s]}Aa.lastIndex=0;for(var l="",p;(p=Aa.exec(o))!==null;)l+="-"+p[1];var f=md(o)+l;return{name:f,styles:o,next:Me}}var bd=function(t){return t()},Di=Ln.useInsertionEffect?Ln.useInsertionEffect:!1,ji=Di||bd,Ta=Di||d.useLayoutEffect,Li=d.createContext(typeof HTMLElement<"u"?ld({key:"css"}):null);Li.Provider;var Po=function(t){return d.forwardRef(function(n,r){var o=d.useContext(Li);return t(n,o,r)})},lr=d.createContext({}),Mo={}.hasOwnProperty,Zr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xd=function(t,n){var r={};for(var o in n)Mo.call(n,o)&&(r[o]=n[o]);return r[Zr]=t,r},wd=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ao(n,r,o),ji(function(){return To(n,r,o)}),null},Cd=Po(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Zr],a=[r],i="";typeof e.className=="string"?i=Ni(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var s=pn(a,void 0,d.useContext(lr));i+=t.key+"-"+s.name;var c={};for(var l in e)Mo.call(e,l)&&l!=="css"&&l!==Zr&&(c[l]=e[l]);return c.className=i,n&&(c.ref=n),d.createElement(d.Fragment,null,d.createElement(wd,{cache:t,serialized:s,isStringTag:typeof o=="string"}),d.createElement(o,c))}),Sd=Cd,Pa=function(t,n){var r=arguments;if(n==null||!Mo.call(n,"css"))return d.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=Sd,a[1]=xd(t,n);for(var i=2;i<o;i++)a[i]=r[i];return d.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Pa||(Pa={}));var q0=Po(function(e,t){var n=e.styles,r=pn([n],void 0,d.useContext(lr)),o=d.useRef();return Ta(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),c!==null&&(s=!0,c.setAttribute("data-emotion",a),i.hydrate([c])),o.current=[i,s],function(){i.flush()}},[t]),Ta(function(){var a=o.current,i=a[0],s=a[1];if(s){a[1]=!1;return}if(r.next!==void 0&&To(t,r.next,!0),i.tags.length){var c=i.tags[i.tags.length-1].nextElementSibling;i.before=c,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function ko(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return pn(t)}function mn(){var e=ko.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 Ed=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rd=Ii(function(e){return Ed.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Ad=Rd,Td=function(t){return t!=="theme"},Ma=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ad:Td},ka=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Pd=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ao(n,r,o),ji(function(){return To(n,r,o)}),null},Md=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var s=ka(t,n,r),c=s||Ma(o),l=!c("as");return function(){var p=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)f.push.apply(f,p);else{var g=p[0];f.push(g[0]);for(var y=p.length,v=1;v<y;v++)f.push(p[v],g[v])}var u=Po(function(b,x,S){var E=l&&b.as||o,C="",w=[],T=b;if(b.theme==null){T={};for(var A in b)T[A]=b[A];T.theme=d.useContext(lr)}typeof b.className=="string"?C=Ni(x.registered,w,b.className):b.className!=null&&(C=b.className+" ");var k=pn(f.concat(w),x.registered,T);C+=x.key+"-"+k.name,i!==void 0&&(C+=" "+i);var _=l&&s===void 0?Ma(E):c,h={};for(var P in b)l&&P==="as"||_(P)&&(h[P]=b[P]);return h.className=C,S&&(h.ref=S),d.createElement(d.Fragment,null,d.createElement(Pd,{cache:x,serialized:k,isStringTag:typeof E=="string"}),d.createElement(E,h))});return u.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",u.defaultProps=t.defaultProps,u.__emotion_real=u,u.__emotion_base=o,u.__emotion_styles=f,u.__emotion_forwardProp=s,Object.defineProperty(u,"toString",{value:function(){return"."+i}}),u.withComponent=function(b,x){var S=e(b,Bn({},n,x,{shouldForwardProp:ka(u,x,!0)}));return S.apply(void 0,f)},u}},kd=["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"],Qr=Md.bind(null);kd.forEach(function(e){Qr[e]=Qr(e)});function Od(e,t){return Qr(e,t)}function Id(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Oa=[];function at(e){return Oa[0]=e,pn(Oa)}const _d=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 Nd(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=_d(t),i=Object.keys(a);function s(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function l(g,y){const v=i.indexOf(y);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(v!==-1&&typeof t[i[v]]=="number"?t[i[v]]:y)-r/100}${n})`}function p(g){return i.indexOf(g)+1<i.length?l(g,i[i.indexOf(g)+1]):s(g)}function f(g){const y=i.indexOf(g);return y===0?s(i[1]):y===i.length-1?c(i[y]):l(g,i[i.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:c,between:l,only:p,not:f,unit:n,...o}}const $d={borderRadius:4};function Fi(e=8,t=wo({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Dd(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Oo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,s=Nd(n),c=Fi(o);let l=me({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...$d,...a}},i);return l=Kl(l),l.applyStyles=Dd,l=t.reduce((p,f)=>me(p,f),l),l.unstable_sxConfig={...ar,...i==null?void 0:i.unstable_sxConfig},l.unstable_sx=function(f){return Dt({sx:f,theme:this})},l}function jd(e){return Object.keys(e).length===0}function Ld(e=null){const t=d.useContext(lr);return!t||jd(t)?e:t}const Fd=Oo();function Bd(e=Fd){return Ld(e)}const zd={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 ft(e,t,n="Mui"){const r=zd[t];return r?`${n}-${r}`:`${Wl.generate(e)}-${t}`}function pt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ft(e,o,n)}),r}function Bi(e){const{variants:t,...n}=e,r={variants:t,style:at(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=at(o.style))}),r}const Wd=Oo();function _r(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Vd(e){return e?(t,n)=>n[e]:null}function Hd(e,t,n){e.theme=Kd(e.theme)?n:e.theme[t]||e.theme}function _n(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>_n(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?rt(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?rt(at(i),n):i}return zi(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?rt(at(r.style),n):r.style:n?rt(at(r),n):r}function zi(e,t,n=[],r=void 0){var a;let o;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(o))continue}else for(const c in s.props)if(e[c]!==s.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==s.props[c])continue e;typeof s.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?rt(at(s.style(o)),r):s.style(o))):n.push(r?rt(at(s.style),r):s.style)}return n}function Gd(e={}){const{themeId:t,defaultTheme:n=Wd,rootShouldForwardProp:r=_r,slotShouldForwardProp:o=_r}=e;function a(s){Hd(s,t,n)}return(s,c={})=>{Id(s,T=>T.filter(A=>A!==Dt));const{name:l,slot:p,skipVariantsResolver:f,skipSx:g,overridesResolver:y=Vd(Xd(p)),...v}=c,u=l&&l.startsWith("Mui")||p?"components":"custom",b=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,x=g||!1;let S=_r;p==="Root"||p==="root"?S=r:p?S=o:Yd(s)&&(S=void 0);const E=Od(s,{shouldForwardProp:S,label:Ud(),...v}),C=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(k){return _n(k,T,k.theme.modularCssLayers?u:void 0)};if(Be(T)){const A=Bi(T);return function(_){return A.variants?_n(_,A,_.theme.modularCssLayers?u:void 0):_.theme.modularCssLayers?rt(A.style,u):A.style}}return T},w=(...T)=>{const A=[],k=T.map(C),_=[];if(A.push(a),l&&y&&_.push(function(O){var B,N;const L=(N=(B=O.theme.components)==null?void 0:B[l])==null?void 0:N.styleOverrides;if(!L)return null;const D={};for(const M in L)D[M]=_n(O,L[M],O.theme.modularCssLayers?"theme":void 0);return y(O,D)}),l&&!b&&_.push(function(O){var D,B;const $=O.theme,L=(B=(D=$==null?void 0:$.components)==null?void 0:D[l])==null?void 0:B.variants;return L?zi(O,L,[],O.theme.modularCssLayers?"theme":void 0):null}),x||_.push(Dt),Array.isArray(k[0])){const I=k.shift(),O=new Array(A.length).fill(""),$=new Array(_.length).fill("");let L;L=[...O,...I,...$],L.raw=[...O,...I.raw,...$],A.unshift(L)}const h=[...A,...k,..._],P=E(...h);return s.muiName&&(P.muiName=s.muiName),P};return E.withConfig&&(w.withConfig=E.withConfig),w}}function Ud(e,t){return void 0}function Kd(e){for(const t in e)return!1;return!0}function Yd(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Xd(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const qd=typeof window<"u"?d.useLayoutEffect:d.useEffect,Zd=d.createContext(void 0);function Qd(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?Kr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Kr(o,r,t.components.mergeClassNameAndStyle):r}function Jd({props:e,name:t}){const n=d.useContext(Zd);return Qd({props:e,name:t,theme:{components:n}})}let Ia=0;function ef(e){const[t,n]=d.useState(e),r=e||t;return d.useEffect(()=>{t==null&&(Ia+=1,n(`mui-${Ia}`))},[t]),r}const tf={...Ln},_a=tf.useId;function nf(e){if(_a!==void 0){const t=_a();return e??t}return ef(e)}const Na={theme:void 0};function rf(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(Na.theme=o.theme,a=Bi(e(Na)),t=a,n=o.theme),a}}function of(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 $a=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},af=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([s,c])=>{(!n||n&&!n([...a,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,s],Array.isArray(c)?[...i,s]:i):t([...a,s],c,i))})}r(e)},sf=(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 Nr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return af(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(s,c))){const p=`--${n?`${n}-`:""}${s.join("-")}`,f=sf(s,c);Object.assign(o,{[p]:f}),$a(a,s,`var(${p})`,l),$a(i,s,`var(${p}, ${f})`,l)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function cf(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:s="light",...c}=e,{vars:l,css:p,varsWithDefaults:f}=Nr(c,t);let g=f;const y={},{[s]:v,...u}=a;if(Object.entries(u||{}).forEach(([E,C])=>{const{vars:w,css:T,varsWithDefaults:A}=Nr(C,t);g=me(g,A),y[E]={css:T,vars:w}}),v){const{css:E,vars:C,varsWithDefaults:w}=Nr(v,t);g=me(g,w),y[s]={css:E,vars:C}}function b(E,C){var T,A;let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),E){if(w==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((A=(T=a[E])==null?void 0:T.palette)==null?void 0:A.mode)||E})`]:{":root":C}};if(w)return e.defaultColorScheme===E?`:root, ${w.replace("%s",String(E))}`:w.replace("%s",String(E))}return":root"}return{vars:g,generateThemeVars:()=>{let E={...l};return Object.entries(y).forEach(([,{vars:C}])=>{E=me(E,C)}),E},generateStyleSheets:()=>{var k,_;const E=[],C=e.defaultColorScheme||"light";function w(h,P){Object.keys(P).length&&E.push(typeof h=="string"?{[h]:{...P}}:h)}w(n(void 0,{...p}),p);const{[C]:T,...A}=y;if(T){const{css:h}=T,P=(_=(k=a[C])==null?void 0:k.palette)==null?void 0:_.mode,I=!r&&P?{colorScheme:P,...h}:{...h};w(n(C,{...I}),I)}return Object.entries(A).forEach(([h,{css:P}])=>{var $,L;const I=(L=($=a[h])==null?void 0:$.palette)==null?void 0:L.mode,O=!r&&I?{colorScheme:I,...P}:{...P};w(n(h,{...O}),O)}),E}}}function lf(e){return function(n){return e==="media"?`@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)} &`:"&"}}const on={black:"#000",white:"#fff"},uf={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"},wt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ct={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ut={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},St={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Et={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Wi(){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:on.white,default:on.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 df=Wi();function Vi(){return{text:{primary:on.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:on.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 Da=Vi();function ja(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=en(e.main,o):t==="dark"&&(e.dark=Jt(e.main,a)))}function ff(e="light"){return e==="dark"?{main:St[200],light:St[50],dark:St[400]}:{main:St[700],light:St[400],dark:St[800]}}function pf(e="light"){return e==="dark"?{main:wt[200],light:wt[50],dark:wt[400]}:{main:wt[500],light:wt[300],dark:wt[700]}}function mf(e="light"){return e==="dark"?{main:Ct[500],light:Ct[300],dark:Ct[700]}:{main:Ct[700],light:Ct[400],dark:Ct[800]}}function hf(e="light"){return e==="dark"?{main:Et[400],light:Et[300],dark:Et[700]}:{main:Et[700],light:Et[500],dark:Et[900]}}function gf(e="light"){return e==="dark"?{main:Rt[400],light:Rt[300],dark:Rt[700]}:{main:Rt[800],light:Rt[500],dark:Rt[900]}}function vf(e="light"){return e==="dark"?{main:Ut[400],light:Ut[300],dark:Ut[700]}:{main:"#ed6c02",light:Ut[500],dark:Ut[900]}}function Io(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||ff(t),i=e.secondary||pf(t),s=e.error||mf(t),c=e.info||hf(t),l=e.success||gf(t),p=e.warning||vf(t);function f(u){return Fl(u,Da.text.primary)>=n?Da.text.primary:df.text.primary}const g=({color:u,name:b,mainShade:x=500,lightShade:S=300,darkShade:E=700})=>{if(u={...u},!u.main&&u[x]&&(u.main=u[x]),!u.hasOwnProperty("main"))throw new Error(ct(11,b?` (${b})`:"",x));if(typeof u.main!="string")throw new Error(ct(12,b?` (${b})`:"",JSON.stringify(u.main)));return ja(u,"light",S,r),ja(u,"dark",E,r),u.contrastText||(u.contrastText=f(u.main)),u};let y;return t==="light"?y=Wi():t==="dark"&&(y=Vi()),me({common:{...on},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:s,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:c,name:"info"}),success:g({color:l,name:"success"}),grey:uf,contrastThreshold:n,getContrastText:f,augmentColor:g,tonalOffset:r,...y},o)}function yf(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function bf(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function xf(e){return Math.round(e*1e5)/1e5}const La={textTransform:"uppercase"},Fa='"Roboto", "Helvetica", "Arial", sans-serif';function wf(e,t){const{fontFamily:n=Fa,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:p,...f}=typeof t=="function"?t(e):t,g=r/14,y=p||(b=>`${b/c*g}rem`),v=(b,x,S,E,C)=>({fontFamily:n,fontWeight:b,fontSize:y(x),lineHeight:S,...n===Fa?{letterSpacing:`${xf(E/x)}em`}:{},...C,...l}),u={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(i,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(i,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(i,14,1.75,.4,La),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,La),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return me({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...u},f,{clone:!1})}const Cf=.2,Sf=.14,Ef=.12;function q(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cf})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Sf})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ef})`].join(",")}const Rf=["none",q(0,2,1,-1,0,1,1,0,0,1,3,0),q(0,3,1,-2,0,2,2,0,0,1,5,0),q(0,3,3,-2,0,3,4,0,0,1,8,0),q(0,2,4,-1,0,4,5,0,0,1,10,0),q(0,3,5,-1,0,5,8,0,0,1,14,0),q(0,3,5,-1,0,6,10,0,0,1,18,0),q(0,4,5,-2,0,7,10,1,0,2,16,1),q(0,5,5,-3,0,8,10,1,0,3,14,2),q(0,5,6,-3,0,9,12,1,0,3,16,2),q(0,6,6,-3,0,10,14,1,0,4,18,3),q(0,6,7,-4,0,11,15,1,0,4,20,3),q(0,7,8,-4,0,12,17,2,0,5,22,4),q(0,7,8,-4,0,13,19,2,0,5,24,4),q(0,7,9,-4,0,14,21,2,0,5,26,4),q(0,8,9,-5,0,15,22,2,0,6,28,5),q(0,8,10,-5,0,16,24,2,0,6,30,5),q(0,8,11,-5,0,17,26,2,0,6,32,5),q(0,9,11,-5,0,18,28,2,0,7,34,6),q(0,9,12,-6,0,19,29,2,0,7,36,6),q(0,10,13,-6,0,20,31,3,0,8,38,7),q(0,10,13,-6,0,21,33,3,0,8,40,7),q(0,10,14,-6,0,22,35,3,0,8,42,7),q(0,11,14,-7,0,23,36,3,0,9,44,8),q(0,11,15,-7,0,24,38,3,0,9,46,8)],Af={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)"},Tf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ba(e){return`${Math.round(e)}ms`}function Pf(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Mf(e){const t={...Af,...e.easing},n={...Tf,...e.duration};return{getAutoHeightDuration:Pf,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:c=0,...l}=a;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof i=="string"?i:Ba(i)} ${s} ${typeof c=="string"?c:Ba(c)}`).join(",")},...e,easing:t,duration:n}}const kf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Of(e){return Be(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Hi(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,s]=o[a];!Of(s)||i.startsWith("unstable_")?delete r[i]:Be(s)&&(r[i]={...s},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function Jr(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:c,...l}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ct(20));const p=Io(a),f=Oo(e);let g=me(f,{mixins:bf(f.breakpoints,r),palette:p,shadows:Rf.slice(),typography:wf(p,s),transitions:Mf(i),zIndex:{...kf}});return g=me(g,l),g=t.reduce((y,v)=>me(y,v),g),g.unstable_sxConfig={...ar,...l==null?void 0:l.unstable_sxConfig},g.unstable_sx=function(v){return Dt({sx:v,theme:this})},g.toRuntimeSource=Hi,g}function eo(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 If=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=eo(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Gi(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ui(e){return e==="dark"?If:[]}function _f(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Io(t);return{palette:a,opacity:{...Gi(a.mode),...n},overlays:r||Ui(a.mode),...o}}function Nf(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const $f=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Df=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return $f(e.cssVarPrefix).forEach(s=>{i[s]=n[s],delete n[s]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function jf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function R(e,t,n){!e[t]&&n&&(e[t]=n)}function Yt(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ci(e)}function Le(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Kt(Yt(e[t])))}function Lf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Te=e=>{try{return e()}catch{}},Ff=(e="mui")=>of(e);function $r(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=_f({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:a,...i}=Jr({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...Gi(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Ui(o)},i}function Bf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=Nf,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...l}=e,p=Object.keys(n)[0],f=r||(n.light&&p!=="light"?"light":p),g=Ff(a),{[f]:y,light:v,dark:u,...b}=n,x={...b};let S=y;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(ct(21,f));const E=$r(x,S,l,f);v&&!x.light&&$r(x,v,void 0,"light"),u&&!x.dark&&$r(x,u,void 0,"dark");let C={defaultColorScheme:f,...E,cssVarPrefix:a,colorSchemeSelector:s,rootSelector:c,getCssVar:g,colorSchemes:x,font:{...yf(E.typography),...E.font},spacing:Lf(l.spacing)};Object.keys(C.colorSchemes).forEach(_=>{const h=C.colorSchemes[_].palette,P=I=>{const O=I.split("-"),$=O[1],L=O[2];return g(I,h[$][L])};if(h.mode==="light"&&(R(h.common,"background","#fff"),R(h.common,"onBackground","#000")),h.mode==="dark"&&(R(h.common,"background","#000"),R(h.common,"onBackground","#fff")),jf(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){R(h.Alert,"errorColor",U(h.error.light,.6)),R(h.Alert,"infoColor",U(h.info.light,.6)),R(h.Alert,"successColor",U(h.success.light,.6)),R(h.Alert,"warningColor",U(h.warning.light,.6)),R(h.Alert,"errorFilledBg",P("palette-error-main")),R(h.Alert,"infoFilledBg",P("palette-info-main")),R(h.Alert,"successFilledBg",P("palette-success-main")),R(h.Alert,"warningFilledBg",P("palette-warning-main")),R(h.Alert,"errorFilledColor",Te(()=>h.getContrastText(h.error.main))),R(h.Alert,"infoFilledColor",Te(()=>h.getContrastText(h.info.main))),R(h.Alert,"successFilledColor",Te(()=>h.getContrastText(h.success.main))),R(h.Alert,"warningFilledColor",Te(()=>h.getContrastText(h.warning.main))),R(h.Alert,"errorStandardBg",K(h.error.light,.9)),R(h.Alert,"infoStandardBg",K(h.info.light,.9)),R(h.Alert,"successStandardBg",K(h.success.light,.9)),R(h.Alert,"warningStandardBg",K(h.warning.light,.9)),R(h.Alert,"errorIconColor",P("palette-error-main")),R(h.Alert,"infoIconColor",P("palette-info-main")),R(h.Alert,"successIconColor",P("palette-success-main")),R(h.Alert,"warningIconColor",P("palette-warning-main")),R(h.AppBar,"defaultBg",P("palette-grey-100")),R(h.Avatar,"defaultBg",P("palette-grey-400")),R(h.Button,"inheritContainedBg",P("palette-grey-300")),R(h.Button,"inheritContainedHoverBg",P("palette-grey-A100")),R(h.Chip,"defaultBorder",P("palette-grey-400")),R(h.Chip,"defaultAvatarColor",P("palette-grey-700")),R(h.Chip,"defaultIconColor",P("palette-grey-700")),R(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),R(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),R(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),R(h.LinearProgress,"primaryBg",K(h.primary.main,.62)),R(h.LinearProgress,"secondaryBg",K(h.secondary.main,.62)),R(h.LinearProgress,"errorBg",K(h.error.main,.62)),R(h.LinearProgress,"infoBg",K(h.info.main,.62)),R(h.LinearProgress,"successBg",K(h.success.main,.62)),R(h.LinearProgress,"warningBg",K(h.warning.main,.62)),R(h.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),R(h.Slider,"primaryTrack",K(h.primary.main,.62)),R(h.Slider,"secondaryTrack",K(h.secondary.main,.62)),R(h.Slider,"errorTrack",K(h.error.main,.62)),R(h.Slider,"infoTrack",K(h.info.main,.62)),R(h.Slider,"successTrack",K(h.success.main,.62)),R(h.Slider,"warningTrack",K(h.warning.main,.62));const I=Sn(h.background.default,.8);R(h.SnackbarContent,"bg",I),R(h.SnackbarContent,"color",Te(()=>h.getContrastText(I))),R(h.SpeedDialAction,"fabHoverBg",Sn(h.background.paper,.15)),R(h.StepConnector,"border",P("palette-grey-400")),R(h.StepContent,"border",P("palette-grey-400")),R(h.Switch,"defaultColor",P("palette-common-white")),R(h.Switch,"defaultDisabledColor",P("palette-grey-100")),R(h.Switch,"primaryDisabledColor",K(h.primary.main,.62)),R(h.Switch,"secondaryDisabledColor",K(h.secondary.main,.62)),R(h.Switch,"errorDisabledColor",K(h.error.main,.62)),R(h.Switch,"infoDisabledColor",K(h.info.main,.62)),R(h.Switch,"successDisabledColor",K(h.success.main,.62)),R(h.Switch,"warningDisabledColor",K(h.warning.main,.62)),R(h.TableCell,"border",K(Cn(h.divider,1),.88)),R(h.Tooltip,"bg",Cn(h.grey[700],.92))}if(h.mode==="dark"){R(h.Alert,"errorColor",K(h.error.light,.6)),R(h.Alert,"infoColor",K(h.info.light,.6)),R(h.Alert,"successColor",K(h.success.light,.6)),R(h.Alert,"warningColor",K(h.warning.light,.6)),R(h.Alert,"errorFilledBg",P("palette-error-dark")),R(h.Alert,"infoFilledBg",P("palette-info-dark")),R(h.Alert,"successFilledBg",P("palette-success-dark")),R(h.Alert,"warningFilledBg",P("palette-warning-dark")),R(h.Alert,"errorFilledColor",Te(()=>h.getContrastText(h.error.dark))),R(h.Alert,"infoFilledColor",Te(()=>h.getContrastText(h.info.dark))),R(h.Alert,"successFilledColor",Te(()=>h.getContrastText(h.success.dark))),R(h.Alert,"warningFilledColor",Te(()=>h.getContrastText(h.warning.dark))),R(h.Alert,"errorStandardBg",U(h.error.light,.9)),R(h.Alert,"infoStandardBg",U(h.info.light,.9)),R(h.Alert,"successStandardBg",U(h.success.light,.9)),R(h.Alert,"warningStandardBg",U(h.warning.light,.9)),R(h.Alert,"errorIconColor",P("palette-error-main")),R(h.Alert,"infoIconColor",P("palette-info-main")),R(h.Alert,"successIconColor",P("palette-success-main")),R(h.Alert,"warningIconColor",P("palette-warning-main")),R(h.AppBar,"defaultBg",P("palette-grey-900")),R(h.AppBar,"darkBg",P("palette-background-paper")),R(h.AppBar,"darkColor",P("palette-text-primary")),R(h.Avatar,"defaultBg",P("palette-grey-600")),R(h.Button,"inheritContainedBg",P("palette-grey-800")),R(h.Button,"inheritContainedHoverBg",P("palette-grey-700")),R(h.Chip,"defaultBorder",P("palette-grey-700")),R(h.Chip,"defaultAvatarColor",P("palette-grey-300")),R(h.Chip,"defaultIconColor",P("palette-grey-300")),R(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),R(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),R(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),R(h.LinearProgress,"primaryBg",U(h.primary.main,.5)),R(h.LinearProgress,"secondaryBg",U(h.secondary.main,.5)),R(h.LinearProgress,"errorBg",U(h.error.main,.5)),R(h.LinearProgress,"infoBg",U(h.info.main,.5)),R(h.LinearProgress,"successBg",U(h.success.main,.5)),R(h.LinearProgress,"warningBg",U(h.warning.main,.5)),R(h.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),R(h.Slider,"primaryTrack",U(h.primary.main,.5)),R(h.Slider,"secondaryTrack",U(h.secondary.main,.5)),R(h.Slider,"errorTrack",U(h.error.main,.5)),R(h.Slider,"infoTrack",U(h.info.main,.5)),R(h.Slider,"successTrack",U(h.success.main,.5)),R(h.Slider,"warningTrack",U(h.warning.main,.5));const I=Sn(h.background.default,.98);R(h.SnackbarContent,"bg",I),R(h.SnackbarContent,"color",Te(()=>h.getContrastText(I))),R(h.SpeedDialAction,"fabHoverBg",Sn(h.background.paper,.15)),R(h.StepConnector,"border",P("palette-grey-600")),R(h.StepContent,"border",P("palette-grey-600")),R(h.Switch,"defaultColor",P("palette-grey-300")),R(h.Switch,"defaultDisabledColor",P("palette-grey-600")),R(h.Switch,"primaryDisabledColor",U(h.primary.main,.55)),R(h.Switch,"secondaryDisabledColor",U(h.secondary.main,.55)),R(h.Switch,"errorDisabledColor",U(h.error.main,.55)),R(h.Switch,"infoDisabledColor",U(h.info.main,.55)),R(h.Switch,"successDisabledColor",U(h.success.main,.55)),R(h.Switch,"warningDisabledColor",U(h.warning.main,.55)),R(h.TableCell,"border",U(Cn(h.divider,1),.68)),R(h.Tooltip,"bg",Cn(h.grey[700],.92))}Le(h.background,"default"),Le(h.background,"paper"),Le(h.common,"background"),Le(h.common,"onBackground"),Le(h,"divider"),Object.keys(h).forEach(I=>{const O=h[I];I!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&R(h[I],"mainChannel",Kt(Yt(O.main))),O.light&&R(h[I],"lightChannel",Kt(Yt(O.light))),O.dark&&R(h[I],"darkChannel",Kt(Yt(O.dark))),O.contrastText&&R(h[I],"contrastTextChannel",Kt(Yt(O.contrastText))),I==="text"&&(Le(h[I],"primary"),Le(h[I],"secondary")),I==="action"&&(O.active&&Le(h[I],"active"),O.selected&&Le(h[I],"selected")))})}),C=t.reduce((_,h)=>me(_,h),C);const w={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:Df(C)},{vars:T,generateThemeVars:A,generateStyleSheets:k}=cf(C,w);return C.vars=T,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([_,h])=>{C[_]=h}),C.generateThemeVars=A,C.generateStyleSheets=k,C.generateSpacing=function(){return Fi(l.spacing,wo(this))},C.getColorSchemeSelector=lf(s),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=i,C.unstable_sxConfig={...ar,...l==null?void 0:l.unstable_sxConfig},C.unstable_sx=function(h){return Dt({sx:h,theme:this})},C.toRuntimeSource=Hi,C}function za(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Io({...n===!0?{}:n.palette,mode:t})})}function zf(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...i}=e,s=a||"light",c=o==null?void 0:o[s],l={...o,...n?{[s]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Jr(e,...t);let p=n;"palette"in e||l[s]&&(l[s]!==!0?p=l[s].palette:s==="dark"&&(p={mode:"dark"}));const f=Jr({...e,palette:p},...t);return f.defaultColorScheme=s,f.colorSchemes=l,f.palette.mode==="light"&&(f.colorSchemes.light={...l.light!==!0&&l.light,palette:f.palette},za(f,"dark",l.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:f.palette},za(f,"light",l.light)),f}return!n&&!("light"in l)&&s==="light"&&(l.light=!0),Bf({...i,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...t)}const Ki=zf(),Yi="$$material";function Wf(){const e=Bd(Ki);return e[Yi]||e}function Vf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hf=e=>Vf(e)&&e!=="classes",de=Gd({themeId:Yi,defaultTheme:Ki,rootShouldForwardProp:Hf}),lt=rf;function mt(e){return Jd(e)}function Gf(e){return ft("MuiSvgIcon",e)}pt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Uf=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ne(t)}`,`fontSize${ne(n)}`]};return Bt(o,Gf,r)},Kf=de("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)}`]]}})(lt(({theme:e})=>{var t,n,r,o,a,i,s,c,l,p,f,g,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:u=>!u.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:p.call(l,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,u])=>u&&u.main).map(([u])=>{var b,x;return{props:{color:u},style:{color:(x=(b=(e.vars??e).palette)==null?void 0:b[u])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),to=d.forwardRef(function(t,n){const r=mt({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:p=!1,titleAccess:f,viewBox:g="0 0 24 24",...y}=r,v=d.isValidElement(o)&&o.type==="svg",u={...r,color:i,component:s,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:v},b={};p||(b.viewBox=g);const x=Uf(u);return m.jsxs(Kf,{as:s,className:re(x.root,a),focusable:"false",color:l,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...b,...y,...v&&o.props,ownerState:u,children:[v?o.props.children:o,f?m.jsx("title",{children:f}):null]})});to.muiName="SvgIcon";function hn(e,t){function n(r,o){return m.jsx(to,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=to.muiName,d.memo(d.forwardRef(n))}function Nn(e){const t=d.useRef(e);return qd(()=>{t.current=e}),d.useRef((...n)=>(0,t.current)(...n)).current}function no(...e){const t=d.useRef(void 0),n=d.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,s=i(r);return typeof s=="function"?s:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return d.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Wa(e){try{return e.matches(":focus-visible")}catch{}return!1}const Va={};function Xi(e,t){const n=d.useRef(Va);return n.current===Va&&(n.current=e(t)),n}class Wn{constructor(){Ht(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Wn}static use(){const t=Xi(Wn.create).current,[n,r]=d.useState(!1);return t.shouldMount=n,t.setShouldMount=r,d.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Xf(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function Yf(){return Wn.use()}function Xf(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function qf(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 ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ro(e,t)}function Zf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ro(e,t)}const Ha=ve.createContext(null);function Qf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _o(e,t){var n=function(a){return t&&d.isValidElement(a)?t(a):a},r=Object.create(null);return e&&d.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Jf(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,s={};for(var c in t){if(r[c])for(i=0;i<r[c].length;i++){var l=r[c][i];s[r[c][i]]=n(l)}s[c]=n(c)}for(i=0;i<o.length;i++)s[o[i]]=n(o[i]);return s}function ot(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ep(e,t){return _o(e.children,function(n){return d.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ot(n,"appear",e),enter:ot(n,"enter",e),exit:ot(n,"exit",e)})})}function tp(e,t,n){var r=_o(e.children),o=Jf(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(d.isValidElement(i)){var s=a in t,c=a in r,l=t[a],p=d.isValidElement(l)&&!l.props.in;c&&(!s||p)?o[a]=d.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:ot(i,"exit",e),enter:ot(i,"enter",e)}):!c&&s&&!p?o[a]=d.cloneElement(i,{in:!1}):c&&s&&d.isValidElement(l)&&(o[a]=d.cloneElement(i,{onExited:n.bind(null,i),in:l.props.in,exit:ot(i,"exit",e),enter:ot(i,"enter",e)}))}}),o}var np=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rp={component:"div",childFactory:function(t){return t}},No=function(e){Zf(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(Qf(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}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,a){var i=a.children,s=a.handleExited,c=a.firstRender;return{children:c?ep(o,s):tp(o,i,s),firstRender:!1}},n.handleExited=function(o,a){var i=_o(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(s){var c=Bn({},s.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,a=o.component,i=o.childFactory,s=qf(o,["component","childFactory"]),c=this.state.contextValue,l=np(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,a===null?ve.createElement(Ha.Provider,{value:c},l):ve.createElement(Ha.Provider,{value:c},ve.createElement(a,s,l))},t}(ve.Component);No.propTypes={};No.defaultProps=rp;const op=[];function ap(e){d.useEffect(e,op)}class $o{constructor(){Ht(this,"currentId",null);Ht(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ht(this,"disposeEffect",()=>this.clear)}static create(){return new $o}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ip(){const e=Xi($o.create).current;return ap(e.disposeEffect),e}function sp(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:s,onExited:c,timeout:l}=e,[p,f]=d.useState(!1),g=re(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},v=re(n.child,p&&n.childLeaving,r&&n.childPulsate);return!s&&!p&&f(!0),d.useEffect(()=>{if(!s&&c!=null){const u=setTimeout(c,l);return()=>{clearTimeout(u)}}},[c,s,l]),m.jsx("span",{className:g,style:y,children:m.jsx("span",{className:v})})}const ye=pt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),oo=550,cp=80,lp=mn`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,up=mn`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,dp=mn`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,fp=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),pp=de(sp,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${ye.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${lp};
    animation-duration: ${oo}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${ye.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${ye.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${ye.childLeaving} {
    opacity: 0;
    animation-name: ${up};
    animation-duration: ${oo}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${ye.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${dp};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,mp=d.forwardRef(function(t,n){const r=mt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...s}=r,[c,l]=d.useState([]),p=d.useRef(0),f=d.useRef(null);d.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const g=d.useRef(!1),y=ip(),v=d.useRef(null),u=d.useRef(null),b=d.useCallback(C=>{const{pulsate:w,rippleX:T,rippleY:A,rippleSize:k,cb:_}=C;l(h=>[...h,m.jsx(pp,{classes:{ripple:re(a.ripple,ye.ripple),rippleVisible:re(a.rippleVisible,ye.rippleVisible),ripplePulsate:re(a.ripplePulsate,ye.ripplePulsate),child:re(a.child,ye.child),childLeaving:re(a.childLeaving,ye.childLeaving),childPulsate:re(a.childPulsate,ye.childPulsate)},timeout:oo,pulsate:w,rippleX:T,rippleY:A,rippleSize:k},p.current)]),p.current+=1,f.current=_},[a]),x=d.useCallback((C={},w={},T=()=>{})=>{const{pulsate:A=!1,center:k=o||w.pulsate,fakeElement:_=!1}=w;if((C==null?void 0:C.type)==="mousedown"&&g.current){g.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(g.current=!0);const h=_?null:u.current,P=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};let I,O,$;if(k||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)I=Math.round(P.width/2),O=Math.round(P.height/2);else{const{clientX:L,clientY:D}=C.touches&&C.touches.length>0?C.touches[0]:C;I=Math.round(L-P.left),O=Math.round(D-P.top)}if(k)$=Math.sqrt((2*P.width**2+P.height**2)/3),$%2===0&&($+=1);else{const L=Math.max(Math.abs((h?h.clientWidth:0)-I),I)*2+2,D=Math.max(Math.abs((h?h.clientHeight:0)-O),O)*2+2;$=Math.sqrt(L**2+D**2)}C!=null&&C.touches?v.current===null&&(v.current=()=>{b({pulsate:A,rippleX:I,rippleY:O,rippleSize:$,cb:T})},y.start(cp,()=>{v.current&&(v.current(),v.current=null)})):b({pulsate:A,rippleX:I,rippleY:O,rippleSize:$,cb:T})},[o,b,y]),S=d.useCallback(()=>{x({},{pulsate:!0})},[x]),E=d.useCallback((C,w)=>{if(y.clear(),(C==null?void 0:C.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{E(C,w)});return}v.current=null,l(T=>T.length>0?T.slice(1):T),f.current=w},[y]);return d.useImperativeHandle(n,()=>({pulsate:S,start:x,stop:E}),[S,x,E]),m.jsx(fp,{className:re(ye.root,a.root,i),ref:u,...s,children:m.jsx(No,{component:null,exit:!0,children:c})})});function hp(e){return ft("MuiButtonBase",e)}const gp=pt("MuiButtonBase",["root","disabled","focusVisible"]),vp=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Bt({root:["root",t&&"disabled",n&&"focusVisible"]},hp,o);return n&&r&&(i.root+=` ${r}`),i},yp=de("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"},[`&.${gp.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),bp=d.forwardRef(function(t,n){const r=mt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:s,component:c="button",disabled:l=!1,disableRipple:p=!1,disableTouchRipple:f=!1,focusRipple:g=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:u,onClick:b,onContextMenu:x,onDragLeave:S,onFocus:E,onFocusVisible:C,onKeyDown:w,onKeyUp:T,onMouseDown:A,onMouseLeave:k,onMouseUp:_,onTouchEnd:h,onTouchMove:P,onTouchStart:I,tabIndex:O=0,TouchRippleProps:$,touchRippleRef:L,type:D,...B}=r,N=d.useRef(null),M=Yf(),Y=no(M.ref,L),[Z,se]=d.useState(!1);l&&Z&&se(!1),d.useImperativeHandle(o,()=>({focusVisible:()=>{se(!0),N.current.focus()}}),[]);const Ze=M.shouldMount&&!p&&!l;d.useEffect(()=>{Z&&g&&!p&&M.pulsate()},[p,g,Z,M]);const Qe=Fe(M,"start",A,f),vt=Fe(M,"stop",x,f),je=Fe(M,"stop",S,f),Ce=Fe(M,"stop",_,f),Je=Fe(M,"stop",F=>{Z&&F.preventDefault(),k&&k(F)},f),le=Fe(M,"start",I,f),et=Fe(M,"stop",h,f),xn=Fe(M,"stop",P,f),wn=Fe(M,"stop",F=>{Wa(F.target)||se(!1),u&&u(F)},!1),tt=Nn(F=>{N.current||(N.current=F.currentTarget),Wa(F.target)&&(se(!0),C&&C(F)),E&&E(F)}),yt=()=>{const F=N.current;return c&&c!=="button"&&!(F.tagName==="A"&&F.href)},Tr=Nn(F=>{g&&!F.repeat&&Z&&F.key===" "&&M.stop(F,()=>{M.start(F)}),F.target===F.currentTarget&&yt()&&F.key===" "&&F.preventDefault(),w&&w(F),F.target===F.currentTarget&&yt()&&F.key==="Enter"&&!l&&(F.preventDefault(),b&&b(F))}),Pr=Nn(F=>{g&&F.key===" "&&Z&&!F.defaultPrevented&&M.stop(F,()=>{M.pulsate(F)}),T&&T(F),b&&F.target===F.currentTarget&&yt()&&F.key===" "&&!F.defaultPrevented&&b(F)});let bt=c;bt==="button"&&(B.href||B.to)&&(bt=v);const nt={};bt==="button"?(nt.type=D===void 0?"button":D,nt.disabled=l):(!B.href&&!B.to&&(nt.role="button"),l&&(nt["aria-disabled"]=l));const xt=no(n,N),ca={...r,centerRipple:a,component:c,disabled:l,disableRipple:p,disableTouchRipple:f,focusRipple:g,tabIndex:O,focusVisible:Z},ol=vp(ca);return m.jsxs(yp,{as:bt,className:re(ol.root,s),ownerState:ca,onBlur:wn,onClick:b,onContextMenu:vt,onFocus:tt,onKeyDown:Tr,onKeyUp:Pr,onMouseDown:Qe,onMouseLeave:Je,onMouseUp:Ce,onDragLeave:je,onTouchEnd:et,onTouchMove:xn,onTouchStart:le,ref:xt,tabIndex:l?-1:O,type:D,...nt,...B,children:[i,Ze?m.jsx(mp,{ref:Y,center:a,...$}):null]})});function Fe(e,t,n,r=!1){return Nn(o=>(n&&n(o),r||e[t](o),!0))}function xp(e){return typeof e.main=="string"}function wp(e,t=[]){if(!xp(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function It(e=[]){return([,t])=>t&&wp(t,e)}function Cp(e){return ft("MuiCircularProgress",e)}pt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ge=44,ao=mn`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,io=mn`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,Sp=typeof ao!="string"?ko`
        animation: ${ao} 1.4s linear infinite;
      `:null,Ep=typeof io!="string"?ko`
        animation: ${io} 1.4s ease-in-out infinite;
      `:null,Rp=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${ne(r)}`],svg:["svg"],circle:["circle",`circle${ne(n)}`,o&&"circleDisableShrink"]};return Bt(a,Cp,t)},Ap=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ne(n.color)}`]]}})(lt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Sp||{animation:`${ao} 1.4s linear infinite`}},...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Tp=de("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Pp=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(lt(({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:Ep||{animation:`${io} 1.4s ease-in-out infinite`}}]}))),Mp=d.forwardRef(function(t,n){const r=mt({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:s=40,style:c,thickness:l=3.6,value:p=0,variant:f="indeterminate",...g}=r,y={...r,color:a,disableShrink:i,size:s,thickness:l,value:p,variant:f},v=Rp(y),u={},b={},x={};if(f==="determinate"){const S=2*Math.PI*((Ge-l)/2);u.strokeDasharray=S.toFixed(3),x["aria-valuenow"]=Math.round(p),u.strokeDashoffset=`${((100-p)/100*S).toFixed(3)}px`,b.transform="rotate(-90deg)"}return m.jsx(Ap,{className:re(v.root,o),style:{width:s,height:s,...b,...c},ownerState:y,ref:n,role:"progressbar",...x,...g,children:m.jsx(Tp,{className:v.svg,ownerState:y,viewBox:`${Ge/2} ${Ge/2} ${Ge} ${Ge}`,children:m.jsx(Pp,{className:v.circle,style:u,ownerState:y,cx:Ge,cy:Ge,r:(Ge-l)/2,fill:"none",strokeWidth:l})})})});function kp(e){return typeof e=="string"}function Op(e,t,n){return e===void 0||kp(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ip(e,t,n){return typeof e=="function"?e(t,n):e}function _p(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 Ga(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 Np(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=re(n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),v={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},u={...n,...o,...r};return y.length>0&&(u.className=y),Object.keys(v).length>0&&(u.style=v),{props:u,internalRef:void 0}}const i=_p({...o,...r}),s=Ga(r),c=Ga(o),l=t(i),p=re(l==null?void 0:l.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f={...l==null?void 0:l.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...l,...n,...c,...s};return p.length>0&&(g.className=p),Object.keys(f).length>0&&(g.style=f),{props:g,internalRef:l.ref}}function At(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:p={[e]:void 0},slotProps:f={[e]:void 0},...g}=a,y=p[e]||r,v=Ip(f[e],o),{props:{component:u,...b},internalRef:x}=Np({className:n,...c,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:v}),S=no(x,v==null?void 0:v.ref,t.ref),E=e==="root"?u||l:u,C=Op(y,{...e==="root"&&!l&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...b,...E&&!s&&{as:E},...E&&s&&{component:E},ref:S},o);return[y,C]}function $p(e){return ft("MuiPaper",e)}pt("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 Dp=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Bt(a,$p,o)},jp=de("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}`]]}})(lt(({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)"}}]}))),Lp=d.forwardRef(function(t,n){var y;const r=mt({props:t,name:"MuiPaper"}),o=Wf(),{className:a,component:i="div",elevation:s=1,square:c=!1,variant:l="elevation",...p}=r,f={...r,component:i,elevation:s,square:c,variant:l},g=Dp(f);return m.jsx(jp,{as:i,ownerState:f,className:re(g.root,a),ref:n,...p,style:{...l==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Qt("#fff",eo(s))}, ${Qt("#fff",eo(s))})`}},...p.style}})}),Dr=768;function qi(){const[e,t]=d.useState();return d.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Dr-1}px)`),r=()=>{t(window.innerWidth<Dr)};return n.addEventListener("change",r),t(window.innerWidth<Dr),()=>n.removeEventListener("change",r)},[]),!!e}var Fp=Ln.useId||(()=>{}),Bp=0;function it(e){const[t,n]=d.useState(Fp());return $t(()=>{n(r=>r??String(Bp++))},[e]),e||(t?`radix-${t}`:"")}function zp(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wp="DismissableLayer",so="dismissableLayer.update",Vp="dismissableLayer.pointerDownOutside",Hp="dismissableLayer.focusOutside",Ua,Zi=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ur=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=d.useContext(Zi),[p,f]=d.useState(null),g=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=d.useState({}),v=oe(t,A=>f(A)),u=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=u.indexOf(b),S=p?u.indexOf(p):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,C=S>=x,w=Kp(A=>{const k=A.target,_=[...l.branches].some(h=>h.contains(k));!C||_||(o==null||o(A),i==null||i(A),A.defaultPrevented||s==null||s())},g),T=Yp(A=>{const k=A.target;[...l.branches].some(h=>h.contains(k))||(a==null||a(A),i==null||i(A),A.defaultPrevented||s==null||s())},g);return zp(A=>{S===l.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},g),d.useEffect(()=>{if(p)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ua=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(p)),l.layers.add(p),Ka(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ua)}},[p,g,n,l]),d.useEffect(()=>()=>{p&&(l.layers.delete(p),l.layersWithOutsidePointerEventsDisabled.delete(p),Ka())},[p,l]),d.useEffect(()=>{const A=()=>y({});return document.addEventListener(so,A),()=>document.removeEventListener(so,A)},[]),m.jsx(X.div,{...c,ref:v,style:{pointerEvents:E?C?"auto":"none":void 0,...e.style},onFocusCapture:j(e.onFocusCapture,T.onFocusCapture),onBlurCapture:j(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:j(e.onPointerDownCapture,w.onPointerDownCapture)})});ur.displayName=Wp;var Gp="DismissableLayerBranch",Up=d.forwardRef((e,t)=>{const n=d.useContext(Zi),r=d.useRef(null),o=oe(t,r);return d.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),m.jsx(X.div,{...e,ref:o})});Up.displayName=Gp;function Kp(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){Qi(Vp,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Yp(e,t=globalThis==null?void 0:globalThis.document){const n=Ne(e),r=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!r.current&&Qi(Hp,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ka(){const e=new CustomEvent(so);document.dispatchEvent(e)}function Qi(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?wi(o,a):o.dispatchEvent(a)}var jr="focusScope.autoFocusOnMount",Lr="focusScope.autoFocusOnUnmount",Ya={bubbles:!1,cancelable:!0},Xp="FocusScope",Do=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=d.useState(null),l=Ne(o),p=Ne(a),f=d.useRef(null),g=oe(t,u=>c(u)),y=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let u=function(E){if(y.paused||!s)return;const C=E.target;s.contains(C)?f.current=C:Ue(f.current,{select:!0})},b=function(E){if(y.paused||!s)return;const C=E.relatedTarget;C!==null&&(s.contains(C)||Ue(f.current,{select:!0}))},x=function(E){if(document.activeElement===document.body)for(const w of E)w.removedNodes.length>0&&Ue(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",b);const S=new MutationObserver(x);return s&&S.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",b),S.disconnect()}}},[r,s,y.paused]),d.useEffect(()=>{if(s){qa.add(y);const u=document.activeElement;if(!s.contains(u)){const x=new CustomEvent(jr,Ya);s.addEventListener(jr,l),s.dispatchEvent(x),x.defaultPrevented||(qp(tm(Ji(s)),{select:!0}),document.activeElement===u&&Ue(s))}return()=>{s.removeEventListener(jr,l),setTimeout(()=>{const x=new CustomEvent(Lr,Ya);s.addEventListener(Lr,p),s.dispatchEvent(x),x.defaultPrevented||Ue(u??document.body,{select:!0}),s.removeEventListener(Lr,p),qa.remove(y)},0)}}},[s,l,p,y]);const v=d.useCallback(u=>{if(!n&&!r||y.paused)return;const b=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,x=document.activeElement;if(b&&x){const S=u.currentTarget,[E,C]=Zp(S);E&&C?!u.shiftKey&&x===C?(u.preventDefault(),n&&Ue(E,{select:!0})):u.shiftKey&&x===E&&(u.preventDefault(),n&&Ue(C,{select:!0})):x===S&&u.preventDefault()}},[n,r,y.paused]);return m.jsx(X.div,{tabIndex:-1,...i,ref:g,onKeyDown:v})});Do.displayName=Xp;function qp(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ue(r,{select:t}),document.activeElement!==n)return}function Zp(e){const t=Ji(e),n=Xa(t,e),r=Xa(t.reverse(),e);return[n,r]}function Ji(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xa(e,t){for(const n of e)if(!Qp(n,{upTo:t}))return n}function Qp(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Jp(e){return e instanceof HTMLInputElement&&"select"in e}function Ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Jp(e)&&t&&e.select()}}var qa=em();function em(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Za(e,t),e.unshift(t)},remove(t){var n;e=Za(e,t),(n=e[0])==null||n.resume()}}}function Za(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function tm(e){return e.filter(t=>t.tagName!=="A")}var nm="Portal",dr=d.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=d.useState(!1);$t(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?ml.createPortal(m.jsx(X.div,{...r,ref:t}),i):null});dr.displayName=nm;var Fr=0;function es(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Qa()),document.body.insertAdjacentElement("beforeend",e[1]??Qa()),Fr++,()=>{Fr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Fr--}},[])}function Qa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ke=function(){return ke=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ke.apply(this,arguments)};function ts(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}function rm(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var $n="right-scroll-bar-position",Dn="width-before-scroll-bar",om="with-scroll-bars-hidden",am="--removed-body-scroll-bar-size";function Br(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function im(e,t){var n=d.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var sm=typeof window<"u"?d.useLayoutEffect:d.useEffect,Ja=new WeakMap;function cm(e,t){var n=im(null,function(r){return e.forEach(function(o){return Br(o,r)})});return sm(function(){var r=Ja.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||Br(s,null)}),a.forEach(function(s){o.has(s)||Br(s,i)})}Ja.set(n,e)},[e]),n}function lm(e){return e}function um(e,t){t===void 0&&(t=lm);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var p=i;i=[],p.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(p){i.push(p),l()},filter:function(p){return i=i.filter(p),n}}}};return o}function dm(e){e===void 0&&(e={});var t=um(null);return t.options=ke({async:!0,ssr:!1},e),t}var ns=function(e){var t=e.sideCar,n=ts(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,ke({},n))};ns.isSideCarExport=!0;function fm(e,t){return e.useMedium(t),ns}var rs=dm(),zr=function(){},fr=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:zr,onWheelCapture:zr,onTouchMoveCapture:zr}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,p=e.enabled,f=e.shards,g=e.sideCar,y=e.noIsolation,v=e.inert,u=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,S=e.gapMode,E=ts(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,w=cm([n,t]),T=ke(ke({},E),o);return d.createElement(d.Fragment,null,p&&d.createElement(C,{sideCar:rs,removeScrollBar:l,shards:f,noIsolation:y,inert:v,setCallbacks:a,allowPinchZoom:!!u,lockRef:n,gapMode:S}),i?d.cloneElement(d.Children.only(s),ke(ke({},T),{ref:w})):d.createElement(x,ke({},T,{className:c,ref:w}),s))});fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};fr.classNames={fullWidth:Dn,zeroRight:$n};var pm=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=pm();return t&&e.setAttribute("nonce",t),e}function hm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var vm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mm())&&(hm(t,n),gm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ym=function(){var e=vm();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},os=function(){var e=ym(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},bm={left:0,top:0,right:0,gap:0},Wr=function(e){return parseInt(e||"",10)||0},xm=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Wr(n),Wr(r),Wr(o)]},wm=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bm;var t=xm(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Cm=os(),_t="data-scroll-locked",Sm=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(om,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(s,"px ").concat(r,`;
  }
  body[`).concat(_t,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(a,`px;
    padding-right: `).concat(i,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(s,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat($n,` {
    right: `).concat(s,"px ").concat(r,`;
  }
  
  .`).concat(Dn,` {
    margin-right: `).concat(s,"px ").concat(r,`;
  }
  
  .`).concat($n," .").concat($n,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(Dn," .").concat(Dn,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(_t,`] {
    `).concat(am,": ").concat(s,`px;
  }
`)},ei=function(){var e=parseInt(document.body.getAttribute(_t)||"0",10);return isFinite(e)?e:0},Em=function(){d.useEffect(function(){return document.body.setAttribute(_t,(ei()+1).toString()),function(){var e=ei()-1;e<=0?document.body.removeAttribute(_t):document.body.setAttribute(_t,e.toString())}},[])},Rm=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Em();var a=d.useMemo(function(){return wm(o)},[o]);return d.createElement(Cm,{styles:Sm(a,!t,o,n?"":"!important")})},co=!1;if(typeof window<"u")try{var Rn=Object.defineProperty({},"passive",{get:function(){return co=!0,!0}});window.addEventListener("test",Rn,Rn),window.removeEventListener("test",Rn,Rn)}catch{co=!1}var Tt=co?{passive:!1}:!1,Am=function(e){return e.tagName==="TEXTAREA"},as=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Am(e)&&n[t]==="visible")},Tm=function(e){return as(e,"overflowY")},Pm=function(e){return as(e,"overflowX")},ti=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=is(e,r);if(o){var a=ss(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Mm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},km=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},is=function(e,t){return e==="v"?Tm(t):Pm(t)},ss=function(e,t){return e==="v"?Mm(t):km(t)},Om=function(e,t){return e==="h"&&t==="rtl"?-1:1},Im=function(e,t,n,r,o){var a=Om(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),l=!1,p=i>0,f=0,g=0;do{var y=ss(e,s),v=y[0],u=y[1],b=y[2],x=u-b-a*v;(v||x)&&is(e,s)&&(f+=x,g+=v),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(p&&Math.abs(f)<1||!p&&Math.abs(g)<1)&&(l=!0),l},An=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ni=function(e){return[e.deltaX,e.deltaY]},ri=function(e){return e&&"current"in e?e.current:e},_m=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nm=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},$m=0,Pt=[];function Dm(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState($m++)[0],a=d.useState(os)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=rm([e.lockRef.current],(e.shards||[]).map(ri),!0).filter(Boolean);return u.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(u,b){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!i.current.allowPinchZoom;var x=An(u),S=n.current,E="deltaX"in u?u.deltaX:S[0]-x[0],C="deltaY"in u?u.deltaY:S[1]-x[1],w,T=u.target,A=Math.abs(E)>Math.abs(C)?"h":"v";if("touches"in u&&A==="h"&&T.type==="range")return!1;var k=ti(A,T);if(!k)return!0;if(k?w=A:(w=A==="v"?"h":"v",k=ti(A,T)),!k)return!1;if(!r.current&&"changedTouches"in u&&(E||C)&&(r.current=w),!w)return!0;var _=r.current||w;return Im(_,b,u,_==="h"?E:C)},[]),c=d.useCallback(function(u){var b=u;if(!(!Pt.length||Pt[Pt.length-1]!==a)){var x="deltaY"in b?ni(b):An(b),S=t.current.filter(function(w){return w.name===b.type&&(w.target===b.target||b.target===w.shadowParent)&&_m(w.delta,x)})[0];if(S&&S.should){b.cancelable&&b.preventDefault();return}if(!S){var E=(i.current.shards||[]).map(ri).filter(Boolean).filter(function(w){return w.contains(b.target)}),C=E.length>0?s(b,E[0]):!i.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),l=d.useCallback(function(u,b,x,S){var E={name:u,delta:b,target:x,should:S,shadowParent:jm(x)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(C){return C!==E})},1)},[]),p=d.useCallback(function(u){n.current=An(u),r.current=void 0},[]),f=d.useCallback(function(u){l(u.type,ni(u),u.target,s(u,e.lockRef.current))},[]),g=d.useCallback(function(u){l(u.type,An(u),u.target,s(u,e.lockRef.current))},[]);d.useEffect(function(){return Pt.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Tt),document.addEventListener("touchmove",c,Tt),document.addEventListener("touchstart",p,Tt),function(){Pt=Pt.filter(function(u){return u!==a}),document.removeEventListener("wheel",c,Tt),document.removeEventListener("touchmove",c,Tt),document.removeEventListener("touchstart",p,Tt)}},[]);var y=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(a,{styles:Nm(o)}):null,y?d.createElement(Rm,{gapMode:e.gapMode}):null)}function jm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Lm=fm(rs,Dm);var jo=d.forwardRef(function(e,t){return d.createElement(fr,ke({},e,{ref:t,sideCar:Lm}))});jo.classNames=fr.classNames;var Fm=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Mt=new WeakMap,Tn=new WeakMap,Pn={},Vr=0,cs=function(e){return e&&(e.host||cs(e.parentNode))},Bm=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=cs(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zm=function(e,t,n,r){var o=Bm(t,Array.isArray(e)?e:[e]);Pn[n]||(Pn[n]=new WeakMap);var a=Pn[n],i=[],s=new Set,c=new Set(o),l=function(f){!f||s.has(f)||(s.add(f),l(f.parentNode))};o.forEach(l);var p=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(g){if(s.has(g))p(g);else try{var y=g.getAttribute(r),v=y!==null&&y!=="false",u=(Mt.get(g)||0)+1,b=(a.get(g)||0)+1;Mt.set(g,u),a.set(g,b),i.push(g),u===1&&v&&Tn.set(g,!0),b===1&&g.setAttribute(n,"true"),v||g.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return p(t),s.clear(),Vr++,function(){i.forEach(function(f){var g=Mt.get(f)-1,y=a.get(f)-1;Mt.set(f,g),a.set(f,y),g||(Tn.has(f)||f.removeAttribute(r),Tn.delete(f)),y||f.removeAttribute(n)}),Vr--,Vr||(Mt=new WeakMap,Mt=new WeakMap,Tn=new WeakMap,Pn={})}},ls=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Fm(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),zm(r,o,n,"aria-hidden")):function(){return null}},Lo="Dialog",[us,Z0]=qe(Lo),[Wm,Ae]=us(Lo),ds=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=d.useRef(null),c=d.useRef(null),[l=!1,p]=qn({prop:r,defaultProp:o,onChange:a});return m.jsx(Wm,{scope:t,triggerRef:s,contentRef:c,contentId:it(),titleId:it(),descriptionId:it(),open:l,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(f=>!f),[p]),modal:i,children:n})};ds.displayName=Lo;var fs="DialogTrigger",Vm=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ae(fs,n),a=oe(t,o.triggerRef);return m.jsx(X.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zo(o.open),...r,ref:a,onClick:j(e.onClick,o.onOpenToggle)})});Vm.displayName=fs;var Fo="DialogPortal",[Hm,ps]=us(Fo,{forceMount:void 0}),ms=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=Ae(Fo,t);return m.jsx(Hm,{scope:t,forceMount:n,children:d.Children.map(r,i=>m.jsx(He,{present:n||a.open,children:m.jsx(dr,{asChild:!0,container:o,children:i})}))})};ms.displayName=Fo;var Vn="DialogOverlay",hs=d.forwardRef((e,t)=>{const n=ps(Vn,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ae(Vn,e.__scopeDialog);return a.modal?m.jsx(He,{present:r||a.open,children:m.jsx(Gm,{...o,ref:t})}):null});hs.displayName=Vn;var Gm=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ae(Vn,n);return m.jsx(jo,{as:st,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(X.div,{"data-state":zo(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ut="DialogContent",gs=d.forwardRef((e,t)=>{const n=ps(ut,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=Ae(ut,e.__scopeDialog);return m.jsx(He,{present:r||a.open,children:a.modal?m.jsx(Um,{...o,ref:t}):m.jsx(Km,{...o,ref:t})})});gs.displayName=ut;var Um=d.forwardRef((e,t)=>{const n=Ae(ut,e.__scopeDialog),r=d.useRef(null),o=oe(t,n.contentRef,r);return d.useEffect(()=>{const a=r.current;if(a)return ls(a)},[]),m.jsx(vs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:j(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:j(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault())})}),Km=d.forwardRef((e,t)=>{const n=Ae(ut,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return m.jsx(vs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),vs=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Ae(ut,n),c=d.useRef(null),l=oe(t,c);return es(),m.jsxs(m.Fragment,{children:[m.jsx(Do,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:m.jsx(ur,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":zo(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(Ym,{titleId:s.titleId}),m.jsx(qm,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Bo="DialogTitle",ys=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ae(Bo,n);return m.jsx(X.h2,{id:o.titleId,...r,ref:t})});ys.displayName=Bo;var bs="DialogDescription",xs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ae(bs,n);return m.jsx(X.p,{id:o.descriptionId,...r,ref:t})});xs.displayName=bs;var ws="DialogClose",Cs=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Ae(ws,n);return m.jsx(X.button,{type:"button",...r,ref:t,onClick:j(e.onClick,()=>o.onOpenChange(!1))})});Cs.displayName=ws;function zo(e){return e?"open":"closed"}var Ss="DialogTitleWarning",[Q0,Es]=fl(Ss,{contentName:ut,titleName:Bo,docsSlug:"dialog"}),Ym=({titleId:e})=>{const t=Es(Ss),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Xm="DialogDescriptionWarning",qm=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Es(Xm).contentName}}.`;return d.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Zm=ds,Qm=ms,Jm=hs,eh=gs,th=ys,nh=xs,rh=Cs;function oh({...e}){return m.jsx(Zm,{"data-slot":"sheet",...e})}function ah({...e}){return m.jsx(Qm,{"data-slot":"sheet-portal",...e})}function ih({className:e,...t}){return m.jsx(Jm,{"data-slot":"sheet-overlay",className:z("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t})}function sh({className:e,children:t,side:n="right",...r}){return m.jsxs(ah,{children:[m.jsx(ih,{}),m.jsxs(eh,{"data-slot":"sheet-content",className:z("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...r,children:[t,m.jsxs(rh,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[m.jsx($l,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ch({className:e,...t}){return m.jsx("div",{"data-slot":"sheet-header",className:z("flex flex-col gap-1.5 p-4",e),...t})}function lh({className:e,...t}){return m.jsx(th,{"data-slot":"sheet-title",className:z("text-foreground font-semibold",e),...t})}function uh({className:e,...t}){return m.jsx(nh,{"data-slot":"sheet-description",className:z("text-muted-foreground text-sm",e),...t})}const dh=["top","right","bottom","left"],Ye=Math.min,fe=Math.max,Hn=Math.round,Mn=Math.floor,_e=e=>({x:e,y:e}),fh={left:"right",right:"left",bottom:"top",top:"bottom"},ph={start:"end",end:"start"};function lo(e,t,n){return fe(e,Ye(t,n))}function We(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function Wt(e){return e.split("-")[1]}function Wo(e){return e==="x"?"y":"x"}function Vo(e){return e==="y"?"height":"width"}const mh=new Set(["top","bottom"]);function Oe(e){return mh.has(Ve(e))?"y":"x"}function Ho(e){return Wo(Oe(e))}function hh(e,t,n){n===void 0&&(n=!1);const r=Wt(e),o=Ho(e),a=Vo(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Gn(i)),[i,Gn(i)]}function gh(e){const t=Gn(e);return[uo(e),t,uo(t)]}function uo(e){return e.replace(/start|end/g,t=>ph[t])}const oi=["left","right"],ai=["right","left"],vh=["top","bottom"],yh=["bottom","top"];function bh(e,t,n){switch(e){case"top":case"bottom":return n?t?ai:oi:t?oi:ai;case"left":case"right":return t?vh:yh;default:return[]}}function xh(e,t,n,r){const o=Wt(e);let a=bh(Ve(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(uo)))),a}function Gn(e){return e.replace(/left|right|bottom|top/g,t=>fh[t])}function wh(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rs(e){return typeof e!="number"?wh(e):{top:e,right:e,bottom:e,left:e}}function Un(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ii(e,t,n){let{reference:r,floating:o}=e;const a=Oe(t),i=Ho(t),s=Vo(i),c=Ve(t),l=a==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[s]/2-o[s]/2;let y;switch(c){case"top":y={x:p,y:r.y-o.height};break;case"bottom":y={x:p,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:f};break;case"left":y={x:r.x-o.width,y:f};break;default:y={x:r.x,y:r.y}}switch(Wt(t)){case"start":y[i]-=g*(n&&l?-1:1);break;case"end":y[i]+=g*(n&&l?-1:1);break}return y}const Ch=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=ii(l,r,c),g=r,y={},v=0;for(let u=0;u<s.length;u++){const{name:b,fn:x}=s[u],{x:S,y:E,data:C,reset:w}=await x({x:p,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:y,rects:l,platform:i,elements:{reference:e,floating:t}});p=S??p,f=E??f,y={...y,[b]:{...y[b],...C}},w&&v<=50&&(v++,typeof w=="object"&&(w.placement&&(g=w.placement),w.rects&&(l=w.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:p,y:f}=ii(l,g,c)),u=-1)}return{x:p,y:f,placement:g,strategy:o,middlewareData:y}};async function an(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:y=0}=We(t,e),v=Rs(y),b=s[g?f==="floating"?"reference":"floating":f],x=Un(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:p,strategy:c})),S=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},w=Un(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:S,offsetParent:E,strategy:c}):S);return{top:(x.top-w.top+v.top)/C.y,bottom:(w.bottom-x.bottom+v.bottom)/C.y,left:(x.left-w.left+v.left)/C.x,right:(w.right-x.right+v.right)/C.x}}const Sh=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:p=0}=We(e,t)||{};if(l==null)return{};const f=Rs(p),g={x:n,y:r},y=Ho(o),v=Vo(y),u=await i.getDimensions(l),b=y==="y",x=b?"top":"left",S=b?"bottom":"right",E=b?"clientHeight":"clientWidth",C=a.reference[v]+a.reference[y]-g[y]-a.floating[v],w=g[y]-a.reference[y],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let A=T?T[E]:0;(!A||!await(i.isElement==null?void 0:i.isElement(T)))&&(A=s.floating[E]||a.floating[v]);const k=C/2-w/2,_=A/2-u[v]/2-1,h=Ye(f[x],_),P=Ye(f[S],_),I=h,O=A-u[v]-P,$=A/2-u[v]/2+k,L=lo(I,$,O),D=!c.arrow&&Wt(o)!=null&&$!==L&&a.reference[v]/2-($<I?h:P)-u[v]/2<0,B=D?$<I?$-I:$-O:0;return{[y]:g[y]+B,data:{[y]:L,centerOffset:$-L-B,...D&&{alignmentOffset:B}},reset:D}}}),Eh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...b}=We(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const x=Ve(o),S=Oe(s),E=Ve(s)===s,C=await(c.isRTL==null?void 0:c.isRTL(l.floating)),w=g||(E||!u?[Gn(s)]:gh(s)),T=v!=="none";!g&&T&&w.push(...xh(s,u,v,C));const A=[s,...w],k=await an(t,b),_=[];let h=((r=a.flip)==null?void 0:r.overflows)||[];if(p&&_.push(k[x]),f){const $=hh(o,i,C);_.push(k[$[0]],k[$[1]])}if(h=[...h,{placement:o,overflows:_}],!_.every($=>$<=0)){var P,I;const $=(((P=a.flip)==null?void 0:P.index)||0)+1,L=A[$];if(L&&(!(f==="alignment"?S!==Oe(L):!1)||h.every(N=>N.overflows[0]>0&&Oe(N.placement)===S)))return{data:{index:$,overflows:h},reset:{placement:L}};let D=(I=h.filter(B=>B.overflows[0]<=0).sort((B,N)=>B.overflows[1]-N.overflows[1])[0])==null?void 0:I.placement;if(!D)switch(y){case"bestFit":{var O;const B=(O=h.filter(N=>{if(T){const M=Oe(N.placement);return M===S||M==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(M=>M>0).reduce((M,Y)=>M+Y,0)]).sort((N,M)=>N[1]-M[1])[0])==null?void 0:O[0];B&&(D=B);break}case"initialPlacement":D=s;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function si(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ci(e){return dh.some(t=>e[t]>=0)}const Rh=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=We(e,t);switch(r){case"referenceHidden":{const a=await an(t,{...o,elementContext:"reference"}),i=si(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ci(i)}}}case"escaped":{const a=await an(t,{...o,altBoundary:!0}),i=si(a,n.floating);return{data:{escapedOffsets:i,escaped:ci(i)}}}default:return{}}}}},As=new Set(["left","top"]);async function Ah(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ve(n),s=Wt(n),c=Oe(n)==="y",l=As.has(i)?-1:1,p=a&&c?-1:1,f=We(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof v=="number"&&(y=s==="end"?v*-1:v),c?{x:y*p,y:g*l}:{x:g*l,y:y*p}}const Th=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Ah(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Ph=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:b=>{let{x,y:S}=b;return{x,y:S}}},...c}=We(e,t),l={x:n,y:r},p=await an(t,c),f=Oe(Ve(o)),g=Wo(f);let y=l[g],v=l[f];if(a){const b=g==="y"?"top":"left",x=g==="y"?"bottom":"right",S=y+p[b],E=y-p[x];y=lo(S,y,E)}if(i){const b=f==="y"?"top":"left",x=f==="y"?"bottom":"right",S=v+p[b],E=v-p[x];v=lo(S,v,E)}const u=s.fn({...t,[g]:y,[f]:v});return{...u,data:{x:u.x-n,y:u.y-r,enabled:{[g]:a,[f]:i}}}}}},Mh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=We(e,t),p={x:n,y:r},f=Oe(o),g=Wo(f);let y=p[g],v=p[f];const u=We(s,t),b=typeof u=="number"?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(c){const E=g==="y"?"height":"width",C=a.reference[g]-a.floating[E]+b.mainAxis,w=a.reference[g]+a.reference[E]-b.mainAxis;y<C?y=C:y>w&&(y=w)}if(l){var x,S;const E=g==="y"?"width":"height",C=As.has(Ve(o)),w=a.reference[f]-a.floating[E]+(C&&((x=i.offset)==null?void 0:x[f])||0)+(C?0:b.crossAxis),T=a.reference[f]+a.reference[E]+(C?0:((S=i.offset)==null?void 0:S[f])||0)-(C?b.crossAxis:0);v<w?v=w:v>T&&(v=T)}return{[g]:y,[f]:v}}}},kh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=We(e,t),p=await an(t,l),f=Ve(o),g=Wt(o),y=Oe(o)==="y",{width:v,height:u}=a.floating;let b,x;f==="top"||f==="bottom"?(b=f,x=g===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=f,b=g==="end"?"top":"bottom");const S=u-p.top-p.bottom,E=v-p.left-p.right,C=Ye(u-p[b],S),w=Ye(v-p[x],E),T=!t.middlewareData.shift;let A=C,k=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=S),T&&!g){const h=fe(p.left,0),P=fe(p.right,0),I=fe(p.top,0),O=fe(p.bottom,0);y?k=v-2*(h!==0||P!==0?h+P:fe(p.left,p.right)):A=u-2*(I!==0||O!==0?I+O:fe(p.top,p.bottom))}await c({...t,availableWidth:k,availableHeight:A});const _=await i.getDimensions(s.floating);return v!==_.width||u!==_.height?{reset:{rects:!0}}:{}}}};function pr(){return typeof window<"u"}function Vt(e){return Ts(e)?(e.nodeName||"").toLowerCase():"#document"}function ge(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function De(e){var t;return(t=(Ts(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ts(e){return pr()?e instanceof Node||e instanceof ge(e).Node:!1}function Se(e){return pr()?e instanceof Element||e instanceof ge(e).Element:!1}function $e(e){return pr()?e instanceof HTMLElement||e instanceof ge(e).HTMLElement:!1}function li(e){return!pr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ge(e).ShadowRoot}const Oh=new Set(["inline","contents"]);function gn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Oh.has(o)}const Ih=new Set(["table","td","th"]);function _h(e){return Ih.has(Vt(e))}const Nh=[":popover-open",":modal"];function mr(e){return Nh.some(t=>{try{return e.matches(t)}catch{return!1}})}const $h=["transform","translate","scale","rotate","perspective"],Dh=["transform","translate","scale","rotate","perspective","filter"],jh=["paint","layout","strict","content"];function Go(e){const t=Uo(),n=Se(e)?Ee(e):e;return $h.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Dh.some(r=>(n.willChange||"").includes(r))||jh.some(r=>(n.contain||"").includes(r))}function Lh(e){let t=Xe(e);for(;$e(t)&&!Lt(t);){if(Go(t))return t;if(mr(t))return null;t=Xe(t)}return null}function Uo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Fh=new Set(["html","body","#document"]);function Lt(e){return Fh.has(Vt(e))}function Ee(e){return ge(e).getComputedStyle(e)}function hr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xe(e){if(Vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||li(e)&&e.host||De(e);return li(t)?t.host:t}function Ps(e){const t=Xe(e);return Lt(t)?e.ownerDocument?e.ownerDocument.body:e.body:$e(t)&&gn(t)?t:Ps(t)}function sn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ps(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=ge(o);if(a){const s=fo(i);return t.concat(i,i.visualViewport||[],gn(o)?o:[],s&&n?sn(s):[])}return t.concat(o,sn(o,[],n))}function fo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ms(e){const t=Ee(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$e(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Hn(n)!==a||Hn(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Ko(e){return Se(e)?e:e.contextElement}function Nt(e){const t=Ko(e);if(!$e(t))return _e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Ms(t);let i=(a?Hn(n.width):n.width)/r,s=(a?Hn(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Bh=_e(0);function ks(e){const t=ge(e);return!Uo()||!t.visualViewport?Bh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zh(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ge(e)?!1:t}function dt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Ko(e);let i=_e(1);t&&(r?Se(r)&&(i=Nt(r)):i=Nt(e));const s=zh(a,n,r)?ks(a):_e(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,p=o.width/i.x,f=o.height/i.y;if(a){const g=ge(a),y=r&&Se(r)?ge(r):r;let v=g,u=fo(v);for(;u&&r&&y!==v;){const b=Nt(u),x=u.getBoundingClientRect(),S=Ee(u),E=x.left+(u.clientLeft+parseFloat(S.paddingLeft))*b.x,C=x.top+(u.clientTop+parseFloat(S.paddingTop))*b.y;c*=b.x,l*=b.y,p*=b.x,f*=b.y,c+=E,l+=C,v=ge(u),u=fo(v)}}return Un({width:p,height:f,x:c,y:l})}function Yo(e,t){const n=hr(e).scrollLeft;return t?t.left+n:dt(De(e)).left+n}function Os(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Yo(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Wh(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=De(r),s=t?mr(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=_e(1);const p=_e(0),f=$e(r);if((f||!f&&!a)&&((Vt(r)!=="body"||gn(i))&&(c=hr(r)),$e(r))){const y=dt(r);l=Nt(r),p.x=y.x+r.clientLeft,p.y=y.y+r.clientTop}const g=i&&!f&&!a?Os(i,c,!0):_e(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+p.x+g.x,y:n.y*l.y-c.scrollTop*l.y+p.y+g.y}}function Vh(e){return Array.from(e.getClientRects())}function Hh(e){const t=De(e),n=hr(e),r=e.ownerDocument.body,o=fe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Yo(e);const s=-n.scrollTop;return Ee(r).direction==="rtl"&&(i+=fe(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Gh(e,t){const n=ge(e),r=De(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const l=Uo();(!l||l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}const Uh=new Set(["absolute","fixed"]);function Kh(e,t){const n=dt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=$e(e)?Nt(e):_e(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function ui(e,t,n){let r;if(t==="viewport")r=Gh(e,n);else if(t==="document")r=Hh(De(e));else if(Se(t))r=Kh(t,n);else{const o=ks(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Un(r)}function Is(e,t){const n=Xe(e);return n===t||!Se(n)||Lt(n)?!1:Ee(n).position==="fixed"||Is(n,t)}function Yh(e,t){const n=t.get(e);if(n)return n;let r=sn(e,[],!1).filter(s=>Se(s)&&Vt(s)!=="body"),o=null;const a=Ee(e).position==="fixed";let i=a?Xe(e):e;for(;Se(i)&&!Lt(i);){const s=Ee(i),c=Go(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&Uh.has(o.position)||gn(i)&&!c&&Is(e,i))?r=r.filter(p=>p!==i):o=s,i=Xe(i)}return t.set(e,r),r}function Xh(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?mr(t)?[]:Yh(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((l,p)=>{const f=ui(t,p,o);return l.top=fe(f.top,l.top),l.right=Ye(f.right,l.right),l.bottom=Ye(f.bottom,l.bottom),l.left=fe(f.left,l.left),l},ui(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qh(e){const{width:t,height:n}=Ms(e);return{width:t,height:n}}function Zh(e,t,n){const r=$e(t),o=De(t),a=n==="fixed",i=dt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=_e(0);function l(){c.x=Yo(o)}if(r||!r&&!a)if((Vt(t)!=="body"||gn(o))&&(s=hr(t)),r){const y=dt(t,!0,a,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else o&&l();a&&!r&&o&&l();const p=o&&!r&&!a?Os(o,s):_e(0),f=i.left+s.scrollLeft-c.x-p.x,g=i.top+s.scrollTop-c.y-p.y;return{x:f,y:g,width:i.width,height:i.height}}function Hr(e){return Ee(e).position==="static"}function di(e,t){if(!$e(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return De(e)===n&&(n=n.ownerDocument.body),n}function _s(e,t){const n=ge(e);if(mr(e))return n;if(!$e(e)){let o=Xe(e);for(;o&&!Lt(o);){if(Se(o)&&!Hr(o))return o;o=Xe(o)}return n}let r=di(e,t);for(;r&&_h(r)&&Hr(r);)r=di(r,t);return r&&Lt(r)&&Hr(r)&&!Go(r)?n:r||Lh(e)||n}const Qh=async function(e){const t=this.getOffsetParent||_s,n=this.getDimensions,r=await n(e.floating);return{reference:Zh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Jh(e){return Ee(e).direction==="rtl"}const eg={convertOffsetParentRelativeRectToViewportRelativeRect:Wh,getDocumentElement:De,getClippingRect:Xh,getOffsetParent:_s,getElementRects:Qh,getClientRects:Vh,getDimensions:qh,getScale:Nt,isElement:Se,isRTL:Jh};function Ns(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tg(e,t){let n=null,r;const o=De(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:p,top:f,width:g,height:y}=l;if(s||t(),!g||!y)return;const v=Mn(f),u=Mn(o.clientWidth-(p+g)),b=Mn(o.clientHeight-(f+y)),x=Mn(p),E={rootMargin:-v+"px "+-u+"px "+-b+"px "+-x+"px",threshold:fe(0,Ye(1,c))||1};let C=!0;function w(T){const A=T[0].intersectionRatio;if(A!==c){if(!C)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Ns(l,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(w,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,E)}n.observe(e)}return i(!0),a}function ng(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ko(e),p=o||a?[...l?sn(l):[],...sn(t)]:[];p.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});const f=l&&s?tg(l,n):null;let g=-1,y=null;i&&(y=new ResizeObserver(x=>{let[S]=x;S&&S.target===l&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=y)==null||E.observe(t)})),n()}),l&&!c&&y.observe(l),y.observe(t));let v,u=c?dt(e):null;c&&b();function b(){const x=dt(e);u&&!Ns(u,x)&&n(),u=x,v=requestAnimationFrame(b)}return n(),()=>{var x;p.forEach(S=>{o&&S.removeEventListener("scroll",n),a&&S.removeEventListener("resize",n)}),f==null||f(),(x=y)==null||x.disconnect(),y=null,c&&cancelAnimationFrame(v)}}const rg=Th,og=Ph,ag=Eh,ig=kh,sg=Rh,fi=Sh,cg=Mh,lg=(e,t,n)=>{const r=new Map,o={platform:eg,...n},a={...o.platform,_c:r};return Ch(e,t,{...o,platform:a})};var ug=typeof document<"u",dg=function(){},jn=ug?d.useLayoutEffect:dg;function Kn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Kn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!Kn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function $s(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pi(e,t){const n=$s(e);return Math.round(t*n)/n}function Gr(e){const t=d.useRef(e);return jn(()=>{t.current=e}),t}function fg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[p,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=d.useState(r);Kn(g,r)||y(r);const[v,u]=d.useState(null),[b,x]=d.useState(null),S=d.useCallback(N=>{N!==T.current&&(T.current=N,u(N))},[]),E=d.useCallback(N=>{N!==A.current&&(A.current=N,x(N))},[]),C=a||v,w=i||b,T=d.useRef(null),A=d.useRef(null),k=d.useRef(p),_=c!=null,h=Gr(c),P=Gr(o),I=Gr(l),O=d.useCallback(()=>{if(!T.current||!A.current)return;const N={placement:t,strategy:n,middleware:g};P.current&&(N.platform=P.current),lg(T.current,A.current,N).then(M=>{const Y={...M,isPositioned:I.current!==!1};$.current&&!Kn(k.current,Y)&&(k.current=Y,hl.flushSync(()=>{f(Y)}))})},[g,t,n,P,I]);jn(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,f(N=>({...N,isPositioned:!1})))},[l]);const $=d.useRef(!1);jn(()=>($.current=!0,()=>{$.current=!1}),[]),jn(()=>{if(C&&(T.current=C),w&&(A.current=w),C&&w){if(h.current)return h.current(C,w,O);O()}},[C,w,O,h,_]);const L=d.useMemo(()=>({reference:T,floating:A,setReference:S,setFloating:E}),[S,E]),D=d.useMemo(()=>({reference:C,floating:w}),[C,w]),B=d.useMemo(()=>{const N={position:n,left:0,top:0};if(!D.floating)return N;const M=pi(D.floating,p.x),Y=pi(D.floating,p.y);return s?{...N,transform:"translate("+M+"px, "+Y+"px)",...$s(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:Y}},[n,s,D.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:O,refs:L,elements:D,floatingStyles:B}),[p,O,L,D,B])}const pg=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?fi({element:r.current,padding:o}).fn(n):{}:r?fi({element:r,padding:o}).fn(n):{}}}},mg=(e,t)=>({...rg(e),options:[e,t]}),hg=(e,t)=>({...og(e),options:[e,t]}),gg=(e,t)=>({...cg(e),options:[e,t]}),vg=(e,t)=>({...ag(e),options:[e,t]}),yg=(e,t)=>({...ig(e),options:[e,t]}),bg=(e,t)=>({...sg(e),options:[e,t]}),xg=(e,t)=>({...pg(e),options:[e,t]});var wg="Arrow",Ds=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return m.jsx(X.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ds.displayName=wg;var Cg=Ds,Xo="Popper",[js,gr]=qe(Xo),[Sg,Ls]=js(Xo),Fs=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return m.jsx(Sg,{scope:t,anchor:r,onAnchorChange:o,children:n})};Fs.displayName=Xo;var Bs="PopperAnchor",zs=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ls(Bs,n),i=d.useRef(null),s=oe(t,i);return d.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:m.jsx(X.div,{...o,ref:s})});zs.displayName=Bs;var qo="PopperContent",[Eg,Rg]=js(qo),Ws=d.forwardRef((e,t)=>{var Ce,Je,le,et,xn,wn;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:v,...u}=e,b=Ls(qo,n),[x,S]=d.useState(null),E=oe(t,tt=>S(tt)),[C,w]=d.useState(null),T=pl(C),A=(T==null?void 0:T.width)??0,k=(T==null?void 0:T.height)??0,_=r+(a!=="center"?"-"+a:""),h=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},P=Array.isArray(l)?l:[l],I=P.length>0,O={padding:h,boundary:P.filter(Tg),altBoundary:I},{refs:$,floatingStyles:L,placement:D,isPositioned:B,middlewareData:N}=fg({strategy:"fixed",placement:_,whileElementsMounted:(...tt)=>ng(...tt,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[mg({mainAxis:o+k,alignmentAxis:i}),c&&hg({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?gg():void 0,...O}),c&&vg({...O}),yg({...O,apply:({elements:tt,rects:yt,availableWidth:Tr,availableHeight:Pr})=>{const{width:bt,height:nt}=yt.reference,xt=tt.floating.style;xt.setProperty("--radix-popper-available-width",`${Tr}px`),xt.setProperty("--radix-popper-available-height",`${Pr}px`),xt.setProperty("--radix-popper-anchor-width",`${bt}px`),xt.setProperty("--radix-popper-anchor-height",`${nt}px`)}}),C&&xg({element:C,padding:s}),Pg({arrowWidth:A,arrowHeight:k}),g&&bg({strategy:"referenceHidden",...O})]}),[M,Y]=Gs(D),Z=Ne(v);$t(()=>{B&&(Z==null||Z())},[B,Z]);const se=(Ce=N.arrow)==null?void 0:Ce.x,Ze=(Je=N.arrow)==null?void 0:Je.y,Qe=((le=N.arrow)==null?void 0:le.centerOffset)!==0,[vt,je]=d.useState();return $t(()=>{x&&je(window.getComputedStyle(x).zIndex)},[x]),m.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:B?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:vt,"--radix-popper-transform-origin":[(et=N.transformOrigin)==null?void 0:et.x,(xn=N.transformOrigin)==null?void 0:xn.y].join(" "),...((wn=N.hide)==null?void 0:wn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(Eg,{scope:n,placedSide:M,onArrowChange:w,arrowX:se,arrowY:Ze,shouldHideArrow:Qe,children:m.jsx(X.div,{"data-side":M,"data-align":Y,...u,ref:E,style:{...u.style,animation:B?void 0:"none"}})})})});Ws.displayName=qo;var Vs="PopperArrow",Ag={top:"bottom",right:"left",bottom:"top",left:"right"},Hs=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Rg(Vs,r),i=Ag[a.placedSide];return m.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:m.jsx(Cg,{...o,ref:n,style:{...o.style,display:"block"}})})});Hs.displayName=Vs;function Tg(e){return e!==null}var Pg=e=>({name:"transformOrigin",options:e,fn(t){var b,x,S;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,p]=Gs(n),f={start:"0%",center:"50%",end:"100%"}[p],g=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,y=(((S=o.arrow)==null?void 0:S.y)??0)+c/2;let v="",u="";return l==="bottom"?(v=i?f:`${g}px`,u=`${-c}px`):l==="top"?(v=i?f:`${g}px`,u=`${r.floating.height+c}px`):l==="right"?(v=`${-c}px`,u=i?f:`${y}px`):l==="left"&&(v=`${r.floating.width+c}px`,u=i?f:`${y}px`),{data:{x:v,y:u}}}});function Gs(e){const[t,n="center"]=e.split("-");return[t,n]}var Us=Fs,Ks=zs,Ys=Ws,Xs=Hs,Mg="VisuallyHidden",qs=d.forwardRef((e,t)=>m.jsx(X.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));qs.displayName=Mg;var kg=qs,[vr,J0]=qe("Tooltip",[gr]),yr=gr(),Zs="TooltipProvider",Og=700,po="tooltip.open",[Ig,Zo]=vr(Zs),Qs=e=>{const{__scopeTooltip:t,delayDuration:n=Og,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=d.useState(!0),c=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),m.jsx(Ig,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),s(!1)},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:d.useCallback(p=>{c.current=p},[]),disableHoverableContent:o,children:a})};Qs.displayName=Zs;var br="Tooltip",[_g,vn]=vr(br),Js=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=Zo(br,e.__scopeTooltip),l=yr(t),[p,f]=d.useState(null),g=it(),y=d.useRef(0),v=i??c.disableHoverableContent,u=s??c.delayDuration,b=d.useRef(!1),[x=!1,S]=qn({prop:r,defaultProp:o,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(po))):c.onClose(),a==null||a(A)}}),E=d.useMemo(()=>x?b.current?"delayed-open":"instant-open":"closed",[x]),C=d.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,S(!0)},[S]),w=d.useCallback(()=>{window.clearTimeout(y.current),y.current=0,S(!1)},[S]),T=d.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,S(!0),y.current=0},u)},[u,S]);return d.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),m.jsx(Us,{...l,children:m.jsx(_g,{scope:t,contentId:g,open:x,stateAttribute:E,trigger:p,onTriggerChange:f,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayed?T():C()},[c.isOpenDelayed,T,C]),onTriggerLeave:d.useCallback(()=>{v?w():(window.clearTimeout(y.current),y.current=0)},[w,v]),onOpen:C,onClose:w,disableHoverableContent:v,children:n})})};Js.displayName=br;var mo="TooltipTrigger",ec=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=vn(mo,n),a=Zo(mo,n),i=yr(n),s=d.useRef(null),c=oe(t,s,o.onTriggerChange),l=d.useRef(!1),p=d.useRef(!1),f=d.useCallback(()=>l.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),m.jsx(Ks,{asChild:!0,...i,children:m.jsx(X.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:j(e.onPointerMove,g=>{g.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:j(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:j(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:j(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:j(e.onBlur,o.onClose),onClick:j(e.onClick,o.onClose)})})});ec.displayName=mo;var Qo="TooltipPortal",[Ng,$g]=vr(Qo,{forceMount:void 0}),tc=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=vn(Qo,t);return m.jsx(Ng,{scope:t,forceMount:n,children:m.jsx(He,{present:n||a.open,children:m.jsx(dr,{asChild:!0,container:o,children:r})})})};tc.displayName=Qo;var Ft="TooltipContent",nc=d.forwardRef((e,t)=>{const n=$g(Ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=vn(Ft,e.__scopeTooltip);return m.jsx(He,{present:r||i.open,children:i.disableHoverableContent?m.jsx(rc,{side:o,...a,ref:t}):m.jsx(Dg,{side:o,...a,ref:t})})}),Dg=d.forwardRef((e,t)=>{const n=vn(Ft,e.__scopeTooltip),r=Zo(Ft,e.__scopeTooltip),o=d.useRef(null),a=oe(t,o),[i,s]=d.useState(null),{trigger:c,onClose:l}=n,p=o.current,{onPointerInTransitChange:f}=r,g=d.useCallback(()=>{s(null),f(!1)},[f]),y=d.useCallback((v,u)=>{const b=v.currentTarget,x={x:v.clientX,y:v.clientY},S=Fg(x,b.getBoundingClientRect()),E=Bg(x,S),C=zg(u.getBoundingClientRect()),w=Vg([...E,...C]);s(w),f(!0)},[f]);return d.useEffect(()=>()=>g(),[g]),d.useEffect(()=>{if(c&&p){const v=b=>y(b,p),u=b=>y(b,c);return c.addEventListener("pointerleave",v),p.addEventListener("pointerleave",u),()=>{c.removeEventListener("pointerleave",v),p.removeEventListener("pointerleave",u)}}},[c,p,y,g]),d.useEffect(()=>{if(i){const v=u=>{const b=u.target,x={x:u.clientX,y:u.clientY},S=(c==null?void 0:c.contains(b))||(p==null?void 0:p.contains(b)),E=!Wg(x,i);S?g():E&&(g(),l())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,p,i,l,g]),m.jsx(rc,{...e,ref:a})}),[jg,Lg]=vr(br,{isInside:!1}),rc=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=vn(Ft,n),l=yr(n),{onClose:p}=c;return d.useEffect(()=>(document.addEventListener(po,p),()=>document.removeEventListener(po,p)),[p]),d.useEffect(()=>{if(c.trigger){const f=g=>{const y=g.target;y!=null&&y.contains(c.trigger)&&p()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,p]),m.jsx(ur,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:p,children:m.jsxs(Ys,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(cl,{children:r}),m.jsx(jg,{scope:n,isInside:!0,children:m.jsx(kg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});nc.displayName=Ft;var oc="TooltipArrow",ac=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=yr(n);return Lg(oc,n).isInside?null:m.jsx(Xs,{...o,...r,ref:t})});ac.displayName=oc;function Fg(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Bg(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function zg(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Wg(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,l=t[i].x,p=t[i].y;c>r!=p>r&&n<(l-s)*(r-c)/(p-c)+s&&(o=!o)}return o}function Vg(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Hg(t)}function Hg(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Gg=Qs,Ug=Js,Kg=ec,Yg=tc,Xg=nc,qg=ac;function ic({delayDuration:e=0,...t}){return m.jsx(Gg,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Zg({...e}){return m.jsx(ic,{children:m.jsx(Ug,{"data-slot":"tooltip",...e})})}function Qg({...e}){return m.jsx(Kg,{"data-slot":"tooltip-trigger",...e})}function Jg({className:e,sideOffset:t=4,children:n,...r}){return m.jsx(Yg,{children:m.jsxs(Xg,{"data-slot":"tooltip-content",sideOffset:t,className:z("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-w-sm rounded-md px-3 py-1.5 text-xs",e),...r,children:[n,m.jsx(qg,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const ev="sidebar_state",tv=60*60*24*7,nv="16rem",rv="18rem",ov="3rem",av="b",sc=d.createContext(null);function xr(){const e=d.useContext(sc);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function iv({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i}){const s=qi(),[c,l]=d.useState(!1),[p,f]=d.useState(e),g=t??p,y=d.useCallback(x=>{const S=typeof x=="function"?x(g):x;n?n(S):f(S),document.cookie=`${ev}=${S}; path=/; max-age=${tv}`},[n,g]),v=d.useCallback(()=>s?l(x=>!x):y(x=>!x),[s,y,l]);d.useEffect(()=>{const x=S=>{S.key===av&&(S.metaKey||S.ctrlKey)&&(S.preventDefault(),v())};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[v]);const u=g?"expanded":"collapsed",b=d.useMemo(()=>({state:u,open:g,setOpen:y,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:v}),[u,g,y,s,c,l,v]);return m.jsx(sc.Provider,{value:b,children:m.jsx(ic,{delayDuration:0,children:m.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nv,"--sidebar-width-icon":ov,...o},className:z("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",r),...i,children:a})})})}function sv({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a}){const{isMobile:i,state:s,openMobile:c,setOpenMobile:l}=xr();return n==="none"?m.jsx("div",{"data-slot":"sidebar",className:z("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...a,children:o}):i?m.jsxs(oh,{open:c,onOpenChange:l,...a,children:[m.jsxs(ch,{className:"sr-only",children:[m.jsx(lh,{children:"Sidebar"}),m.jsx(uh,{children:"Displays the mobile sidebar."})]}),m.jsx(sh,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":rv},side:e,children:m.jsx("div",{className:"flex h-full w-full flex-col",children:o})})]}):m.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[m.jsx("div",{className:z("relative h-svh w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),m.jsx("div",{className:z("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:m.jsx("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})}function cv({className:e,onClick:t,...n}){const{toggleSidebar:r}=xr();return m.jsxs(ul,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:z("h-7 w-7",e),onClick:o=>{t==null||t(o),r()},...n,children:[m.jsx(Ml,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function lv({className:e,...t}){return m.jsx("main",{"data-slot":"sidebar-inset",className:z("bg-background relative flex max-w-full min-h-svh flex-1 flex-col","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-0",e),...t})}function uv({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:z("flex flex-col gap-2 p-2",e),...t})}function dv({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:z("flex flex-col gap-2 p-2",e),...t})}function fv({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:z("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function cc({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:z("relative flex w-full min-w-0 flex-col p-2",e),...t})}function pv({className:e,asChild:t=!1,...n}){const r=t?st:"div";return m.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:z("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 group-data-[collapsible=icon]:select-none group-data-[collapsible=icon]:pointer-events-none",e),...n})}function mv({className:e,...t}){return m.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:z("w-full text-sm",e),...t})}function wr({className:e,...t}){return m.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:z("flex w-full min-w-0 flex-col gap-1",e),...t})}function Cr({className:e,...t}){return m.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:z("group/menu-item relative",e),...t})}const hv=ll("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Sr({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i}){const s=e?st:"button",{isMobile:c,state:l}=xr(),p=m.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":t,className:z(hv({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),m.jsxs(Zg,{children:[m.jsx(Qg,{asChild:!0,children:p}),m.jsx(Jg,{side:"right",align:"center",hidden:l!=="collapsed"||c,...o})]})):p}function gv({variant:e="header",children:t,...n}){return e==="sidebar"?m.jsx(lv,{...n,children:t}):m.jsx("main",{className:"mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl",...n,children:t})}function vv({children:e,variant:t="header"}){const n=vo().props.sidebarOpen;return t==="header"?m.jsx("div",{className:"flex min-h-screen w-full flex-col",children:e}):m.jsx(iv,{defaultOpen:n,children:e})}function yv({iconNode:e,className:t,...n}){return m.jsx(e,{className:z("h-4 w-4",t),...n})}function bv({items:e,className:t,...n}){return m.jsx(cc,{...n,className:`group-data-[collapsible=icon]:p-0 ${t||""}`,children:m.jsx(mv,{children:m.jsx(wr,{children:e.map(r=>m.jsx(Cr,{children:m.jsx(Sr,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:m.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&m.jsx(yv,{iconNode:r.icon,className:"h-5 w-5"}),m.jsx("span",{children:r.title})]})})},r.title))})})})}function xv({items:e=[]}){const t=vo();return m.jsxs(cc,{className:"px-2 py-0",children:[m.jsx(pv,{children:"Platform"}),m.jsx(wr,{children:e.map(n=>m.jsx(Cr,{children:m.jsx(Sr,{asChild:!0,isActive:t.url.startsWith(n.href),tooltip:{children:n.title},children:m.jsxs(Zt,{href:n.href,prefetch:!0,children:[n.icon&&m.jsx(n.icon,{}),m.jsx("span",{children:n.title})]})})},n.title))})]})}function lc(e){const t=e+"CollectionProvider",[n,r]=qe(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:v,children:u}=y,b=ve.useRef(null),x=ve.useRef(new Map).current;return m.jsx(o,{scope:v,itemMap:x,collectionRef:b,children:u})};i.displayName=t;const s=e+"CollectionSlot",c=ve.forwardRef((y,v)=>{const{scope:u,children:b}=y,x=a(s,u),S=oe(v,x.collectionRef);return m.jsx(st,{ref:S,children:b})});c.displayName=s;const l=e+"CollectionItemSlot",p="data-radix-collection-item",f=ve.forwardRef((y,v)=>{const{scope:u,children:b,...x}=y,S=ve.useRef(null),E=oe(v,S),C=a(l,u);return ve.useEffect(()=>(C.itemMap.set(S,{ref:S,...x}),()=>void C.itemMap.delete(S))),m.jsx(st,{[p]:"",ref:E,children:b})});f.displayName=l;function g(y){const v=a(e+"CollectionConsumer",y);return ve.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((C,w)=>x.indexOf(C.ref.current)-x.indexOf(w.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:c,ItemSlot:f},g,r]}var wv=d.createContext(void 0);function uc(e){const t=d.useContext(wv);return e||t||"ltr"}var Ur="rovingFocusGroup.onEntryFocus",Cv={bubbles:!1,cancelable:!0},Er="RovingFocusGroup",[ho,dc,Sv]=lc(Er),[Ev,fc]=qe(Er,[Sv]),[Rv,Av]=Ev(Er),pc=d.forwardRef((e,t)=>m.jsx(ho.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(ho.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Tv,{...e,ref:t})})}));pc.displayName=Er;var Tv=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:p=!1,...f}=e,g=d.useRef(null),y=oe(t,g),v=uc(a),[u=null,b]=qn({prop:i,defaultProp:s,onChange:c}),[x,S]=d.useState(!1),E=Ne(l),C=dc(n),w=d.useRef(!1),[T,A]=d.useState(0);return d.useEffect(()=>{const k=g.current;if(k)return k.addEventListener(Ur,E),()=>k.removeEventListener(Ur,E)},[E]),m.jsx(Rv,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:u,onItemFocus:d.useCallback(k=>b(k),[b]),onItemShiftTab:d.useCallback(()=>S(!0),[]),onFocusableItemAdd:d.useCallback(()=>A(k=>k+1),[]),onFocusableItemRemove:d.useCallback(()=>A(k=>k-1),[]),children:m.jsx(X.div,{tabIndex:x||T===0?-1:0,"data-orientation":r,...f,ref:y,style:{outline:"none",...e.style},onMouseDown:j(e.onMouseDown,()=>{w.current=!0}),onFocus:j(e.onFocus,k=>{const _=!w.current;if(k.target===k.currentTarget&&_&&!x){const h=new CustomEvent(Ur,Cv);if(k.currentTarget.dispatchEvent(h),!h.defaultPrevented){const P=C().filter(D=>D.focusable),I=P.find(D=>D.active),O=P.find(D=>D.id===u),L=[I,O,...P].filter(Boolean).map(D=>D.ref.current);gc(L,p)}}w.current=!1}),onBlur:j(e.onBlur,()=>S(!1))})})}),mc="RovingFocusGroupItem",hc=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=it(),c=a||s,l=Av(mc,n),p=l.currentTabStopId===c,f=dc(n),{onFocusableItemAdd:g,onFocusableItemRemove:y}=l;return d.useEffect(()=>{if(r)return g(),()=>y()},[r,g,y]),m.jsx(ho.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:m.jsx(X.span,{tabIndex:p?0:-1,"data-orientation":l.orientation,...i,ref:t,onMouseDown:j(e.onMouseDown,v=>{r?l.onItemFocus(c):v.preventDefault()}),onFocus:j(e.onFocus,()=>l.onItemFocus(c)),onKeyDown:j(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const u=kv(v,l.orientation,l.dir);if(u!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=f().filter(S=>S.focusable).map(S=>S.ref.current);if(u==="last")x.reverse();else if(u==="prev"||u==="next"){u==="prev"&&x.reverse();const S=x.indexOf(v.currentTarget);x=l.loop?Ov(x,S+1):x.slice(S+1)}setTimeout(()=>gc(x))}})})})});hc.displayName=mc;var Pv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function kv(e,t,n){const r=Mv(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Pv[r]}function gc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Ov(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Iv=pc,_v=hc,go=["Enter"," "],Nv=["ArrowDown","PageUp","Home"],vc=["ArrowUp","PageDown","End"],$v=[...Nv,...vc],Dv={ltr:[...go,"ArrowRight"],rtl:[...go,"ArrowLeft"]},jv={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yn="Menu",[cn,Lv,Fv]=lc(yn),[ht,yc]=qe(yn,[Fv,gr,fc]),Rr=gr(),bc=fc(),[Bv,gt]=ht(yn),[zv,bn]=ht(yn),xc=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Rr(t),[c,l]=d.useState(null),p=d.useRef(!1),f=Ne(a),g=uc(o);return d.useEffect(()=>{const y=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),m.jsx(Us,{...s,children:m.jsx(Bv,{scope:t,open:n,onOpenChange:f,content:c,onContentChange:l,children:m.jsx(zv,{scope:t,onClose:d.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:p,dir:g,modal:i,children:r})})})};xc.displayName=yn;var Wv="MenuAnchor",Jo=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Rr(n);return m.jsx(Ks,{...o,...r,ref:t})});Jo.displayName=Wv;var ea="MenuPortal",[Vv,wc]=ht(ea,{forceMount:void 0}),Cc=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=gt(ea,t);return m.jsx(Vv,{scope:t,forceMount:n,children:m.jsx(He,{present:n||a.open,children:m.jsx(dr,{asChild:!0,container:o,children:r})})})};Cc.displayName=ea;var xe="MenuContent",[Hv,ta]=ht(xe),Sc=d.forwardRef((e,t)=>{const n=wc(xe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=gt(xe,e.__scopeMenu),i=bn(xe,e.__scopeMenu);return m.jsx(cn.Provider,{scope:e.__scopeMenu,children:m.jsx(He,{present:r||a.open,children:m.jsx(cn.Slot,{scope:e.__scopeMenu,children:i.modal?m.jsx(Gv,{...o,ref:t}):m.jsx(Uv,{...o,ref:t})})})})}),Gv=d.forwardRef((e,t)=>{const n=gt(xe,e.__scopeMenu),r=d.useRef(null),o=oe(t,r);return d.useEffect(()=>{const a=r.current;if(a)return ls(a)},[]),m.jsx(na,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:j(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Uv=d.forwardRef((e,t)=>{const n=gt(xe,e.__scopeMenu);return m.jsx(na,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),na=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:g,onDismiss:y,disableOutsideScroll:v,...u}=e,b=gt(xe,n),x=bn(xe,n),S=Rr(n),E=bc(n),C=Lv(n),[w,T]=d.useState(null),A=d.useRef(null),k=oe(t,A,b.onContentChange),_=d.useRef(0),h=d.useRef(""),P=d.useRef(0),I=d.useRef(null),O=d.useRef("right"),$=d.useRef(0),L=v?jo:d.Fragment,D=v?{as:st,allowPinchZoom:!0}:void 0,B=M=>{var Ce,Je;const Y=h.current+M,Z=C().filter(le=>!le.disabled),se=document.activeElement,Ze=(Ce=Z.find(le=>le.ref.current===se))==null?void 0:Ce.textValue,Qe=Z.map(le=>le.textValue),vt=oy(Qe,Y,Ze),je=(Je=Z.find(le=>le.textValue===vt))==null?void 0:Je.ref.current;(function le(et){h.current=et,window.clearTimeout(_.current),et!==""&&(_.current=window.setTimeout(()=>le(""),1e3))})(Y),je&&setTimeout(()=>je.focus())};d.useEffect(()=>()=>window.clearTimeout(_.current),[]),es();const N=d.useCallback(M=>{var Z,se;return O.current===((Z=I.current)==null?void 0:Z.side)&&iy(M,(se=I.current)==null?void 0:se.area)},[]);return m.jsx(Hv,{scope:n,searchRef:h,onItemEnter:d.useCallback(M=>{N(M)&&M.preventDefault()},[N]),onItemLeave:d.useCallback(M=>{var Y;N(M)||((Y=A.current)==null||Y.focus(),T(null))},[N]),onTriggerLeave:d.useCallback(M=>{N(M)&&M.preventDefault()},[N]),pointerGraceTimerRef:P,onPointerGraceIntentChange:d.useCallback(M=>{I.current=M},[]),children:m.jsx(L,{...D,children:m.jsx(Do,{asChild:!0,trapped:o,onMountAutoFocus:j(a,M=>{var Y;M.preventDefault(),(Y=A.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:m.jsx(ur,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:f,onInteractOutside:g,onDismiss:y,children:m.jsx(Iv,{asChild:!0,...E,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:T,onEntryFocus:j(c,M=>{x.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(Ys,{role:"menu","aria-orientation":"vertical","data-state":Fc(b.open),"data-radix-menu-content":"",dir:x.dir,...S,...u,ref:k,style:{outline:"none",...u.style},onKeyDown:j(u.onKeyDown,M=>{const Z=M.target.closest("[data-radix-menu-content]")===M.currentTarget,se=M.ctrlKey||M.altKey||M.metaKey,Ze=M.key.length===1;Z&&(M.key==="Tab"&&M.preventDefault(),!se&&Ze&&B(M.key));const Qe=A.current;if(M.target!==Qe||!$v.includes(M.key))return;M.preventDefault();const je=C().filter(Ce=>!Ce.disabled).map(Ce=>Ce.ref.current);vc.includes(M.key)&&je.reverse(),ny(je)}),onBlur:j(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(_.current),h.current="")}),onPointerMove:j(e.onPointerMove,ln(M=>{const Y=M.target,Z=$.current!==M.clientX;if(M.currentTarget.contains(Y)&&Z){const se=M.clientX>$.current?"right":"left";O.current=se,$.current=M.clientX}}))})})})})})})});Sc.displayName=xe;var Kv="MenuGroup",ra=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(X.div,{role:"group",...r,ref:t})});ra.displayName=Kv;var Yv="MenuLabel",Ec=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(X.div,{...r,ref:t})});Ec.displayName=Yv;var Yn="MenuItem",mi="menu.itemSelect",Ar=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),i=bn(Yn,e.__scopeMenu),s=ta(Yn,e.__scopeMenu),c=oe(t,a),l=d.useRef(!1),p=()=>{const f=a.current;if(!n&&f){const g=new CustomEvent(mi,{bubbles:!0,cancelable:!0});f.addEventListener(mi,y=>r==null?void 0:r(y),{once:!0}),wi(f,g),g.defaultPrevented?l.current=!1:i.onClose()}};return m.jsx(Rc,{...o,ref:c,disabled:n,onClick:j(e.onClick,p),onPointerDown:f=>{var g;(g=e.onPointerDown)==null||g.call(e,f),l.current=!0},onPointerUp:j(e.onPointerUp,f=>{var g;l.current||(g=f.currentTarget)==null||g.click()}),onKeyDown:j(e.onKeyDown,f=>{const g=s.searchRef.current!=="";n||g&&f.key===" "||go.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Ar.displayName=Yn;var Rc=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=ta(Yn,n),s=bc(n),c=d.useRef(null),l=oe(t,c),[p,f]=d.useState(!1),[g,y]=d.useState("");return d.useEffect(()=>{const v=c.current;v&&y((v.textContent??"").trim())},[a.children]),m.jsx(cn.ItemSlot,{scope:n,disabled:r,textValue:o??g,children:m.jsx(_v,{asChild:!0,...s,focusable:!r,children:m.jsx(X.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:j(e.onPointerMove,ln(v=>{r?i.onItemLeave(v):(i.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:j(e.onPointerLeave,ln(v=>i.onItemLeave(v))),onFocus:j(e.onFocus,()=>f(!0)),onBlur:j(e.onBlur,()=>f(!1))})})})}),Xv="MenuCheckboxItem",Ac=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(Oc,{scope:e.__scopeMenu,checked:n,children:m.jsx(Ar,{role:"menuitemcheckbox","aria-checked":Xn(n)?"mixed":n,...o,ref:t,"data-state":aa(n),onSelect:j(o.onSelect,()=>r==null?void 0:r(Xn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ac.displayName=Xv;var Tc="MenuRadioGroup",[qv,Zv]=ht(Tc,{value:void 0,onValueChange:()=>{}}),Pc=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=Ne(r);return m.jsx(qv,{scope:e.__scopeMenu,value:n,onValueChange:a,children:m.jsx(ra,{...o,ref:t})})});Pc.displayName=Tc;var Mc="MenuRadioItem",kc=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=Zv(Mc,e.__scopeMenu),a=n===o.value;return m.jsx(Oc,{scope:e.__scopeMenu,checked:a,children:m.jsx(Ar,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":aa(a),onSelect:j(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});kc.displayName=Mc;var oa="MenuItemIndicator",[Oc,Qv]=ht(oa,{checked:!1}),Ic=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Qv(oa,n);return m.jsx(He,{present:r||Xn(a.checked)||a.checked===!0,children:m.jsx(X.span,{...o,ref:t,"data-state":aa(a.checked)})})});Ic.displayName=oa;var Jv="MenuSeparator",_c=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(X.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});_c.displayName=Jv;var ey="MenuArrow",Nc=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Rr(n);return m.jsx(Xs,{...o,...r,ref:t})});Nc.displayName=ey;var ty="MenuSub",[eb,$c]=ht(ty),Xt="MenuSubTrigger",Dc=d.forwardRef((e,t)=>{const n=gt(Xt,e.__scopeMenu),r=bn(Xt,e.__scopeMenu),o=$c(Xt,e.__scopeMenu),a=ta(Xt,e.__scopeMenu),i=d.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=a,l={__scopeMenu:e.__scopeMenu},p=d.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return d.useEffect(()=>p,[p]),d.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),c(null)}},[s,c]),m.jsx(Jo,{asChild:!0,...l,children:m.jsx(Rc,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Fc(n.open),...e,ref:xi(t,o.onTriggerChange),onClick:f=>{var g;(g=e.onClick)==null||g.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:j(e.onPointerMove,ln(f=>{a.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:j(e.onPointerLeave,ln(f=>{var y,v;p();const g=(y=n.content)==null?void 0:y.getBoundingClientRect();if(g){const u=(v=n.content)==null?void 0:v.dataset.side,b=u==="right",x=b?-5:5,S=g[b?"left":"right"],E=g[b?"right":"left"];a.onPointerGraceIntentChange({area:[{x:f.clientX+x,y:f.clientY},{x:S,y:g.top},{x:E,y:g.top},{x:E,y:g.bottom},{x:S,y:g.bottom}],side:u}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(f),f.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:j(e.onKeyDown,f=>{var y;const g=a.searchRef.current!=="";e.disabled||g&&f.key===" "||Dv[r.dir].includes(f.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),f.preventDefault())})})})});Dc.displayName=Xt;var jc="MenuSubContent",Lc=d.forwardRef((e,t)=>{const n=wc(xe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=gt(xe,e.__scopeMenu),i=bn(xe,e.__scopeMenu),s=$c(jc,e.__scopeMenu),c=d.useRef(null),l=oe(t,c);return m.jsx(cn.Provider,{scope:e.__scopeMenu,children:m.jsx(He,{present:r||a.open,children:m.jsx(cn.Slot,{scope:e.__scopeMenu,children:m.jsx(na,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var f;i.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:j(e.onFocusOutside,p=>{p.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:j(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:j(e.onKeyDown,p=>{var y;const f=p.currentTarget.contains(p.target),g=jv[i.dir].includes(p.key);f&&g&&(a.onOpenChange(!1),(y=s.trigger)==null||y.focus(),p.preventDefault())})})})})})});Lc.displayName=jc;function Fc(e){return e?"open":"closed"}function Xn(e){return e==="indeterminate"}function aa(e){return Xn(e)?"indeterminate":e?"checked":"unchecked"}function ny(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ry(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function oy(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=ry(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function ay(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,l=t[i].x,p=t[i].y;c>r!=p>r&&n<(l-s)*(r-c)/(p-c)+s&&(o=!o)}return o}function iy(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ay(n,t)}function ln(e){return t=>t.pointerType==="mouse"?e(t):void 0}var sy=xc,cy=Jo,ly=Cc,uy=Sc,dy=ra,fy=Ec,py=Ar,my=Ac,hy=Pc,gy=kc,vy=Ic,yy=_c,by=Nc,xy=Dc,wy=Lc,ia="DropdownMenu",[Cy,tb]=qe(ia,[yc]),ce=yc(),[Sy,Bc]=Cy(ia),zc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,c=ce(t),l=d.useRef(null),[p=!1,f]=qn({prop:o,defaultProp:a,onChange:i});return m.jsx(Sy,{scope:t,triggerId:it(),triggerRef:l,contentId:it(),open:p,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(g=>!g),[f]),modal:s,children:m.jsx(sy,{...c,open:p,onOpenChange:f,dir:r,modal:s,children:n})})};zc.displayName=ia;var Wc="DropdownMenuTrigger",Vc=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Bc(Wc,n),i=ce(n);return m.jsx(cy,{asChild:!0,...i,children:m.jsx(X.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:xi(t,a.triggerRef),onPointerDown:j(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:j(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Vc.displayName=Wc;var Ey="DropdownMenuPortal",Hc=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ce(t);return m.jsx(ly,{...r,...n})};Hc.displayName=Ey;var Gc="DropdownMenuContent",Uc=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Bc(Gc,n),a=ce(n),i=d.useRef(!1);return m.jsx(uy,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:j(e.onCloseAutoFocus,s=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:j(e.onInteractOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,p=c.button===2||l;(!o.modal||p)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Uc.displayName=Gc;var Ry="DropdownMenuGroup",Kc=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(dy,{...o,...r,ref:t})});Kc.displayName=Ry;var Ay="DropdownMenuLabel",Yc=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(fy,{...o,...r,ref:t})});Yc.displayName=Ay;var Ty="DropdownMenuItem",Xc=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(py,{...o,...r,ref:t})});Xc.displayName=Ty;var Py="DropdownMenuCheckboxItem",My=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(my,{...o,...r,ref:t})});My.displayName=Py;var ky="DropdownMenuRadioGroup",Oy=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(hy,{...o,...r,ref:t})});Oy.displayName=ky;var Iy="DropdownMenuRadioItem",_y=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(gy,{...o,...r,ref:t})});_y.displayName=Iy;var Ny="DropdownMenuItemIndicator",$y=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(vy,{...o,...r,ref:t})});$y.displayName=Ny;var Dy="DropdownMenuSeparator",qc=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(yy,{...o,...r,ref:t})});qc.displayName=Dy;var jy="DropdownMenuArrow",Ly=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(by,{...o,...r,ref:t})});Ly.displayName=jy;var Fy="DropdownMenuSubTrigger",By=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(xy,{...o,...r,ref:t})});By.displayName=Fy;var zy="DropdownMenuSubContent",Wy=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ce(n);return m.jsx(wy,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wy.displayName=zy;var Vy=zc,Hy=Vc,Gy=Hc,Uy=Uc,Ky=Kc,Yy=Yc,Xy=Xc,qy=qc;function Zy({...e}){return m.jsx(Vy,{"data-slot":"dropdown-menu",...e})}function Qy({...e}){return m.jsx(Hy,{"data-slot":"dropdown-menu-trigger",...e})}function Jy({className:e,sideOffset:t=4,...n}){return m.jsx(Gy,{children:m.jsx(Uy,{"data-slot":"dropdown-menu-content",sideOffset:t,className:z("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",e),...n})})}function e0({...e}){return m.jsx(Ky,{"data-slot":"dropdown-menu-group",...e})}function hi({className:e,inset:t,variant:n="default",...r}){return m.jsx(Xy,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:z("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function t0({className:e,inset:t,...n}){return m.jsx(Yy,{"data-slot":"dropdown-menu-label","data-inset":t,className:z("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function gi({className:e,...t}){return m.jsx(qy,{"data-slot":"dropdown-menu-separator",className:z("bg-border -mx-1 my-1 h-px",e),...t})}var sa="Avatar",[n0,nb]=qe(sa),[r0,Zc]=n0(sa),Qc=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=d.useState("idle");return m.jsx(r0,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:m.jsx(X.span,{...r,ref:t})})});Qc.displayName=sa;var Jc="AvatarImage",el=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Zc(Jc,n),s=o0(r,a.referrerPolicy),c=Ne(l=>{o(l),i.onImageLoadingStatusChange(l)});return $t(()=>{s!=="idle"&&c(s)},[s,c]),s==="loaded"?m.jsx(X.img,{...a,ref:t,src:r}):null});el.displayName=Jc;var tl="AvatarFallback",nl=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Zc(tl,n),[i,s]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(c)}},[r]),i&&a.imageLoadingStatus!=="loaded"?m.jsx(X.span,{...o,ref:t}):null});nl.displayName=tl;function o0(e,t){const[n,r]=d.useState("idle");return $t(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var a0=Qc,i0=el,s0=nl;function c0({className:e,...t}){return m.jsx(a0,{"data-slot":"avatar",className:z("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function l0({className:e,...t}){return m.jsx(i0,{"data-slot":"avatar-image",className:z("aspect-square size-full",e),...t})}function u0({className:e,...t}){return m.jsx(s0,{"data-slot":"avatar-fallback",className:z("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}function d0(){return d.useCallback(e=>{const t=e.trim().split(" ");if(t.length===0)return"";if(t.length===1)return t[0].charAt(0).toUpperCase();const n=t[0].charAt(0),r=t[t.length-1].charAt(0);return`${n}${r}`.toUpperCase()},[])}function rl({user:e,showEmail:t=!1}){const n=d0();return m.jsxs(m.Fragment,{children:[m.jsxs(c0,{className:"h-8 w-8 overflow-hidden rounded-full",children:[m.jsx(l0,{src:e.avatar,alt:e.name}),m.jsx(u0,{className:"rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white",children:n(e.name)})]}),m.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[m.jsx("span",{className:"truncate font-medium",children:e.name}),t&&m.jsx("span",{className:"truncate text-xs text-muted-foreground",children:e.email})]})]})}function f0(){return d.useCallback(()=>{document.body.style.removeProperty("pointer-events")},[])}function p0({user:e}){const t=f0(),n=()=>{t(),sl.flushAll()};return m.jsxs(m.Fragment,{children:[m.jsx(t0,{className:"p-0 font-normal",children:m.jsx("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:m.jsx(rl,{user:e,showEmail:!0})})}),m.jsx(gi,{}),m.jsx(e0,{children:m.jsx(hi,{asChild:!0,children:m.jsxs(Zt,{className:"block w-full",href:route("profile.edit"),as:"button",prefetch:!0,onClick:t,children:[m.jsx(Il,{className:"mr-2"}),"Settings"]})})}),m.jsx(gi,{}),m.jsx(hi,{asChild:!0,children:m.jsxs(Zt,{className:"block w-full",method:"post",href:route("logout"),as:"button",onClick:n,children:[m.jsx(Tl,{className:"mr-2"}),"Log out"]})})]})}function m0(){const{auth:e}=vo().props,{state:t}=xr(),n=qi();return m.jsx(wr,{children:m.jsx(Cr,{children:m.jsxs(Zy,{children:[m.jsx(Qy,{asChild:!0,children:m.jsxs(Sr,{size:"lg",className:"group text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent",children:[m.jsx(rl,{user:e.user}),m.jsx(wl,{className:"ml-auto size-4"})]})}),m.jsx(Jy,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",align:"end",side:n?"bottom":t==="collapsed"?"left":"bottom",children:m.jsx(p0,{user:e.user})})]})})})}function h0(){return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground",children:m.jsx(dl,{className:"size-5 fill-current text-white dark:text-black"})}),m.jsx("div",{className:"ml-1 grid flex-1 text-left text-sm",children:m.jsx("span",{className:"mb-0.5 truncate leading-tight font-semibold",children:"JBS"})})]})}const g0=[{title:"Dashboard",href:"/dashboard",icon:Rl},{title:"Customers",href:"/customers",icon:ua},{title:"Interior Designers",href:"/interior-designers",icon:ua},{title:"Estimates",href:"/estimates",icon:la},{title:"Invoices",href:"/invoices",icon:la}],v0=[{title:"Repository",href:"https://github.com/laravel/react-starter-kit",icon:Sl},{title:"Documentation",href:"https://laravel.com/docs/starter-kits#react",icon:vl}];function y0(){return m.jsxs(sv,{collapsible:"icon",variant:"inset",children:[m.jsx(uv,{children:m.jsx(wr,{children:m.jsx(Cr,{children:m.jsx(Sr,{size:"lg",asChild:!0,children:m.jsx(Zt,{href:"/dashboard",prefetch:!0,children:m.jsx(h0,{})})})})})}),m.jsx(fv,{children:m.jsx(xv,{items:g0})}),m.jsxs(dv,{children:[m.jsx(bv,{items:v0,className:"mt-auto"}),m.jsx(m0,{})]})]})}function b0({...e}){return m.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function x0({className:e,...t}){return m.jsx("ol",{"data-slot":"breadcrumb-list",className:z("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...t})}function w0({className:e,...t}){return m.jsx("li",{"data-slot":"breadcrumb-item",className:z("inline-flex items-center gap-1.5",e),...t})}function C0({asChild:e,className:t,...n}){const r=e?st:"a";return m.jsx(r,{"data-slot":"breadcrumb-link",className:z("hover:text-foreground transition-colors",t),...n})}function S0({className:e,...t}){return m.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:z("text-foreground font-normal",e),...t})}function E0({children:e,className:t,...n}){return m.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:z("[&>svg]:size-3.5",t),...n,children:e??m.jsx(bl,{})})}function R0({breadcrumbs:e}){return m.jsx(m.Fragment,{children:e.length>0&&m.jsx(b0,{children:m.jsx(x0,{children:e.map((t,n)=>{const r=n===e.length-1;return m.jsxs(d.Fragment,{children:[m.jsx(w0,{children:r?m.jsx(S0,{children:t.title}):m.jsx(C0,{asChild:!0,children:m.jsx(Zt,{href:t.href,children:t.title})})}),!r&&m.jsx(E0,{})]},n)})})})})}function A0({breadcrumbs:e=[]}){return m.jsx("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/50 px-6 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 md:px-4",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(cv,{className:"-ml-1"}),m.jsx(R0,{breadcrumbs:e})]})})}function T0({children:e,breadcrumbs:t=[]}){return m.jsxs(vv,{variant:"sidebar",children:[m.jsx(y0,{}),m.jsxs(gv,{variant:"sidebar",className:"overflow-x-hidden",children:[m.jsx(A0,{breadcrumbs:t}),m.jsx("div",{className:"flex h-full flex-1 flex-col gap-4 overflow-x-auto rounded-xl p-4",children:e})]})]})}function P0(e){return ft("MuiAlert",e)}const vi=pt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function M0(e){return ft("MuiIconButton",e)}const yi=pt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),k0=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:i}=e,s={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${ne(r)}`,o&&`edge${ne(o)}`,`size${ne(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Bt(s,M0,t)},O0=de(bp,{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)}`]]}})(lt(({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.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(e.palette.action.active,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}}]})),lt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(It()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt((e.vars||e).palette[t].main,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)}}],[`&.${yi.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${yi.loading}`]:{color:"transparent"}}))),I0=de("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"}}]})),_0=d.forwardRef(function(t,n){const r=mt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:p="medium",id:f,loading:g=null,loadingIndicator:y,...v}=r,u=nf(f),b=y??m.jsx(Mp,{"aria-labelledby":u,color:"inherit",size:16}),x={...r,edge:o,color:s,disabled:c,disableFocusRipple:l,loading:g,loadingIndicator:b,size:p},S=k0(x);return m.jsxs(O0,{id:g?u:f,className:re(S.root,i),centerRipple:!0,focusRipple:!l,disabled:c||g,ref:n,...v,ownerState:x,children:[typeof g=="boolean"&&m.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:m.jsx(I0,{className:S.loadingIndicator,ownerState:x,children:g&&b})}),a]})}),N0=hn(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),$0=hn(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),D0=hn(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),j0=hn(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),L0=hn(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),F0=e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`color${ne(n||r)}`,`${t}${ne(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Bt(a,P0,o)},B0=de(Lp,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color||n.severity)}`]]}})(lt(({theme:e})=>{const t=e.palette.mode==="light"?Jt:en,n=e.palette.mode==="light"?en:Jt;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(It(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${vi.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(It(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${vi.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(It(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),z0=de("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),W0=de("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),V0=de("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),bi={success:m.jsx(N0,{fontSize:"inherit"}),warning:m.jsx($0,{fontSize:"inherit"}),error:m.jsx(D0,{fontSize:"inherit"}),info:m.jsx(j0,{fontSize:"inherit"})},H0=d.forwardRef(function(t,n){const r=mt({props:t,name:"MuiAlert"}),{action:o,children:a,className:i,closeText:s="Close",color:c,components:l={},componentsProps:p={},icon:f,iconMapping:g=bi,onClose:y,role:v="alert",severity:u="success",slotProps:b={},slots:x={},variant:S="standard",...E}=r,C={...r,color:c,severity:u,variant:S,colorSeverity:c||u},w=F0(C),T={slots:{closeButton:l.CloseButton,closeIcon:l.CloseIcon,...x},slotProps:{...p,...b}},[A,k]=At("root",{ref:n,shouldForwardComponentProp:!0,className:re(w.root,i),elementType:B0,externalForwardedProps:{...T,...E},ownerState:C,additionalProps:{role:v,elevation:0}}),[_,h]=At("icon",{className:w.icon,elementType:z0,externalForwardedProps:T,ownerState:C}),[P,I]=At("message",{className:w.message,elementType:W0,externalForwardedProps:T,ownerState:C}),[O,$]=At("action",{className:w.action,elementType:V0,externalForwardedProps:T,ownerState:C}),[L,D]=At("closeButton",{elementType:_0,externalForwardedProps:T,ownerState:C}),[B,N]=At("closeIcon",{elementType:L0,externalForwardedProps:T,ownerState:C});return m.jsxs(A,{...k,children:[f!==!1?m.jsx(_,{...h,children:f||g[u]||bi[u]}):null,m.jsx(P,{...I,children:a}),o!=null?m.jsx(O,{...$,children:o}):null,o==null&&y?m.jsx(O,{...$,children:m.jsx(L,{size:"small","aria-label":s,title:s,color:"inherit",onClick:y,...D,children:m.jsx(B,{fontSize:"small",...N})})}):null]})}),rb=({children:e,breadcrumbs:t,...n})=>m.jsxs(T0,{breadcrumbs:t,...n,children:[m.jsx(H0,{severity:"warning",children:"UNDER DEVELOPEMENT."}),e]});export{rb as A,bp as B,Mp as C,zf as D,Wf as E,At as F,q0 as G,en as H,Jt as I,H0 as J,Zf as K,Ha as L,Nn as M,ct as N,me as O,Lp as P,Ip as Q,Np as R,Op as S,Yi as T,ip as U,_p as V,Vf as W,ro as X,Qf as Y,qf as _,Bn as a,ft as b,hn as c,ne as d,Bt as e,It as f,pt as g,Qt as h,qd as i,no as j,Kr as k,nf as l,lt as m,Be as n,ar as o,Bd as p,at as q,Hf as r,de as s,Od as t,mt as u,Dt as v,Gd as w,Oo as x,Ki as y,Wl as z};
